1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial:Use GK+AVS+VDM to convert dvd to high quality pmp-avc

Discussion in 'Sony PSP - Mod and firmware discussion' started by djg2000, Jan 7, 2007.

  1. djg2000

    djg2000 Guest

    I.First,install the tools:
    1.Install baofeng player,Click here to download

    2.Install pmp splitter plug-in,after that,you can play PMP-AVC on PC.
    Unzip it to c:\windows\system32\,then hit the start button,run,then type:regsvr32 PmpSplitter.ax,hit Enter,done.Click here to download

    3.Install GK,the full name is Gordian Knot.During the installation process,When you see the picture below,select "No" .Click here to download,
    [​IMG]

    4.Install VDM,the full name is Virtual Dub Mod.Just unzip the file,no need to install.When to use it,just double click the .EXE file.Click here to download

    5.Install GW,the full name is GoldWave,it is a professional digital audio editor.Click here to download.
    Download LAME_ENC.DLL,Make sure you copy that file into the folder where GoldWave is installed (usually C:\Program Files\GoldWave) or you can copy it into the C:\Windows\System (or equivalent) folder,click here to download.

    II.Second,Run GK
    Open the GK,below is the main interface.
    [​IMG]
    we just need use these 2 functions:Ripping&Subtitles/Chapters.

    1.Use DVDDecrypter to decrypt the DVD and rip the VOB files to the hard drive.
    Notice:You should make sure that there is enough free space on your hard drive.To convert DVD5,at least 8G.DVD9,at least 12G.
    [​IMG]

    Insert the DVD disk you want to convert,select the destination you want to save the files.Click the big button to start decrypt.
    [​IMG]
    [​IMG]

    2.Use DGIndex split audio and generate D2V project file.
    [​IMG]
    [​IMG]

    then we select FILE —>Autoincrement Open—>ADD the VOB files we just ripped.We just need select the first VOB file,the program will automaticlly add the others.
    [​IMG]

    Adjust the settings just like the pictures below,others use the default setting.
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    select the audio track you need
    [​IMG]

    If you don't know which track is you need,use storm codec to open the VOB file,right click---->audio,all the tracks of the movie will be displayed,the sequence is just the same as it in DGIndex.Switch the track and listen.You can confirm which track do you need by this way.
    [​IMG]

    click File->Save Projiect,the program will generate a *.d2v file and a *.wav file,open the *.wav file,confirm if it is the audio you need.Then close DGIndex.

    3.Rip the subtitles.(Notice:if you don't want to add the subtitles in the movie,skip this step)
    At the GK main interface,switch to Subtitles/Chapters,click "configure"
    [​IMG]
    Then click "open",for the"file type",we select "Ifo or Vobs",open the *.ifo file we just ripped to the hard driver in the first step.
    [​IMG]
    Then select the subtitles output destination,next we will see the subtitles selection interface.
    [​IMG]
    Remove the subtitles you don't want until there is only one subtitle in the right box.
    [​IMG]
    Click ok,the program will rip the subtitle.The subtitle type is "IDX+SUB"
    [​IMG]
    After the indexing is done,then select the subtitle you want,click ok.
    [​IMG]
    If you want to rip more subtitles,redo it from the very beginning of step 3.Please Note:you should select a different destination to save the subtitle,because everytime we rip a subtitle,the file name is all the same.

    III.Write a AVS script.(The full name is AviSynth script)
    If you don't know what is AVS script,please click here:
    First,we should confirm whether the DVD source is NTSC or PAL standard.If you don't know,here is the way.Use storm codec to play the VOB files,right click---->property,if the fps is 29.97,it is NTSC standard,if the fps is 25,it is PAL standard.
    Next,I provide 2 AVS templates for NTSC and PAL standard.
    For the NTSC standard:

    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")

    mpeg2source("D:\movie\jeep.d2v")

    Telecide(order=1,guide=1).Decimate(mode=3)

    crop(0,0,720,480)
    vobsub("d:\movie\jeepsubtitle.sub")
    lanczosresize(480,272)


    For the PAL standard:
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")

    mpeg2source("D:\movie\cell.d2v")


    TomsMoComp(1,5,1)


    crop(0,60,720,360)
    vobsub("d:\movie\cellwubtitle.sub")
    lanczosresize(480,272)


    You only need change the path of the *.d2v and *.sub files.And modify the
    parameters of "crop" and "lanczosresize" if you want.Please Note:(Do not change the sentence's sequence)

    You can play the AVS script with storm codec player to verify if the script is correct.Please Note:(To play the AVS script fluently,it requires the CPU should at least be P4 3G.So if your cpu do not reach the requirements,when you play it,it won't be fluent,but don't worry,it doesn't matter.)
    For the AVS for NTSC,when you play it,the fps is 23.97,for PAL,it is 25.

    Notice:about the subtitle,sometimes you add vobsub in the movie,when you play AVS script,you will not see the subtitle,that is because the subtitle is out of the picture,you should adjust the subtitle's location.
    At the GK main interface,switch to switch Subtitles/Chapters,click "configure",then click"open",select "VobSub files" as the file type,open the subtitle you want to adjust,either *.idx or *.sub is ok.
    Then adjust the subtitle's location and scale like the picture below.
    [​IMG]
    After that,replay the AVS script to check the subtitle.
    [​IMG]
    [​IMG]
    NOtice:about you can not listen to the sound track when you play AVS script,it is normal,if you want,you should modify the AVS script like this for a NTSC standard movie
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
    LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")

    video=mpeg2source("d:\cell.d2v").Telecide(order=1,guide=1).Decimate(mode=3)

    audio=wavsource("d:\cell AC3 T01 3_2ch 448Kbps 48KHz.wav").amplifydb(20,20)

    audiodub(video,audio)

    vobsub("d:\VTS_01_0.sub")

    lanczosresize(480,272)


    It is not necessary for us to add audio in the AVS script,we will use GK to process audio.But if you use 3GP_PMP-AVC to convert DVD,it is necessary.

    IV.Use VDM to process video.
    Because there is no x264 encoder in the VDM,so we should install it first.
    Download x264vfw-patched here,then unzip it,right click "x264vfw.inf",install it.
    [​IMG]

    Open the VirtualDubMod,click "open video file...",select the AVS script you have wrote.
    [​IMG]
    If you add audio in the AVS script,you should disable it.Click "streams",select "stream list"
    [​IMG]
    Then select the audio track you want to disable,click "disable",then click "ok"
    [​IMG]
    Then select "video"--->"Compression"
    [​IMG]
    At the next interface,select "x264 - H.264/AVC encoder",then click "configure"
    [​IMG]
    At the next interface,switch to "MBs&Frames",configure the setting like the picture below,(Otherwise the *.pmp file you convert will not be able to play on the PSP.)
    [​IMG]
    Then switch to "Bitrate"

    Compress Mode 1:Quantizer
    Select "Single Pass - Quantizer" in the list box,the parameter of quantizer should be 20 or 21.
    [​IMG]
    Then click "ok",in the "select video compression" window,click "ok",in the main interface of VDM,click "save as..."
    [​IMG]
    Input the file name you want to save and select the destination,select the option like the picture below,select "Full processing mode" in the video mode list box.
    [​IMG]
    Then press "F4",click "start",the VDM will start compress the video.The time will be about compression is depend on the CPU class.A P4 2G class CPU usually need 2 times of the movie's length to finish this job.When it finish,close VDM.
    [​IMG]
    Notice:Normally if you use Q21 mode,the avi file will be 320M.(not include Audion),If you use Q20 mode,the file will be 480M(not include audio),the file size is not so huge and the picture is ok.The time you cost will be the half of you compress with 2-pass mode.

    Compress Mode 2:2-pass mode.(Recommend mode for convert dvd to high quality PMP_AVC)
    Let's compare 2-pass mode with Q20 mode.In the same file size condition,the picture's quality of 2-pass mode is better,but the time it will cost is the 2 times of Q20 mode.
    Select "Multipass - First Pass(fast)","Target Bitrate" input 650.
    [​IMG]
    Then click "ok",in the "select video compression" window,click "ok",in the main interface of VDM,click "save as...",
    input the file name you want to save and select the destination,select the option like the picture below,select "Full processing mode" in the video mode list box.
    [​IMG]
    Then we reconfigure the "x264 - H.264/AVC encoder",select "Multipass - Nth Pass","Target Bitrate" set to 650.
    [​IMG]
    Then click "ok",in the "select video compression" window,click "ok",in the main interface of VDM,click "save as...",
    input the file name you want to save and select the destination,select the option like the picture below,select "Full processing mode" in the video mode list box.
    [​IMG]
    Then press "F4",click "start",the VDM will start compress the video.When the first pass finish,the second pass will automaticlly start.The time about compression will be cost is depends on the CPU class.A P4 2G class CPU usually need 4 or 5 times of the movie's length to finish this job.When it finish,close VDM.
    [​IMG]

    Notice:About the Target Bitrate in the 2 -pass mode.We usually set to 500--700Kbps.Over 1000kbps is not recommend,it will lead the file size very huge.We usually take 512kbps、550kbps、600kbps、650kbps、700kbps.

    V.Use GW to process audio
    Open GW,select "options",then click "Storage"
    [​IMG]
    Set the temporary storage destination,,make sure there is at least 2G free space.
    [​IMG]
    Then click "File",open the *.wav file you saved by DGIndex.Then click "File"--->"Save as...",select "MPEG Audio (*.mp3)" as the type,select "Layer-3,44100hz,128kbps,stereo",you can set bitrate as you like,but please make sure you set sampling rate to 44100HZ.
    [​IMG]
    Then click "save",GW will start process the audio,it usually takes 10 minutes.When it finish,close GW.
    [​IMG]

    VI.Use pmp_muxer_avc_tk.exe to complex the video and the audio to *.PMP
    Download pmp_muxer_avc_tk.exe here
    Open it,then open the *.avi file in the "video input",open the *.mp3 file in the "Audio input",select a destination and input a file name for the *.pmp file.Make sure there is no blank in the file name and the path about "video input"."Audio input","PMP output".
    [​IMG]
    Then click "go",the program will complex the video and the audio to *.pmp.Generally,it takes about 5 minutes.After it is done,play it with baofeng player,if it is ok,then you can copy it to your psp and play the *.pmp on it.
    Below is some snapshots of movie <Cellular> on psp.I converted it by this tutorial.The video bitrate is 650kbps,the audio bitrate is 128kbps.
    [​IMG]
    [​IMG]
    [​IMG]
     
  2. Sudds

    Sudds Active member

    Joined:
    Sep 12, 2005
    Messages:
    3,703
    Likes Received:
    0
    Trophy Points:
    66
    Or just use XVID4PSP.
     
  3. amitguru

    amitguru Guest

    Holy sh*t man, being honest i totally agree with sudds....otherwise great job :)
     
  4. shedeus

    shedeus Regular member

    Joined:
    Dec 20, 2006
    Messages:
    239
    Likes Received:
    0
    Trophy Points:
    26
    yup. somehow seems... easier

    but great write up!
     

Share This Page