+ Reply to Thread
Results 1 to 8 of 8
-
Assuming the source uses timestamp VFR (not hardcoded encoded field or frame repeats) , avisynth is CFR anyways . ie. it's already CFR when you use an avs source filter. Since audio doesn't matter, sync doesn't matter. The FPS will be an average FPS . If you want to speed up, or slow down use AssumeFPS. The motion can look weird if you have highly variable frame rate source, since the original timing is no longer kept
Inserting duplicates or dropping frames is only required to keep sync equivalent to the VFR timestamps -
For ffmpeg you can demux the video stream to elementary video. This will retain only the original encoded frames, and discard the time stamps. If you want to remux back into a container with some CFR value, you can too but only with a 2nd step; if you remux directly into a container, the timestamps will be retained. You need to discard the timestamps
(Again , motion can look weird if source was highly variable; and the sync timing will be lost but you don't care about audio) -
You may try to experiment with ffmpeg - seem there is some work on this:
Code:-vsync parameter (global) -fps_mode[:stream_specifier] parameter (output,per-stream) Set video sync method / framerate mode. vsync is applied to all output video streams but can be overridden for a stream by setting fps_mode. vsync is deprecated and will be removed in the future. For compatibility reasons some of the values for vsync can be specified as numbers (shown in parentheses in the following table). passthrough (0) Each frame is passed with its timestamp from the demuxer to the muxer. cfr (1) Frames will be duplicated and dropped to achieve exactly the requested constant frame rate. vfr (2) Frames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp. drop As passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate. auto (-1) Chooses between cfr and vfr depending on muxer capabilities. This is the default method. Note that the timestamps may be further modified by the muxer, after this. For example, in the case that the format option avoid_negative_ts is enabled. With -map you can select from which stream the timestamps should be taken. You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one.
-
Cool. Thanks for the replies. From what I checked, the source has no large deviations in frame time, it can easily be CFR.
-
Similar Threads
-
ffmpeg VFR to CFR in stream copy is possible?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 4th Dec 2021, 16:13 -
VFR vs CFR
By rblu in forum Newbie / General discussionsReplies: 2Last Post: 16th Feb 2021, 14:29 -
VFR to CFR conversion before editing
By droner in forum EditingReplies: 42Last Post: 15th Feb 2021, 04:01 -
How to properly convert VFR to CFR but keeping the cuts?
By Anonymous847344 in forum Video ConversionReplies: 10Last Post: 10th Jun 2020, 22:09 -
I want to convert VFR to CFR while keeping the video interlaced
By ENunn in forum Video ConversionReplies: 34Last Post: 24th Apr 2019, 04:50