Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- where $3 is 400k, $DIMENSIONS is -1:240 and $4 is 0.
- ffmpeg -i $1 -y -vcodec libx264 -vprofile baseline -preset fast -b:v $3 $DIMENSIONS -maxrate 500k -bufsize 1000k -threads $4 -pass 1 -an -f mp4 /dev/null
- ffmpeg -i $1 -vcodec libx264 -vprofile baseline -preset fast -b:v $3 $DIMENSIONS -maxrate 500k -bufsize 1000k -threads $4 -pass 2 -acodec libfaac -b:a 96k -f mp4 /tmp/fflog/$NUMBER/$NUMBER.pre.mp4
- ffmpeg version git-2012-03-20-e01f478 Copyright (c) 2000-2012 the FFmpeg developers
- built on Mar 19 2012 19:48:48 with gcc 4.4.3
- configuration: --enable-gpl --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
- libavutil 51. 42.100 / 51. 42.100
- libavcodec 54. 12.100 / 54. 12.100
- libavformat 54. 2.100 / 54. 2.100
- libavdevice 53. 4.100 / 53. 4.100
- libavfilter 2. 65.101 / 2. 65.101
- libswscale 2. 1.100 / 2. 1.100
- libswresample 0. 7.100 / 0. 7.100
- libpostproc 52. 0.100 / 52. 0.100
- Input #0, avi, from '/home/pl/encoder/sample2.avi':
- Duration: 00:00:30.53, start: 0.000000, bitrate: 1968 kb/s
- Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
- Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 192 kb/s
- [buffer @ 0x2d12040] w:720 h:304 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
- [libx264 @ 0x2d12260] using SAR=1/1
- [libx264 @ 0x2d12260] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
- [libx264 @ 0x2d12260] profile Constrained Baseline, level 3.0
- [libx264 @ 0x2d12260] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 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=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=400 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
- Output #0, mp4, to '/dev/null':
- Metadata:
- encoder : Lavf54.2.100
- Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=-1--1, pass 1, 400 kb/s, 24k tbn, 23.98 tbc
- Stream mapping:
- Stream #0:0 -> #0:0 (mpeg4 -> libx264)
- Press [q] to stop, [?] for help
- frame= 733 fps=166 q=29.0 Lsize= 0kB time=00:00:30.57 bitrate= 0.0kbits/s dup=1 drop=0
- video:1421kB audio:0kB global headers:0kB muxing overhead -100.000000%
- [libx264 @ 0x2d12260] frame I:7 Avg QP:24.19 size: 13583
- [libx264 @ 0x2d12260] frame P:726 Avg QP:27.62 size: 1872
- [libx264 @ 0x2d12260] mb I I16..4: 37.5% 0.0% 62.5%
- [libx264 @ 0x2d12260] mb P I16..4: 4.1% 0.0% 0.0% P16..4: 51.0% 0.0% 0.0% 0.0% 0.0% skip:45.0%
- [libx264 @ 0x2d12260] coded y,uvDC,uvAC intra: 22.7% 36.1% 3.2% inter: 11.7% 5.7% 0.0%
- [libx264 @ 0x2d12260] i16 v,h,dc,p: 33% 31% 29% 7%
- [libx264 @ 0x2d12260] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 22% 16% 7% 8% 7% 9% 6% 7%
- [libx264 @ 0x2d12260] i8c dc,h,v,p: 61% 21% 15% 2%
- [libx264 @ 0x2d12260] kb/s:380.50
- ffmpeg version git-2012-03-20-e01f478 Copyright (c) 2000-2012 the FFmpeg developers
- built on Mar 19 2012 19:48:48 with gcc 4.4.3
- configuration: --enable-gpl --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
- libavutil 51. 42.100 / 51. 42.100
- libavcodec 54. 12.100 / 54. 12.100
- libavformat 54. 2.100 / 54. 2.100
- libavdevice 53. 4.100 / 53. 4.100
- libavfilter 2. 65.101 / 2. 65.101
- libswscale 2. 1.100 / 2. 1.100
- libswresample 0. 7.100 / 0. 7.100
- libpostproc 52. 0.100 / 52. 0.100
- Input #0, avi, from '/home/pl/encoder/sample2.avi':
- Duration: 00:00:30.53, start: 0.000000, bitrate: 1968 kb/s
- Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
- Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 192 kb/s
- [buffer @ 0x24e6040] w:720 h:304 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
- [libx264 @ 0x24f9080] using SAR=1/1
- [libx264 @ 0x24f9080] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
- [libx264 @ 0x24f9080] profile Constrained Baseline, level 3.0
- [libx264 @ 0x24f9080] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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=0 weightp=0 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=2pass mbtree=1 bitrate=400 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
- Output #0, mp4, to '/tmp/fflog/12589/12589.pre.mp4':
- Metadata:
- encoder : Lavf54.2.100
- Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=-1--1, pass 2, 400 kb/s, 24k tbn, 23.98 tbc
- Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, s16, 96 kb/s
- Stream mapping:
- Stream #0:0 -> #0:0 (mpeg4 -> libx264)
- Stream #0:1 -> #0:1 (ac3 -> libfaac)
- Press [q] to stop, [?] for help
- [ac3 @ 0x24e53c0] frame sync error
- Error while decoding stream #0:1
- incomplete frame 58 q=32.0 size= 1828kB time=00:00:29.65 bitrate= 504.9kbits/s dup=1 drop=0
- frame= 733 fps= 59 q=33.0 Lsize= 1872kB time=00:00:30.57 bitrate= 501.7kbits/s dup=1 drop=0
- video:1498kB audio:358kB global headers:0kB muxing overhead 0.872218%
- [libx264 @ 0x24f9080] frame I:7 Avg QP:23.76 size: 14705
- [libx264 @ 0x24f9080] frame P:726 Avg QP:27.51 size: 1970
- [libx264 @ 0x24f9080] mb I I16..4: 28.2% 0.0% 71.8%
- [libx264 @ 0x24f9080] mb P I16..4: 0.7% 0.0% 0.4% P16..4: 44.9% 10.1% 3.1% 0.0% 0.0% skip:40.8%
- [libx264 @ 0x24f9080] coded y,uvDC,uvAC intra: 46.2% 56.7% 11.8% inter: 9.6% 15.7% 0.0%
- [libx264 @ 0x24f9080] i16 v,h,dc,p: 31% 26% 21% 21%
- [libx264 @ 0x24f9080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 19% 18% 7% 9% 8% 8% 6% 6%
- [libx264 @ 0x24f9080] i8c dc,h,v,p: 62% 19% 15% 4%
- [libx264 @ 0x24f9080] ref P L0: 77.9% 22.1%
- [libx264 @ 0x24f9080] kb/s:401.26
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement