Hacker News new | past | comments | ask | show | jobs | submit login

You shouldn't need to care about that; video formats should support clipping to non-keyframes by including the preceding GOP at negative playback times, so it skips to the frame you started the clip at.

(MOV in fact does support this, but ffmpeg doesn't play it back properly.)




> ffmpeg doesn't play it back properly

Can't repro here.

Commands:

  ffmpeg -ss X -i INPUT -c copy -t 10 test.mp4
  ffplay test.mp4
where X is not a KF time. Plays from X with audio in sync for 10 secs.


Well, I haven't tried it recently, but it's probably rounding your start time to the nearest keyframe.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: