[FFmpeg-user] Subtitles disappear

Reino Wijnsma rwijnsma at xs4all.nl
Tue Jan 5 02:55:59 EET 2021


On 2021-01-04T02:00:19+0100, Cecil Westerhof via ffmpeg-user <ffmpeg-user at ffmpeg.org> 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. ;-)

On 2021-01-04T15:52:39+0100, Cecil Westerhof via ffmpeg-user <ffmpeg-user at ffmpeg.org> wrote:
> Input #0, matroska,webm, from 'input.mkv':
> [...]
>     Stream #0:2(eng): Subtitle: subrip (default)

Mp4doesn't support subrip. Please use -c:s mov_text.

I wouldn't recommend muxing an mp3 audiostream in mp4 btw. Aac is more widely supported.

-- 
Reino



More information about the ffmpeg-user mailing list