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)

SansGrip 01-16-2003 07:35 PM

Quote:

Originally Posted by MrCoopz
it has borders at the top and bottom.

The borders top and bottom are your friends. The bigger the borders, the better quality the video in the middle. Ideally you'd want just a black screen :mrgreen:.

You can convert widescreen to fullscreen, but not only does the CQ level drop dramatically, you'll also be missing big chunks of the movie left and right.

Quote:

and i just looked at the audio info of the original divX and it says Channels 2 (stereo)
If the AVI isn't AC3 5.1 then you're pretty much at the mercy of whomever encoded the AVI's audio. I always try to find AC3 5.1 versions so that I know the audio hasn't been messed with.

Quote:

Oh and the 2 pass box iis already checked
If it's already normalized to 100% then there must be a very loud part of the movie that's confusing it. You'll just have to jack up the volume on the receiver :).

black prince 01-16-2003 08:33 PM

@MrCoopz,

MrCoopz wrote:
Quote:

Black Prince u are a god, thanks alot for doin this guide i cant wait for the MPEG 2 one
The other guys are closer to that than I am (Kwag, SansGrip). I just
throw up a basic guide with the latest improvements in KVCD. :)
Thanks for the compliment from all of us. :D I want to wait until
others who use this Guide find it easy to get throught and then move
on to a another guide. Suggestions for the next guide are welcome. :)

-black prince

Reno 01-16-2003 11:03 PM

@Mr. Coops,

Try opening the Avi in Goldwave. It will uncompress into a godawful big .wav. Use the 'volume adjust on the .wav (I know, it takes three weeks). Then save the .wav (another three weeks), and toss THAT into Headac3he for conversion. Hope that helps.

MrCoopz 01-17-2003 02:47 AM

Thanks Reno ill give it a go

Sansgrip what settings do i need in TmpGenc and in my Script to make a movie full screen, i wanna do a little test file to see the quality :)

logan555 01-17-2003 04:45 AM

Can't Find Gripfit
 
I can't get the new filters gripfit. I tried the address
http://www.jungleweb.net/~sansgrip/G...eview_0.0c.zip but I get an error message that the file is no longe there or has been removed.
Help please!

Fiz 01-17-2003 04:49 AM

try this url

http://www.jungleweb.net/~sansgrip/G...eview_0.0c.zip

I just downloaded it fine.

rendalunit 01-17-2003 11:56 AM

Quote:

Originally Posted by SansGrip
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

I ended up converting each Divx to Huffy avi and extracted the audio from that.

Thanks,
ren

jorel 01-19-2003 03:45 AM

@ black prince:

8O really impressive .......fantastic tutorial. 8O

and extra new....extreme details....never see this before in other place! 8)

seems.....
:encore: :hopline: :ole: :tup: :book: :bigooh: 8O :wink:

and..... 8O 8O 8O too!

and the best (for me):learn how to make an avs script 8)
out of dvd2svcd.
:D

ps:
to help(us):
when update something in the first page,please put the date :wink:
then we find what's new in the tutor.
thanks!

black prince 01-19-2003 12:11 PM

@All,

Here's a spreadsheet (Thanks to Gaudi) to calculate file size.
Please give me some feedback about whether to include it in
the Guide to convert Divx (avi) to KVCD.

File Prediction

…………………......A..........................B…………………………………
..1..Inputs…………………………………………………………………
..2……………………………………………………………………………….
..3 No. of CD’s.............................1…………………………………….
..4..Audio File Size.......................99,000,000…………………………
..5..Totals Frames........................152,255…………………………….
..6..Test Frames...........................2,544………………………………
..7..Movie Length (seconds).........6350…………………………….…
..8..Test File Size..........................24,053,987…………………………
..9..Current CQ............................100…………………………………
.10…………………………………………………………………………………
.11..Results……………………………………………………………………….
.12………………………………………………………………………………...
.13..CD.File.Size............................=813, 019,155.*.B3………………...
.14..Factor.....................................=@ Round(( B5 / ( B7 / 60 ) / 24,2)
.15..Target File Size.......................=@Round((( B13 – B4 ) / B5 ) * B6,2)
.16..New CQ..................................=@Round(( B15 / B8 ) * B9,2)……..
.17..Diff %.....................................=@Round(( B15 – B8 ) / B15,2)…….
.18..Corrected CQ..........................=@Round(( B9 + B16 ) / 2,2)……….

Enter data in Inputs. Results will give you the calculations. Use Corrected
CQ for your next test. If Diff % is ~3% or less, you have come close to your
Target File Size. If Corrected CQ is greater than 100, than use 100 the limit of
Tmpgenc. Row 17 Diff % is format percentage, 2 decimal places. The other
rows are format numeric with 2 decimal places. :)


-black prince

MrCoopz 01-19-2003 12:53 PM

Is there any other way to extract the Audio?

Vdub is having problems with one of my DivX's

Reno 01-19-2003 01:04 PM

The Goldwave trick didn't work?? Hmmm... :?

Is the file size for your .wav unusually small ~240mb??

Gaudi 01-19-2003 02:17 PM

Quote:

Originally Posted by Reno
The Goldwave trick didn't work?? Hmmm...

Is the file size for your .wav unusually small ~240mb??

Check out the following:
  • 1. Extract the audio from both .avi with VirtualDub, using Direct Stream Copy. Rename the files like part1.mpa and part2.mpa.
    2. Use madplay to convert them to two wav files (say part1.wav and part2.wav).
    Use it like: "C:\Your path here\madplay.exe" part1.mpa -v -o part1.wav
    3. Use Goldwave to join both files into a movie.wav file.
    4. Encode video as suggested by SansGrip (AviSource("part1.avi") + AviSource("part2.avi") ).
    5. Encode audio using BeSweet of Headac3he.
    6. Multiplex video and encoded audio.

Hope it helps.


Gaudi

Gaudi 01-19-2003 02:32 PM

To black prince:
Here are some comments on the Spreadsheet:

Quote:

..4..Audio File Size.......................99,000,000
  • As the number of seconds in the movie is known, I would prefer to calculate Audio size based on the bitrate. We can avoid then the step of calculating the audio size from Headac3he.

Quote:

7..Movie Length (seconds).........6350
  • I would alse here calculate the movie length based on the Total Frames and the FPS. This way is better, at least for me because I am using the AssumeFPS filter in Avisynth to encode PAL movies in NTSC.
    The info on FPS is also given by GSpot or VirtualDub.

Quote:

13..CD.File.Size............................=813,0 19,155.*.B3
  • How about this number, converted to mb it gives me around 775 mb. I have positively burned 809 mb into a 80 min CD. Could you confirm that?
    I think it would be better to work all filesizes in mb.

Quote:

.16..New CQ..................................=@Round(( B15 / B8 ) * B9,2)
.17..Diff %.....................................=@Round(( B15 – B8 ) / B15,2)
.18..Corrected CQ..........................=@Round(( B9 + B16 ) / 2,2)
  • I would indicate that the CQ value in row 16 is the suggested new CQ value for CQ_VBR, while the so called "Corrected CQ" is used for CQ.

That is all, as far as I can see.

Gaudi

black prince 01-19-2003 02:51 PM

@Gaudi,

Quote:

As the number of seconds in the movie is known, I would prefer to calculate Audio size based on the bitrate. We can avoid then the step of calculating the audio size from Headac3he.
I encode the Audio using Headac3he and use the actual audio file size.
I use to calculate the audio as you are doing, but it was not accurate and
only approximate.

Quote:

I would alse here calculate the movie length based on the Total Frames and the FPS. This way is better, at least for me because I am using the AssumeFPS filter in Avisynth to encode PAL movies in NTSC.
The info on FPS is also given by GSpot or VirtualDub.
Quote:

How about this number, converted to mb it gives me around 775 mb. I have positively burned 809 mb into a 80 min CD. Could you confirm that?
I think it would be better to work all filesizes in mb.
This is from SansGrip's method for manual calculations which I found
to be more accurate.

Quote:

I would indicate that the CQ value in row 16 is the suggested new CQ value for CQ_VBR, while the so called "Corrected CQ" is used for CQ.
Good Suggestion. I know what it means, but others might get confused :wink:
Thanks for your feedback. This makes the next Guide better and more
accurate. :D

-black prince

black prince 01-19-2003 02:57 PM

@MrCoopz,

If VirtualDub is giving you trouble, try AVI2WAV:

http://www.geocities.com/agrgic.geo/avi2wav.htm

-black prince

SansGrip 01-19-2003 03:49 PM

Quote:

How about this number, converted to mb it gives me around 775 mb. I have positively burned 809 mb into a 80 min CD. Could you confirm that?
That figure is the maximum number of bytes available on an 80-min disc when you compensate for VCD overhead and the system stream.

Perfect Cell 01-20-2003 05:27 AM

Kwag΄s Notch Beta 1
 
Hi people! :D

First of all, thanks for all your help. This is my first post, but I was "leeching" the info from the board by months, but now I have a question I don΄t see answered in other posts.

Black Prince put the Kwag΄s Notch Beta-1 Q-matrix, and said to put this in the TMPGenc matrix. I get the templates from the site, but I see the q-matrix from the templates are different in some values.

What I have to do? I have to change the values from the templates to match the values Black Prince put in his faq ( thanks for your help, your faq is great ! ) or I continue using the values I already have from the templates Kwag΄s put in the site?

Thanks in advance for all your help, an a special thanks for Kwag and Sansgrip, without you we can΄t put so much time in a single CD.

black prince 01-20-2003 06:24 AM

@Perfect Cell,

The Q-Matrix Notch (Beta-1a) is the latest optimized matrix and should
be used with the new GOP 1-24-2-1-24. You'll get a better picture with
improved compression (decrease in file size) using this Q-Matrix. :)

-black prince

nicksteel 01-21-2003 09:02 AM

Quote:

Originally Posted by black prince
@Perfect Cell,

The Q-Matrix Notch (Beta-1a) is the latest optimized matrix and should
be used with the new GOP 1-24-2-1-24. You'll get a better picture with
improved compression (decrease in file size) using this Q-Matrix. :)

-black prince

:?: Should I be using this with KVCDx3?

black prince 01-21-2003 09:45 AM

@Nicksteel,

Quote:

Should I be using this with KVCDx3?
Yep!! :)

-black prince

nicksteel 01-21-2003 10:05 AM

Is the matrix already in the latest KVCDx3MPEG1?

kwag 01-21-2003 12:54 PM

Quote:

Originally Posted by nicksteel
Is the matrix already in the latest KVCDx3MPEG1?

Yep :D. It's in ALL the templates :wink:

-kwag

timstumbo 01-21-2003 04:47 PM

something is wrong..
 
when i output the video and try play it is a black screen with red letters that says .. LegalCLip: Source must be YUY2 Line 8 in my .avs file? any idea

kwag 01-21-2003 04:50 PM

Re: something is wrong..
 
Quote:

Originally Posted by timstumbo
when i output the video and try play it is a black screen with red letters that says .. LegalCLip: Source must be YUY2 Line 8 in my .avs file? any idea

In the line right after you load the .d2v file, insert this:

ConvertToYUY2()

-kwag

SansGrip 01-21-2003 04:50 PM

Re: something is wrong..
 
Quote:

Originally Posted by timstumbo
when i output the video and try play it is a black screen with red letters that says .. LegalCLip: Source must be YUY2 Line 8 in my .avs file? any idea

Put ConvertToYUY2() immediately before the first LegalClip.

kwag 01-21-2003 04:50 PM

:mrgreen: :mrgreen:

SansGrip 01-21-2003 04:51 PM

heheheheh sheesh

timstumbo 01-21-2003 06:07 PM

what would be best? converting DivX to XVCD ?
 
here are the movies properties...

Image

Width- 640 pixels
Height - 272 pixels

Audio

Duration- 1:41:48
Bit Rate- 130kbps
Audio format- MPEG Layer-3

Video
Frame rate- 23 frames/second
Data rate- 117kbps
video sample size- 24 bit
Video compression- DIVXMPG4 V3

I have been trying to convert this video for awhile now but can't seem to get it just how i would like it. I want the best possible quality i can get and i don't mind using 2 cds. Anyone know what template would work best for the best quality? If anyone can help me out... please do. Thanks

timstumbo 01-21-2003 06:12 PM

template
 
I heard something about a 2 CD DvD quality template.. which one is this.. and is there any specific instructions on using this template rather than an other?

logan555 01-22-2003 02:09 AM

Block whit Gripfit
 
I tried to convert a Divx ( Mulan) to kvcd.

The original Divx is Divx 3 Low Motion 576 * 320 25 fps

I want it in kvcdx3 full ( 544 x 576)

I used the following avs script :

LoadPlugin("E:\video\filtri\MPEG2DEC.dll")
LoadPlugin("E:\video\filtri\LegalClip.dll")
LoadPlugin("E:\video\filtri\Blockbuster.dll")
LoadPlugin("E:\video\filtri\FluxSmooth.dll")
LoadPlugin("E:\video\filtri\Sampler.dll")
LoadPlugin("E:\video\filtri\GripFit_Preview.dll")
AviSource("E:\video\divx\[DivX - ITA] Mulan.avi")
ConvertToYUY2()
LegalClip()
GripCrop(544, 576, overscan=1)
GripSize()
FluxSmooth()
LegalClip()
#Sampler(length=25)

During the preview in tmpgenc and in the final ecoded mpeg movie I get the big area surface of same color or shaded color whit a lot of block.

If I use directly avi from tmpeg whitout avisynth I don't get the block.

So I tried this script

LoadPlugin("E:\video\Prog\DVD2SVCD\MPEG2Dec\MPEG2D EC2.dll")
LoadPlugin("E:\video\filtri\Sampler.dll")
AviSource("E:\video\divx\[DivX - ITA] Mulan.avi")
BicubicResize(544,448,0,0.6,12,0,552,320)
AddBorders(0,64,0,64)
#sampler(length=25)

and it works in tmpgenc whitout block.

Is something wrong whit the filters that I get that's Block?

I have to admit that usually I converted all my divx in kvcd whit the script that came from fitcd, so no filters at all ( except resize).

Thank for any answer.

By the way : Very good work!!!!

Simpleton 01-23-2003 01:37 AM

Argh
 
Hey
I am new here, but have been lookin around here for awhile.
I tried the plus template and everytime I did it came to well over a gig.
So I found this guide. Very easy to figure out but I have a problem here is my script.
LoadPlugin("C:\Encoders\MPEG2DEC\MPEG2DEC.dll")
LoadPlugin("C:\Encoders\MPEG2DEC\fluxsmooth.dll")
LoadPlugin("C:\Encoders\MPEG2DEC\blockbuster.dll")
LoadPlugin("C:\Encoders\MPEG2DEC\legalclip.dll")
LoadPlugin("C:\Encoders\MPEG2DEC\sampler.dll")

AviSource("C:\Encoders\films\VampireHunterDBloodlu st.avi")
LegalClip()
AssumeFrameBased.SeparateFields
BilinearResize(336,96,33,0,398,128).Weave
TemporalSmoother(2,2)
FluxSmooth()
Blockbuster(method="noise", variance=.5, seed=1)
Blockbuster(method="sharpen", detail_min=20, detail_max=90, strength=20)
AddBorders(8,24,8,24)
LegalClip()

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

This is actually my 25th script and everytime I load it in to Tempenc I just get a black screen, go to preview black screen, go to encode black screen through the whole encode. Plus it says my encode time is under an hr. When ever I have done it in the past it has usually been more then 3 hrs.
I can not make it work no matter how hard I try.
Also I tried adding gripfit and got nothing different.
My head is starting to hurt from slamming it in to the desk. I have even tried many different movies. Can't get it. humph.
Any help would be appreciated.
Thanks
Craig

kwag 01-23-2003 08:57 AM

Hi Craig,

You probably need another DivX or XviD CODEC.

-kwag

nicksteel 01-23-2003 09:07 AM

Please suggest one.

kwag 01-23-2003 09:18 AM

Try installing the XviD CODEC. Get it here: http://roeder.goe.net/~koepi/xvid.shtml

-kwag

new_bee 01-23-2003 09:21 AM

Or download ffdshow from doom9.org - it gives you many options to choose (realtime-filters like add noise, sharpen, blur...)

Simpleton 01-23-2003 11:01 AM

Xvid Never thought to check. LOL
 
I will try that codec when I get home, at work right now.
I have ffdshow on my comp it installed with some program have no idea which one now. I also have no idea how to use ffdshow.
As far as I know I only have divx 5.0. the newest one!
Maybe your right about the codec thing.
But wouldn't it be strange that I can watch it and on all my software video player and I can encode it regularlly (is that even a word lol.).
So as far as you can tell my script is okay? Whew. Is there anything I should add because I am encoding anime?
I plan on adding mssharpen.dll and dup.dll.
Anybody here if they work really well, they look awesome from the pics.
Thanks for your great fast answer you guys are awesome.
Craig

rendalunit 01-23-2003 11:42 AM

Quote:

Originally Posted by Simpleton
So as far as you can tell my script is okay?

Have you tried it without AssumeFrameBased?
Try this script:
Code:

AviSource("C:\Encoders\films\VampireHunterDBloodlust.avi")
LegalClip()
BilinearResize(336,96,33,0,398,128)

#TemporalSmoother(2,2)
#FluxSmooth()
#Blockbuster(method="noise", variance=0.5, seed=1)
#Blockbuster(method="sharpen",  detail_max=90, strength=20)

AddBorders(8,24,8,24)
LegalClip()

If it works then you can uncomment the other filters

Simpleton 01-23-2003 12:52 PM

Yes I have tried it without the assume framed base. I did originally try the one at the start of this thread. And still all I saw was black.
But I will try your script to see what happens. 8)
I was wondering are all mpeg2dec.dll 's the same? To find mine I just went to google and type it in and grabbed the first one I saw. Is it possible I have the wrong one, and where can I get the one that you guys all use? I maybe just blind is all.
Thanks for the reply

Craig

rendalunit 01-23-2003 02:01 PM

You can get MPEG2DEC from doom9.org>downloads>support utilities or you can find it in the DVD2SVCD bundle. There's also MPEG2DEC2 and MPEG2DEC3 but not sure where the links are (maybe check Doom9's Avisynth forum)

DaDe 01-23-2003 09:19 PM

Hi teachers!

I have a question for you, how can i convert an avi with 25fps to a 23.976fps???

I haven't tried nothing yet but i think that the usal steps will not work and will give me some kind of desyncronization, so i hope anybody can help me :?

Thanks a lot!

DaDe.


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