Advertisement
Guest User

Untitled

a guest
Mar 27th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. where $3 is 400k, $DIMENSIONS is -1:240 and $4 is 0.
  2.  
  3. 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
  4. 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
  5.  
  6. ffmpeg version git-2012-03-20-e01f478 Copyright (c) 2000-2012 the FFmpeg developers
  7. built on Mar 19 2012 19:48:48 with gcc 4.4.3
  8. configuration: --enable-gpl --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
  9. libavutil 51. 42.100 / 51. 42.100
  10. libavcodec 54. 12.100 / 54. 12.100
  11. libavformat 54. 2.100 / 54. 2.100
  12. libavdevice 53. 4.100 / 53. 4.100
  13. libavfilter 2. 65.101 / 2. 65.101
  14. libswscale 2. 1.100 / 2. 1.100
  15. libswresample 0. 7.100 / 0. 7.100
  16. libpostproc 52. 0.100 / 52. 0.100
  17. Input #0, avi, from '/home/pl/encoder/sample2.avi':
  18. Duration: 00:00:30.53, start: 0.000000, bitrate: 1968 kb/s
  19. 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
  20. Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 192 kb/s
  21. [buffer @ 0x2d12040] w:720 h:304 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
  22. [libx264 @ 0x2d12260] using SAR=1/1
  23. [libx264 @ 0x2d12260] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
  24. [libx264 @ 0x2d12260] profile Constrained Baseline, level 3.0
  25. [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
  26. Output #0, mp4, to '/dev/null':
  27. Metadata:
  28. encoder : Lavf54.2.100
  29. 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
  30. Stream mapping:
  31. Stream #0:0 -> #0:0 (mpeg4 -> libx264)
  32. Press [q] to stop, [?] for help
  33. frame= 733 fps=166 q=29.0 Lsize= 0kB time=00:00:30.57 bitrate= 0.0kbits/s dup=1 drop=0
  34. video:1421kB audio:0kB global headers:0kB muxing overhead -100.000000%
  35. [libx264 @ 0x2d12260] frame I:7 Avg QP:24.19 size: 13583
  36. [libx264 @ 0x2d12260] frame P:726 Avg QP:27.62 size: 1872
  37. [libx264 @ 0x2d12260] mb I I16..4: 37.5% 0.0% 62.5%
  38. [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%
  39. [libx264 @ 0x2d12260] coded y,uvDC,uvAC intra: 22.7% 36.1% 3.2% inter: 11.7% 5.7% 0.0%
  40. [libx264 @ 0x2d12260] i16 v,h,dc,p: 33% 31% 29% 7%
  41. [libx264 @ 0x2d12260] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 22% 16% 7% 8% 7% 9% 6% 7%
  42. [libx264 @ 0x2d12260] i8c dc,h,v,p: 61% 21% 15% 2%
  43. [libx264 @ 0x2d12260] kb/s:380.50
  44. ffmpeg version git-2012-03-20-e01f478 Copyright (c) 2000-2012 the FFmpeg developers
  45. built on Mar 19 2012 19:48:48 with gcc 4.4.3
  46. configuration: --enable-gpl --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
  47. libavutil 51. 42.100 / 51. 42.100
  48. libavcodec 54. 12.100 / 54. 12.100
  49. libavformat 54. 2.100 / 54. 2.100
  50. libavdevice 53. 4.100 / 53. 4.100
  51. libavfilter 2. 65.101 / 2. 65.101
  52. libswscale 2. 1.100 / 2. 1.100
  53. libswresample 0. 7.100 / 0. 7.100
  54. libpostproc 52. 0.100 / 52. 0.100
  55. Input #0, avi, from '/home/pl/encoder/sample2.avi':
  56. Duration: 00:00:30.53, start: 0.000000, bitrate: 1968 kb/s
  57. 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
  58. Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 192 kb/s
  59. [buffer @ 0x24e6040] w:720 h:304 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
  60. [libx264 @ 0x24f9080] using SAR=1/1
  61. [libx264 @ 0x24f9080] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
  62. [libx264 @ 0x24f9080] profile Constrained Baseline, level 3.0
  63. [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
  64. Output #0, mp4, to '/tmp/fflog/12589/12589.pre.mp4':
  65. Metadata:
  66. encoder : Lavf54.2.100
  67. 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
  68. Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, s16, 96 kb/s
  69. Stream mapping:
  70. Stream #0:0 -> #0:0 (mpeg4 -> libx264)
  71. Stream #0:1 -> #0:1 (ac3 -> libfaac)
  72. Press [q] to stop, [?] for help
  73. [ac3 @ 0x24e53c0] frame sync error
  74. Error while decoding stream #0:1
  75. incomplete frame 58 q=32.0 size= 1828kB time=00:00:29.65 bitrate= 504.9kbits/s dup=1 drop=0
  76. frame= 733 fps= 59 q=33.0 Lsize= 1872kB time=00:00:30.57 bitrate= 501.7kbits/s dup=1 drop=0
  77. video:1498kB audio:358kB global headers:0kB muxing overhead 0.872218%
  78. [libx264 @ 0x24f9080] frame I:7 Avg QP:23.76 size: 14705
  79. [libx264 @ 0x24f9080] frame P:726 Avg QP:27.51 size: 1970
  80. [libx264 @ 0x24f9080] mb I I16..4: 28.2% 0.0% 71.8%
  81. [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%
  82. [libx264 @ 0x24f9080] coded y,uvDC,uvAC intra: 46.2% 56.7% 11.8% inter: 9.6% 15.7% 0.0%
  83. [libx264 @ 0x24f9080] i16 v,h,dc,p: 31% 26% 21% 21%
  84. [libx264 @ 0x24f9080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 19% 18% 7% 9% 8% 8% 6% 6%
  85. [libx264 @ 0x24f9080] i8c dc,h,v,p: 62% 19% 15% 4%
  86. [libx264 @ 0x24f9080] ref P L0: 77.9% 22.1%
  87. [libx264 @ 0x24f9080] kb/s:401.26
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement