Log in

View Full Version : Command line Xvid/Divx encoder


hobbes487
22nd February 2006, 00:26
hello all,

I am looking for a command line xvid/divx encoder for windows. I would prefer one that can encode a movie straight from the DVD. If that is not possible, I would want one step for ripping and then one step for encoding. I basically want a simple solution that can be operated via the command line. What would people recomend?

Pookie
22nd February 2006, 04:05
Just use AutoGK and you'll have what you need,

Sirber
22nd February 2006, 04:09
He said command line. :p

Look about AVS2AVI or mEncoder.

mEncoder would be more "1 step", but harder to use.

Pookie
22nd February 2006, 04:19
Yeah, I know :) But what about the decrypting part ? Plus, we all know how many "clicks" it'll take in Mencoder.

Sirber
22nd February 2006, 04:27
Yeah, I know :) But what about the decrypting part ? mEncoder does it ;)

Plus, we all know how many "clicks" it'll take in Mencoder.2:

1) Start
2) Execute
then you write "cmd.exe" and press enter
then you start your favorite batch file :D

or, simplier

1) You click on the batch file on your deskyop
and you press Enter ;)

If the guy wants a cmdline, don't propose him a GUI :sly:

Pookie
22nd February 2006, 07:37
Okay, you got me ;)

This material is very readable and applicable:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-telecine.html
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-xvid.html#menc-feat-xvid-example-settings
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html#EXAMPLES%20OF%20MENCODER%20USAGE

Here's a commandline syntax that might work but I haven't tested it out yet. One-Pass CBR, assumed partial Progressive/partial Telecined, needs work:

mencoder dvd://1 -oac copy -vf pullup,softskip -ovc lavc -ofps 24000/1001 -force-avi-aspect 1.8 -ovc xvid \

-xvidencopts vhq=1:bitrate=1800:nopacked:nogmc:noqpel:nocartoon:bvhq=0:max_bframes=2:quant_type=mpeg -o movie.avi

mencius
24th February 2006, 06:14
Hey guys. I'm also looking for something like this. I want to rip some music videos from dvd each into one file. I tried mplayer but i can't even get it to play the dvd. I'm using winxp is that the problem?

celtic_druid
24th February 2006, 07:20
Did you specify which device was the DVD drive?
Add:
dvd-device=J:

to your config file, where J: is your DVD drive. DVD://1 should then work, where 1 is the title no.
Could also specify the device in the commandline.

bond
24th February 2006, 13:47
xvidcli (http://forum.doom9.org/showthread.php?p=789616#post789616) of course

lantern
24th February 2006, 14:15
What about using ffmpeg for encoding? It doesn't rip though, you could use vstrip from a command line for that.

mencius
26th February 2006, 01:01
Did you specify which device was the DVD drive?
Add:
dvd-device=J:

to your config file, where J: is your DVD drive. DVD://1 should then work, where 1 is the title no.
Could also specify the device in the commandline.

Ya thanks I forgot to add that, now it works. Played around with mencoder and settled on this for encoding pv's which comes out good enough for me

mencoder dvd://1 -dvd-device x: -chapter 2-2 -vf pp=lb -ovc xvid -xvidencopts fixed_quant=2 -oac lavc -lavcopts acodec=mp3:abitrate=192 -o chap2.avi -priority idle

Now i'm want to be able to encode all the pv's on the dvd unattended overnight. I tried with a batch file with
CALL 1.bat
CALL 2.bat
where 1.bat would contain the command like above. This worked but I would have to have one batch file for each pv? Is there a better way? Can it be done in one batch file?