Skip to content

Instantly share code, notes, and snippets.

@2bits
Created April 4, 2012 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2bits/2299545 to your computer and use it in GitHub Desktop.
Save 2bits/2299545 to your computer and use it in GitHub Desktop.
ffmpeg-0.10.2 converting that mjpeg to mp4
Input #0, avi, from '/Users/nibbles/Downloads/optioWG-1a.AVI':
Metadata:
creation_time : 2012-03-29 10:44:29
encoder :
Duration: 00:00:07.99, start: 0.000000, bitrate: 24633 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 1280x720, 30 tbr, 30 tbn, 30 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, 1 channels, s16, 512 kb/s
Incompatible pixel format 'yuvj422p' for codec 'libx264', auto-selecting format 'yuvj420p'
[buffer @ 0x7ff9a1c1a460] w:1280 h:720 pixfmt:yuvj422p tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x7ff9a1c1a960] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x7ff9a1c1ad00] w:1280 h:720 fmt:yuvj422p -> w:1280 h:720 fmt:yuvj420p flags:0x4
[libx264 @ 0x7ff9a204f400] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x7ff9a204f400] profile High, level 3.2
[libx264 @ 0x7ff9a204f400] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=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_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/Users/nibbles/blah.mp4':
Metadata:
creation_time : 2012-03-29 10:44:29
encoder : Lavf53.32.100
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuvj420p, 1280x720, q=-1--1, 1000k tbn, 30 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 32000 Hz, 1 channels, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)
Press [q] to stop, [?] for help
frame= 232 fps= 26 q=-1.0 Lsize= 3627kB time=00:00:07.66 bitrate=3875.7kbits/s
video:3569kB audio:51kB global headers:0kB muxing overhead 0.192040%
[libx264 @ 0x7ff9a204f400] frame I:1 Avg QP:25.80 size: 47788
[libx264 @ 0x7ff9a204f400] frame P:116 Avg QP:25.83 size: 22674
[libx264 @ 0x7ff9a204f400] frame B:115 Avg QP:27.79 size: 8491
[libx264 @ 0x7ff9a204f400] consecutive B-frames: 0.9% 99.1% 0.0% 0.0%
[libx264 @ 0x7ff9a204f400] mb I I16..4: 5.6% 87.5% 6.9%
[libx264 @ 0x7ff9a204f400] mb P I16..4: 1.1% 6.8% 0.1% P16..4: 59.0% 18.8% 9.7% 0.0% 0.0% skip: 4.5%
[libx264 @ 0x7ff9a204f400] mb B I16..4: 0.1% 0.8% 0.0% B16..8: 42.6% 5.4% 0.7% direct: 8.9% skip:41.5% L0:51.9% L1:40.5% BI: 7.6%
[libx264 @ 0x7ff9a204f400] 8x8 transform intra:85.6% inter:76.0%
[libx264 @ 0x7ff9a204f400] coded y,uvDC,uvAC intra: 58.1% 80.8% 8.1% inter: 34.0% 54.7% 0.1%
[libx264 @ 0x7ff9a204f400] i16 v,h,dc,p: 23% 25% 20% 32%
[libx264 @ 0x7ff9a204f400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 15% 50% 4% 3% 3% 3% 3% 6%
[libx264 @ 0x7ff9a204f400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 15% 10% 3% 3% 4% 4% 4% 4%
[libx264 @ 0x7ff9a204f400] i8c dc,h,v,p: 65% 21% 13% 2%
[libx264 @ 0x7ff9a204f400] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7ff9a204f400] ref P L0: 41.2% 11.8% 27.8% 19.2%
[libx264 @ 0x7ff9a204f400] ref B L0: 61.1% 38.9%
[libx264 @ 0x7ff9a204f400] kb/s:3780.49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment