PDA

View Full Version : dvd>avi, how?


Matrix_581
07-16-2004, 11:51 AM
Okay, I have a dvd i want to make a clip off.

I ripped the dvd, loaded up dvd2avi, picked my start and end points of the clip i wanted, hit save.

Then i thought, well i will try mpeg, so i loaded up tempgnc and it was 21 when encoded as normal mpeg1.

So then i thought xvid/divx, so i loaded virtual dub, but this wouldnt load the project file dvd2avi made, so i just converted the mpeg, but the avi was 900mb, so i guess it didnt compress with a codec, and the quailty was poor.

is there anyway to convert from the vob to xvid?

Thanks:)

nimbles
07-16-2004, 12:49 PM
well a simple way is Gordianknot or AutoGK (that is almost one click), both can be found over at doom9 (http://www.doom9.org/software.htm)

however you are only a couple of steps from being able to do it with your current set up
- you'll need avisynth (http://www.avisynth.org/) (latest version 2.55)

-and the mpeg3dec.dll that corresponds to the correct version of dvd2avi that you have (its since changed to DGindex)

something like this would work:


LoadPlugin("Path to mpegdec.dll or DGdecode.dll\DGDecode.dll")

MPEG2Source("Filepath to .d2v file\movie.d2v")


copy this paste in note pad and save it as whatever.avs, then you can open this in virtual dub or vdubmod

if you want to do any resizing of the the file (mpeg pixels aren't square while xvid etc are generally)

something like lancozresize will do that for you- the online avisynth manual is here (http://www.avisynth.org/FiltersByCategory), which'll help you get started, and if you get stuck, well celtic_druid always gets me out of trouble ;)

if this helps here is a svcd i'm converting to ogm (another container like avi), with a res of 624x352 (to get it to be roughly wide screen), already created the .d2v file with dgindex (for you read dvd2avi) and loading the DGDec.dll (read mpeg2dec.dell or whatever it was called), using Lancos4resize to do the cropping and resizing.

the svcd source is 480x576-letterboxed with horizontal black bars on top and bottom (72 pixels wide) and thin vertical black bars (5 pixels wide) left and right only the middle 470x432 to is actually video. With lancos4resize (or any other resize filter) the first two values are the horizontal and vertical output source, the next two cooridinates are the position of the top left corner of the source video you want to keep, and the final two valaues are the size of box containing the video you intend to keep

LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\DGDecode.dll")

MPEG2Source("D:\Movies\lv1.d2v")

Lanczos4Resize(624,352,5,72,470,432)

hope this helps

Matrix_581
07-16-2004, 03:18 PM
okay i imported my dvd2avi project file to gk

but when i encode my video it has no sound.

Any ideas?

celtic_druid
07-16-2004, 10:59 PM
You don't need to load a filter if it is in the AVISynth plugin folder. It will simply autoload.

Using mpeg2source() you don't get audio, that would require wavsource(), mpasource() ac3source() directshowsource() or similar. Could also do as most people and encode the audio serperatly. So, convert AVS to a video only AVI with VDubMod or AVS2AVI, convert audio seperatly from say AC3 to aac and lastly mux the two or more streams into the desired container.

Also, I'm moving this to the MPEG-4 forum.