[FFmpeg-user] Problem with lowering bit rate
ywoon
yee.woon2 at gmail.com
Sat Nov 10 15:47:46 CET 2012
Thanx for your reply, the full output:
-----------------------------------------------------------------------
root at Name:~# ffmpeg -y -i /fifo/ch1 -vcodec libx264 -vprofile main -preset
ultrafast -b 50k -minrate 50k -maxrate 50k -bufsize 100k -f flv -threads 0
-ar 44100 ch1_50.flv
ffmpeg version git-2012-10-31-dc239b3 Copyright (c) 2000-2012 the FFmpeg
developers
built on Oct 31 2012 10:58:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-libvorbis --enable-libx264 --enable-x11grab --disable-yasm
libavutil 52. 1.100 / 52. 1.100
libavcodec 54. 70.100 / 54. 70.100
libavformat 54. 35.100 / 54. 35.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 20.113 / 3. 20.113
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
[mp3 @ 0x9365760] Header missing
[mpeg2video @ 0x9362bc0] invalid mb type in I Frame at 21 31
[mpeg2video @ 0x9362bc0] Warning MVs not available
[mpeg2video @ 0x9362bc0] concealing 0 DC, 0 AC, 0 MV errors in I frame
[mpegts @ 0x9348500] max_analyze_duration 5000000 reached at 5000000
[mpegts @ 0x9348500] Could not find codec parameters for stream 2 (Audio:
mp3 ([4][0][0][0] / 0x0004), 0 channels, s16): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x9348500] Estimating duration from bitrate, this may be
inaccurate
Input #0, mpegts, from '/fifo/ch1':
Duration: N/A, start: 47170.435389, bitrate: 10128 kb/s
Program 9501
Program 9502
Program 9503
Program 9504
Program 9507
Program 9508
Program 9509
Program 9510
Program 9511
Program 9513
Stream #0:0[0x203]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 10000 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:1[0x283]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16, 128 kb/s
Stream #0:2[0x29f]: Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16
Program 9515
Program 9516
Program 9520
Please use -b:a or -b:v, -b is ambiguous
[libx264 @ 0x9397f40] using SAR=16/15
[libx264 @ 0x9397f40] using cpu capabilities: none!
[libx264 @ 0x9397f40] profile Constrained Baseline, level 3.0
[libx264 @ 0x9397f40] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0
ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0
intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=50 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=50 vbv_bufsize=100
nal_hrd=none ip_ratio=1.40 aq=0
Output #0, flv, to 'ch1_50.flv':
Metadata:
encoder : Lavf54.35.100
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 720x576 [SAR
16:15 DAR 4:3], q=-1--1, 50 kb/s, 1k tbn, 25 tbc
Stream #0:1: Audio: adpcm_swf ([1][0][0][0] / 0x0001), 44100 Hz, stereo,
s16, 352 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (mp2 -> adpcm_swf)
Press [q] to stop, [?] for help
[mp2 @ 0x9365760] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x9365760] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp2 @ 0x9365760] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x9362bc0] invalid mb type in I Frame at 21 31
[mpeg2video @ 0x9362bc0] Warning MVs not available
[mpeg2video @ 0x9362bc0] concealing 0 DC, 0 AC, 0 MV errors in I frame
[mpegts @ 0x9348500] PES packet size mismatch
[mp2 @ 0x9365760] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x9362bc0] ac-tex damaged at 11 5
[mpeg2video @ 0x9362bc0] concealing 315 DC, 315 AC, 315 MV errors in B frame
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:05.64 bitrate=
0.5kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:06.22 bitrate=
0.5kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:06.78 bitrate=
0.5kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:07.34 bitrate=
0.4kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:07.85 bitrate=
0.4kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:08.36 bitrate=
0.4kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:08.96 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:09.52 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:10.03 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:10.59 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:11.15 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:11.70 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:12.21 bitrate=
0.3kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:12.77 bitrate=
0.2kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:13.33 bitrate=
0.2kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:13.89 bitrate=
0.2kbits/s
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:14.44 bitrate=
0.2kbits/s
frame= 12 fps=1.2 q=0.0 size= 0kB time=00:00:15.00 bitrate=
0.2kbits/s
frame= 24 fps=2.3 q=69.0 size= 24kB time=00:00:15.56 bitrate=
12.4kbits/
frame= 36 fps=3.3 q=66.0 size= 45kB time=00:00:16.11 bitrate=
22.8kbits/
frame= 50 fps=4.4 q=63.0 size= 70kB time=00:00:16.58 bitrate=
34.7kbits/
frame= 64 fps=5.4 q=63.0 size= 97kB time=00:00:17.14 bitrate=
46.5kbits/
frame= 78 fps=6.3 q=64.0 size= 128kB time=00:00:17.69 bitrate=
59.4kbits/
frame= 84 fps=6.5 q=65.0 size= 141kB time=00:00:18.11 bitrate=
63.7kbits/
frame= 108 fps=8.0 q=64.0 size= 187kB time=00:00:18.62 bitrate=
82.1kbits/
frame= 120 fps=8.5 q=64.0 size= 211kB time=00:00:19.18 bitrate=
90.3kbits/
frame= 132 fps=9.0 q=64.0 size= 235kB time=00:00:19.74 bitrate=
97.4kbits/
frame= 144 fps=9.5 q=63.0 size= 257kB time=00:00:20.29 bitrate=
103.9kbits/
frame= 156 fps=9.9 q=63.0 size= 281kB time=00:00:20.85 bitrate=
110.4kbits/
frame= 170 fps= 10 q=64.0 size= 309kB time=00:00:21.36 bitrate=
118.5kbits/
frame= 182 fps= 11 q=63.0 size= 333kB time=00:00:21.92 bitrate=
124.5kbits/
frame= 194 fps= 11 q=63.0 size= 356kB time=00:00:22.43 bitrate=
130.1kbits/
frame= 206 fps= 12 q=66.0 size= 382kB time=00:00:22.99 bitrate=
136.3kbits/
frame= 218 fps= 12 q=68.0 size= 406kB time=00:00:23.55 bitrate=
141.3kbits/
frame= 240 fps= 13 q=63.0 size= 448kB time=00:00:24.15 bitrate=
152.0kbits/
frame= 252 fps= 13 q=63.0 size= 471kB time=00:00:24.71 bitrate=
156.3kbits/
frame= 266 fps= 13 q=63.0 size= 502kB time=00:00:25.22 bitrate=
163.2kbits/
frame= 278 fps= 13 q=64.0 size= 527kB time=00:00:25.73 bitrate=
167.7kbits/
frame= 290 fps= 14 q=63.0 size= 550kB time=00:00:26.29 bitrate=
171.2kbits/
frame= 312 fps= 14 q=62.0 size= 592kB time=00:00:26.89 bitrate=
180.4kbits/
frame= 324 fps= 15 q=63.0 size= 615kB time=00:00:27.45 bitrate=
183.7kbits/
frame= 336 fps= 15 q=57.0 size= 639kB time=00:00:27.96 bitrate=
187.2kbits/
frame= 348 fps= 15 q=55.0 size= 661kB time=00:00:28.51 bitrate=
189.9kbits/
frame= 362 fps= 15 q=60.0 size= 688kB time=00:00:29.03 bitrate=
194.2kbits/
frame= 374 fps= 15 q=59.0 size= 712kB time=00:00:29.58 bitrate=
197.2kbits/
frame= 396 fps= 16 q=45.0 size= 753kB time=00:00:30.19 bitrate=
204.3kbits/
frame= 408 fps= 16 q=52.0 size= 778kB time=00:00:30.74 bitrate=
207.4kbits/
frame= 420 fps= 16 q=48.0 size= 800kB time=00:00:31.25 bitrate=
209.8kbits/
frame= 432 fps= 16 q=60.0 size= 823kB time=00:00:31.81 bitrate=
211.9kbits/
frame= 444 fps= 16 q=60.0 size= 850kB time=00:00:32.37 bitrate=
215.0kbits/
frame= 458 fps= 16 q=54.0 size= 876kB time=00:00:32.88 bitrate=
218.2kbits/
frame= 470 fps= 17 q=51.0 size= 897kB time=00:00:33.44 bitrate=
219.9kbits/
frame= 492 fps= 17 q=49.0 size= 940kB time=00:00:34.04 bitrate=
226.3kbits/
frame= 504 fps= 17 q=60.0 size= 963kB time=00:00:34.60 bitrate=
228.0kbits/
frame= 506 fps= 17 q=60.0 size= 967kB time=00:00:35.06 bitrate=
226.0kbits/
frame= 528 fps= 17 q=67.0 size= 1016kB time=00:00:35.67 bitrate=
233.4kbits/
frame= 540 fps= 17 q=65.0 size= 1042kB time=00:00:36.22 bitrate=
235.5kbits/
frame= 554 fps= 18 q=62.0 size= 1070kB time=00:00:36.73 bitrate=
238.5kbits/
frame= 576 fps= 18 q=60.0 size= 1112kB time=00:00:37.34 bitrate=
243.8kbits/
frame= 588 fps= 18 q=63.0 size= 1139kB time=00:00:37.85 bitrate=
246.4kbits/
frame= 600 fps= 18 q=62.0 size= 1163kB time=00:00:38.41 bitrate=
248.0kbits/
frame= 612 fps= 18 q=62.0 size= 1186kB time=00:00:38.96 bitrate=
249.4kbits/
frame= 624 fps= 18 q=60.0 size= 1212kB time=00:00:39.52 bitrate=
251.1kbits/
frame= 636 fps= 18 q=63.0 size= 1235kB time=00:00:40.03 bitrate=
252.8kbits/
frame= 650 fps= 18 q=60.0 size= 1263kB time=00:00:40.54 bitrate=
255.1kbits/
frame= 672 fps= 19 q=58.0 size= 1304kB time=00:00:41.15 bitrate=
259.6kbits/
frame= 684 fps= 19 q=59.0 size= 1325kB time=00:00:41.70 bitrate=
260.3kbits/
frame= 696 fps= 19 q=53.0 size= 1350kB time=00:00:42.26 bitrate=
261.6kbits/
frame= 708 fps= 19 q=50.0 size= 1371kB time=00:00:42.82 bitrate=
262.3kbits/
frame= 720 fps= 19 q=53.0 size= 1394kB time=00:00:43.38 bitrate=
263.3kbits/
frame= 732 fps= 19 q=51.0 size= 1419kB time=00:00:43.93 bitrate=
264.5kbits/
frame= 744 fps= 19 q=55.0 size= 1441kB time=00:00:44.44 bitrate=
265.6kbits/
frame= 756 fps= 19 q=66.0 size= 1464kB time=00:00:45.00 bitrate=
266.5kbits/
frame= 780 fps= 19 q=61.0 size= 1519kB time=00:00:45.56 bitrate=
273.2kbits/
frame= 792 fps= 19 q=63.0 size= 1545kB time=00:00:46.12 bitrate=
274.4kbits/
frame= 804 fps= 19 q=64.0 size= 1569kB time=00:00:46.67 bitrate=
275.4kbits/
frame= 816 fps= 19 q=60.0 size= 1591kB time=00:00:47.18 bitrate=
276.2kbits/
frame= 828 fps= 19 q=59.0 size= 1615kB time=00:00:47.74 bitrate=
277.1kbits/
frame= 842 fps= 20 q=59.0 size= 1641kB time=00:00:48.25 bitrate=
278.6kbits/
frame= 864 fps= 20 q=52.0 size= 1682kB time=00:00:48.85 bitrate=
282.1kbits/
frame= 876 fps= 20 q=60.0 size= 1705kB time=00:00:49.37 bitrate=
282.8kbits/
frame= 888 fps= 20 q=59.0 size= 1728kB time=00:00:49.92 bitrate=
283.4kbits/
frame= 900 fps= 20 q=59.0 size= 1754kB time=00:00:50.48 bitrate=
284.6kbits/
frame= 912 fps= 20 q=58.0 size= 1777kB time=00:00:51.04 bitrate=
285.1kbits/
frame= 924 fps= 20 q=54.0 size= 1799kB time=00:00:51.59 bitrate=
285.6kbits/
frame= 941 fps= 20 q=50.0 size= 1832kB time=00:00:52.11 bitrate=
288.0kbits/
frame= 950 fps= 20 q=51.0 size= 1851kB time=00:00:52.66 bitrate=
287.8kbits/
frame= 972 fps= 20 q=57.0 size= 1893kB time=00:00:53.22 bitrate=
291.4kbits/
frame= 984 fps= 20 q=58.0 size= 1917kB time=00:00:53.78 bitrate=
292.0kbits/
frame= 996 fps= 20 q=55.0 size= 1940kB time=00:00:54.33 bitrate=
292.4kbits/
frame= 1008 fps= 20 q=59.0 size= 1964kB time=00:00:54.89 bitrate=
293.0kbits/
frame= 1020 fps= 20 q=59.0 size= 1990kB time=00:00:55.45 bitrate=
293.9kbits/
frame= 1034 fps= 20 q=59.0 size= 2017kB time=00:00:55.96 bitrate=
295.2kbits/
frame= 1056 fps= 21 q=56.0 size= 2060kB time=00:00:56.52 bitrate=
298.5kbits/
frame= 1068 fps= 21 q=57.0 size= 2083kB time=00:00:57.07 bitrate=
298.9kbits/
frame= 1080 fps= 21 q=58.0 size= 2107kB time=00:00:57.63 bitrate=
299.5kbits/
frame= 1092 fps= 21 q=52.0 size= 2129kB time=00:00:58.19 bitrate=
299.7kbits/
frame= 1104 fps= 21 q=51.0 size= 2152kB time=00:00:58.75 bitrate=
300.1kbits/
frame= 1118 fps= 21 q=53.0 size= 2180kB time=00:00:59.21 bitrate=
301.5kbits/
frame= 1128 fps= 21 q=49.0 size= 2200kB time=00:00:59.81 bitrate=
301.3kbits/
frame= 1152 fps= 21 q=56.0 size= 2249kB time=00:01:00.37 bitrate=
305.2kbits/
frame= 1164 fps= 21 q=55.0 size= 2272kB time=00:01:00.93 bitrate=
305.5kbits/
frame= 1176 fps= 21 q=49.0 size= 2294kB time=00:01:01.49 bitrate=
305.7kbits/
frame= 1188 fps= 21 q=53.0 size= 2319kB time=00:01:02.00 bitrate=
306.4kbits/
frame= 1200 fps= 21 q=50.0 size= 2342kB time=00:01:02.55 bitrate=
306.7kbits/
frame= 1212 fps= 21 q=47.0 size= 2364kB time=00:01:03.11 bitrate=
306.9kbits/
frame= 1226 fps= 21 q=48.0 size= 2392kB time=00:01:03.62 bitrate=
307.9kbits/
frame= 1238 fps= 21 q=50.0 size= 2416kB time=00:01:04.18 bitrate=
308.4kbits/
frame= 1260 fps= 21 q=60.0 size= 2461kB time=00:01:04.78 bitrate=
311.2kbits/
frame= 1272 fps= 21 q=58.0 size= 2488kB time=00:01:05.34 bitrate=
311.9kbits/
frame= 1284 fps= 21 q=58.0 size= 2512kB time=00:01:05.90 bitrate=
312.2kbits/
frame= 1296 fps= 21 q=59.0 size= 2538kB time=00:01:06.41 bitrate=
313.0kbits/
frame= 1297 fps= 21 q=60.0 Lsize= 3206kB time=00:01:06.55 bitrate=
394.6kbits/s dup=0 drop=356
video:291kB audio:2867kB subtitle:0 global headers:0kB muxing overhead
1.521068%
[libx264 @ 0x9397f40] frame I:6 Avg QP:51.00 size: 3509
[libx264 @ 0x9397f40] frame P:1291 Avg QP:50.79 size: 214
[libx264 @ 0x9397f40] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x9397f40] mb P I16..4: 1.8% 0.0% 0.0% P16..4: 2.9% 0.0%
0.0% 0.0% 0.0% skip:95.3%
[libx264 @ 0x9397f40] coded y,uvDC,uvAC intra: 7.0% 19.9% 0.3% inter: 0.2%
0.4% 0.0%
[libx264 @ 0x9397f40] i16 v,h,dc,p: 56% 33% 9% 3%
[libx264 @ 0x9397f40] i8c dc,h,v,p: 94% 4% 2% 0%
[libx264 @ 0x9397f40] kb/s:45.81
Received signal 2: terminating.
-----------------------------------------------------------------------
ffmpeg -i /ch1_50.flv
ffmpeg version git-2012-10-31-dc239b3 Copyright (c) 2000-2012 the FFmpeg
developers
built on Oct 31 2012 10:58:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-libvorbis --enable-libx264 --enable-x11grab --disable-yasm
libavutil 52. 1.100 / 52. 1.100
libavcodec 54. 70.100 / 54. 70.100
libavformat 54. 35.100 / 54. 35.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 20.113 / 3. 20.113
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, flv, from '/ch1_50.flv':
Metadata:
encoder : Lavf54.35.100
Duration: 00:01:06.55, start: 0.000000, bitrate: 394 kb/s
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 720x576 [SAR
16:15 DAR 4:3], 50 kb/s, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: adpcm_swf, 44100 Hz, stereo, s16, 352 kb/s
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-with-lowering-bit-rate-tp4654897p4654902.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list