Skip to content

Instantly share code, notes, and snippets.

@JulesMoorhouse
Created February 14, 2018 22:21
Show Gist options
  • Select an option

  • Save JulesMoorhouse/e5e0061960728d4d2943ed2afe977e95 to your computer and use it in GitHub Desktop.

Select an option

Save JulesMoorhouse/e5e0061960728d4d2943ed2afe977e95 to your computer and use it in GitHub Desktop.

Revisions

  1. @jules2010 jules2010 created this gist Feb 14, 2018.
    172 changes: 172 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,172 @@

    [16:15:50]: ▸ (2/6) Resize video...
    [16:15:50]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:50]: ▸ ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
    [16:15:50]: ▸ built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
    [16:15:50]: ▸ configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libass --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-nonfree
    [16:15:50]: ▸ libavutil 55. 78.100 / 55. 78.100
    [16:15:50]: ▸ libavcodec 57.107.100 / 57.107.100
    [16:15:50]: ▸ libavformat 57. 83.100 / 57. 83.100
    [16:15:50]: ▸ libavdevice 57. 10.100 / 57. 10.100
    [16:15:50]: ▸ libavfilter 6.107.100 / 6.107.100
    [16:15:50]: ▸ libavresample 3. 7. 0 / 3. 7. 0
    [16:15:50]: ▸ libswscale 4. 8.100 / 4. 8.100
    [16:15:50]: ▸ libswresample 2. 9.100 / 2. 9.100
    [16:15:50]: ▸ libpostproc 54. 7.100 / 54. 7.100
    [16:15:51]: ▸ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'final.mp4':
    [16:15:51]: ▸ Metadata:
    [16:15:51]: ▸ major_brand : mp42
    [16:15:51]: ▸ minor_version : 512
    [16:15:51]: ▸ compatible_brands: iso5mp42
    [16:15:51]: ▸ creation_time : 2018-02-12T16:15:14.000000Z
    [16:15:51]: ▸ Duration: 00:00:26.57, start: 0.000000, bitrate: 12067 kb/s
    [16:15:51]: ▸ Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1500x2000 [SAR 1:1 DAR 3:4], 12067 kb/s, 6.29 fps, 25 tbr, 30k tbn, 50 tbc (default)
    [16:15:51]: ▸ Metadata:
    [16:15:51]: ▸ creation_time : 2018-02-12T16:15:14.000000Z
    [16:15:51]: ▸ handler_name : Core Media Video
    [16:15:51]: ▸ Stream mapping:
    [16:15:51]: ▸ Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    [16:15:51]: ▸ Press [q] to stop, [?] for help
    [16:15:51]: ▸ [libx264 @ 0x7fca57007600] using SAR=1/1
    [16:15:51]: ▸ [libx264 @ 0x7fca57007600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [16:15:51]: ▸ [libx264 @ 0x7fca57007600] profile High, level 3.2
    [16:15:51]: ▸ [libx264 @ 0x7fca57007600] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=12 lookahead_threads=2 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
    [16:15:51]: ▸ Output #0, mp4, to 'output-resize.mp4':
    [16:15:51]: ▸ Metadata:
    [16:15:51]: ▸ major_brand : mp42
    [16:15:51]: ▸ minor_version : 512
    [16:15:51]: ▸ compatible_brands: iso5mp42
    [16:15:51]: ▸ encoder : Lavf57.83.100
    [16:15:51]: ▸ Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 900x1200 [SAR 1:1 DAR 3:4], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    [16:15:51]: ▸ Metadata:
    [16:15:51]: ▸ creation_time : 2018-02-12T16:15:14.000000Z
    [16:15:51]: ▸ handler_name : Core Media Video
    [16:15:51]: ▸ encoder : Lavc57.107.100 libx264
    [16:15:51]: ▸ Side data:
    [16:15:51]: ▸ cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    [16:15:57]: ▸ frame= 668 fps=108 q=-1.0 Lsize= 1350kB time=00:00:26.60 bitrate= 415.8kbits/s dup=501 drop=0 speed=4.31x
    [16:15:57]: ▸ video:1342kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.647111%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] frame I:6 Avg QP:17.60 size: 70259
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] frame P:168 Avg QP:18.12 size: 5059
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] frame B:494 Avg QP:24.35 size: 206
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] consecutive B-frames: 1.0% 0.9% 0.4% 97.6%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] mb I I16..4: 20.3% 40.6% 39.2%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] mb P I16..4: 1.6% 6.1% 1.5% P16..4: 4.8% 1.1% 0.8% 0.0% 0.0% skip:84.2%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 3.0% 0.0% 0.0% direct: 0.5% skip:96.4% L0:49.1% L1:50.3% BI: 0.6%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] 8x8 transform intra:59.7% inter:63.4%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] coded y,uvDC,uvAC intra: 19.0% 45.1% 36.9% inter: 0.6% 1.5% 0.5%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] i16 v,h,dc,p: 71% 21% 6% 3%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 9% 29% 3% 2% 2% 2% 2% 1%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 18% 16% 5% 4% 5% 4% 4% 3%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] i8c dc,h,v,p: 52% 16% 28% 3%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] Weighted P-Frames: Y:8.9% UV:8.3%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] ref P L0: 60.6% 10.9% 23.2% 3.8% 1.6%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] ref B L0: 72.4% 26.6% 1.0%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] ref B L1: 97.2% 2.8%
    [16:15:57]: ▸ [libx264 @ 0x7fca57007600] kb/s:411.11
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:57]: ▸ (3/6) Resize video done... final.mp4
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:57]: ▸ (4/6) Adding Audio...
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:57]: ▸ ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
    [16:15:57]: ▸ built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
    [16:15:57]: ▸ configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libass --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-nonfree
    [16:15:57]: ▸ libavutil 55. 78.100 / 55. 78.100
    [16:15:57]: ▸ libavcodec 57.107.100 / 57.107.100
    [16:15:57]: ▸ libavformat 57. 83.100 / 57. 83.100
    [16:15:57]: ▸ libavdevice 57. 10.100 / 57. 10.100
    [16:15:57]: ▸ libavfilter 6.107.100 / 6.107.100
    [16:15:57]: ▸ libavresample 3. 7. 0 / 3. 7. 0
    [16:15:57]: ▸ libswscale 4. 8.100 / 4. 8.100
    [16:15:57]: ▸ libswresample 2. 9.100 / 2. 9.100
    [16:15:57]: ▸ libpostproc 54. 7.100 / 54. 7.100
    [16:15:57]: ▸ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jm/Library/Mobile Documents/com~apple~QuickTimePlayerX/Documents/final.m4a.qtpxcomposition/Audio Recording.m4a':
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ major_brand : M4A
    [16:15:57]: ▸ minor_version : 0
    [16:15:57]: ▸ compatible_brands: M4A mp42isom
    [16:15:57]: ▸ creation_time : 2018-02-12T16:15:48.000000Z
    [16:15:57]: ▸ Duration: 00:00:33.88, start: 0.000000, bitrate: 277 kb/s
    [16:15:57]: ▸ Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 264 kb/s (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ creation_time : 2018-02-12T16:15:48.000000Z
    [16:15:57]: ▸ Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jm/Library/Mobile Documents/com~apple~QuickTimePlayerX/Documents/output-resize.mp4':
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ major_brand : isom
    [16:15:57]: ▸ minor_version : 512
    [16:15:57]: ▸ compatible_brands: isomiso2avc1mp41
    [16:15:57]: ▸ encoder : Lavf57.83.100
    [16:15:57]: ▸ Duration: 00:00:26.72, start: 0.000000, bitrate: 413 kb/s
    [16:15:57]: ▸ Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 900x1200 [SAR 1:1 DAR 3:4], 411 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ handler_name : VideoHandler
    [16:15:57]: ▸ Output #0, mp4, to '/Users/jm/Library/Mobile Documents/com~apple~QuickTimePlayerX/Documents/output.mp4':
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ major_brand : M4A
    [16:15:57]: ▸ minor_version : 0
    [16:15:57]: ▸ compatible_brands: M4A mp42isom
    [16:15:57]: ▸ encoder : Lavf57.83.100
    [16:15:57]: ▸ Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 900x1200 [SAR 1:1 DAR 3:4], q=2-31, 411 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ handler_name : VideoHandler
    [16:15:57]: ▸ Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 264 kb/s (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ creation_time : 2018-02-12T16:15:48.000000Z
    [16:15:57]: ▸ Stream mapping:
    [16:15:57]: ▸ Stream #1:0 -> #0:0 (copy)
    [16:15:57]: ▸ Stream #0:0 -> #0:1 (copy)
    [16:15:57]: ▸ Press [q] to stop, [?] for help
    [16:15:57]: ▸ frame= 668 fps=0.0 q=-1.0 Lsize= 2232kB time=00:00:26.61 bitrate= 687.2kbits/s speed=1.94e+03x
    [16:15:57]: ▸ video:1342kB audio:867kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.050327%
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:57]: ▸ (5/6) Done Adding Audio...
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:57]: ▸ ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
    [16:15:57]: ▸ built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
    [16:15:57]: ▸ configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libass --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-nonfree
    [16:15:57]: ▸ libavutil 55. 78.100 / 55. 78.100
    [16:15:57]: ▸ libavcodec 57.107.100 / 57.107.100
    [16:15:57]: ▸ libavformat 57. 83.100 / 57. 83.100
    [16:15:57]: ▸ libavdevice 57. 10.100 / 57. 10.100
    [16:15:57]: ▸ libavfilter 6.107.100 / 6.107.100
    [16:15:57]: ▸ libavresample 3. 7. 0 / 3. 7. 0
    [16:15:57]: ▸ libswscale 4. 8.100 / 4. 8.100
    [16:15:57]: ▸ libswresample 2. 9.100 / 2. 9.100
    [16:15:57]: ▸ libpostproc 54. 7.100 / 54. 7.100
    [16:15:57]: ▸ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jm/Library/Mobile Documents/com~apple~QuickTimePlayerX/Documents/output.mp4':
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ major_brand : isom
    [16:15:57]: ▸ minor_version : 512
    [16:15:57]: ▸ compatible_brands: isomiso2avc1mp41
    [16:15:57]: ▸ encoder : Lavf57.83.100
    [16:15:57]: ▸ Duration: 00:00:26.72, start: 0.000000, bitrate: 684 kb/s
    [16:15:57]: ▸ Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 900x1200 [SAR 1:1 DAR 3:4], 411 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ handler_name : VideoHandler
    [16:15:57]: ▸ Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 266 kb/s (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ handler_name : SoundHandler
    [16:15:57]: ▸ Output #0, mp4, to 'final-video.mp4':
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ major_brand : isom
    [16:15:57]: ▸ minor_version : 512
    [16:15:57]: ▸ compatible_brands: isomiso2avc1mp41
    [16:15:57]: ▸ encoder : Lavf57.83.100
    [16:15:57]: ▸ Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 900x1200 [SAR 1:1 DAR 3:4], q=2-31, 411 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ handler_name : VideoHandler
    [16:15:57]: ▸ Side data:
    [16:15:57]: ▸ displaymatrix: rotation of 90.00 degrees
    [16:15:57]: ▸ Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 266 kb/s (default)
    [16:15:57]: ▸ Metadata:
    [16:15:57]: ▸ handler_name : SoundHandler
    [16:15:57]: ▸ Stream mapping:
    [16:15:57]: ▸ Stream #0:0 -> #0:0 (copy)
    [16:15:57]: ▸ Stream #0:1 -> #0:1 (copy)
    [16:15:57]: ▸ Press [q] to stop, [?] for help
    [16:15:57]: ▸ frame= 668 fps=0.0 q=-1.0 Lsize= 2232kB time=00:00:26.61 bitrate= 687.2kbits/s speed=2.1e+03x
    [16:15:57]: ▸ video:1342kB audio:867kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.050681%
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------
    [16:15:57]: ▸ (6/6) Completed Audio / Video processing... final-video.mp4
    [16:15:57]: ▸ ----------------------------------------------------------------------------------------------