digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Guide to convert DVD to KVCD (http://www.digitalfaq.com/archives/encode/2654-guide-convert-dvd.html)

black prince 02-16-2003 10:45 PM

Guide to convert DVD to KVCD
 
How to Backup DVD to KVCD

Introduction:

I backup my purchased DVDs to KVCD for my laptop and use it as a movie player. The quality is very good even with movies over 3 hours. This guide covers a limited example (NTSC, 352 x 240, full-screen). For other variations of this, like PAL, check the forum to get other settings.

Before Getting Started:

You need to test your stand-alone DVD player to see if the KVCD, KSVCD, and KDVD formats will work. Download from the link below and burn with VCDEasy or Nero. This will help you determine which formats will play, if any, on your DVD player.
Let's go...


Download and Install Software

SoftwareMin.VersionDownload Site
DVD Decrypter  
DVD2AVI1.77.3http://arbor.ee.ntu.edu.tw/~jackei/dvd2avi/
Headac3he0.24-a12http://forum.gleitz.info/attachment....chmentid=67825
FitCD2.23http://www.afterdawn.com/software/vi...ools/fitcd.cfm
CalcuMatic http://www.kvcd.net/forum/viewtopic.php?t=5145
CQMatic http://www.kvcd.net/forum/viewtopic.php?t=5145
TMPGEnc2.521.58.169http://www.Tmpgenc.net/e_download.html
KVCD Templates http://www.kvcd.net/dvd-models.html
MPlex0.91http://www.kvcd.net/downloads/mplex.exe
VCDEasy1.1.4http://www.VCDEasy.com/VCDEasy.zip
Nero6.0http://www.nero.com/en/631934351031098.php
VideoLan Client0.8.3http://www.videolan.org/vlc/download-windows.html
AviSynth2.54http://www.avisynth.org/
Avisynth Filters http://www.avisynth.org/warpenterprises/
- MPEG2DEC3.dll  
- asharp.dll 
- undot.dll 
- unfilter.dll 
- vsfilter.dll 
- STMedianFilter.dll  


Step 1 - Ripping


Step 2 - Frameserve

Using DVD2AVI:

Go to File>open>(select a vob, e.g. vts_01_1.vob, file from Step 1)
dvd2avi will use the rest of the files
Go to Option>Preview (play 1 or 2 minutes of the video)
Watch the “Video Type” field and use the table below to set Video>Field Operation:

(1) Video Type(2) Field Operation
NTSC at 5% or higherNone (use decomb in your avs script)
FILM at 95% or lowerNone (use decomb in your avs script)
FILM only (implies 100%)Forced FILM
FILM at 96% or higherForced FILM
  • Go to Audio>Track Number>Track 1 (this usually is the English audio channel)
  • Go to Audio>Dolby Digital>Demux (this creates an .ac3 file)
  • Go to File>Save Project>(your video .d2v file)
  • When done close DVD2AVI

Step 3 - Video

Creating AVS script file:

The script below is an example for resolution 352x240, NTSC, full screen. Cut and paste this in a file named "movie.avs" or some name ending with .avs. Change the directory names for filters and the .d2v files below to your own. To change the BicubicResize parameters use FitCD to adjust these settings and AddBorders.

Code:

LoadPlugin("c:\DVD BACKUP\Filters25\MPEG2Dec3.dll")
LoadPlugin("c:\DVD BACKUP\Filters25\asharp.dll")
LoadPlugin("c:\DVD BACKUP\Filters25\UnDot.dll")
LoadPlugin("c:\DVD BACKUP\Filters25\UnFilter25\UnFilter.dll")
LoadPlugin("c:\DVD BACKUP\Filters25\vsfilter.dll")
LoadPlugin("c:\DVD BACKUP\Filters25\STMedianFilter.dll")

Mpeg2Source("F:\Temp\movie.d2v")

undot()
Limiter()
asharp(1, 4)
BicubicResize(336, 222, 0, 0.6, 0, 2, 720, 476)
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

AddBorders(8, 9, 8, 9)
Limiter()

function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2}

Using CalcuMatic:
  • Video>Source>(locate your .d2v file)
  • Audio>Bitrate>128
  • Media>No. of Disks>1
  • Media>Target>80 min CD
  • VCD/SVCD Mux Overhead>(click button)
  • Calculate>(click button)
  • Results>AVG Bitrate>(write this down)
  • Results>Video Size>(write this down)
  • Results>Audio Size>(write this down)
  • close and go to Tmpgenc.
Setting up Tmpgenc:
  • Video Source>(locate your .avs script file)
  • Load>KVCD-CQ-352X240-_NTSCFilm_-Plus.mcf
  • Settings>Video>Rate Control Mode>Max Bitrate>1800
  • Settings>Video>Rate Control Mode>Min Bitrate>(from CalcuMatic [0.57*AVG])
  • Settings>Advanced>Field Order>Top Field First (Field A)
  • Settings>Advanced>Source Aspect Ratio>4:3 525 Line (NTSC)
  • Settings>Advanced>Source Range>Cut Editing>Cut except Currently Selected Area
  • File>Save Project>Save As Type>TmpGenc Text Project (*.tpr)
  • Close Tmpgenc.
Using CQMatic: http://www.kvcd.net/forum/viewtopic.php?t=5145


Step 4 - Audio


Using Headac3he:

You can adjust your audio file size based on the resulting video file size. If your video target file size is bigger than prediction reduce the audio to less than 128kb or if greater than increase above 128kb. Your Video and Audio file size must fit the target CD size, about 794MB. The remainder CD space is overhead used by Nero (about 12MB). This will all fit using overburn in Nero.
  • Select Source File> (locate your audio.ac3 file from Step 2)
  • Select Destination Format> choose type as .mp2
  • Resample>44.1khz
  • Booster>(check)
  • Options>(click twice)
  • Select Channel mode> (dual channel)
  • Select Bitrate> (choose the bitrate you want. I start with 128kb, but you can
  • adjust this depending on the room left after creating the video file)
  • Click Start
  • When finished close Headac3he (you are now ready to Multiplex)

Step 5 - Multiplex


Using MPlex:
  • Files>Input mpeg video file>(locate your *.m1v file)
  • Files>Input mpeg audio file>(locate your *.mp2 file)
  • Settings>Program Stream type>VCD (check)
  • Settings>Program Stream type>VBR(check)
  • Settings>Program Stream type>Write Program End Code(check)
  • Settings>Program Stream type>Multiplex Video (check)
  • Settings>Program Stream type>Multiplex Audio (check)
  • Settings>Program Stream type>Forced Mux Rate>0
  • Settings>Program Stream type>Start Second:>0
  • Settings>Program Stream type>End Second:>99999
  • Settings>Program Stream type>Max Size (MB)>794
  • Files>Multiplex Now!

Step 7 - Playing your Movie

After using MPlex the file created should be "movie00.mpg". Use VideoLan Client to play your newly created mpeg-1 movie for testing. It's free (PowerDVD and WinDVD are not free) and plays just about anything.


Step 8 - Burning your movie to CD-R


Since VCDEasy does not support my burner, I create an .cue and .bin file with VCDEasy and finish burning with Nero.

VCDEasy:
  • Video Types> VCD 2.0
  • ASPI>Nero
  • Bin Output file>(specify dir and file name)
  • GO>(this creates .cue and .bin files)
Nero:
  • Disc Image>(select .cue file)
  • NEXT>(click)
  • When finished test your creation.

Final Comments:

This may seem like a long process and with some movies it may well be. But the video quality is worth the effort. After doing several backups it gets easier. Please post your comments about the ease of using this guide and any corrections needed.

-black prince


If this article/guide is as helpful as a magazine or book, then consider a small donation to support what we do here. Or sign up as a Premium Member for only $20. We manually migrated several forums to The Digital FAQ Archives, thus rescuing these sites from online oblivion. The page you're reading now might have been lost, had we not saved it! Your donation goes to the upkeep of this information, as well as our ability to preserve future sites. Thanks!


urban tec 02-17-2003 12:53 AM

Nice work Black Prince, very clear and easy to understand, a good guide.

jorel 02-17-2003 01:01 AM

8O

i can't resist:
the (first) post after your tutorial!


really cool!!!!
8) 8) 8)

i want to thank you black prince,
but the words "run out" of my head.
thank you friend , i think that you made it all
for everybody but in special for me,cos i "bore" you too much,
asking about this tutorial!
my intentions was the best:
:)
BIG thank you black prince!

:D :D :D

we follow you!


editing:
second post: urban tec was faster,i was reading and "hipnotized"! 8O

TCC 02-18-2003 04:04 AM

I'm having trouble doing the video portion. This is the error I'm getting when trying to load the .avs into TMpegEnc.
http://www.digitalfaq.com/archives/error.gif

And this is the .avs file I created by copying and editing it to my specs.

LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\MPEG2DEC.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\LegalClip.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\Sampler.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\DustV5.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\TemporalCleaner.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\GripFit_preview.dll”)
LoadPlugin("C:\WINDOWS\Desktop\VCD Filters\DecombLegacy.DLL")
mpeg2source(D:\kvcd.d2v)
#
LegalClip()
#Telecide() #Use based on Step 2 if needed
#Decimate(5) #Use based on Step 2 if needed
GripCrop(352, 240, overscan=2)
GripSize()
SpaceDust()
TemporalCleaner()
LegalClip()
#Sampler(length=24)

What am I doing wrong here??? :(

kwag 02-18-2003 04:08 AM

Hi TCC,

Open your .avs with notepad, and check the first line of you script. I think you have a stray character there that's not supposed to be there :D

Edit: I see your problem. You're supposed to use " instead of “ as double quotes. Change all your “ for " :D

-kwag

jorel 02-18-2003 04:10 AM

Quote:

Originally Posted by TCC
I'm having trouble doing the video portion. This is the error I'm getting when trying to load the .avs into TMpegEnc.
http://www.digitalfaq.com/archives/error.gif

And this is the .avs file I created by copying and editing it to my specs.

LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\MPEG2DEC.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\LegalClip.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\Sampler.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\DustV5.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\TemporalCleaner.dll”)
LoadPlugin(“C:\WINDOWS\Desktop\VCD Filters\GripFit_preview.dll”)
LoadPlugin("C:\WINDOWS\Desktop\VCD Filters\DecombLegacy.DLL")
mpeg2source(D:\kvcd.d2v)
#
LegalClip()
#Telecide() #Use based on Step 2 if needed
#Decimate(5) #Use based on Step 2 if needed
GripCrop(352, 240, overscan=2)
GripSize()
SpaceDust()
TemporalCleaner()
LegalClip()
#Sampler(length=24)

What am I doing wrong here??? :(


editng:
Kwag is right (like ever)

see in the pic:
unexpected character <-----error (use " instead of “ )

:wink:

JeffS 02-18-2003 06:33 AM

It looks like when you copy and pasted the script you got exactly what
was on the website. This included SmartQuotes, vs. regular double quotes. Open your avs script in notepad, and retype the " character after
deleting the ones there. the Smart Quotes, look like they have a little
tail on them pointing in the direction their facing. These are not recognized by the computer, as being a quote mark.

good luck
-Jeff

Perfect Cell 02-18-2003 11:02 AM

Video and audio sync
 
Hi, it´s me again... :roll:

I´m trying to make a KVCD from Harry Potter ( The Philosopher Stone )DVD but I´m stuck. First of all, the movie is fullscreen 4:3 and 152 min, so I tried to put in 2 cd´s with 352x480. I use this resolution to make room to a higher CQ.

IN DVD2AVI the movie it´s 99% FILM and Progressive. So I tried to make the "Force Film" trick but I ended with a jumping movie ( every 3 seconds the jump occurs ). After that, I tried to make a 29,97 fps movie without "Force Film", and the movie was ok, without jumps, but in the action scenes a big horizontal line started to appear in the areas in motion.

So I read, read and read many faqs, fóruns and find some answers. I put the original project.d2s in GordianKnot to see the type of frames. The Harry Potter DVD has 3 progressives frames and 2 interlaced frames, so the wise choise it´s to use the IVTC in the Avisynth script.

So I tried this new method ( using telecide with my original 29,97 fps project ), and the horizontal lines in the areas in motion totally disapear, but the audio was desync from the video. When I watch the video in my player, the video "run" to be in sync with audio, and the effect it´s very ugly. :cry:

My audio was made with the original 29,97 fps project , and with 48 KHz, but I don´t think the problem is the 48Khz from the audio, because I made some avi to kvcd conversions and it played very good ( final KVCD with 23,97 fps NTSC 544x480 48KHz).

So someone can help me? I´ll try this night to make a sample with a 44KHz to see if the problem continues, but I like to have some other tips to find what´s going wrong with my kvcd´s. :?:

The .avs script I was using is this:

LoadPlugin("C:\Encodes\plugins\MPEG2DEC.dll")
LoadPlugin("C:\Encodes\plugins\blockbuster.dll")
LoadPlugin("C:\Encodes\plugins\legalclip.dll")
LoadPlugin("C:\Encodes\plugins\sampler.dll")
LoadPlugin("C:\Encodes\plugins\dustv5.dll")
LoadPlugin("C:\Encodes\plugins\GripFit_preview.dll ")
LoadPlugin("C:\Encodes\plugins\TemporalCleanerOld. dll")
LoadPlugin("C:\Encodes\plugins\MSharpen.dll")
LoadPlugin("C:\Encodes\plugins\DecombLegacy.dll")

Mpeg2Source("c:\harry.d2v")

Telecide()
Decimate(cycle=5)

LegalClip()

GripCrop(source_anamorphic = false, 352, 480, overscan=2)
GripSize()

#faerydust()
SpaceDust()
#pixiedust()

temporalcleaner()

Blockbuster(method="noise", variance=.3, seed=1)
MSharpen()

GripBorders()

LegalClip()

#Sampler(length=24)

Thanks in advance for all your help ! :P

Perfect Cell 02-19-2003 10:49 AM

Problem Solved ( ? )
 
I make 4 new samples with the video ( all of them was IVTC ): one with 23.97 fps ( normal bitrate from the templates ), one with 23.97 fps ( but with min bitrate set as 1150 ), a third video sample with 29.97 fps ( normal bitrate ) and a fourth with 29.97 and min. bitrate set as 1150 .

I make 2 new audio samples for the 23.97 fps and 29.97 fps. And I make another copy from the audio source for a 48KHZ and a 44KHZ.

So in the end I was with 4 video samples and 4 audio samples.

1) video sample with 23.97 ( bitrate min 300 max 2500 )
2) video sample with 23.97 ( bitrate min 1150 max 2500 )
3) video sample with 29.97 ( bitrate min 300 max 2500 )
4) video sample with 29.97 ( bitrate min 1150 max 2500 )

5) audio sample with 23.97 48KHz
6) audio sample with 23.97 44KHz
7) audio sample with 29.97 48KHz
8) audio sample with 29.97 44KHz

What I was trying to do is to see if the problem was in the conversion form 29.97 to 23.97 or the problem was in the min bitrate or in the audio.

I muxed the video and the audio samples and every 23.97 sample was a failure ( jumping video ), but the samples with 29.97 was perfect.

So I make my 2 KVCD with the video FPS set to 29.97, use the telecide to get the interlaced frames out of the video, and make a very good conversion from my DVD source. :P

TCC 02-19-2003 12:32 PM

In the above guide it says that the GOP structure should be 1-24-2-1-24 but I've seen posts about 1-5823-2-1-24. What does the 24 and 5823 do to the video if anything :?: Which is better to use :?:

Thanks

Perfect Cell 02-19-2003 12:39 PM

The 5823 it´s the Kwag name in numbers ( see your telephone ).

In really you can´t use more than 24 before the max GOP 24 stops you.
You can try other small numbers like 12 for example, but never below 7.

black prince 03-09-2003 02:48 AM

@All,

This Guide has some new updates, e.g. MovieStacker, Tok, etc.
Check it out :D

-black prince

Holomatrix 03-14-2003 08:37 AM

Great guide :) This will help alot of people out.

outi 03-23-2003 07:28 AM

tok always gives me the following error message:

"unrecognized exception!
d:\...\...\pie1.avs, line 13"

the script's this here:
#==============================================#
# -= AviSynth script by MovieStacker v1.1.1 =- #
#==============================================#

LoadPlugin("D:\Download\MovieStacker_v1.1.1\MovieS tacker\Filters\MPEG2Dec.dll")
LoadPlugin("D:\Download\MovieStacker_v1.1.1\MovieS tacker\Filters\TemporalCleanerOld.dll")
LoadPlugin("D:\Download\MovieStacker_v1.1.1\MovieS tacker\Filters\BlockBuster.dll")
LoadPlugin("D:\Download\MovieStacker_v1.1.1\MovieS tacker\Filters\DustV5.dll")
LoadPlugin("D:\Download\MovieStacker_v1.1.1\MovieS tacker\Filters\LegalClip.dll")
LoadPlugin("D:\Download\MovieStacker_v1.1.1\MovieS tacker\Filters\Sampler.dll")

Mpeg2Source("D:\dvdtemp\kvcd\pie1.d2v")
LegalClip()
BilinearResize(496, 398, 0, 0, 720, 576)
SpaceDust()
TemporalCleaner(ythresh=5, cthresh=10)
BlockBuster(method="noise", detail_min=1, detail_max=7, variance=0.3, seed=1)
AddBorders(16, 89, 16, 89)
LegalClip()

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##

please help, i'm a total german newbie ;)

grover 03-23-2003 09:16 AM

I'm getting the same error. I've done a couple of KVCDs before using other methods, but I really want this way to work. Followed the instructions to the T. Still getting... First a popup error saying " " is not a valid integer value" and then on the video tab tmpeg is saying "unrecognized exception!" then it references the mpeg2source line of the .avs file. Like I said, did everything by the book, used moviestacker for the script, and I get the error every time! Help!
-grover

jorel 03-23-2003 09:25 AM

hi grover,
welcome!

"german"??
your system is pal-g, right?


don't know but it seems strange:
AddBorders(16, 89, 16, 89)
do you got this values in MovieStacker? :?

open the prog again and adjust the "blocks tv overscan"
and click in resize again!
the value is the same?

as i worte ,i think you use pal system...this values(89) is strange for me!
:)

kwag 03-23-2003 01:52 PM

Quote:

Originally Posted by outi
tok always gives me the following error message:

"unrecognized exception!
d:\...\...\pie1.avs, line 13"

Hi outi,

Make sure you used DVD2AVI version 1.76 ONLY when you made your .d2v file. Don't use version 1.77.x.

-kwag

Rassilon 04-14-2003 03:11 AM

Re: Guide to convert DVD to KVCD
 
Quote:

Originally Posted by black prince
Converting DVD to KVCD


---[QUESTION 1]---

(1) Video Type........................ (2) Field Operation

NTSC at 5% or higher............ None (use decomb in your avs script)
FILM at 95% or lower............ None (use decomb in your avs script)
FILM only (implies 100%)..... Forced FILM
FILM at 96% or higher.......... Forced FILM


---[QUESTION 2]---

When done view directory where your movie.mpg’s were created. You’ll notice
their numbered, e.g. movie00.mpg, movie01.mpg, etc. bbMPEG split
the movie and created files according to the file size 794MB for each CD.
Play the movie.mpg to see if audio and video is in sync. I use zoomplayer,
Bsplayer or radlight. If you don’t have any of these, use Windows Media
Player (WMP). Next, your ready to burn this great creation.

-black prince

Hi Black Prince,
Q1: Where do you get the % reading from when you preview the video. All I get is the video type, not a %age. Also, How and where do you put the Decomb and is this why I get a comb effect in my finished KVCD's when there is a lot of movement in my DVD's. Could you maybe give an example of a decombed script?

Q2: Also, why is it that files are split (Or created) at 794Mb instead of 694Mb when an 80Min (700Mb) CD Is specified :?

Thanks.

-Rassilon

totonho03 04-14-2003 02:39 PM

Hello all:

I can not find the DVD2AVI v1.76 software. I have tried both Doom9 and VCD help, and others, but it appears that the download site is either down or the links are not working. Have you folks run into this problem as well?
Thanks

Rassilon 04-14-2003 05:13 PM

Quote:

Originally Posted by totonho03
Hello all:

I can not find the DVD2AVI v1.76 software.
----[SNIP]-----
Have you folks run into this problem as well?
Thanks

Hi totonho03.

I too had this problem, I just did a search using www.anzwers.com.au and found some more links (This was the only search engine that I know of that actually found v1.76). Here are 2 links for you all out there that are still looking for v1.76 of DVD2AVI.

http://home.wanadoo.nl/gamecopyfreak/content/files.html
http://www.cdmediaworld.com/hardware....shtml#DVD2AVI

-Rassilon


All times are GMT -5. The time now is 03:45 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.