Is there an existing issue for this?
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
Is there an existing issue for this?
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
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 -ywith the source file looking like this
Environment
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 -ypodman 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 -yBroken:
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 -yContainer logs
Good:
Bad: