Why does HandBrake default to endcoding xvid at 640x480?

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
marko
Posts: 3
Joined: Mon Dec 31, 2007 12:52 pm

Why does HandBrake default to endcoding xvid at 640x480?

Post by marko »

Is there a reason HandBrakeCLI and other programs default to encoding NTSC DVDs in xvid to 640x480? I noticed that x264 codec does not do this. It seems like encoding at the full resolution of 720x480 would at least have the potential of capturing more detail.

I can always force HandBrakeCLI to encode using xvid at the full resolution by using the "-w" and "-l" switches, but perhaps there is a good reason for it wanting to default to 640x480.

cvk_b
Veteran User
Posts: 527
Joined: Sun Mar 18, 2007 2:11 am

Re: Why does HandBrake default to endcoding xvid at 640x480?

Post by cvk_b »

I have a DVD player with xvid/divx support that won't play those files wider than 640. It was probably simply to keep hardware related questions down. I don't think Xvid is getting any attention right now from developers (but I am not certain). If you can benefit from 720, do it.

jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Why does HandBrake default to endcoding xvid at 640x480?

Post by jbrjake »

HandBrake does not default to encoding xvid at 640*480. HandBrake defaults to a width of 720 and a height that keeps the film aspect ratio at that width, for all encoders.

marko
Posts: 3
Joined: Mon Dec 31, 2007 12:52 pm

Re: Why does HandBrake default to endcoding xvid at 640x480?

Post by marko »

I must be making a mistake in the command line, because the video I am getting out is definitely 640x480. Here is the command I am using to encode:

HandBrakeCLI -i wlt.vob -o wlt.mp4 -e xvid --deinterlace="2:-1:1" -v -b 2600 -2

Also I am seeing this in terminal:

[19:27:49] thread b7477b90 started ("work")
[19:27:49] 2 job(s) to process
[19:27:49] starting job
[19:27:49] + device wlt.vob
[19:27:49] + title 0, chapter(s) 1 to 1
[19:27:49] + 720x480 -> 640x480, crop 0/0/0/0
[19:27:49] + grayscale off
[19:27:49] + filters
[19:27:49] + Deinterlace (ffmpeg or yadif/mcdeint) (2:-1:1)
[19:27:49] + 29.970 fps, video bitrate 2600 kbps, pass 1
[19:27:49] + PixelRatio: 0, width:640, height: 480
[19:27:49] + encoder XviD
[19:27:49] + audio 128 kbps, 44100 Hz
[19:27:49] + encoder faac
[19:27:49] thread b6997b90 started ("reader")
[19:27:49] + output: wlt.mp4


The source video is 720x480, yet I am ending up with 640x480. Any idea what I am doing wrong?

jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Why does HandBrake default to endcoding xvid at 640x480?

Post by jbrjake »

640*480 is the proper size for 4:3 NTSC content. It has absolutely nothing to do with xvid.

If you want it to be 4:3 anamorphic (720*480 displayed at 720*540 or 640*480 depending on playback device), you of course have to tell HB you want it to do an anamorphic encode.

Post Reply