digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Multiple Disc SVCD to single KVCD (http://www.digitalfaq.com/archives/encode/2450-multiple-disc-svcd.html)

gonzopdx 02-01-2003 06:11 PM

Multiple Disc SVCD to single KVCD
 
First thing you want to do is run each of your AVSEQ01.MPG's through DVD2AVI to get your .d2v's and .mpa's. I choose to keep it simple and just name them by what disc number they are (ie: 1.d2v, 2.d2v, etc.) If it is an NTSC source, chances are it's telecined, so choose Forced FILM for the Field Operation. If it's PAL, leave it alone.

Next, open two instances of TMPGEnc and open each .d2v in each one (ie: use one to open 1.d2v, the other to open 2.d2v). If your source is PAL (25 fps), you might want to make a simple .avs script with mpeg2source("1.d2v") and a changefps(23.976) if you want to encode at 23.976 -- if you want to encode at 25 fps, leave it be.

Now what you want to do is go into the Source Range tool and find out your cutting points -- ie: where the first disc ends and the second begins. This is important as many multiple disc SVCD's have a 2 second overlap between discs. Scroll through the frames until you find a decent cutting point (close to the end of the first disc and close to the beginning of the second).

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

Next step is to figure your cropping. Open up the Clip Frame dialog in one of the instances of TMPGEnc and figure where you need to clip. Take note of the clipping amounts and the resulting size.

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

You're almost ready to create your final .avs script, but there's one more step. Audio. When you run your files through DVD2AVI, you'll have a .mpa for each CD, ie: "1 MPA T01 DELAY -76ms.mpa". Each disc will usually have its own delay -- this is why you have to do each disc individually instead of just chunking them together in DVD2AVI and just having one .d2v for the whole movie.

What you need to do is convert these .mpa's to .wav. This is as simple as this:

Code:

C:\Path\To\Movie>"C:\Path\To\BeSweet.exe" -core( -input "C:\Path\To\Movie\1 MPA T01 DELAY -76ms.mpa" -output "C:\Path\To\Movie\1.wav" -2ch ) -ota( -d -76 )
Do this for each .mpa -- MAKE SURE the number after -d in -ota( ) matches the delay from your source! This is important, or else your audio will be all out of sync and f*cked up ;)

After you do this, you should have some pretty hefty .wav files.

Now, for resizing use your favorite method -- do it manually or use FitCD. I just use some simple math and do it manually to make sure the resulting size will have the almost identical aspect ratio as the source. Take for example a movie for which the source is 480x480, after cropping the video size is 476x280. For a 480x480 encode, to account for overscan your width is always going to be 448. Here's the math. (280/476)*448, rounded up to the nearest pixel, 264. Voila, your resize to should resize to 448x264. Say you want to encode to a 528x480 movie.. (280/476)*528.. simple? I think so =) Say you want to convert from a PAL source (480x576) to SVCD (480x480).. your movie, after cropping, is 476x336.. (480/576)*336=280, then (280/476)*448, rounded to the nearest pixel, 264 -- resulting size: 448x264. Again, simple? :)

Now you're ready to create your .avs script:

Code:

(...plugins...)

# AudioDub your video sources with your audio sources and trim using your values from above
AudioDub(mpeg2source("1.d2v"),wavsource("1.wav")).trim(0,74430) + AudioDub(mpeg2source("2.d2v"),wavsource("2.wav")).trim(21,66539)

# Crop using your values from Clip Frame above
Crop(2,115,-2,-125)
# Resize using your favorite resizer
BicubicResize(448,264,0,0.6)

If you needed to change the FPS, say for example from a PAL (25fps) source to FILM (23.976fps), your source line would look like this:

Code:

AudioDub(mpeg2source("1.d2v"),wavsource("1.wav")).changefps(23.976).trim(0,74430) + AudioDub(mpeg2source("2.d2v"),wavsource("2.wav")).changefps(23.976).trim(21,66539)
This .avs should give you your whole movie in one shot. Now do your plugins and file size prediction as usual and encode. Make sure you choose Center for your Video Arrange Method in TMPGEnc.

For the audio, what I do is open the .avs in VirtualDub and save a WAV from there, then encode in HeadAC3he as usual. I use VirtualDub as the resulting WAV doesn't give the missing data chunk error when opened in HeadAC3he like a WAV from TMPGEnc does..

Hope this helps! Good luck!

Daagar 02-18-2003 05:22 PM

Just a couple counter points after doing a few SVCD to KVCD conversions myself:

1. I've always loaded all SVCD files into DVD2AVI and processed the audio/video into a single file. Though the original author mentions that the audio delay will be different on each file, I have never had an audio sync problem when creating a single .mpa file and converting it to .mp2 directly. This may be dumb luck, I don't know. However, this will _not_ allow you to correct for the 2second overlap between discs! The original author's method will be necessary to use the .trim() functionality in the .avs script. My method is for those that just want quick and dirty conversions.

2. If you want to forget about using FitCD or calculating borders/crop sizes/etc., make use of SansGrips wonderful utilities. For example:

GripCrop(480, 480)
GripSize()
<filters here>
GripBorders()
Letterbox(0,0,16,16)

Note that the letterboxing is optional. I do this instead of adding overscan=2 to the GripCrop line to preserve as much height as possible, while still gaining the benefits of reducing the width. I feel the widescreen borders are large enough already, and I don't need to further expand them. Whichever method you choose, the aspect ratio will be correct.

Bodyguard 02-24-2003 04:59 AM

Sorry about this....
 
Sorry I have to post twice my question... But... Anywhere I've gone, I haven't gotten a reply... So....

I have some home movies that were put onto DVDR. The problem is that each DVD is only an hour and a half long. I want to double the amount of video on each DVDR, and converted them into SVCD. Here is where the problem lies: How do I put SVCD files onto DVDR and make it compliant in standalone dvd players? If anyone could give me a link or some tips it would save me a lot of headache. I've already posted in the doom9 site and no one responded. My only hope now lies here...

Basically, how do you put SVCD's into DVDR to get them to play in standalone players?

Once again, I'm extremely sorry for committing this "taboo" act on you guys.... :?

J-Wo 02-27-2003 09:01 PM

Thanks for this guide, it's very timely for me as I'm trying to convert the 2 disc Chicago SVCD screener into a 1 disc KVCDx3. But I'm having problems with file prediction. Namely, how do I do it!!! I soon realized that my old prediction formulas did not include audio, but in your script you are using the AudioDub() function which muxes audio+video. So how do you do your CQ predictions?

urban tec 02-27-2003 09:51 PM

Re: Sorry about this....
 
Quote:

Originally Posted by Bodyguard
Sorry I have to post twice my question... But... Anywhere I've gone, I haven't gotten a reply... So....

I have some home movies that were put onto DVDR. The problem is that each DVD is only an hour and a half long. I want to double the amount of video on each DVDR, and converted them into SVCD. Here is where the problem lies: How do I put SVCD files onto DVDR and make it compliant in standalone dvd players? If anyone could give me a link or some tips it would save me a lot of headache. I've already posted in the doom9 site and no one responded. My only hope now lies here...

Basically, how do you put SVCD's into DVDR to get them to play in standalone players?

Once again, I'm extremely sorry for committing this "taboo" act on you guys.... :?

Bodygaurd you have committed the cardinal sin and broken

rule #485766738 sub sec 45678.A apendix c paragrah 3

Quote:

Thou shalt not say sorry just because you dont know the answer and have resorted to asking a question
:grin: :grin: :grin:

Ok all fun aside have you managed do this :?:

I was interested to see if the ifoedit method I suggeted in your other post was of any help.

gonzopdx 03-01-2003 07:30 PM

Quote:

Originally Posted by J-Wo
Thanks for this guide, it's very timely for me as I'm trying to convert the 2 disc Chicago SVCD screener into a 1 disc KVCDx3. But I'm having problems with file prediction. Namely, how do I do it!!! I soon realized that my old prediction formulas did not include audio, but in your script you are using the AudioDub() function which muxes audio+video. So how do you do your CQ predictions?

I usually start at around 70 and go up/down from there. I use KVCD Predictor to get the target sample file size.

J-Wo 03-20-2003 10:11 AM

I just have two questions:

1) If my source SVCD is 480x480, I should encode at that same resolution since my player can handle it, right? There's no point in me encoding at KVCDx3 resolution, 528x480?

2) My player can't play SVCDs but it can play SVCDs that have been converted using the VCD Header Trick. So I have a bunch of those files that I'd like to convert, but I'm not certain if Avisynth can load them as is, or for that matter what command to use. Any ideas? Do I need to do some sort of "reverse" VCD header trick?

Thanks guys.

gonzopdx 03-20-2003 04:56 PM

Quote:

Originally Posted by J-Wo
1) If my source SVCD is 480x480, I should encode at that same resolution since my player can handle it, right? There's no point in me encoding at KVCDx3 resolution, 528x480?

Nope, No point at all =) Just encode at 480x480 or lower.

Quote:

Originally Posted by J-Wo
2) My player can't play SVCDs but it can play SVCDs that have been converted using the VCD Header Trick. So I have a bunch of those files that I'd like to convert, but I'm not certain if Avisynth can load them as is, or for that matter what command to use. Any ideas? Do I need to do some sort of "reverse" VCD header trick?

This could be tricky.. if it's an MPEG1, you could load it using DirectShowSource (I believe that's the right one), but it is going to be slow as molasses and trimming frames probably won't work right..

J-Wo 03-29-2003 12:17 AM

Okay I've got another question. I love this Audiodub method for joining the two SVCDs cause it really makes a seamless transition if done correctly. But my problem is that my audio does NOT sound at all like the source SVCD. I've tried both tooLame and SCMPX as the audio encoder, but at 128kbps the audio is not as crisp (it's most noticeable when people say words that have strong S's in them). Am I doing something wrong?

kwag 03-29-2003 12:35 AM

Hi J-Wo,

Encode your audio with HeadAC3he :wink:

-kwag

Zyphon 10-11-2003 12:16 PM

@ Daagar

I usually use TMPGEnc to multiplex the SVCD's together using the Mpeg Tools and select the Merge & Cut tab and i merge the 2 Mpeg-2 files in there is o.k to do or is it better to join them in DVD2AVI?

Thanx in advance. ;)

Markymoo 10-23-2003 09:17 PM

Why go to all the trouble of joining the 2 files together syncing the sound when you can keep each seperate svcd mpg as it is encode each of them to 2 kvcd mpgs and then load each mpg into vcdeasy if you need to author them to dvd just load both mpgs into dvd author package then make the 2nd mpg to play after the first mpg. Alot less hassle!

jorel 10-23-2003 10:41 PM

because the idea in this thread is:
"standards"(more than one) SVCD's to (one) KVCD..... :!:

:wink:

Markymoo 10-24-2003 03:38 AM

Yes one KVCD , that could interpreted as 1 kvcd disk but can still be 2 mpg's :wink:

Zyphon 10-24-2003 07:03 AM

Quote:

Originally Posted by Markymoo
Yes one KVCD , that could interpreted as 1 kvcd disk but can still be 2 mpg's :wink:

Lol now your just splitting hairs. :lol: :lol:

Dialhot 10-24-2003 07:24 AM

Quote:

Originally Posted by Markymoo
Yes one KVCD , that could interpreted as 1 kvcd disk but can still be 2 mpg's :wink:

By doing this you can have the fist half of the movie encoded at CQ50 and the second half at CQ70.
(if forst part of the movie is high action, and end is romantic comedy :-))
By joining both MPEG before doing the KVCD you can use an average CQ of 60 for all the movie.

That's the purpose here !

jorel 10-24-2003 07:30 AM

believe Phil,

i was thinking:
"i will call Phil to answer this for me!"

you got "my" words!
8O
(telepatic forum?)

Markymoo,.....this is the idea!
:wink:

Markymoo 10-24-2003 04:16 PM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by Markymoo
Yes one KVCD , that could interpreted as 1 kvcd disk but can still be 2 mpg's :wink:

By doing this you can have the fist half of the movie encoded at CQ50 and the second half at CQ70.
(if forst part of the movie is high action, and end is romantic comedy :-))
By joining both MPEG before doing the KVCD you can use an average CQ of 60 for all the movie.

That's the purpose here !

FAIR COMMENT!

for myself i maintain high cq, size not being so critical and interested more in cleaning up the svcd

Big2hd 12-29-2003 07:51 PM

Go Figure Another Program(dv2avi) it is not working, this is where I'm at:

Btw Files are already in .mpg format, click open(all files) then i choose all 2 parts.

After that just alot of not responding's and crashes(pretty much every button I push), pls help or better yet a better way to make a 2 disc (s)vcd into 1 kvcd that does not invole using dvd2avi that would sooooo great :lol:

Thx In Advance!

KYUSS 01-14-2004 05:04 PM

Quote:

Originally Posted by Big2hd
or better yet a better way to make a 2 disc (s)vcd into 1 kvcd that does not invole using dvd2avi that would sooooo great :lol:

Thx In Advance!


u need to decide if its VCD or SVCD m8........as you say above "(s)vcd"

different methods are required for each.

i like markymoo's approach.......it has worked for me in the past........

Quote:

it is a very basic list guide i am afraid.


For VCD

1. extract mpg's from .bins/Cd's using isobuster or vcdgear or daemon tools.

2. using cqmatic and calcumatic convert each mpg seperately to KVCD approx 200-250mb each.

3. strip the audio from the mpg's using TMPGEnc or rejig (you can compress smaller using headac3 but i never needed to as its already quite small for VCD)

4. mux (join audio to video) using TMPGEnc using the setting mpg 1 VCD non standard. do this for both mpgs.

5. using VCDeasy load your 2 newly compressed mpgs let it scan them....it will probably tell you they need auto padding (this is normal) under the tab 'chapters' choose 10 equidistant chapters and 'OK'.
under the interactive tab make sure that mpg number 2 is set to play after mpg number 1 (this is normally done by default on my version)

6. output file to CD image file recorder setting and then burn with your favourite burning proggy (burnatonce for me Freeware)

thats it!

told you it was basic
u need to make sure that your files are mpeg2 before using dvd2avi.

u might have been unlucky and have an mpeg2 file that has an mpeg1 header if you have downloaded this. (this is used in VCD header trick to let none-svcd playing dvd players play svcd)

and don'y give up m8

lol :wink:

cheers
KYUSS


All times are GMT -5. The time now is 11:06 AM  —  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.