Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Add keyframes (or cuepoints) with ffmpeg

  • Add keyframes (or cuepoints) with ffmpeg

    Posted by Laurent Polèse on March 1, 2012 at 6:53 pm

    Hello,

    I need to point to some accurate places (chapters) on a video created with ffmpeg, in various formats (flv and mp4/h264).
    But I can only point to the closest keyframe.

    This works just fine with cuepoints created with video post prod software, though cuepoints are just metadata. So I assume the software creates a keyframe at the exact same time as the cuepoint to get such accuracy.

    Unfortunately, I didn’t find out how to create cuepoints, or keyframes, with ffmpeg. I only could set global parameters for keyframes, as the frames gap between 2 keyframes. But I can’t set 10 keyframes per second just to get the needed accuracy for 3 chapters on a 20 minutes video…

    Does anyone know how I could do this, with ffmpeg or, even, with any linux command line tool ?

    Thanks 😉
    Lo

    Laurent Polèse replied 14 years, 5 months ago 1 Member · 1 Reply
  • 1 Reply
  • Laurent Polèse

    March 9, 2012 at 3:16 pm

    Ok, found that option :
    -force_key_frames time[,time…]
    my current ffmpeg crashes when I try to use it (current Ubuntu release) but last ffmpeg release seems to work well with that.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy