[FFmpeg-user] Set Frame rate

Rossana Guerra guerra.rossana at gmail.com
Tue Jun 19 00:03:24 CEST 2012


Hello everyone, I need to set the avi file frame rate to higher one, from
25 to 30.
In some cases the final video is shorter (1 second).
Is there a manner to avoid this?. Thanks

This is the comman line an its output.

ffmpeg -i com1.avi -vcodec libx264 -b 1400k -r 30 outcom1.avi
ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav
developers
  built on Mar 22 2012 05:09:06 with gcc 4.6.3

Seems stream 0 codec frame rate differs from container frame rate: 30000.00
(30000/1) -> 25.00 (25/1)
Input #0, avi, from 'com1.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.10.1 (build 2366/release)
  Duration: 00:00:10.00, start: 0.000000, bitrate: 2313 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 1:1 DAR 5:4], 25 fps,
25 tbr, 25 tbn, 30k tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[buffer @ 0x203b300] w:720 h:576 pixfmt:yuv420p
[libx264 @ 0x2038a60] using SAR=1/1
[libx264 @ 0x2038a60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x2038a60] profile Main, level 3.1
Output #0, avi, to 'outcom1.avi':
  Metadata:
    ISFT            : Lavf53.21.0
    Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 1:1 DAR 5:4],
q=-1--1, 1400 kb/s, 30 tbn, 30 tbc
    Stream #0.1: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 1400 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
frame=  250 fps=  9 q=21.0 Lsize=    1698kB time=9.97
bitrate=1395.6kbits/s
video:1281kB audio:390kB global headers:0kB muxing overhead 1.592471%
frame I:2     Avg QP:21.07  size: 10588
[libx264 @ 0x2038a60] frame P:197   Avg QP:16.93  size:  6265
[libx264 @ 0x2038a60] frame B:51    Avg QP:21.50  size:  1114
[libx264 @ 0x2038a60] consecutive B-frames: 72.8%  0.0%  0.0% 27.2%
[libx264 @ 0x2038a60] mb I  I16..4: 74.1%  0.0% 25.9%
[libx264 @ 0x2038a60] mb P  I16..4:  3.6%  0.0%  1.5%  P16..4: 34.8%  7.7%
3.9%  0.0%  0.0%    skip:48.5%
[libx264 @ 0x2038a60] mb B  I16..4:  0.3%  0.0%  0.4%  B16..8: 15.5%  1.5%
0.3%  direct: 1.2%  skip:80.8%  L0:41.3% L1:47.3% BI:11.4%
[libx264 @ 0x2038a60] final ratefactor: 16.64
[libx264 @ 0x2038a60] coded y,uvDC,uvAC intra: 32.0% 67.1% 37.5% inter:
12.0% 18.3% 3.4%
[libx264 @ 0x2038a60] i16 v,h,dc,p: 56% 25% 13%  7%
[libx264 @ 0x2038a60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 28% 22%  4%  4%
5%  4%  5%  4%
[libx264 @ 0x2038a60] i8c dc,h,v,p: 48% 25% 20%  7%
[libx264 @ 0x2038a60] Weighted P-Frames: Y:1.5% UV:1.0%
[libx264 @ 0x2038a60] ref P L0: 81.9%  6.7%  8.3%  3.0%  0.0%
[libx264 @ 0x2038a60] ref B L0: 90.5%  9.5%
[libx264 @ 0x2038a60] kb/s:1049.70
usuario at pangolin:~/Vídeos/Xelestina$ ffmepg -i outcom1.avi
No command 'ffmepg' found, did you mean:
 Command 'ffmpeg' from package 'libav-tools' (main)
ffmepg: command not found
usuario at pangolin:~/Vídeos/Xelestina$ ffmpeg -i outcom1.avi
ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav
developers
  built on Mar 22 2012 05:09:06 with gcc 4.6.3


More information about the ffmpeg-user mailing list