VideoHelp Forum


Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Hello again.
    So for the past couple of months I've been extracting images/frames from a whole video file using ffmpeg and then put them back together into a video using Blender. Then I extract the timecodes from the orginal video and mux them with the video that I rendered using Blender so I can get the video back to the right FPS. To summarize it:
    1/ Extract Frames from video file using ffmpeg
    2/ Edit frames
    3/ Use Blender to make an image sequence to video using the edited frames.
    4/ Use MKVCleaver to extract the video and timecodes since MVKCleaver wants me to extract the timecodes with a video track.
    5/ Extract audio file using MKVCleaver
    6/ Mux video, audio, timecodes together to get a new video using MKVTOOLNIXGUI.

    I extract the frames at the FPS that original file is in. Now most of the videos I work with seem to be in VFR (Variable Frame Rate) and not in CFR (Constant Frame Rate).
    I found converting the video to CFR using Handbrake make things easier because there were times when I tried working with a VFR, the audio and video would not sync and the video's FPS would increase and would also increase the time of the video. With CFR I have not come across to problems.
    My other problem is that when I extracted the frames from the a video file I had the issue that not the right amount of frames would be extracted. Lets say I used Mediainfo and it says the video is 45000 frames long and when I use ffmpeg it would extract more or less than that. And when I tried doing all those steps I posted above I had the problem of the video and audio not syncing.

    So my question is, is there a RIGHT WAY of extracting the frames from a video file without later coming to video audio syncing problems?
    Last edited by e.korpse; 17th May 2016 at 22:30.
    Quote Quote  
  2. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    If is it CFR and you know exactly frame rate, than it is no problem. Just tryed in Shotcut and it export exact number of frames. But somebody has problem with this software. When you started it you have to wait a moment (if you want to try it). But problem is you have to set correct fps.
    I try it on video from my camera CFR 25 and it worked perfect.
    And you can then put them together in virtual dub.
    I would blame Handbreak for VFR videos, because it has it as default and it is almost imposible to work with such video propertly
    I think the number that shows Mediainfo and ffmpeg capture, depends on framerate in your ffmpeg script and framerate of video.

    Bernix
    Quote Quote  
  3. Thank you Bernix for your response.

    So what your saying is that I should always work with CFR? And why is it so hard when working with a VFR? I know MKVCleaver supposedly has a VFR detection option. I'm not sure what it does though, I only know it extracts two timecode files.
    Quote Quote  
  4. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    vfr sucks. it should only be used as a last resort for saving a microscopic amount of file size. in other words only by apple crap.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  5. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    I think, that VFR is problem, why you get more or less frames. In CFR there is not problem, at least from my short experience.

    Bernix
    Quote Quote  
  6. Originally Posted by e.korpse View Post
    why is it so hard when working with a VFR?
    Because you have to keep track of time codes. Once you've lost them there is no way to tell how long each frame is to be displayed. CFR is much simpler, every frame is displayed for the same amount of time.
    Quote Quote  
  7. Thanks guys for your opinions.
    Quote Quote  



Similar Threads