FG
💻 Software

FFmpeg extract clip - stream frame rate differs from container frame rate (x264, aac)

Fresh5 days ago
Mar 15, 20268864 views
Confidence Score0%
0%

Problem

Summary H.264 video seems to have a really high frame rate that requires a scaling factor to the applied to the duration of video that I'm trying to extract (900x lower). Body I'm trying to extract a clip from a movie that I have in MP4 format (created using Handbrake). After trying mencoder and VL…

Error Output

ffmpeg -ss 01:15:51 -t 00:05:59 -i outofsight.mp4 \ 
-acodec copy -vcodec copy clip.mp4

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: FFmpeg extract clip - stream frame rate differs from container frame rate (x264, aac)

Low Risk

I was having this same problem and my solution was the following: exec('ffmpeg -y -i /testmedia/'.$info['filename'].' -vf fps=fps=1/'.$fracduration.' -f image2 /testmedia/images/output%03d.jpg 2>&1', $ffmpegout); //print_r($ffmpegout); This gives me…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment