

instead of having to convert the whole video.įor example if i have a minute long video and there is 1 sentence that is said at 30 seconds in and that sentence/sub needs to be displayed for 5 seconds to have ffmpeg only convert that 5 seconds segment and just copy the rest of the video and audio to the new output? Is there a way that i can have ffmpeg just inprint the subs on the video that needs subs. HandBrakeCLI -preset "Very Fast 1080p30" -format av_mp4 -i test-cut.mp4 -srt-file test-cut.srt -srt-burn=1 -o 4 I used this HandbrakeCLI command to convert and hardcode, i know its not like for like but you would expect ffmpeg to be faster since its not converting the audio and really only has to convert the video at the frames that need subtitles. The other day i tried handbrakeCLI and it was a lot lot faster on the same file.

ffmpeg -i test-cut.mp4 -vf "subtitles=test-cut.srt" -c:v libx264 -crf 24 -vsync passthrough -c:a copy 4 I have a video that i need to hardcode subtitles for legacy devices so I usually use ffmpeg for this and it works fine but its so slow.
