[FFmpeg-user] How to cut a clip from video with subtitles?

mbork at mbork.pl mbork at mbork.pl
Sat Feb 15 14:25:51 EET 2025


Hi all,

I have a video with subtitles (as an srt file).  I want to clip
a fragment from it, scaling it down to a worse resolution, _and_ put the
subtitles in the resulting clip.

This is how I do it now:

time ffmpeg -y -i some_film.mp4 -ss 121052ms -to 140392ms -c:v libx264 -c:a copy -vf subtitles=some_film.srt -vf scale=240:-1 clip.mp4

However, this "burns the subtitles into the video", and I'd prefer to
have them as a separate track.  I tried this:

time ffmpeg -y -i some_film.mp4 -i some_film.srt -ss 121052ms -to 140392ms -c:v libx264 -vf scale=240:-1 -c:a copy -c:s mov_text clip.mp4

but it didn't work - the clip was selected correctly, the resolution was
correct, but I couldn't see the subtitles.

What am I doing wrong?

Thanks in advance,

-- 
Marcin Borkowski
https://mbork.pl
https://crimsonelevendelightpetrichor.net/


More information about the ffmpeg-user mailing list