[FFmpeg-trac] #11462(undetermined:new): Cannot embed .scc file into .mp4 using -c:s copy
FFmpeg
trac at avcodec.org
Mon Feb 10 04:35:07 EET 2025
#11462: Cannot embed .scc file into .mp4 using -c:s copy
-------------------------------------+-------------------------------------
Reporter: Zach | Type:
| enhancement
Status: new | Priority: important
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
{{{
ffmpeg.exe" -i video.mp4 -i CaptionMaker.scc -map 0:v -map 0:a -map 1 -c:v
copy -c:a copy -c:s copy output.mp4
ffmpeg version 2025-02-06-git-6da82b4485-full_build-www.gyan.dev Copyright
(c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-
w32threads --disable-autodetect --enable-fontconfig --enable-iconv
--enable-gnutls --enable-lcms2 --enable-libxml2 --enable-gmp --enable-
bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist
--enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
--enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread
--enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-
libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc
--enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode
--enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve
--enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-
mediafoundation --enable-libass --enable-frei0r --enable-libfreetype
--enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-
libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-
llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va
--enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-
vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-
opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-
libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-
libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
--enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3
--enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-
libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-
libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 59. 56.100 / 59. 56.100
libavcodec 61. 32.101 / 61. 32.101
libavformat 61. 9.106 / 61. 9.106
libavdevice 61. 4.100 / 61. 4.100
libavfilter 10. 9.100 / 10. 9.100
libswscale 8. 13.100 / 8. 13.100
libswresample 5. 4.100 / 5. 4.100
libpostproc 58. 4.100 / 58. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from video.mp4:
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2025-02-09T19:21:47.000000Z
Duration: 00:28:31.71, start: 0.000000, bitrate: 18300 kb/s
Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 17979 kb/s, 29.97 fps,
29.97 tbr, 30k tbn (default)
Metadata:
creation_time : 2025-02-09T19:21:47.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2025-02-09T19:21:47.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
Input #1, scc, from CaptionMaker.scc:
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: eia_608 (cc_dec)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (copy)
[mp4 @ 000001998ad1f040] Could not find tag for codec eia_608 in stream
#2, codec not currently supported in container
[out#0/mp4 @ 000001998a703380] Could not write header (incorrect codec
parameters ?): Invalid argument
Conversion failed!
}}}
using flag -c:s copy fails, but c:s mov_text creates a file but modifies
the stream to a subtitles stream instead of captions.
Please add the required eia-608 or cea-608 codec to allow embedding of
captions into mp4 files.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11462>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list