Skip to content

Instantly share code, notes, and snippets.

@mcampos-quinn
Created February 1, 2019 22:13
Show Gist options
  • Save mcampos-quinn/db2394e8ee422f5bb8694fe33126951a to your computer and use it in GitHub Desktop.
Save mcampos-quinn/db2394e8ee422f5bb8694fe33126951a to your computer and use it in GitHub Desktop.
$ ffmpeg -i extraordinary-adventures-of-mr-west_03965_PM0010199_R01of04.mov -movflags faststart -threads 1 -vf pad='width=ceil(iw/2)*2:height=ceil(ih/2)*2' -pix_fmt yuv420p -c:v libx264 -f mp4 -crf 18 -maxrate 12000k -c:a aac -ac 2 -b:a 320k -ar 48000 out.mp4
ffmpeg version 4.1-1~16.04.york0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f968a91200] Using non-standard frame rate 18/1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'extraordinary-adventures-of-mr-west_03965_PM0010199_R01of04.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2017-11-15T02:08:10.000000Z
Duration: 00:37:55.61, start: 0.000000, bitrate: 128677 kb/s
Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(tv, bt709), 1920x1080, 128674 kb/s, 18 fps, 18 tbr, 18 tbn, 18 tbc (default)
Metadata:
creation_time : 2017-11-15T02:08:10.000000Z
handler_name : VideoHandler
encoder : Apple ProRes 422 (HQ)
timecode : 01:00:20:04
Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2017-11-15T02:08:10.000000Z
handler_name : TimeCodeHandler
reel_name : PM0010199_R01of04
timecode : 01:00:20:04
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (out.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55f968a95cc0] VBV maxrate specified, but no bufsize, ignored
[libx264 @ 0x55f968a95cc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x55f968a95cc0] profile High, level 4.0
[libx264 @ 0x55f968a95cc0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=1 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=18 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x55f968a94900] Using non-standard frame rate 18/1
Last message repeated 1 times
Output #0, mp4, to 'out.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
encoder : Lavf58.20.100
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080, q=-1--1, 0.06 fps, 18432 tbn, 18 tbc (default)
Metadata:
creation_time : 2017-11-15T02:08:10.000000Z
handler_name : VideoHandler
timecode : 01:00:20:04
encoder : Lavc58.35.100 libx264
Side data:
cpb: bitrate max/min/avg: 12000000/0/0 buffer size: 0 vbv_delay: -1
[mp4 @ 0x55f968a94900] Starting second pass: moving the moov atom to the beginning of the filex
frame=40961 fps=8.2 q=22.0 Lsize= 2829658kB time=00:37:55.44 bitrate=10187.3kbits/s speed=0.458x
video:2829172kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.017205%
[libx264 @ 0x55f968a95cc0] frame I:521 Avg QP:13.43 size:206461
[libx264 @ 0x55f968a95cc0] frame P:12778 Avg QP:16.78 size: 88459
[libx264 @ 0x55f968a95cc0] frame B:27662 Avg QP:18.13 size: 59980
[libx264 @ 0x55f968a95cc0] consecutive B-frames: 9.3% 1.3% 2.1% 87.3%
[libx264 @ 0x55f968a95cc0] mb I I16..4: 21.9% 68.6% 9.5%
[libx264 @ 0x55f968a95cc0] mb P I16..4: 0.7% 17.6% 2.2% P16..4: 27.7% 10.8% 6.9% 0.0% 0.0% skip:34.2%
[libx264 @ 0x55f968a95cc0] mb B I16..4: 0.1% 7.3% 0.9% B16..8: 23.2% 7.2% 2.4% direct: 6.1% skip:52.8% L0:45.4% L1:42.8% BI:11.8%
[libx264 @ 0x55f968a95cc0] 8x8 transform intra:85.1% inter:69.8%
[libx264 @ 0x55f968a95cc0] coded y,uvDC,uvAC intra: 94.3% 57.1% 4.4% inter: 28.2% 4.6% 0.0%
[libx264 @ 0x55f968a95cc0] i16 v,h,dc,p: 86% 4% 3% 6%
[libx264 @ 0x55f968a95cc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 14% 21% 6% 8% 8% 9% 8% 11%
[libx264 @ 0x55f968a95cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 12% 13% 9% 11% 10% 10% 9% 10%
[libx264 @ 0x55f968a95cc0] i8c dc,h,v,p: 80% 8% 13% 0%
[libx264 @ 0x55f968a95cc0] Weighted P-Frames: Y:26.7% UV:0.0%
[libx264 @ 0x55f968a95cc0] ref P L0: 45.9% 9.2% 24.5% 15.6% 4.9%
[libx264 @ 0x55f968a95cc0] ref B L0: 70.2% 22.4% 7.4%
[libx264 @ 0x55f968a95cc0] ref B L1: 86.5% 13.5%
[libx264 @ 0x55f968a95cc0] kb/s:10184.77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment