[FFmpeg-user] libx264 ignores bitrate

Sascha Gritz s.gritz at vucx.de
Thu Jul 12 19:34:53 CEST 2012


...this is the console output:

Does this help?


C:\PROGRA~1\ffmpeg\bin\ffmpeg -i 120711_SE_Sound_AAC_02.MOV -i 
120625_ly_MLm_SE_%05.jpg -s 1280x720 -acodec copy -vcodec libx264 
-me_method hex -b:v 8000k test.mp4

ffmpeg version N-42347-g299387e Copyright (c) 2000-2012 the FFmpeg 
developers
   built on Jul  8 2012 15:48:29 with gcc 4.7.1
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r 
--enable-libass
  --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut 
--enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex 
--enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs 
--enable-libxvid --e
nable-zlib
   libavutil      51. 64.100 / 51. 64.100
   libavcodec     54. 33.100 / 54. 33.100
   libavformat    54. 15.102 / 54. 15.102
   libavdevice    54.  1.100 / 54.  1.100
   libavfilter     3.  1.100 /  3.  1.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\admin\Desktop\Neuer 
Ordner\120
711_SE_Sound_AAC_02.MOV':
   Metadata:
     creation_time   : 2012-07-11 17:30:43
     timecode        : 01:00:00:00
   Duration: 00:11:54.00, start: 0.000000, bitrate: 201 kb/s
     Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 
s16, 194
  kb/s
     Metadata:
       creation_time   : 2012-07-11 17:30:44
       handler_name    : Apple Alias-Datensteuerung
     Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
     Metadata:
       creation_time   : 2012-07-11 17:31:13
       handler_name    : Apple Alias-Datensteuerung
       timecode        : 01:00:00:00
Input #1, image2, from 'C:\Users\admin\Desktop\Neuer 
Ordner\120625_ly_MLm_SE_%05
d.jpg':
   Duration: 00:00:04.04, start: 0.000000, bitrate: N/A
     Stream #1:0: Video: mjpeg, yuvj444p, 1280x720 [SAR 72:72 DAR 16:9], 
25 fps,
25 tbr, 25 tbn, 25 tbc
[graph 0 input from stream 1:0 @ 0000000004335620] w:1280 h:720 
pixfmt:yuvj444p
tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[output stream 0:0 @ 00000000043356c0] No opaque field provided
[scaler for output stream 0:0 @ 0000000004335740] w:1280 h:720 
fmt:yuvj444p sar:
1/1 -> w:1280 h:720 fmt:yuvj420p sar:1/1 flags:0x4
[libx264 @ 00000000043500a0] using SAR=1/1
[libx264 @ 00000000043500a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 
FastShu
ffle SSE4.2 AVX
[libx264 @ 00000000043500a0] profile High, level 3.1
[libx264 @ 00000000043500a0] 264 - core 125 r2200 999b753 - H.264/MPEG-4 
AVC cod
ec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: 
cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 
psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 
fast_pski
p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 
nr=0 dec
imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 
b_pyramid=2 b
_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 
keyint_min=
25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 
bitrate=8000 rate
tol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
   Metadata:
     timecode        : 01:00:00:00
     encoder         : Lavf54.15.102
     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 
1280x720 [SAR 1
:1 DAR 16:9], q=-1--1, 8000 kb/s, 25 tbn, 25 tbc
     Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, 
stereo, 194
  kb/s
     Metadata:
       creation_time   : 2012-07-11 17:30:44
       handler_name    : Apple Alias-Datensteuerung
Stream mapping:
   Stream #1:0 -> #0:0 (mjpeg -> libx264)
   Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   71 fps=0.0 q=0.0 size=      68kB time=00:00:00.52 
bitrate=1075.9kbits/s
frame=  101 fps=100 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 67 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 50 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 40 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 33 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 29 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 25 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 22 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 20 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 18 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 17 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 15 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 14 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 13 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 13 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 12 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 11 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 11 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps= 10 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=9.6 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=9.1 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=8.7 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=8.4 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=8.0 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=7.7 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=7.4 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=7.2 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=6.9 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=6.7 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=6.5 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=6.3 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=6.1 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.9 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.7 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.6 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.4 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.3 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.2 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=5.0 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.9 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.8 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.7 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.6 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.5 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.4 q=0.0 size=     107kB time=00:00:01.72 bitrate= 
509.6kbits/s
frame=  101 fps=4.3 q=-1.0 Lsize=   17168kB time=00:00:03.96 
bitrate=35515.0kbit
s/s
video:64kB audio:16980kB subtitle:0 global headers:0kB muxing overhead 
0.728832%

[libx264 @ 00000000043500a0] frame I:1     Avg QP: 0.35  size: 55209
[libx264 @ 00000000043500a0] frame P:25    Avg QP: 0.11  size: 165
[libx264 @ 00000000043500a0] frame B:75    Avg QP: 3.10  size: 72
[libx264 @ 00000000043500a0] consecutive B-frames:  1.0%  0.0% 0.0% 99.0%
[libx264 @ 00000000043500a0] mb I  I16..4: 29.8% 50.9% 19.3%
[libx264 @ 00000000043500a0] mb P  I16..4:  0.0%  0.0%  0.0% P16..4:  
0.5%  0.0
%  0.0%  0.0%  0.0%    skip:99.5%
[libx264 @ 00000000043500a0] mb B  I16..4:  0.0%  0.0%  0.0% B16..8:  
0.7%  0.0
%  0.0%  direct: 0.0%  skip:99.2%  L0:75.6% L1:24.4% BI: 0.0%
[libx264 @ 00000000043500a0] final ratefactor: -21.81
[libx264 @ 00000000043500a0] 8x8 transform intra:50.5% inter:55.5%
[libx264 @ 00000000043500a0] coded y,uvDC,uvAC intra: 59.9% 6.4% 6.4% 
inter: 0.0
% 0.0% 0.0%
[libx264 @ 00000000043500a0] i16 v,h,dc,p: 33% 27% 21% 19%
[libx264 @ 00000000043500a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 27% 23%  
4%  2%
  1%  5%  2%  2%
[libx264 @ 00000000043500a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 32% 15%  
2%  7%
  1%  6%  1%  1%
[libx264 @ 00000000043500a0] i8c dc,h,v,p: 94%  4%  2%  0%
[libx264 @ 00000000043500a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000000043500a0] ref P L0: 99.1%  0.0%  0.9%
[libx264 @ 00000000043500a0] ref B L0: 12.0% 88.0%
[libx264 @ 00000000043500a0] ref B L1: 86.2% 13.8%
[libx264 @ 00000000043500a0] kb/s:128.19
Vorgang beendet
Dr¸cken Sie eine beliebige Taste . . .


> Sascha Gritz <s.gritz <at> vucx.de> writes:
>
>> I try to encode an image sequence to a h264 mp4 file. Whatever I do my
>> bitrate is ignored:
>> ffmpeg -i audio.mov -i input%05d.jpg -s 1280x720 -b:v 8000k -acodec copy
>> -vcodec libx264 output.mov
> Complete, uncut console output missing.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>




More information about the ffmpeg-user mailing list