Hello,
I have one small MP4 video with 2 minute length, it is basically OK, but from 1’17” to 1’20”, I saw one frame seems stay too long.
I want to know if I can use ffmpeg or other command line to make duration of each frame the same, for example, if FPS=25, then each frame should last 40ms.
In my example, the total length of MP4 video will be less than 2 minutes.
Or, if I can use some API, like Python to extract all frames from the video (ignore the audio) and create a new video to make sure that duration of each frame the same for all frames.
See the video to understand my example.
Thanks,
+ Reply to Thread
Results 1 to 5 of 5
-
-
It's a freeze frame problem, some players have difficulty decoding the section at 1'17" (but it plays ok in virtualdub).
Given that it is a replay, I would just cut out the corresponding keyframe section with Avidemux (this doesn't require re-encoding). -
Hello,
Thanks for your reply, I tried to use the software, but I don't know if I am doing the job right, please advise!
By the way, can I use the software in DOS command in Windows 10?
[Attachment 62123 - Click to enlarge] -
for (no re-encode) copy operation:
delete end must be a keyframe (I-FRM)
use >> button or Up key to navigate keyframes. The example video has keyframes every 2s.
the saved video should play without corruption or freeze.
Typically visualizing the frame you are cutting at is beneficial, which isn't possible via command line.
You probably should explain more in detail what problem you are trying to solve. -
The sample video clip has only I and P frames. Any segment you keep must start on an I frame but it can end on any frame. The bad frame in that video is just a few frames before the end of the GOP. The bad frame is a P frame, the next frame is another P frame, and the next an I frame. So you can cut out just those two P frames.
Similar Threads
-
Complex FFMPEG command
By nifaf in forum Video ConversionReplies: 0Last Post: 23rd Sep 2021, 08:28 -
Get the complete FFmpeg command line when using FFmpeg Batch Converter
By pascor in forum Newbie / General discussionsReplies: 8Last Post: 13th May 2021, 23:14 -
[Audacity/ffmpeg] Audio duration unsync
By butterw in forum AudioReplies: 4Last Post: 4th Feb 2021, 12:03 -
Cut every other frame in 60fps to make same duration 30fps video?
By bizzybody in forum EditingReplies: 21Last Post: 11th Nov 2020, 01:36 -
Use ffmpeg to replace frame with previous frame if frames are X % different
By dkrichards16 in forum Video ConversionReplies: 0Last Post: 29th Apr 2017, 16:27