[FFmpeg-user] Add subtitles and chapter metadata in one pass?

Moritz Barsnick barsnick at gmx.net
Tue Oct 13 14:45:22 EEST 2020


On Mon, Oct 12, 2020 at 15:29:53 -0400, George Welch wrote:
> However, I would like to skip the intermediate file.  Here is the
> command I am trying which does *not* work:
>
> $ ffmpeg -i avfile.mkv -i srtfile.srt -i metadata.txt \
>      -map 0:v -map 0:a -map 1:s -map_metadata 2 \
>          -c:v libx264 [ various options ] \
>          -c:a copy \
>          -c:s srt \
>              out.mkv
>
> Can anyone tell me a command that will work, and hopefully explain what
> I have wrong?

ffmpeg has loads of useful console output. Please post the uncut
console output along with the actual command line. The same for the
successful command would also be useful.

Otherwise we are just guessing.

Thanks,
Moritz


More information about the ffmpeg-user mailing list