Guest User

overlaying time/frame accurate

a guest
Nov 19th, 2017
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - extracting all frames from time 03:32 to 03:35 to get the "point of interest" timing:
  2.  
  3. $ ffmpeg -ss 00:03:32 -i in.mkv -vf fps=29.970628 -t 3 out_%d.png
  4.  
  5. the point of interest happens at frame number 50, then the timing is: 03:(33+(50 / 29.970628)) = 00:03:34.668
  6.  
  7. then overlaying the picture from 2 points of interest like this:
  8.  
  9. $ ffmpeg -i in.mkv -i in.png -filter_complex "[0:v]scale=768:-1[scaled];[scaled][1:v]overlay=enable='between(t,3*60+34.670,3*60+39.630)'" -t 220 test8.mkv
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×