ffmpeg cutting video duration
Posted
by
Steve Spence
on Super User
See other posts from Super User
or by Steve Spence
Published on 2012-09-26T15:38:25Z
Indexed on
2012/09/26
15:40 UTC
Read the original article
Hit count: 271
ffmpeg
When using ffmpeg on linux, my 4.3GB 2.21 second video is being chopped down to 1.56 duration. I'm trying to reduce file size, but not lose frames.
steve@steve-OptiPlex-170L:~/Desktop$ ffmpeg -i microbe.avi microbe.mp4
ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jun 12 2012 16:37:58 with gcc 4.6.3
* THIS PROGRAM IS DEPRECATED *
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, avi, from 'microbe.avi':
Duration: 00:02:21.80, start: 0.000000, bitrate: 242311 kb/s
Stream #0.0: Video: rawvideo, bgr24, 1280x960, 10 tbr, 10 tbn, 10 tbc
Incompatible pixel format 'bgr24' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x9f861e0] w:1280 h:960 pixfmt:bgr24
[avsink @ 0x9f86440] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x9f7d800] w:1280 h:960 fmt:bgr24 -> w:1280 h:960 fmt:yuv420p flags:0x4
Output #0, mp4, to 'microbe.mp4':
Metadata:
encoder : Lavf53.21.0
Stream #0.0: Video: mpeg4, yuv420p, 1280x960, q=2-31, 200 kb/s, 10 tbn, 10 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
frame= 1164 fps= 6 q=31.0 Lsize= 3775kB time=116.40 bitrate= 265.7kbits/s
video:3765kB audio:0kB global headers:0kB muxing overhead 0.272870%
steve@steve-OptiPlex-170L:~/Desktop$
© Super User or respective owner