[FFmpeg-user] ffmpeg bitrate settings

test test 247amsupport at gmail.com
Fri Nov 23 06:48:53 CET 2012


Hi

Is there any video bitrate settings [max & min ] for ffmpeg[server end]?. I
have selected video bit rate 512000 when converting videos using clipbucket
software but the output video bit rate shows only
580.

Checking File ....
File :
/home/test/public_html/video/files/conversion_queue/1353647464c74dc.mp4
File Exists : Yes

Preparing file...
format : mov,mp4,m4a,3gp,3g2,mj2
duration : 30.06
size : 2497266
bitrate : 649
video_width : 352
video_height : 242
video_wh_ratio : 1.45454545455
video_codec : mpeg4
video_rate : 24.251497006
video_bitrate : 580
video_color : N/A
audio_codec : aac
audio_bitrate : 62
audio_rate : 44100
audio_channels : mono
path :
/home/test/public_html/video/files/conversion_queue/1353647464c74dc.mp4

Converting Video
Conversion Command : /usr/local/bin/ffmpeg -i
/home/test/public_html/video/files/conversion_queue/1353647464c74dc.mp4 -f
flv -vcodec libx264 -vpre normal -r 25 -s 352x242 -aspect 1.45454545455 -vf
pad=0:0:0:0:black -acodec libfaac -ab 128000 -ar 22050
/home/test/public_html/video/files/videos/1353647464c74dc.flv 2>
/home/test/public_html/video/files/temp/13536474655c84c.tmp


Conversion Details

/usr/local/bin/ffmpeg: line 4: /var/log/ffmpeg.log: Permission denied
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 18 2011 14:56:44 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --enable-libmp3lame --enable-libvorbis --enable-libfaac
--enable-libtheora --enable-libx264 --enable-libxvid --disable-mmx
--enable-gpl --enable-nonfree --enable-avcore --enable-avdevice
--enable-avcodec --enable-avcore --enable-avformat --enable-swscale
--enable-shared
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xee3b510] max_analyze_duration reached

Seems stream 3 codec frame rate differs from container frame rate: 30000.00
(30000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/test/public_html/video/files/conversion_queue/1353647464c74dc.mp4':
Metadata:
creation_time : 2001-11-07 22:41:51
Duration: 00:00:30.06, start: 0.000000, bitrate: 664 kb/s
Stream #0.0(und): Data: mp4s / 0x7334706D
Metadata:
creation_time : 2001-11-07 22:41:51
Stream #0.1(und): Data: mp4s / 0x7334706D
Metadata:
creation_time : 2001-11-07 22:41:51
Stream #0.2(und): Audio: aac, 44100 Hz, mono, s16, 64 kb/s
Metadata:
creation_time : 2001-11-07 22:41:51
Stream #0.3(und): Video: mpeg4, yuv420p, 352x242 [PAR 1:1 DAR 16:11], 594
kb/s, 24.25 fps, 29.97 tbr, 1k tbn, 30k tbc
Metadata:
creation_time : 2001-11-07 22:41:51
[buffer @ 0xee40600] w:352 h:242 pixfmt:yuv420p
[pad @ 0xee55470] w:352 h:242 -> w:352 h:242 x:0 y:0 color:0x108080FF[yuva]
[libx264 @ 0xee3f2f0] using SAR=1/1
[libx264 @ 0xee3f2f0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0xee3f2f0] profile High, level 1.3
[libx264 @ 0xee3f2f0] 264 - core 116 r2074 2641b9e - H.264/MPEG-4 AVC codec
- Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1
ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0
b_adapt=1 b_bias=0 direct=3 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=200 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41
aq=1:1.00
Output #0, flv, to
'/home/test/public_html/video/files/videos/1353647464c74dc.flv':
Metadata:
creation_time : 2001-11-07 22:41:51
encoder : Lavf52.93.0
Stream #0.0(und): Video: libx264, yuv420p, 352x242 [PAR 1:1 DAR 16:11],
q=10-51, 200 kb/s, 1k tbn, 25 tbc
Metadata:
creation_time : 2001-11-07 22:41:51
Stream #0.1(und): Audio: libfaac, 22050 Hz, mono, s16, 128 kb/s
Metadata:
creation_time : 2001-11-07 22:41:51
Stream mapping:
Stream #0.3 -> #0.0
Stream #0.2 -> #0.1
Press [q] to stop encoding
frame= 70 fps= 0 q=31.0 size= 41kB time=1.28 bitrate= 262.0kbits/s dup=0
drop=4
frame= 117 fps=115 q=32.0 size= 108kB time=3.76 bitrate= 234.3kbits/s dup=0
drop=7
frame= 167 fps=110 q=30.0 size= 175kB time=6.24 bitrate= 229.1kbits/s dup=0
drop=11
frame= 215 fps=106 q=29.0 size= 235kB time=8.40 bitrate= 229.7kbits/s dup=0
drop=18
frame= 263 fps=104 q=29.0 size= 296kB time=10.48 bitrate= 231.7kbits/s
dup=0 drop=24
frame= 320 fps=105 q=29.0 size= 382kB time=13.08 bitrate= 239.5kbits/s
dup=0 drop=29
frame= 373 fps=105 q=29.0 size= 444kB time=15.44 bitrate= 235.8kbits/s
dup=0 drop=38
frame= 446 fps=110 q=27.0 size= 527kB time=18.76 bitrate= 230.1kbits/s
dup=0 drop=53
frame= 503 fps=110 q=27.0 size= 594kB time=21.28 bitrate= 228.6kbits/s
dup=0 drop=60
frame= 529 fps=104 q=28.0 size= 652kB time=22.56 bitrate= 236.6kbits/s
dup=0 drop=61
frame= 559 fps=100 q=29.0 size= 719kB time=24.08 bitrate= 244.6kbits/s
dup=0 drop=64
frame= 606 fps= 99 q=29.0 size= 791kB time=26.20 bitrate= 247.2kbits/s
dup=0 drop=70
Multiple frames in a packet from stream 2
[aac @ 0xee429f0] Prediction is not allowed in AAC-LC.
Error while decoding stream #0.2
frame= 652 fps=101 q=-1.0 Lsize= 853kB time=29.95 bitrate= 233.4kbits/s
dup=0 drop=77
video:691kB audio:138kB global headers:0kB muxing overhead 2.875182%
frame I:20 Avg QP:21.54 size: 7721
[libx264 @ 0xee3f2f0] frame P:401 Avg QP:23.91 size: 1228
[libx264 @ 0xee3f2f0] frame B:231 Avg QP:27.38 size: 262
[libx264 @ 0xee3f2f0] consecutive B-frames: 48.6% 8.9% 10.6% 31.9%
[libx264 @ 0xee3f2f0] mb I I16..4: 14.6% 74.4% 10.9%
[libx264 @ 0xee3f2f0] mb P I16..4: 2.4% 4.7% 0.5% P16..4: 32.8% 7.5% 4.5%
0.0% 0.0% skip:47.6%
[libx264 @ 0xee3f2f0] mb B I16..4: 0.8% 2.9% 0.1% B16..8: 6.0% 3.0% 0.3%
direct: 2.2% skip:84.7% L0:43.8% L1:42.0% BI:14.1%
[libx264 @ 0xee3f2f0] final ratefactor: 23.16
[libx264 @ 0xee3f2f0] 8x8 transform intra:68.2% inter:59.5%
[libx264 @ 0xee3f2f0] direct mvs spatial:99.1% temporal:0.9%
[libx264 @ 0xee3f2f0] coded y,uvDC,uvAC intra: 53.2% 58.5% 22.4% inter:
7.5% 9.7% 1.0%
[libx264 @ 0xee3f2f0] i16 v,h,dc,p: 36% 37% 13% 14%
[libx264 @ 0xee3f2f0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 19% 30% 4% 3% 3%
3% 3% 4%
[libx264 @ 0xee3f2f0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 27% 13% 4% 6% 6%
6% 4% 5%
[libx264 @ 0xee3f2f0] i8c dc,h,v,p: 46% 24% 25% 4%
[libx264 @ 0xee3f2f0] Weighted P-Frames: Y:1.7% UV:1.7%
[libx264 @ 0xee3f2f0] ref P L0: 77.0% 9.5% 13.5% 0.0%
[libx264 @ 0xee3f2f0] kb/s:188.13
Merging existing onMetaData tag
Video: 352x242 H.264
Audio: 44100Hz 16bit stereo, codec ID 10 (AAC)
Total: 710729 video bytes (189.275366 kbps), 142590 audio bytes (37.973369
kbps), 30.040000 seconds long
Final onMetaData tag contents: {
audiocodecid: 10.000000
audiodatarate: 37.973369
audiosamplerate: 44100.000000
audiosamplesize: 16.000000
audiosize: 142590.000000
canSeekToEnd: true
creation_time: 2001-11-07 22:41:51
datasize: 874776.000000
duration: 30.040000
encoder: Lavf52.93.0
filesize: 873829.000000
framerate: 21.770972
hasAudio: true
hasCuePoints: false
hasKeyframes: true
hasMetadata: true
hasVideo: true
height: 242.000000
keyframes: {
filepositions: {
1303.000000
1384.000000
31532.000000
74723.000000
118822.000000
148971.000000
188107.000000
234926.000000
280241.000000
339839.000000
435295.000000
484550.000000
543503.000000
609312.000000
874756.000000
}
times: {
0.000000
0.000000
1.160000
2.520000
4.240000
5.520000
6.720000
8.320000
9.960000
11.680000
15.000000
16.920000
18.960000
21.320000
30.040000
}
}
lasttimestamp: 30.040000
metadatacreator: flvtool++ (Facebook, Motion project, dweatherford)
metadatadate: Fri Nov 23 00:11:11 2012
stereo: true
totalframes: 654.000000
videocodecid: 7.000000
videodatarate: 189.275366
videosize: 710729.000000
width: 352.000000
}


output_format : flv
output_duration : 29.95
output_size : 874776
output_bitrate : 228
output_video_width : 352
output_video_height : 242
output_video_wh_ratio : 1.45454545455
output_video_codec : h264
output_video_rate : 21.7696160267
output_video_bitrate : 184
output_video_color : N/A
output_audio_codec : aac
output_audio_bitrate : 36
output_audio_rate : 22050
output_audio_channels : mono
output_path : /home/test/public_html/video/files/videos/1353647464c74dc.flv


Time Took : 6.7273 seconds

conversion_status : completed


More information about the ffmpeg-user mailing list