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 Divx to KVCD (http://www.digitalfaq.com/archives/encode/2143-guide-convert-divx.html)

black prince 01-14-2003 01:33 PM

Guide to convert Divx to KVCD
 
Converting Divx/Xvid (AVI files) to KVCD

Introduction:

Like so many visitors to KVCD, I too originally visited to convert Divx’s to a format that would play on my TV and keep the same picture quality as Divx. Months later, I found myself using the KVCD process for all my video backups. My family and I are impressed with the picture quality. I know anyone who takes the time to learn the KVCD process will also be very impressed.

Software:

SoftwareOfficial Site
Tmpgenchttp://www.Tmpgenc.net/e_download.html (version 2.511.2 )
VCDEasyhttp://www.VCDEasy.com/VCDEasy.zip
Headac3hehttp://darkav.de.vu
VirtualDubhttp://virtualdub.sourceforge.net
AviSynthhttp://www.avisynth.org (get version 2.08 )
BBMPEGhttp://members.cox.net/beyeler/bbmpeg.html
MovieStackerhttp://www.kvcd.net/MovieStacker_v1.1.1.zip
ToKhttp://www.kvcd.net/forum/viewtopic.php?t=3096
 
Getting Started:

Before we start it’s important to determine if KVCD encoded mpeg-1 movies will play on your DVD player. Start by checking the DVD Player Compatibility Chart for your DVD player. Even if it’s not listed there’s still a chance it can play KVCD movies. Try making a small test clip using this process (say 30 seconds) burn this to CD-RW and play this as a test. If it still fails, post the problem on the forum for help from others who may have solved your problem.

Next make sure the proper codec’s have been installed and Divx is working by playing your video. If your Divx is not high quality, then don’t expect a better VCD. Don’t expect miracles. Going from a smaller resolution to a higher one (e.g. 320x240 to 704x480) will not give you a good picture. Try to go for a resolution equal or less. (e.g. 640x480 to 528x480 kvcdx3). Use file size predictor (described later) to judge how many CD’s it will take to convert. As an example, If you want only 1 CD try KVCD Template 352x240 KVCD-LBR, or if 2 CD’s try 528x480 kvcdx3. Finally, take your time and when asking for help, please explain what you have done and your problem with details when you post. Your problem can be solved faster that way.


Step 1 - Audio:

Use VirtualDub:
  • Go to File>open>(select your avi file)
  • You will get a message “VBR audio stream detected” Just click on “OK” button
  • Go to File>File Information (check Video Stream and write down resolution).
  • Write down the total number of frames and the time in seconds.
  • Go to Audio>Full Processing mode (check this)
  • Go to File>Save as WAV (save file with wav extension)
  • When done close VirtualDub.
Use Headac3he:
  • Select Source File> (locate your audio.wav file from VirtualDub)
  • Select Destination Format> choose type as .mp2
  • Click Options twice
  • Select Channel mode> (dual channel)
  • Select Bitrate> (choose the quality you want. I start with 128kb, but you can
  • Increase this if there is room left after creating the video part)
  • Click Start
  • When finished close Headac3he (you are now ready for the video)

Step 2 - Video

Use MovieStacker:

The avs script below was created by "MovieStacker" a utility developed by Mauddib. The nice feature about this utility is the ability to saveyour favoriate scripts to load when you need them. For the latest optimal
script try this link: http://www.kvcd.net/forum/viewtopic.php?t=3483

Use Tok:

Tok can automatically find the CQ value and encode your movie: http://www.kvcd.net/forum/viewtopic.php?t=3096
This nice utility by hedix is quick and easy to use.
  • Go to Settings>load all your programs. MadPlay can be found
  • with DVD2SVCD.
  • Go to Main Tab>Select you avs script created by MovieStacker.
  • Go to Audio>Select your .mp2 file created by Headac3he.
  • Go to Bitrate and make sure your max bitrate is correct for the
  • resolution you picked (e.g. 352x240 with max bitrate 1800)
  • Go to Space>select how many CD's your using
  • Uncheck>Prediction only and No Encoding.
  • Click on Start.
When finished 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.


Step 3 - Burning your movie to CD

I prefer VCDEasy, but Nero is also a good choice :D

-black prince

Adder 01-14-2003 03:42 PM

Hi black prince

The guide looks really impressive :lol: i look forward to the rest of the guide :P

I have a query. What about the following blockbuster filters:
Blockbuster(method="noise", variance=.5, seed=1)
Blockbuster(method="sharpen", detail_min=20, detail_max=90, strength=7)

Do you not recommend these for low resolutions or something?

Thanks. :D

MrCoopz 01-14-2003 04:05 PM

I did what Kwag said but i still have the same problem but with line 10 now i added a new line

LoadPlugin("C:\Avi Stuff\MPEG2DEC.dll")
LoadPlugin("C:\Avi Stuff\LegalClip.dll")
LoadPlugin("C:\Avi Stuff\Blockbuster.dll")
LoadPlugin("C:\Avi Stuff\FluxSmooth.dll")
LoadPlugin("C:\Avi Stuff\Sampler.dll")
Loadplugin("C:\Avi Stuff\LegalClip.dll")
LoadPlugin("C:\Avi Stuff\Gripfit\GripFit_Preview.dll")
avisource("D:\Films\Austin.Powers.In.Goldmember.DV L.Xvid.ShareReactor.avi")
LegalClip()
GripFit( width=528, height=480, overscan=2)
Blockbuster(method="noise", variance=.4, seed=1)
LegalClip()
#Sampler(length=24)

any ideas?

also does anyone have a Excel file for the File Prediction?

and last question i got my predicted file size to 13.575meg for 90meg of audio and a 94 minute long film. Is this right?

SansGrip 01-14-2003 04:23 PM

Quote:

Originally Posted by MrCoopz
I did what Kwag said but i still have the same problem but with line 10 now i added a new line

Line 10 would be GripFit 8O. What's the frame size of the original AVI? To find out, load it up in WMP and hit File->Properties->Details.

black prince 01-14-2003 05:23 PM

@Adder,

Adder wrote:
Quote:

Hi black prince
The guide looks really impressive i look forward to the rest of the guide
I have a query. What about the following blockbuster filters:
Blockbuster(method="noise", variance=.5, seed=1)
Blockbuster(method="sharpen", detail_min=20, detail_max=90, strength=7)
Do you not recommend these for low resolutions or something?
Thanks.
Blockbuster noise seemed to have no effect on dark areas when using
Tmpgenc's CQ. If your avi movie has blockiness already, this would
not improve it. Blockbuster noise is useful when the source is DVD.

Blockbuster sharpen will increase file size greatly, so you must decide
whether you need it. If your trying to convert to 1 CD (800MB) then
filters that increase file size should be avoided. Filters that soften
will decrease file size (e.g. TemporalSmoother, FluxSmooth, TemporalSoften, etc.).
They could prove helpful to get more video onto 1 CD.

Thanks for the compliments about the guide. :) If the guides work out,
I plan to put out a Guide to convert SVCD (MPEG-2) to KVCD next. :)

-black prince

black prince 01-14-2003 05:30 PM

@MrCoopz,

MrCoopz wrote:
Quote:

I did what Kwag said but i still have the same problem but with line 10 now i added a new line
Could you post the resolution and framerate from VirtualDub>File>
File Information. It could be that GripFit is not handling the framerate
and thus giving you an error. :)

-black prince

bomber36 01-14-2003 06:09 PM

Having problems with this guys,heres my avs file:
LoadPlugin("C:\Encoders\Fit cd\MPEG2DEC\MPEG2DEC.dll")
LoadPlugin("C:\Encoders\Fit cd\LegalClip\LegalClip.dll")
LoadPlugin("C:\Encoders\Fit cd\Blockbuster\Blockbuster.dll")
LoadPlugin("C:\Encoders\Fit cd\FluxSmooth\FluxSmooth.dll")
LoadPlugin("C:\Encoders\Fit cd\Sampler\Sampler.dll")
LoadPlugin("C:\Encoders\Fit cd\GripFit\GripFit_Preview.dll")
avisource("C:\harry.potter.2.divx")
LegalClip()
GripFit( width=528, height=576, overscan=1)
FluxSmooth()
LegalClip()
#Sampler(length=24)

When I load it into tmpg it just closes the program and sends me back to desktop without any errors could you please help me

bomber36 01-14-2003 06:29 PM

Ok sorted this problem out I had avi source wrong,but now i have another error saying :Legal Clip source must be YUY2 what does this mean thanks!

SansGrip 01-14-2003 06:30 PM

Quote:

Originally Posted by bomber36
Ok sorted this problem out I had avi source wrong,but now i have another error saying :Legal Clip source must be YUY2 what does this mean thanks!

Put ConvertToYUY2() after the AviSource line.

MrCoopz 01-14-2003 06:33 PM

Black Prince heres my stuff

http://www.digitalfaq.com/archives/error.gif

SansGrip 01-14-2003 06:36 PM

Quote:

Originally Posted by MrCoopz
Black Prince heres my stuff

I'll try and duplicate the crash here. It might be a bug in GripFit.

bomber36 01-14-2003 06:37 PM

Your are the king thankyou works perfect now! :D

SansGrip 01-14-2003 06:42 PM

GripFit seems to accept non-YUY2 input (it shouldn't). That might be the cause -- if so, adding the ConvertToYUY2() line should fix it.

SansGrip 01-14-2003 06:43 PM

Quote:

Originally Posted by bomber36
works perfect now! :D

Another bug squashed :mrgreen:.

MrCoopz 01-14-2003 06:50 PM

SansGrip i did this but still no joy

avisource("D:\Films\Austin.Powers.In.Goldmember.DV L.Xvid.ShareReactor.avi")ConvertToYUY2()

black prince 01-14-2003 06:57 PM

@MrCoopz,

MrCoopz wrote:
Quote:

SansGrip i did this but still no joy
Your problem could be the GripFit filter. SansGrip is trying
to create the same error. Please wait until he gets back
to you :)

-black prince

MrCoopz 01-14-2003 07:09 PM

oh ok sorry

and a question for u mate, what settings do i use in tmpenc if i want all my movies widescreen and full screen with no borders?

black prince 01-14-2003 07:21 PM

@MrCoopz,

For Full Screen, change GripFit to look like this:

GripFit( width=352, height=240, dest_anamorphic=true, overscan=1)

You shouldn't change Tmpgenc's video arrange(Center).
But, Full Screen will increase file size and your movie
may no longer fit on 1 CD with good quality. You should take
small (30 sec) clips and decide if the picture is what you want.
Genally, I use Wide Screen, (anamorphic) output because it
creates a smaller file after encoding. :D

-black prince

kwag 01-14-2003 07:25 PM

Quote:

Originally Posted by black prince
Genally, I use Wide Screen, (anamorphic) output because it
creates a smaller file after encoding. :D

-black prince

Isn't it the other way around :!: :wink:
You disable Anamorphic output and then your mpeg is non anamorphic. Just fixed 16:9.

-kwag

MrCoopz 01-14-2003 07:31 PM

I have is a widescreen tv

and when i put films on i get borders on the top and bottom, thats all i wanna get rid of.

But if its not gonna fit on a cd ill leave it, what would u recommend?


All times are GMT -5. The time now is 03:01 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.