cant get --crop, --width and --height to work

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Wildfire
Posts: 12
Joined: Tue Sep 18, 2007 9:15 am

cant get --crop, --width and --height to work

Post by Wildfire »

I am usually a Mac GUI user but I need the CLI to fight a problematic DVD, where the GUI doesn't allow me to select the title I want.

I am trying to do a 66% CRF encode for the iPod touch, using the following command:

./HandBrakeCLI -i DVD -o movie.m4v -t 2 -f mp4 -w 480 -l 272 --crop 16:16:16:16 -m -e x264b30 -q 0.66 -Q -r 25 -E faac -B 128 -a 1 -dpl2 -R 44.1 -x bframes=0:cabac=0:ref=1:analyse=all:me=umh:subq=7:no-fast-pskip=1:merange=64:deblock=-1,0:trellis=1

As far as I understand the documentations that should give me 480x272 .m4v file with chapter markers and a 128kbps 44.1kHz DolbySourrundII audio track. What I get is a 688*544 anamorphic file, audio seems to be ok though.

HandBrake reports when starting:

-----
Scanning title 2...
+ title 2:
+ vts 1, ttn 2, cells 0->5 (852077 blocks)
+ duration: 00:41:55
+ size: 720x576, aspect: 1.78, 25.000 fps
+ autocrop: 0/0/0/0
+ chapters:
+ 1: cells 0->0, 183807 blocks, duration 00:08:49
+ 2: cells 1->1, 146456 blocks, duration 00:07:11
+ 3: cells 2->2, 129077 blocks, duration 00:06:30
+ 4: cells 3->3, 188834 blocks, duration 00:09:17
+ 5: cells 4->4, 195793 blocks, duration 00:09:27
+ 6: cells 5->5, 8110 blocks, duration 00:00:42
+ audio tracks:
+ 1, English (AC3) (5.1 ch), 48000Hz, 448000bps
+ subtitle tracks:
+ 1, English (iso639-2: eng)
Applying the following x264 options: bframes=0:cabac=0:ref=1:analyse=all:me=umh:subq=7:no-fast-pskip=1:merange=64:deblock=-1,0:trellis=1
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2
No accelerated IMDCT transform found
-----

The line "+ autocrop: 0/0/0/0" seems to indicate, that --crop is ignored but the final size (720-32=688 and 576-32=544) shows it actually gets applied.


Can anyone tell what I am doing wrong?
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: cant get --crop, --width and --height to work

Post by jbrjake »

Uh, -dpl2 is not a valid HandBrake flag. You're giving it deinterlace, anamorphic, and a height of 2 (which gets replaced with the anamorphic height).
Wildfire
Posts: 12
Joined: Tue Sep 18, 2007 9:15 am

Post by Wildfire »

Rofl, was checking my picture settings over and over again, but missed that I made a mistake in the audio section. It should have been:

"-6 dpl2" for DolbyII-Downmix...

Thanks,
Wildfire
Post Reply