digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Simple Guide on converting AVI to KVCD (http://www.digitalfaq.com/archives/encode/4909-simple-guide-converting.html)

gsolis 08-06-2003 09:33 AM

Simple Guide on converting AVI to KVCD
 
Convert AVI to KVCD


Let me start by greeting and thanking those who came up with KVCD, their able hands have given us the gift of quality into VCD and the power to amuse our ?knowledgeable? friends on ?How can you fit a complete movie on a single CD ?? ? and then ?How did you got that high a quality on a VCD ?

I have written this guide as a small contribution for the not so experienced user like myself. Some might find it to be a bad guide, but I just wanted to put together a simple step by step guide to those who don?t like using too many tools and software and don?t understand a whole lot about settings.

Software used:
  • GSpot
    VirtualDub
    TMPGEnc
    BeSweet
  • 1. First you have to determine the quality of your source AVI file. This is because if you want to use a resolution of 528 x 480 on your TMPGEnc template you must have a higher resolution on your source AVI file.[list:9acffef9e2]a. Open GSpot, select File --> Open, and open the AVI file.
    b. Write down the relevant information. The ?x:y? information will tell you how high your KVCD template resolution can be. It?s also usable the size of the file, the FPS, the bit rate of the video and audio. If your resolution is lower than 528 x 480 you should use a 352 x 240 template.
2. Split the audio and video
  • a. Open VirtualDub, select File --> Open video file?, and open the AVI file.
    b. Select Audio --> Direct Stream Copy and Audio --> Source Audio.
    c. Select File --> Save Wav?, select a file name and click OK.
    d. After the audio is done, select Audio --> No Audio.
    e. Select Video Direct Stream Copy.
    f. Select File --> Save as AVI?, select a file name and click OK.
    g. You?ll end up with an AVI file with just the video, and a wav file with just the audio.
3. Convert wav to mp2:
  • a. Open BeSweet
    b. On Input, select the wav created in the pervious step.
    c. Check ?Use MPA Decoder? and ?Downconvert Sample Rate?
    d. On the Output drop down menu, select MP2.
    e. I usually use 128KB/s so click on the Copy Command to Clipboard, then open the command prompt, paste the command and edit the ?B? parameter to 128 and press enter.
    f. You should get a MP2 file with the sound of the movie.
4. Encode the video to m1v.
  • a. Open TMPGEnc. If the project wizard comes up, just click on cancel.
    b. On the lower part of the screen click on ?Load? and select the KVCD Template with the best possible resolution.
    c. This means:


    Higher than ¦ Lower Than ¦ Resolution
    __________________________________
    720 x 480 ¦ -------------- ¦ 720 x 480
    528 x 480 ¦ 720 x 480 ¦ 528 x 480
    352 x 240 ¦ 528 x 480 ¦ 352 x 240
    ------------ ¦ 352 x 240 ¦ Too low quality

    d. On ?Video Source? click on ?Browse? and select the avi file created by Virtualdub on step 2 of this guide.
    e. On ?Stream Type? select ?ES (Video Only)?
    f. Here come the tricky part? if you have CQmatic you can easily calculate the CQ that your encoding needs to fit on a single CD, but if you don?t have it, you can start the encoding, and wait until at least 5% of encoding, and determine, from the size of the m1v file if you have to lower the CQ or not. To do this, divide the size of the m1v file when it gets to 5% of encoding by 0.05 and if is greater than 550MB or so, it might not fit depending also on the size of the audio file. The more bitrate the movie has the lower the CQ has to be.
    g. If you do have to change the CQ, first stop the encoding by clicking on ?Stop?, then click on ?Settings?, select the ?Video? tab, click on ?Setting? on the ?Rate Control Mode? and set your CQ, click on ?OK? and ?Start? the encoding again until you get the results you want.
5. Multiplex the video and audio files.
  • a. I simply use the MPEG Tools on TMPGEnc. So select File --> MPEG Tools?, select the Simple Multiplex tab.
    b. On ?Video Input? click on ?Browse? and select the m1v file created on step 4.
    c. On ?Audio Input? click on ?Browse? and select the MP2 file created on step 3.
    d. On ?Output File? click on ?Browse? and select the output MPG file name and location.
    e. Click on Run and wait a few minutes.
6. Toast it
  • a. Open Nero Burning ROM
    b. Select Video CD and uncheck ?Create standard compliant CD?
    c. If you want a menu, on the ?Menu? tab check ?Enable Menu?. I like to download the image of movie poster I?m burning, and put it on a menu as the ?Background picture? on the menu tab.
    d. Click on ?New?
    e. Find the MPG file created on step 5 on the right hand window, and drag it to the left window. If you got your CQ right you should not have gone pass the red line of 700MB.
    f. Burn the CD and try it on your DVD standalone player. Please note that there are some DVD players that only play 352x240 KVCD and the ones that play them all. I have a Pioneer DV-355 and it plays all KVCDs.
[/list:u:9acffef9e2]

TITIB 09-07-2003 09:22 AM

invalid MPEG audio stream
 
I red the article 'Convert AVI to KVCD' you wrote on kvcd.net, which is very useful.
I used BeSweet GUI 0.6 in step 3 to convert wav to mp2. I changed the 'B parameter' to 128 (I hope so, it's not very well explained in your guide). The mp2 file seems OK.
After encoding the video to m1v (step 4), I tried to multiplex the video and audio files with the MPEG tools in TMPGEnc.
Trying to load the mp2 file, I get the error message 'invalid MPEG audio stream' from TMPGEnc. :(
Have you got some explanation ?
Thank you.
Thierry

Dialhot 09-07-2003 12:26 PM

All post concerning avi MUST be posted in the AVI->KVCD forum.

Please, move your thread or it will be closed. Thank you.

kwag 09-07-2003 02:26 PM

Thread moved and made "Sticky" ;)

-kwag

Konatone 01-24-2004 11:58 PM

Hiya and thanks for the guide.

I wonder if you could put me on the right path though. I'm ok until I get to the part with besweet, Im using the GUI and copy to cmd command doesn't work, i'm getting an invalid path or filename error which i cant seem to fathom and with the besweet wizard when i press 'Go!' i just get a blank notepad file open up and thats it. I getting fairly pissed off with it 'cause i know its something i've done or not done..well i think..can anyone help?

wgamer 01-26-2004 06:06 AM

should we not burn it as non-compliant
svcd?

Dialhot 01-26-2004 06:23 AM

All depend on wich format you choose to multiplex. If you muxed as VCD non standard, you have to burn as non compliant VCD.
If you muxed as "Super VideoCD", you burn as "SVCD".

DJArekTripleSL 02-22-2004 10:41 PM

i get "illegal mpeg audiostream" in step 5 when i try and open the mp2 file with TMPGEnc... any idea why?

Dialhot 02-23-2004 05:33 AM

Your mp2 seems to not be a mp2. How did oyu obtained it ? Didn't you make any mistake ?

DJArekTripleSL 02-23-2004 04:29 PM

i made it with besweet, i followed the steps exactly outlined here

Dialhot 02-23-2004 07:28 PM

Try an other source. If the problem is the same, then you have to find what you are doing wrong. But if the second source is okay, then your first one is somehow corrupted (and I really don't see why).

DJArekTripleSL 02-23-2004 07:52 PM

ya, i tried a different one and the same thing happened :/

Dialhot 02-23-2004 08:00 PM

Quote:

Originally Posted by DJArekTripleSL
ya, i tried a different one and the same thing happened :/

So you are doing somethign wrong with besweet. Be sure to select MP2 and not MP3 ! Can you tell me the size of you MP2, it's bitrate, and it's lenght in minutes ?

Or try an other audio encoder if you know one better (headache, DbPowerAmp...).

DJArekTripleSL 02-25-2004 12:05 AM

Size: 67977844 bytes
Header found at: 417 bytes
Length: 4248 seconds (70mins48seconds)
MPEG 1.0 layer 3
128kbit, 163016 frames
44100Hz Joint Stereo

Dialhot 02-25-2004 04:42 AM

What do you call "when I try to open the mp2 with tmpegnc" ?
More precision on this point please. Step by step.

DJArekTripleSL 02-25-2004 11:17 AM

5. Multiplex the video and audio files.
a. I simply use the MPEG Tools on TMPGEnc. So select File --> MPEG Tools?, select the Simple Multiplex tab.
b. On ?Video Input? click on ?Browse? and select the m1v file created on step 4.
c. On ?Audio Input? click on ?Browse? and select the MP2 file created on step 3

When i try and add the mp2 file in step 5C thats when i get the illegal audiostream file message.

Dialhot 02-25-2004 03:12 PM

I don't ask you to copy/paste what is written above :-(
I want YOU to explain what YOU do, step by step, without reading the guide ! You MUST do an error somewhere.

BTW, use bbmpeg to make the muxing and stop using this guide.

undertaker229 02-26-2004 08:21 PM

Dont be so hard on him, he´s not making any mistakes...

I did the same old things, and the TMPGEnc doesnt get it, and says it´s illegal... I´ll try now with that BBmpeg thing, that hasnt made any trouble yet.

Greetings Guys!!!

R.-

Dialhot 02-26-2004 08:55 PM

The problem is that there is really _NO_ reason for that. I do everything with tmpgenc and never have any problem in muxing.

That's why I'm quite sure there is something that is wrong in the method. The guide is correct, so I can only be something you do that is wring. But I can't discover what :-(

undertaker229 02-27-2004 09:31 AM

It seems that the problem may be in the wav > mp2 conversion.

I tried using BBMpeg. The multiplex had a lot of trouble (said there was a lot of underflow. If I let the bitrate in 0, so he calculates it, the final file was too big...)

Anyway, using the 0 bitrate, or the default bitrate (option in BBmpeg settings/program stream settings) when I played the multiplexed final file it had no audio.

I tried playing the mp2 file alone, and the Windows Media Player crashed...
May be the mp2 has something wrong when done with besweet, and it doesnt work good.

Can you explain how to make a good conversion with BeSweet? (in case we are missing something)
Is there another good, reliable program to do the conversion wav > mp2?
Is it normal for my Windows Media Player to not play a mp2?
Do I need something else in my PC to "understand"mp2?

Thanks!!
R.-

Dialhot 02-27-2004 09:39 AM

Quote:

Originally Posted by undertaker229
Can you explain how to make a good conversion with BeSweet? (in case we are missing something)

The problem is that besweetGui memorize all the settings when you close the tool and you do'nt have to set them again the next time. This way I do not remember what are the things to do step by step the first time.
But basically, open the Gui, load the wav as source, go in 2lame tab, choose "mp2enc" as encoding engine (not toolame that is the default and gave me some trouble - that is perhaps the reason of your trouble, set the audio bitrate you want in the corresponding setting on the left/bottom (don't remember the name), return to besweet tab, select "mp2" as output format and click on "wav -> mp2".

Quote:

Is there another good, reliable program to do the conversion wav > mp2?
Heada3che.

Quote:

Is it normal for my Windows Media Player to not play a mp2?
For sure not !

Quote:

Do I need something else in my PC to "understand"mp2?
A valuable mp2 codec.

undertaker229 02-27-2004 10:25 AM

Thanks Mr. Phil, as you´ve been accurate in every answer.

You are right about the .dll loaded. It surely was lame and that´s the reason not even my WMP played the .mp2-lame trash file. Must be the problem of the other guy around the forum.

Before your answer, I found the HeadAC3eh. Was simpler than Besweet, and with the very complete page of the sir who made it, was easy to run. Im done with my wav>mp2. As Im writing this, Im multiplexing.

Thanks a lot!!!

R.-

undertaker229 02-27-2004 11:17 AM

As Columbo would say: Just one more thing...

I´ve just done the whole process. Uncheck "create compliant" in Nero, Burn, and then, when I play the KVCD it´s ok... you can see... you can listen... BUT

The movie I was encoding in the first time was a widescreen version. Then, as it´s 352x240 the format that the DVDPlayer understands from a VCD, when I play it on TV it gets fitted to 3:4 (everything looks like Modigliani :) )

When I play the MPG file of the KVCD disk in the PC looks fine, no problem, it´s when played in the DVD that appears the 3:4 proportion. Is there a way to modify a widescreen in order to make it look like widescreen in the DVD player??

Thaks!!!

R.-

Dialhot 02-27-2004 11:43 AM

How did you encode the video ? With a script or directly put it into tmpgenc ?

undertaker229 02-27-2004 09:20 PM

Now it´s ok! thanks... I just have to check and be sure to "keep aspect ratio" and set the output 352x240, although its widescreen... then the TMPGEnc puts black bars on top and bottom of the image, and the DVD player shows the 3:4 image with the 16:9 inside of it.

Thanks for Everything mr. Phil!!!

PD: By the way, do you know any forum where I can fix other problem that showed up: I have an AVI file, and the audio has a 3,5 seconds delay aprox... any suggestion on a forum about that or a piece of software to sync it?? Thanks!!

Dialhot 02-27-2004 10:29 PM

Isolate the audio in wav with vdub and encode it with a delay into mp3 with besweet or hedaac3che.

undertaker229 02-28-2004 09:21 PM

Thanks Mr. Phil!!! I set the delay on -4000 ms and everything worked just fine...

Your help has been very valuable. Thank you very much!!

p2phunter 03-07-2004 10:32 AM

whats this "B" parameter
 
this is my besweet command

"D:\GordianKnot\BeSweet.exe" -core( -input "q:\School of Rock\dmt-xvid-sor\School of Rock.wav" -output "q:\School of Rock\dmt-xvid-sor\School of Rock-New.mp2" -logfilea "D:\GordianKnot\BeSweet.log" ) -ssrc( --rate 44100 ) -toolame( -s 44.1 )


what is the "B" parameter mentioned in this guide?

Any help would be highly appreciated!

Dialhot 03-07-2004 11:29 AM

Re: whats this "B" parameter
 
Quote:

Originally Posted by p2phunter
this is my besweet command

"D:\GordianKnot\BeSweet.exe" -core( -input "q:\School of Rock\dmt-xvid-sor\School of Rock.wav" -output "q:\School of Rock\dmt-xvid-sor\School of Rock-New.mp2" -logfilea "D:\GordianKnot\BeSweet.log" ) -ssrc( --rate 44100 ) -toolame( -s 44.1 )


what is the "B" parameter mentioned in this guide?

Any help would be highly appreciated!

Plese do not ask somethign in PM that you had asked on the forum. I just past some time to answer to your PM and now I discover your post there :-(

p2phunter 03-07-2004 12:20 PM

Sorry about that!
 
Sorry about that!

I realized after posting in the forum that the last post was quite a few days back. So I thought no ones going to notice my post :)

So I thought I will pm you since u r the most active poster in this forum (and very knowledgeable)

Thanx for your PM anyways :)

kev23m 03-11-2004 09:04 AM

I have used the v4 script.

When I am trying to run it in wmp it gives me the foll error.

Convolution 3d supports YUY12 color format only.

My first try with avi>kvcd.

Thanks In Adv

Dialhot 03-11-2004 10:44 AM

Quote:

Originally Posted by kev23m
Convolution 3d supports YUY12 color format only.

The correct message is surely "supports YUY2 color".
That means that you don't have the correct version of convolution3d.
You need the one called "Convolution3D_yv12.dll".
(and remove the other one from your plugin directory)

marcos 03-22-2004 11:37 AM

Quote:

Originally Posted by DJArekTripleSL
5. Multiplex the video and audio files.
a. I simply use the MPEG Tools on TMPGEnc. So select File --> MPEG Tools?, select the Simple Multiplex tab.
b. On ?Video Input? click on ?Browse? and select the m1v file created on step 4.
c. On ?Audio Input? click on ?Browse? and select the MP2 file created on step 3

When i try and add the mp2 file in step 5C thats when i get the illegal audiostream file message.


The same to me.. anyone with good results?

ogm to svcd 03-23-2004 11:49 PM

hi u guys i followed all the steps but iam still haeing some problem with the video everytime i go to encode it i get very bad video, its so bad that i have no clue what is going on in the movie, its fine as an ogm bt when i go o avi to mpeg or avi to m2v its horribe, even the avi is good. i dont know what settings i have have to make under the video, bitrate, etc because it is my first time using this program. can u please help me. or is it comming out slow and choppy becasue my pc speed is 550mhz, or do i have to select some diff options. i chose vcd ntsc and svcd ntsc, but they both r comming out bad, i got my avi from virtual dub mod, and ogg from the same program, then i went ogg to wav, then wav to mp2. please help

oh by the way if u r getting errors from going from wav to mp2, check ur c:windows/system file, and if u have any Mp2en.dll then delete it beacause it messes up ur convertion. i hope i have helped

WOWIEGURL 04-08-2004 08:08 PM

Convert AVI to KVCD

Let me start by greeting and thanking those who came up with KVCD, their able hands have given us the gift of quality into VCD and the power to amuse our ?knowledgeable? friends on ?How can you fit a complete movie on a single CD ?? ? and then ?How did you got that high a quality on a VCD ?

I have written this guide as a small contribution for the not so experienced user like myself. Some might find it to be a bad guide, but I just wanted to put together a simple step by step guide to those who don?t like using too many tools and software and don?t understand a whole lot about settings.

Software used:

GSpot
VirtualDub
TMPGEnc
BeSweet



1. First you have to determine the quality of your source AVI file. This is because if you want to use a resolution of 528 x 480 on your TMPGEnc template you must have a higher resolution on your source AVI file.

a. Open GSpot, select File --> Open, and open the AVI file.
b. Write down the relevant information. The ?x:y? information will tell you how high your KVCD template resolution can be. It?s also usable the size of the file, the FPS, the bit rate of the video and audio. If your resolution is lower than 528 x 480 you should use a 352 x 240 template.

2. Split the audio and video

a. Open VirtualDub, select File --> Open video file?, and open the AVI file.
b. Select Audio --> Direct Stream Copy and Audio --> Source Audio.
c. Select File --> Save Wav?, select a file name and click OK.
d. After the audio is done, select Audio --> No Audio.
e. Select Video Direct Stream Copy.
f. Select File --> Save as AVI?, select a file name and click OK.
g. You?ll end up with an AVI file with just the video, and a wav file with just the audio.
If I do this part of the above

Quote:

f. Select File --> Save as AVI?, select a file name and click OK.
I need more than 7 gigs for 10 mins. I'm assuming if I do the whole movie which is 1hr 45mins long it will take more tahn 120 gigs. Is there something I am doing wrong?

bigggt 04-08-2004 08:13 PM

Hi just out of curiosity why do you need to seperate the auido and video,i never have

BTW i think something is a miss becuase saving an avi as an avi shouldn't increase the size

WOWIEGURL 04-09-2004 04:43 AM

Quote:

Hi just out of curiosity why do you need to seperate the auido and video,i never have

BTW i think something is a miss becuase saving an avi as an avi shouldn't increase the size
Because the F step says "Select File-- Save as AVI. and in step C. it says to save audio file. to wav. Then it says you'll need up with end up avi file with just the video , and a wav file with just the audio. By the way... Why do I need to resave the avi if the file I am making into a kvcd is already an avi file?

bigggt 04-09-2004 08:13 AM

OK i might be misunderstanding you but this is what i do with an avi


Video
1.Open Moviestacker and find source
2.Copy and paste the needed lines from moviestacker into Phil's V4 script(the Avisource line and the resizing lines)
3.save as avs file
4.Load avs file into Tok or CQ matic(whatever you use fro prediction)

ANd thats it for video

Audio

1.Open Avi in Vdub
2.Select under Audio tab Full Processing mode then Conversion-then select 44100 and final save as wave
3.Once the wave is saved then open Headach3e like usual and go from there

I am not saying that this is the only way but it always works for me

I never knew why people seperated the audio and video

Abond 04-10-2004 10:24 AM

@WOWIEGURL
Because you didn't select Direct Stream Copy for the Video
@bigggt
Quote:

I never knew why people seperated the audio and video
Sometimes if you have avi video with errors under resaving you get a chance they will be corrected with VDub.

suraj 04-10-2004 11:39 AM

i get a problen in step 5
 
i get a problen in step 5 :cry: :cry:
multiplex the video and audio files


tmpgenc
Illegal MPEG audiostream
Plz HELP ME


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