[FFmpeg-user] Subtitles disappear

Mark Filipak (ffmpeg) markfilipak at bog.us
Mon Jan 4 04:20:56 EET 2021


On 01/03/2021 08:00 PM, Cecil Westerhof via ffmpeg-user wrote:
> I convert a video with the following statement
>      ffmpeg -y -i input.mkv -nostdin -vf scale=1024:-2 -crf 23 -acodec libmp3lame -qscale:a 9 -preset veryfast Temp/output.mp4
> 
> The input file has subtitles, but the output file does not.
> What to change to have also subtitles in the output file?
> 
> And if I can do things better, I do not mind to hear it. ;-)

MP4 containers don't support subtitle streams. I use MKV.

You can specify codecs with these
-codec:v
-codec:a
-codec:s



More information about the ffmpeg-user mailing list