VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    Is there a reliable way of using ffmpeg to transcode Variable Frame Rate (VFR) AVC video to Constant Frame rate (CFR) ?
    If so can you please show an example commandline ? I have an nvidia gpu, if that's of any use with cuda or something.

    I recently bought a Samsung S8+ mobile phone. ALL videos recorded by the S8/S8+ cameras are h.264 8-bit progressive VFR .mp4 in various resolutions and colour spaces and profile levels as outlined in the attached pdf.

    The video editing software I use (VideoReDo) and apparently most if not all others only handle CFR, hence the query.
    Image Attached Files
    Quote Quote  
  2. Is there a reliable way of using ffmpeg to transcode Variable Frame Rate (VFR) AVC video to Constant Frame rate (CFR) ?
    Keeping it simple:
    Code:
    ffmpeg -hwaccel cuvid -c:v h264_cuvid -i input -c:v h264_nvenc -preset slow -r X output.mkv
    should create Xfps cfr output by duplicating or dropping frames to archive the target frame rate, so replacing X with a frame rate >= the max frame rate for each video should work.
    (alternative to duplicating the frames one could use minterpolate for motion interpolation based frame creation)
    You might also adjust the nvenc settings depending on your speed, quality and color format needs,...
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    Thank you. That looks easy.

    I'll look into minterpolate as well then.

    I reckon I should probably look over on the doom9 forum to see if they also have a motion compensated conversion solution in vapoursynth.
    Unfortunately great tools like DG's set don't handle VFR input, so I'll need to look into an alternative vapoursynth input method if there's a vapoursynth related approach around.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!