Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG] premature EOF in certain combinations

Open
#128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker

Research direction

Start by comparing the working 8.1.2-cli-ls75/ls76 and broken 9.0-cli-ls77 images, including their FFmpeg versions and Dockerfile changes. Run the provided Podman command with the listed stream combinations and inspect when output stops. Done means the 9.0 image transcodes the full input while copying PGS subtitles with trueHD audio selected.

Written by the indexing model from the issue text.

Description

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

I'm trying to transcode audio while copying subtitles and I get EOF after the intro ends, skipping the entire rest of the video. Up until 8.1.2 this worked, but the very next release, 9.0, doesn't.

Input file has

  • trueHD audio
  • ac3 audio
  • pgsub subtitles

Selecting just ac3 and copying subtitles works, but as soon as I use trueHD in the inputs the bug appears. Someone else seems to have a similar issue at https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/24336

I have tried and failed to reproduce it with system packages. I can run ffmpeg 9 there and everything works.
I have also tried basing off commit d2c4df5 and just updating the ffmpeg version in the dockerfile, which also didn't work though I may have done something wrong.

Expected Behavior

New versions should handle it as well.

Steps To Reproduce

Transcode a video file with truehd/DTS-HD MA audio and pgsub subtitles. My test command was

podman run --rm -it -v ./:/work lscr.io/linuxserver/ffmpeg:9.0-cli-ls77 \
 -i /work/input.mkv -map 0:3 -c:a:0 libopus -b:a:0 256k -map 0:s? -c:s copy /work/test.mkv -y

with the source file looking like this

● Video  --vid=1  --vlang=eng  (h264 1920x1080 23.976 fps)
● Audio  --aid=1  --alang=eng  'Surround 5.1' (truehd 6ch 48000 Hz) [default]
○ Audio  --aid=2  --alang=eng  'Surround 5.1' (ac3 6ch 48000 Hz)
○ Audio  --aid=3  --alang=jpn  'Stereo' (truehd 2ch 48000 Hz)
○ Audio  --aid=4  --alang=jpn  'Stereo' (ac3 2ch 48000 Hz)
○ Subs   --sid=1  --slang=eng  (hdmv_pgs_subtitle)
○ Subs   --sid=2  --slang=eng  (hdmv_pgs_subtitle)
Environment
- OS: Gentoo/Debian
- How podman/docker service was installed: System packages
Docker creation

Working:

podman run --rm -it -v ./:/work lscr.io/linuxserver/ffmpeg:8.1.2-cli-ls75 \
 -i /work/input.mkv -map 0:3 -c:a:0 libopus -b:a:0 256k -map 0:s? -c:s copy /work/test.mkv -y
podman run --rm -it -v ./:/work lscr.io/linuxserver/ffmpeg:8.1.2-cli-ls76 \
 -i /work/input.mkv -map 0:3 -c:a:0 libopus -b:a:0 256k -map 0:s? -c:s copy /work/test.mkv -y

Broken:

podman run --rm -it -v ./:/work lscr.io/linuxserver/ffmpeg:9.0-cli-ls77 \
 -i /work/input.mkv -map 0:3 -c:a:0 libopus -b:a:0 256k -map 0:s? -c:s copy /work/test.mkv -y
Container logs

Good:

[out#0/matroska @ 0x560255d93d80] video:0KiB audio:45161KiB subtitle:7113KiB other streams:0KiB global headers:0KiB muxing overhead: 1.009287%
size=   52802KiB time=00:23:34.22 bitrate= 305.9kbits/s speed= 137x elapsed=0:00:10.32

Bad:

[out#0/matroska @ 0x55ae26c3ad00] video:0KiB audio:2806KiB subtitle:7113KiB other streams:0KiB global headers:0KiB muxing overhead: 0.611322%
size=    9979KiB time=00:23:50.03 bitrate=  57.2kbits/s speed= 896x elapsed=0:00:01.59
Dominant language
Dockerfile
Stars
208
Forks
59
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Audio/Video & RTC issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.