Skip to content

Instantly share code, notes, and snippets.

@jgrevich
Last active October 30, 2015 01:47
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 jgrevich/2dab4ea658180d808f2b to your computer and use it in GitHub Desktop.
Save jgrevich/2dab4ea658180d808f2b to your computer and use it in GitHub Desktop.
Handbrake command to crop and resize a 2560x1600 video down to 1920x1080, but it doesn't crop/scale
HandBrakeCLI -vv \
--main-feature \
-m \
-e x264 \
--x264-preset veryslow \
--x264-tune film \
--x264-profile high \
--h264-level 4.1 \
-x "ref=4;threads=12:lookahead_threads=2:no-fast-pskip" \
-2 \
-E copy \
-b 4096 \
-w 1920 \
-l 1080 \
--crop 182:0:10:28 \
--modulus 2 \
--keep-display-aspect \
-i 10_26_15-Go-hmac.snippet.mp4 \
-o 10_26_15-Go-hmac.snippet.mp4
-------output from command ->
HandBrake 0.10.2 (2015060900) - Darwin x86_64 - https://handbrake.fr
8 CPUs detected
Opening 10_26_15-Go-hmac.snippet.mp4...
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening 10_26_15-Go-hmac.snippet.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening 10_26_15-Go-hmac.snippet.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(10_26_15-Go-hmac.snippet.mp4) failed
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '10_26_15-Go-hmac.snippet.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.4.100
Duration: 00:05:00.13, start: 0.000000, bitrate: 19620 kb/s
Stream #0.0(und): Video: h264 (Main), yuv420p, 2560x1600, 19311 kb/s, 45.50 fps, 12k tbn, 50 tbc (default)
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, fltp, 297 kb/s (default)
Scanning title 1 of 1, preview 8, 80.00 %Searching for main feature title...
+ Title (0) index 1 has length 300sec
Found main feature title, setting title to 1
+ title 1:
+ stream: 10_26_15-Go-hmac.snippet.mp4
+ duration: 00:05:00
+ size: 2560x1600, pixel aspect: 1/1, display aspect: 1.60, 46.576 fps
+ autocrop: 0/0/0/0
+ support opencl: yes
+ support hwd: not built-in
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:05:00
+ audio tracks:
+ 1, Unknown (AAC) (2.0 ch) (iso639-2: und)
+ subtitle tracks:
x264 [warning]: MB rate (380059) > level limit (245760)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 4.1
Encoding: task 1 of 2, 2.18 % (22.69 fps, avg 32.00 fps, ETA 00h07m08s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment