Skip to main content

Thread: Trim video in FFmpeg is not accurate


i tried trim video in ffmpeg using command:
code:
ffmpeg -ss 00:20:48.500 -t 00:01:00 -i input.mp4 -acodec copy -vcodec copy output.mp4
but ffmpeg not accurate , started video nearby point instead (from 00:24:46~). tried add 2 seconds starting point , took frame (not wanted).

video source h264 video aac audio.

suggestions should do? need accurate possible.

thanks.

the problem maybe..
simple trim cutting h264 has on frame..these can seconds apart..

frame accurate cutting requires new cut-point frame calculated previous current p or b frame, new b & p frames must computed next frame..

did not know ffmpeg cut h264 at all without video re-encoding...
not possible year ago.
ffmpeg weakness not cut in (de)muxer in (de)coder.

try re-encoding -vcodec libx264 in place of -vcodec copy

slower want minute..core 2 duo should manage 1-2x real-time.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia Software [other] Trim video in FFmpeg is not accurate


Ubuntu

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached