[FFmpeg-user] Subtitles synced to timecode

Kasper Folman @ flipper folman at flipper.video
Mon May 8 22:45:28 EEST 2017


Hey.

I’ve been working my brain to figure out this, googling for hours. Hopefully there’s some clever heads in here, that can help me.

So, my problem is, that i need to burn in timecode to a movie file. Easy peasy:
ffmpeg -loglevel verbose -i <inputfile> -c:v libx264 -pix_fmt yuv420p -profile:v high -level 5.0 -b:v 8000k -filter_complex "[0:0]  subtitles=‘<subtitlefile>' [vOut]" -map "[vOut]" -c:a aac -b:a 128k -ac 2 -y -strict -2 <output>

And this works great, as long as the movie and .srt file are synced with start TC 00:00:00:00.

However, I have a clip, whose timescode starts at 14:15:34:20, and subtitles are not burned in to this one, even tough the srt file are synced to that timecode. (First subtitle is at 14:15:35).

How do i make ffmpeg understand, that it needs to use the timecode from the clip, to sync the subtitles, and not a timecode starting at 00:00:00:00?

Hope someone can help.

Thanks!

Kasper


More information about the ffmpeg-user mailing list