DVD to AVI encoding...problem with VirtualDub

Discussion in 'DivX / XviD' started by trnsfst, Oct 21, 2006.

  1. trnsfst

    trnsfst Member

    Joined:
    Oct 21, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    Hi...first post here but have been visiting for a while. I'd like to thank Aldaco12 for posting this helpful write-up. I'm trying to convert VOB to divX w/ mp3 audio using the method described below by Aldaco12.

    ---------------------
    1) Extract the movie (which I'll call 'VOB set')
    2) Use DVD2AVI (or, better DVD2AVIDG) to extract a D2V from the VOB set (and, if a MP3 audio is needed, extracting also the audio [Menu Audio_Output Mode_Decode to WAV] with A/V delay =0 from the desired track [menu Audio__Track Number)
    3) Compress WAV --> MP3 CBR with HeadAC3he (you can use the preset Alt CBR, which will create a MP3 128 kbps CBR). Otherwise, you can make WAV --> AC3 1+1 with FFMPEG GUI (you can use the dafault 192 kbps, but even 128 kbps is acceptable, like for MP3 audio. It depends on the movie's type.
    4) Install AVIREader codec
    5) Load the D2V with VirtualDubMod to load the video part
    6) make Stream___Stream list__Add to add the desired MP3 audio.
    ----------------------

    Now...my problem is at the last step. I've ripped using smartripper, converted the VOB to D2V file using DVD2AVI, and also decoded audio to WAV using DVD2AVI. Then I compressed WAV to MP3 using BeSweet.

    Now, when I open VirtualDub to load the D2V it says "Cannot detect file type of C:\Documents and settings\Billy\My documents\Ripped\Akira.d2v"

    The D2V file is only 500kb...seems small. The MP3 audio I got from BeSweet plays just fine and is 120mb. Any ideas as to why I'm having problems with this final step in VirtualDub? No matter what I do I can't get this d2v file to open and stream with the mp3 audio in virtualdub.

    I did look for an avireader codec but no luck, so I installed a VFAPI codec into the same virtualdub folder, not sure if this did anything.

    Thanks for any help,
    Billy
     
  2. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    Install AVISynth and use dgdecode to load your d2v (should be created with the matching version of dgindex). Anything guide that suggests VFAPI is most likely out of date. Better yet use a one click solution like AutoGK to do it for you. That's if you don't want to learn how to use AVISynth, etc..
     
  3. aldaco12

    aldaco12 Active member

    Joined:
    Nov 6, 2002
    Messages:
    2,544
    Likes Received:
    0
    Trophy Points:
    66
    Having AviSynth is an excelllent way to load directly D2V files.

    You just have to install AviSynth, and to download and copy the file [bold]MPEG2Dec3dg.dll[/bold] in its \plugins directory.

    After, load the txt file (wtite it with notepad) e.g. calling it [bold]LoadD2V.avs [/bold] (we suppose you'll always name the D2V file you extracted from any DVD [bold]movie.d2v[/bold] and you'll place it in the folder [bold]C:\your_movie_folder\[/bold]:

    MPEG2Dec3dg_mpeg2source("C:\your_movie_folder\Movie.d2v")
    ConvertToYUY2()

    nothing simpler. AviSynth is a great tool. Just, I think the D2V file will have to be made with DVD2AVIDG (so-called DVD2AVI Decodefix, a corrected version of DVD2AVI).

    Otherwise, as it is written in Afterdawn's guide (but you didn't read), you must use VFAPI Readr Codec to turn "movie.D2V" into a pseudo-AVI file called "pseudo.AVI".
    Now, to load the D2V file, you'll just have to load the pseudo.AVI filre you made from it.

    From http://www.afterdawn.com/guides/archive/dvd2divx.cfm :

    Ah, a personal note:

    1) Do use the guide for 16:9 movies to understand VirtualDub's filter meaning but use my seggested (see next) filter order;
    2) use VirtualDubMod, not VirtualDub. VirtualDubMod can load (Stream__Stream list ---> Add) either MP3 or AC3 audio streams (if you want to create an AVI with AC3 audio, just extract it with ReJig in IFO Mode selecting only the stream you want to extract (e.g. 0x80 - English) and checking the box 'correct AC3 delay', which will set A/V delay to zero).
    3) For VirtualDub's filters, use this order:
    3.a) Deinterlace. It is to to deinterlace the video, otherwise, all the frames in the AVI will be key-frames;
    3.b) Null Transform. Pressing the key [cropping] and croping the screen, you'll make the 720x480(576 for PAL) movie to become a [bold]X[/bold]x[bold]Y[/bold] movie (once removed the black bars)
    3.c) Resize. The filter settings must be:
    - New width[X'] = 560-680 ;
    - New heigth[Y'] = (X'/X * Y) [to keep aspect ratio];
    - Filter Mode: Lanczos3 (or bilinear, or bicubic. I use Lanczos3).
    The value you'll have to choose for X' [560-680] depends upon the movie's length [680 for short movies (about 1h), 560 for long (> 2h) ones]. Otherwise, use always X'=640 and leave it all to DivX.

    Is it all fine, now?
     
    Last edited: Oct 23, 2006
  4. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    DVD's are YV12 as is XviD. So best not to convert to YUY2 and resizing in VDub means converting to RGB24. If you are going to do that then you may as well use VFAPI.

    Keeping the entire process YV12 means faster encoding times and better quality.
     

Share This Page