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-15-2003 01:51 PM

@MrCoopz,

Thanks for being patient with getting an answer about GripFit.
I put together another avs script for you to try. It uses
SansGrip's RemoveBorders filter which replaces crop. I will
give you resize parms for KVCDx3 (528x480). Give this a
try and let me know if there are any problems. :)

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\RemoveBorders.dll")
LoadPlugin("C:\Avi Stuff\Gripfit\GripFit_Preview.dll")
avisource("D:\Films\Austin.Powers.In.Goldmember.DV L.Xvid.ShareReactor.avi")
#
LegalClip()
RemoveBorders()
BilinearResize(496,448) # <-- TV-overscan = 2 for 528x480
TemporalSmoother(1,2)
LegalClip()
#
#Sampler(length=24)



-black prince

:)

MrCoopz 01-15-2003 02:15 PM

I copied that exactly as u put above and got the same thing but on line 11 this time

SansGrip 01-15-2003 03:26 PM

Quote:

Originally Posted by MrCoopz
I copied that exactly as u put above and got the same thing but on line 11 this time

Ah hah... The exception occurs with both RemoveBorders and GripFit! That narrows it down a great deal, since they share code. Now if only I could get my hands on that clip of yours :). Wait, I have an idea...

black prince 01-15-2003 03:26 PM

@MrCoopz,

I have some questions:

1) What version of avisynth have you installed? If it's v2.06,
then install v2.07 and try again.

2) Will VirtualDub preview your Divx (avi) movie without any
problems?

Try commenting all lines in your script starting with LegalClip() to
Sampler(length=24) by putting # in front of each line. Try this
avs script with Tmpgenc and see if you get any errors. If not,
and you have installed avisynth v2.07, then SansGrip's GripFit
and RemoveBorders could have problems with codec mpeg-4.

Try the above suggestions and let me know what's happens. :D

-black prince

SansGrip 01-15-2003 03:29 PM

Nope, I can't duplicate the problem by using ColorBars(608, 256) either. I'm beginning to think there might be something wrong with that AVI, perhaps a corruption somewhere. Either that or you've got a messed up XViD codec that's causing a crash...

Try this:

GripFit(528, 480, overscan=2, samples=1)

Does it still crash?

black prince 01-15-2003 03:41 PM

@SansGrip,

I tested a Divx (avi) movie using codec Divx 5.0.2. I created a
avs script using GripFit and had no problems previewing this
movie in VirtualDub or Tmpgenc. I believe your right. The video
part of MrCoopz's avi is probably corrupt. I tested GripFit before
I wrote the Guide with very good results. MrCoopz should try
another Divx movie. :)

-black prince

MrCoopz 01-15-2003 04:09 PM

I think i told u all wrong, nothing Crashes

the only problem i have is with the line

GripFit( width=528, height=480, overscan=2)

or anything on with GripFit in the line

Its says

"Unrecognized Exeption"
"C\file.avs, line XX"

this is on the main screen and Preview screen in red what i open the script in Tmpgenc

MrCoopz 01-15-2003 04:16 PM

Ok u guys have sorted it

I put # in front of the things u said and when it loads i now get the Movie showing up :)

But now i can only encode the full movie and not a test file!!

black prince 01-15-2003 04:24 PM

@MrCoopz,

MrCoopz wrote:
Quote:

But now i can only encode the full movie and not a test file!!
That was to test and see if the Divx (avi) file was corrupt and
couldn't be read. I will create a script using FitCD from the
info in VirtualDub>File>File Information and post it for you
in a short time. It should work. Stay tuned..... :)

-black prince

MrCoopz 01-15-2003 04:46 PM

ok thanks

SansGrip 01-15-2003 06:29 PM

Quote:

Originally Posted by MrCoopz
I put # in front of the things u said and when it loads i now get the Movie showing up :)

Now what happens if you remove the # from the GripFit line?

black prince 01-15-2003 07:04 PM

@SansGrip,

Seems MrCoopz has multiple codec's installed. Xvid, Divx, avisynth 2.0x,
and more. He's now uninstalling them and reinstalling just Divx 5.0.2 and
avisynth 2.07. There must have been some conflicts with all these codecs.
When he's finished, he's going to try the avs script again. Let's see
if that makes a differance. If it's any comfort to you, I tested a Divx
movie with GripFit and there were no problems what's so every. :wink:

-black prince

MrCoopz 01-15-2003 07:16 PM

i just removed the # from the gripfit line and it was the same error for Austin Powers!

But i tried 2 different movies and they both worked fine!!

so i guess its Austin Powers thats causing the problem

black prince 01-15-2003 07:23 PM

@MrCoopz,

Thank goodness. You were driving me crazy :BangHead: Go back to
the Guide and check it for changes and updates. The more problems
you help me solve the easier it will be for others trying to use it.

Thanks

-black prince

MrCoopz 01-15-2003 07:33 PM

Theres no doubting i will get stuck again :)

oh and how do i know which template is the best to use?

black prince 01-15-2003 07:42 PM

@MrCoopx,

Read Getting Started in the Guide. I give suggestions on the best
resolutions and templates to pick. :)

-black prince

SansGrip 01-15-2003 08:23 PM

Quote:

Originally Posted by MrCoopz
i just removed the # from the gripfit line and it was the same error for Austin Powers!

Strange. I'd really like to get my hands on that clip. Can you sign up for free web space somewhere?

SansGrip 01-15-2003 08:24 PM

Quote:

Originally Posted by black prince
I tested a Divx
movie with GripFit and there were no problems what's so every. :wink:

I've tried a bunch of DivX and XViD movies and they all work fine. It sounds like something's messing up in the border-detection to me, which is why it fails with both GripFit and RemoveBorders (they share that part of the code).

MrCoopz 01-16-2003 07:41 AM

Sansgrip i have split the file into 3 parts 2 have been sent and ill send the other in a sec

And yet another question :)

which template would u recomend for a movie thats

1hr 50m
608 x 256
23fps

and good 1 cd quality:)?

and also is MPEG 2 better quality than MPEG 1??

SansGrip 01-16-2003 08:05 AM

Quote:

Originally Posted by MrCoopz
i have split the file into 3 parts 2 have been sent and ill send the other in a sec

Yep, I got all three parts, but I can't duplicate the exception on my system. This means short of emailing me the entire clip in 1mb RAR files there's not a lot I can do until I download a clip that has problems :(.

All I can suggest for now is to use the "old" way of doing it, i.e. with Crop, XxxResize and AddBorders.

Quote:

which template would u recomend for a movie thats

1hr 50m
608 x 256
23fps
In principle I would recommend 528x480 or 352x480 depending on how compressible the movie is. However, if that clip is representative of the entire movie then I'd say you're going to have some problems because there is serious chroma corruption on the clip you sent me. It looks like it's been encoded with an old version of XViD, which for me at least caused luminous greens and pinks and oranges to appear where they shouldn't.

If you look in particular at the cup on the table -- specifically at the straw -- you'll see what I'm talking about. If I were you I'd either make a DVD backup or try to find another encode of the same movie, perhaps on two discs because 1h50m is fairly long for one :).

MrCoopz 01-16-2003 08:10 AM

ive deleted Austin Powers now

The movie im talking about is 8 mile, could i get it onto 1 cd with good quality?

SansGrip 01-16-2003 08:20 AM

Quote:

Originally Posted by MrCoopz
The movie im talking about is 8 mile, could i get it onto 1 cd with good quality?

Probably -- it all depends on the quality of the source. I've not often had much luck with one-disc DivX/XViD movies, and always try to get the two-disc versions (or DVD) now, but you can certainly try it and see :).

kryne 01-16-2003 09:26 AM

i need some help, trying to encode a divx movie thats 640x272 and no matter what i try it wont let me keep it widescreen, if anyone could help it would be great

Bchteam 01-16-2003 09:46 AM

I created my First Script.So far so good.But when I load the Script into Tmpgenc I get a nice Error Message:

"...Script Error.there is no function named "GripFit"...

...(F:\Rips und Movies\script.avs,line9)..."

This my Script:

LoadPlugin("F:\Programme\AviSynth2\MPEG2DEC.dll")
LoadPlugin("F:\Programme\AviSynth2\LegalClip.dll")
LoadPlugin("F:\Programme\AviSynth2\FluxSmooth.dll" )
LoadPlugin("F:\Programme\AviSynth2\Sampler.dll")
LoadPlugin("F:\Programme\AviSynth2\RemoveBorders.d ll")
LoadPlugin("F:\Programme\AviSynth2\GripFit_preview .dll")
avisource("D:\Programme\Emule\Incoming\Movie.avi")
LegalClip()
GripFit( width=352, height=288, overscan=1)
FluxSmooth()
LegalClip()
#Sampler(length=24)

Can someone tell me what`s wrong???

kryne 01-16-2003 09:51 AM

GripFit( width=352, height=288, overscan=1)


ok i am new at all this but i noticed you have a space after gripfit( and i dont think there is sposed to be one, but as i said i am new to all this, so i could be wrong

Bchteam 01-16-2003 10:08 AM

I already tried it without a Space but the error message is still appearing

SansGrip 01-16-2003 11:01 AM

Quote:

Originally Posted by Bchteam
I already tried it without a Space but the error message is still appearing

You probably have the latest version (0.0c). I changed things around a little, so instead of what you're using, try this:

Code:

GripCrop(352, 288, overscan=1)
GripSize()

This does the same thing as the line you were using before.

MrCoopz 01-16-2003 11:34 AM

Quote:

KVCDPredictor is available and will do
these calculations for you, but you may need microsoft’s .NET and
avisynth 2.5 alpha. Check with SansGrip on this.
Sansgrip where can i get this?

Bchteam 01-16-2003 11:59 AM

THX SansGrip.Now GripFit is working

But there`s another Problem.

The Divx File has Subtitles but if GripFit is activated,the subtitles are gone.
If GripFit is deactivated the subtitles are visible.

What`s wrong now???

black prince 01-16-2003 12:01 PM

@MrCoopz,

KVCD_Predictor is here:

http://www.jungleweb.net/~sansgrip/K...dictor-0.2.zip

-black prince

MrCoopz 01-16-2003 12:20 PM

Y is it that when encoding in TmpGenc for about an Hour its says 5 hours leftthen it starts going up and up.

Do i need to set the priority in taskmanager to realtime or high or just leave it?

SansGrip 01-16-2003 12:34 PM

Quote:

Originally Posted by Bchteam
The Divx File has Subtitles but if GripFit is activated,the subtitles are gone.

It must be cropping too much from the bottom of the frame. I'm working right now on an improved cropping algorithm and will probably have a new version out today or tomorrow.

kwag 01-16-2003 12:44 PM

Quote:

Originally Posted by Bchteam

The Divx File has Subtitles but if GripFit is activated,the subtitles are gone.
If GripFit is deactivated the subtitles are visible.

That's probably because the DivX is putting the subtitles on the black area. If you encode from a .d2v (DVD), that won't happen. Here's the way my .avs is set for encoding with subtitles, and subtitles look fine:

Code:


Mpeg2Source("K:\THE_LAST_CASTLE\VIDEO_TS\castle.d2v")

LegalClip()
GripCrop( width=528, height=480, overscan=2 )
vobsub("K:\THE_LAST_CASTLE\VTS_01_0")
FaeryDust()
Convolution3D(preset="movieLQ")
GripSize()
GripBorders()
LegalClip()

-kwag

Bchteam 01-16-2003 01:13 PM

Yes Kwag,You`re right.

The Subtitles are in the Black Area.

Do I have to wait until SansGrip is done with his work or is there another possibility to make it work`???

SansGrip 01-16-2003 01:40 PM

Quote:

Originally Posted by Bchteam
The Subtitles are in the Black Area.

Before I make the next preview release I'll allow the specification of custom crop values so that situations like this can be handled gracefully.

rendalunit 01-16-2003 04:56 PM

hey great guide black prince!

ok while we're all sharing our divx -> mpeg problems, I have one that's driving me nuts :ohplease:

I got a divx 5.0.2 movie with vbr .mp3 audio in two files. I load the first into VDubMod and append the second one. Then with audio-full processing mode save .wav. Encode audio with HeadAC3he to .mp2 and encode video, mux with BBMpeg and everytime the audio starts ahead of the video by 12 seconds. When I check the time of the video and audio they're exactly the same. If I add a 12 second delay to the beginning of the audio than the audio time will be longer than the video. :?: :?:

what am I doing wrong?
Thanks,
ren

SansGrip 01-16-2003 05:05 PM

Quote:

Originally Posted by rendalunit
I have one that's driving me nuts :ohplease:

You could try:

Code:

AviSource("part1.avi") + AviSource("part2.avi")
EnsureVBRMP3Sync()

Load that into VDub and do a full processing WAV save. If that doesn't work, I'd say do a direct stream copy and use something like Goldwave to save it uncompressed. You never know :).

MrCoopz 01-16-2003 06:20 PM

Black Prince u are a god, thanks alot for doin this guide i cant wait for the MPEG 2 one :)

And all the other guys that helped thanks this must be the most friendly board ever!

And not forgeting the Great minds behind the KVCD templates. I have never honestly seen a VCD with this quality on 1 CD and i still had 60meg to spare!!!!!

Ok thats not a leaving speech :) i have a few more questions.

1. After i burned the VCD i played it in my player and it has borders :(, Now, nearly all of the DivX's i have are in widescreen so my question is how do i get rid of the borders but keep the Excellent quality?.

2. How do i make the sound come out of all my 5 speakers instead of just the centre one?

3. Finally the sound is quite low is there anyway to make it higher?

Thanks again guys :)

SansGrip 01-16-2003 06:26 PM

Quote:

Originally Posted by MrCoopz
1. After i burned the VCD i played it in my player and it has borders :(

Do you mean top and bottom, or left and right?

Quote:

2. How do i make the sound come out of all my 5 speakers instead of just the centre one?
If you use HeadAC3he and your source material is AC3, make sure you select the "Surround 2" downmix mode. When you play the disc, put your receiver into Pro Logic II mode (if you have it, regular Pro Logic if you don't).

Quote:

3. Finally the sound is quite low is there anyway to make it higher?
When you encode the audio in HeadAC3he check the "2-pass mode" box and it'll normalize the sound as it encodes.

MrCoopz 01-16-2003 06:36 PM

thanks for the quick response

it has borders at the top and bottom.

and i just looked at the audio info of the original divX and it says Channels 2 (stereo) so does this mean i cant do it?

Oh and the 2 pass box iis already checked


All times are GMT -5. The time now is 06:54 AM  —  vBulletin © Jelsoft Enterprises Ltd

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