Skip to content

Instantly share code, notes, and snippets.

@Tolmark12
Last active August 29, 2015 14:07
Show Gist options
  • Save Tolmark12/7f36ef56e961bf4f94e3 to your computer and use it in GitHub Desktop.
Save Tolmark12/7f36ef56e961bf4f94e3 to your computer and use it in GitHub Desktop.
################################
# Converting from .mov to .mp4 #
################################
➜ ffmpeg -i test3.mov test3.mp4
ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 2 2014 14:31:28 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libtheora --enable-libvorbis --enable-libvpx
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test3.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2014-10-02 04:37:18
Duration: 00:01:31.57, start: 0.000000, bitrate: 422 kb/s
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 762x472, 418 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
[libx264 @ 0x7f86db006000] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x7f86db006000] profile High, level 3.1
[libx264 @ 0x7f86db006000] 264 - core 125 - 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=3 lookahead_threads=1 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 'test3.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf54.63.104
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 762x472, q=-1--1, 15360 tbn, 30 tbc
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:1 -> #0:0 (h264 -> libx264)
Stream #0:0 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame= 2748 fps= 95 q=-1.0 Lsize= 2188kB time=00:01:31.64 bitrate= 195.6kbits/s
video:2056kB audio:35kB subtitle:0 global headers:0kB muxing overhead 4.661114%
[libx264 @ 0x7f86db006000] frame I:12 Avg QP:16.59 size: 21573
[libx264 @ 0x7f86db006000] frame P:856 Avg QP:22.29 size: 1852
[libx264 @ 0x7f86db006000] frame B:1880 Avg QP:28.27 size: 139
[libx264 @ 0x7f86db006000] consecutive B-frames: 8.3% 1.3% 0.8% 89.7%
[libx264 @ 0x7f86db006000] mb I I16..4: 67.6% 4.8% 27.6%
[libx264 @ 0x7f86db006000] mb P I16..4: 3.8% 0.5% 1.3% P16..4: 3.9% 0.8% 0.7% 0.0% 0.0% skip:89.0%
[libx264 @ 0x7f86db006000] mb B I16..4: 0.4% 0.0% 0.0% B16..8: 3.9% 0.2% 0.1% direct: 0.2% skip:95.1% L0:49.2% L1:49.3% BI: 1.5%
[libx264 @ 0x7f86db006000] 8x8 transform intra:7.7% inter:40.1%
[libx264 @ 0x7f86db006000] coded y,uvDC,uvAC intra: 20.0% 25.4% 14.9% inter: 0.7% 1.1% 0.3%
[libx264 @ 0x7f86db006000] i16 v,h,dc,p: 53% 43% 3% 0%
[libx264 @ 0x7f86db006000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 22% 50% 2% 1% 1% 2% 1% 2%
[libx264 @ 0x7f86db006000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 36% 21% 4% 5% 3% 6% 3% 4%
[libx264 @ 0x7f86db006000] i8c dc,h,v,p: 61% 28% 10% 1%
[libx264 @ 0x7f86db006000] Weighted P-Frames: Y:1.1% UV:1.1%
[libx264 @ 0x7f86db006000] ref P L0: 71.7% 11.5% 10.0% 6.7% 0.1%
[libx264 @ 0x7f86db006000] ref B L0: 78.5% 18.5% 2.9%
[libx264 @ 0x7f86db006000] ref B L1: 94.4% 5.6%
[libx264 @ 0x7f86db006000] kb/s:183.82
#################################
# Converting from .mov to .webm #
#################################
➜ ffmpeg -i test3.mov test3.webm
ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 2 2014 14:31:28 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libtheora --enable-libvorbis --enable-libvpx
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test3.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2014-10-02 04:37:18
Duration: 00:01:31.57, start: 0.000000, bitrate: 422 kb/s
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 762x472, 418 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
[libvpx @ 0x7ff34301a400] v1.3.0
Output #0, webm, to 'test3.webm':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf54.63.104
Stream #0:0(eng): Video: vp8, yuv420p, 762x472, q=-1--1, 200 kb/s, 1k tbn, 30 tbc
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: vorbis, 44100 Hz, stereo, fltp
Metadata:
creation_time : 2014-10-02 04:37:18
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:1 -> #0:0 (h264 -> libvpx)
Stream #0:0 -> #0:1 (aac -> libvorbis)
Press [q] to stop, [?] for help
frame= 2748 fps= 40 q=0.0 Lsize= 2399kB time=00:01:31.64 bitrate= 214.4kbits/s
video:2349kB audio:4kB subtitle:0 global headers:4kB muxing overhead 1.809492%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment