[FFmpeg-trac] #10916(undetermined:new): CLI hangs instead of exiting on remux error when attempting to mux TX3G to Matroska
FFmpeg
trac at avcodec.org
Wed Mar 20 06:37:16 EET 2024
#10916: CLI hangs instead of exiting on remux error when attempting to mux TX3G to
Matroska
-------------------------------------+-------------------------------------
Reporter: Marth64 | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Attempted to remux MP4 to Matroska. Accidentally set -c:s copy from a TX3G
track (which cannot fix in Matroska). FFmpeg raises the error to say this
is not supported, but then hangs and needs to be killed.
In 6.x, CLI exits properly on error and does not hang.
How to reproduce:
{{{
ffmpeg -i "INPUT.mp4" -map 0:0 -codec:0 copy -map 0:1 -codec:1 copy -f
matroska "VIDEO.mkv" -map 0:2 -codec:0 copy -metadata:s:0 title=BUG -f
matroska "SUBS.mks"
}}}
{{{
ffmpeg version n6.1.1-3-g8815d77532-20240211 Copyright (c) 2000-2023 the
FFmpeg developers
built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu-
--arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-
debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype
--enable-libfribidi --enable-gmp --enable-openssl --enable-lzma --enable-
fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl
--enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-
amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-
chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac
--enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme
--enable-libkvazaar --enable-libaribcaption --enable-libass --enable-
libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-
librist --enable-libssh --enable-libtheora --enable-libvpx --enable-
libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-
amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-librav1e --enable-librubberband --disable-
schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
--enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi
--enable-libvidstab --enable-vulkan --enable-libshaderc --enable-
libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-
libxvid --enable-libzimg --enable-libzvbi --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread
--extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-
version=20240211
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'INPUT.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: mp42iso6
creation_time : 2023-10-13T18:11:59.000000Z
title : TITLE
comment : COMMENT
Duration: 00:21:46.46, start: 0.000000, bitrate: 8018 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661),
yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed
Captions, 7820 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
Metadata:
creation_time : 2023-10-13T18:11:59.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: eac3 (ec-3 / 0x332D6365), 48000 Hz,
5.1(side), fltp, 192 kb/s (default)
Metadata:
creation_time : 2023-10-13T18:11:59.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main
Stream #0:2[0x3](eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s
(default)
Metadata:
creation_time : 2023-10-13T18:11:59.000000Z
handler_name : English
Output #0, matroska, to 'VIDEO.mkv':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: mp42iso6
comment : TITLE
title : COMMENT
encoder : Lavf60.16.100
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 7820 kb/s,
23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
creation_time : 2023-10-13T18:11:59.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: eac3 ([0] [0][0] / 0x2000), 48000 Hz,
5.1(side), fltp, 192 kb/s (default)
Metadata:
creation_time : 2023-10-13T18:11:59.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main
[matroska @ 0x55bd4c1ca180] Subtitle codec 94213 is not supported.
[out#1/matroska @ 0x55bd4c24a1c0] Could not write header (incorrect codec
parameters ?): Function not implemented
Error opening output file SUBS.mks.
Error opening output files: Function not implemented
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10916>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list