11/11/2022 0 Comments Ffmpeg copy all subtitle tracks![]() ![]() What is missing afaict is a possibility for the user to mark streams as default streams, an alternative is to always set the first stream as default in the Matroska muxer, I am not completely convinced that this is the best solution,įor me as a user the ability to mark streams as default streams sounds like an ideal solution, although forcing the first one being the default one would be ok'ish, too.Ĭonsider sending a patch if that is what you want. Stream #0:3(fra): Subtitle: subrip (default) Stream #0:2(eng): Subtitle: subrip (default) Ok, thanks for this background information, I was looking at the above output and saw DISPOSITION:default=1 and also in ffmpeg -i test.mkv output there is: The Matroska specification - (search for FlagDefault) - specifies that the value for the default flag is "default" if nothing is specified, the demuxer therefore marks all subtitle tracks as "default". None of your input subtitle streams is marked as default, current FFmpeg therefore does not write the default flag for any of the subtitle tracks. > ffprobe -i test.mkv -loglevel 0 -show_streamsĬodec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10Ĭodec_long_name=AAC (Advanced Audio Coding) Video:1389kB audio:146kB subtitle:0 global headers:0kB muxing overhead 0.399761% ![]() Estimating duration from bitrate, this may be inaccurate ffmpeg -fflags +genpts -i test.mp4 -i test-en.srt -i test-fr.srt -c:a copy -c:v copy -c:s copy -metadata:s:s:0 language=eng -metadata:s:s:1 language=fra -metadata:s:s:1 default-flag=0 -map 0:0 -map 0:1 -map 1:0 -map 2:0 test.mkvįfmpeg version N-51211-ge0e8c20 Copyright (c) 2000-2013 the FFmpeg developersĬonfiguration: -enable-gpl -enable-version3 -disable-w32threads -enable-avisynth -enable-bzlib -enable-fontconfig -enable-frei0r -enable-gnutls -enable-libass -enable-libbluray -enable-libcaca -enable-libfreetype -enable-libgsm -enable-libilbc -enable-libmp3lame -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopenjpeg -enable-libopus -enable-librtmp -enable-libschroedinger -enable-libsoxr -enable-libspeex -enable-libtheora -enable-libtwolame -enable-libvo-aacenc -enable-libvo-amrwbenc -enable-libvorbis -enable-libvpx -enable-libx264 -enable-libxavs -enable-libxvid -enable-zlib With both subtitles marked as default VLC shows the last subtitle stream but MPC-HC shows the first one (provided that no subtitle language preference has been set). When creating a Matroska / mkv file with FFmpeg with several subtitle streams all of them are marked as default and there seems to be no way to disable setting of the default flag for any of the subtitle streams.īelow is an example with the presumably correct metadata identifier default-flag=0 in use. Some related discussion was in ticket #1815. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |