VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    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,
    Image Attached Files
    Quote Quote  
  2. 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).
    Quote Quote  
  3. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    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?
    Image
    [Attachment 62123 - Click to enlarge]
    Quote Quote  
  4. 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.
    Quote Quote  
  5. 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.
    Quote Quote  



Similar Threads

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