Fill in Missing Frames?

Help
2009-12-25
2013-04-24
  • A screencast I recently recorded with XVidCap has many missing frames. Is it possible (using ffmpeg, mencoder, etc) to "fill in" missing frames - that is, place a duplicate of an existing frame wherever a frame is missing?

    The reason I ask is that I am trying to sync my video with a separate audio file. With missing frames, the video plays too quickly and gets out of sync with the audio.

    Thanks in advance xvidcap hackers! :-)

     
  • lee
    lee
    2010-01-02

    What you are asking for is called framerate resampling.  You could use both ffmpeg or mencoder to do that.  Just run "man ffmpeg" or "man mplayer" to read their manual. 

    If you are looking for a nice gui to help you, I would suggest Avidemux found at avidemux.org or in your repository.  After opening a file with it just change Video from Copy to the codec you wish.  Then select Filters.  The Video Filter Manager window will open.  You should see Resamle fps in the list.  Select that filter and click the + sign button.  It will then ask you for the frame rate you desire.

    Avidemux also allows you to add a separate audio file if you like.

    Best of Luck
    -Curt