You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Converting VFR (Variable Frame Rate) video to CFR (Constant Frame Rate) is indeed problematic, as it can lead to frame drops depending on the FPS.
Describe the solution you'd like
By exporting directly without converting VFR to CFR, you can prevent frame drops.
Describe alternatives you've considered
Export without converting VFR to CFR directly.
Additional context
The correct approach is to generate a pkt_pts_time list and directly output VFR to frame images. The FPS of the video, which can be read with tools like ffprobe, is the average frame rate.
You can obtain the frame timestamps of a video using the following command line:
This command will provide you with the frame timestamps for the video in JSON format.
The total number of frames in the video is multiplied by the Interpolation_multiplier, and the pkt_pts_time is also multiplied by the Interpolation_multiplier. Then, the values are interpolated by adding the frames before and after, and dividing the result by Interpolation_multiplier.
Here's the description you provided in English:
new_frames[int]: The value obtained after multiplying the total frame count by Interpolation_multiplier. This represents the total frame count after interpolation.
new_pts_time: The value obtained by multiplying the original pkt_pts_time by Interpolation_multiplier.
0.The original pkt_pts_time value multiplied by Interpolation_multiplier.
1.The result of adding the values at frames 0 and 2 of new_pts_time, and then dividing the sum by Interpolation_multiplier.
2.The original pkt_pts_time value multiplied by Interpolation_multiplier.
If you want to make the final video CFR instead of VFR, you can calculate the highest FPS using the frame intervals of the original video's pkt_pts_time and then use that FPS for the final video.
FPS=1/frame intervals.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Converting VFR (Variable Frame Rate) video to CFR (Constant Frame Rate) is indeed problematic, as it can lead to frame drops depending on the FPS.
Describe the solution you'd like
By exporting directly without converting VFR to CFR, you can prevent frame drops.
Describe alternatives you've considered
Export without converting VFR to CFR directly.
Additional context
The correct approach is to generate a
pkt_pts_time
list and directly output VFR to frame images. The FPS of the video, which can be read with tools like ffprobe, is the average frame rate.You can obtain the frame timestamps of a video using the following command line:
ffprobe "filename" -select_streams v:0 -print_format json -show_entries frame=pkt_pts_time
This command will provide you with the frame timestamps for the video in JSON format.
The total number of frames in the video is multiplied by the
Interpolation_multiplier
, and thepkt_pts_time
is also multiplied by theInterpolation_multiplier
. Then, the values are interpolated by adding the frames before and after, and dividing the result byInterpolation_multiplier
.Here's the description you provided in English:
new_frames[int]
: The value obtained after multiplying the total frame count byInterpolation_multiplier
. This represents the total frame count after interpolation.new_pts_time
: The value obtained by multiplying the originalpkt_pts_time
byInterpolation_multiplier
.0.The original
pkt_pts_time
value multiplied byInterpolation_multiplier
.1.The result of adding the values at frames 0 and 2 of
new_pts_time
, and then dividing the sum byInterpolation_multiplier
.2.The original
pkt_pts_time
value multiplied byInterpolation_multiplier
.And so on, for each frame in the video.
If you want to make the final video CFR instead of VFR, you can calculate the highest FPS using the frame intervals of the original video's
pkt_pts_time
and then use that FPS for the final video.FPS=1/frame intervals.
The text was updated successfully, but these errors were encountered: