Quantcast FFmpeg: FFvfw Settings to Create KDVDs and KVCDs - digitalFAQ.com Forums [Archives]
  #1  
02-03-2004, 03:16 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
First of all, if you don't have the KVCD "Notch" Matrix in ffvfw format, download it here: http://www.kvcd.net/kvcd-matrix-for-ffvfw.qmatrix

This first screenshot shows the settings to be used for making a KDVD:



This second screenshot is for making a KVCD:



All the following screenshots are common to both KVCD and KDVD.
Please note the field in red, which I left empty, so you fill in the correct value from the previous two screenshots, depending if you want to do a KVCD or a KDVD:







The following optional screenshots, are to insert noise into the encoding. Use it to enhance visual quality, if the material requires it:




To do file prediction, you change the values of "Min quantizer" and Max quantizer". The higher the value (up to 31), the lower the file size.

Enjoy,
-kwag
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-03-2004, 03:39 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Hi Kwag,
Just one question about GOP.
Since I live in PAL I should use GOP size 15 for KDVD and GOP size 24 for KVCD, right?
So, should I change my settings from "Minimux I Frame Interval 18" to 15 or I could just try it
with 18 since most standalones will still play it?
I mean, does it affect your KB/S calculations if I change it from 18 to 15?
Thanks, man.
I don't know what we would do without you around
__________________
Rui
Reply With Quote
  #3  
02-03-2004, 03:43 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rds_correia
Hi Kwag,
Just one question about GOP.
Since I live in PAL I should use GOP size 15 for KDVD and GOP size 24 for KVCD, right?
Yes. The settings are for NTSC, so make the appropiate changes.
Quote:
So, should I change my settings from "Minimux I Frame Interval 18" to 15 or I could just try it
with 18 since most standalones will still play it?
Change it.
Quote:
I mean, does it affect your KB/S calculations if I change it from 18 to 15?
No, I don't think so, but please try it, and then drag your mpeg over to bitrate viewer. You should see a VBV size of "20" for a KVCD and "112" for a KDVD.
Quote:
Thanks, man.
I don't know what we would do without you around


-kwag
Reply With Quote
  #4  
02-03-2004, 04:40 PM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
@Kwag
How did you discover that bitrate values are right I mean, they are like completly from outer space why not few bits less or more ?

And secondary, did you try postprocessing mode in ffdshow ? It produces a litle blured image, but it cuts file size of about 10%
__________________
Go for SECAM =)
Reply With Quote
  #5  
02-03-2004, 04:47 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag:
you advise to change the values of "Min quantizer" and Max quantizer" to adjust the final file size: the bigger the number, the smaller the file. Do we increase both numbers at the same time (2:2 change to 3:3 and then 4:4 etc)?. Or first the Min quantizer?. And, do we have to change I, P and B Min/Max quantizers at the same time, or first I,...?.
Sorry, maybe too obvious questions.

... and, YES, I completely agree with rds_correia... YOU THE MAN
Reply With Quote
  #6  
02-03-2004, 04:50 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
sorry, too late.
I read your answer in the loong thread, to change ALL quantizers at the same time.
Isn't it?. Make me know if understood you wrong.
Reply With Quote
  #7  
02-03-2004, 04:53 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Hydeus
@Kwag
How did you discover that bitrate values are right I mean, they are like completly from outer space why not few bits less or more ?
By accident
I was playing with the bitrate value, and I set it down to 1 by error, and when I started to encode, Vdub exploded. So I did a test with a value of about 32, and encoded a clip. Then I increased to 10000 and did another clip. After comparing the differences in bitrate viewer, I noticed the difference in VBV. So I did a simple math to scale the wanted VBV size, and BINGO, right on target
Quote:

And secondary, did you try postprocessing mode in ffdshow ? It produces a litle blured image, but it cuts file size of about 10%
Haven't tried it yet, but it would be about the same as using AviSynth, because most filters are already built-in.

-kwag
Reply With Quote
  #8  
02-03-2004, 04:54 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by digitall.doc
sorry, too late.
I read your answer in the loong thread, to change ALL quantizers at the same time.
Isn't it?. Make me know if understood you wrong.
You are correct
Change all values at the same time

-kwag
Reply With Quote
  #9  
02-03-2004, 05:09 PM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
You can actually go up to 48KB ( a VBV value of 24 for KVCDs and VCDs ) which should be optimal.
... so , any corrections to the bitrate value for KVCD?
I know that this is from parallel thread, but IMO it's related to this thread.
__________________
Go for SECAM =)
Reply With Quote
  #10  
02-03-2004, 05:13 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Hydeus
Quote:
Originally Posted by kwag
You can actually go up to 48KB ( a VBV value of 24 for KVCDs and VCDs ) which should be optimal.
... so , any corrections to the bitrate value for KVCD?
I know that this is from parallel thread, but IMO it's related to this thread.
I should have said "Optimal range"
The "Standard" value is 40KB, which diplays "20" in Bitrate Viewer.
So first try the values I posted, and tweak from 20 to 24 ( 40KB to 48KB ).

-kwag
Reply With Quote
  #11  
02-03-2004, 05:21 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
... sorry me if being too "asking", but I'm so excited with so fast improvements in this nice codec... anyway, I think, looking at the "visits" numbers of these threads, I'm not the only one excited around here .
My question: any recommendation about scripting?. Are we using MA script for KVCD?, also for KDVD, or just resize?. In the other thread we talked about using blockbuster instead ffdshow noise. Incredible recommended (for KDVD I think) this parameters:
Code:
Blockbuster(method="noise",detail_min=1,detail_max=20,variance=1.0,seed=4326)
And we have also talked about using DCT filter.
Maybe it's still to early to talk about scripting, when we are still trying to adjust the codec.
Reply With Quote
  #12  
02-03-2004, 05:25 PM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
The "Standard" value is 40KB, which diplays "20" in Bitrate Viewer.
So first try the values I posted, and tweak from 20 to 24 ( 40KB to 48KB ).
I'm lost, which values are you talking about?, where are we to set them?.
Reply With Quote
  #13  
02-03-2004, 05:27 PM
Hydeus Hydeus is offline
Free Member
 
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
For 24 set 1383 in bitrate. Do you agree Kwag? This is what BV displays. Is this affect a lot comlpiance with standalones ?
__________________
Go for SECAM =)
Reply With Quote
  #14  
02-03-2004, 05:27 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
So, should I change my settings from "Minimux I Frame Interval 18" to 15 or I could just try it
with 18 since most standalones will still play it?
Change it.
No, don't change, try !
I did all my KDVD till now with GOP=25 and all my three players play it very well.
Reply With Quote
  #15  
02-03-2004, 05:30 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by digitall.doc
Quote:
Originally Posted by kwag
The "Standard" value is 40KB, which diplays "20" in Bitrate Viewer.
So first try the values I posted, and tweak from 20 to 24 ( 40KB to 48KB ) for KVCDs or VCDs.
I'm lost, which values are you talking about?, where are we to set them?.
Look at the top of this thread, where the value of CBR is set to 1147, which creates a VBV size of 20 (40KB).
So if you want a value of 48KB, do this:

(1147 / 20) * 24 = 1376.4

So round it to 1376 and that will give you a new VBV buffer size of 48KB (displayed as 24 in BitRate Viewer)

-kwag
Reply With Quote
  #16  
02-03-2004, 05:43 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Wow, great kwag!

One question. If we change min. and max. quantization parameters at the same time, wouldn't that mean that each scene (slow and action) would be encoded with the exact same quantisizer?
Is that something we want? wouldn't it be way cooler to encode with a variable quantisizer? Just a thought...

btw: your samples actually speak for themselves. just curious though!
__________________
j3llyG0053
Reply With Quote
  #17  
02-03-2004, 05:56 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
Wow, great kwag!

One question. If we change min. and max. quantization parameters at the same time, wouldn't that mean that each scene (slow and action) would be encoded with the exact same quantisizer?
Is that something we want? wouldn't it be way cooler to encode with a variable quantisizer? Just a thought...
Actually we want to encode with constant quantization, variable bitrate ( or constant quality/variable bitrate, if you want to see it that way )
Quote:

btw: your samples actually speak for themselves. just curious though!


-kwag
Reply With Quote
  #18  
02-03-2004, 06:02 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
I definitly have a problem with this codec

All settings set as on the snapshots above (except for max quantizer in macrobloc that I can't change and is set to 31 and not 2 like on the snap).

My Q curve it like a saw blade ! Values vary constantly from 0 to 2. The picture is very bad compared to the same sample made with CCE (and the file size is exactly the same) : tiny mosquito noise around edges and lot blocks in dark scenes (even with noise in ffvfw or in the script).

BTW, the sample was 53sec for a 90 min movie that is 1% sample. The file size is 16 Mb. So the final movie will be 1.6 GB without audio. ONLY TWO 90 MIN MOVIE ON THE DVD !

I drop this codec since the "Q curve" shape is not solved.

If someone have an idea...
Reply With Quote
  #19  
02-03-2004, 06:08 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Phil,

Go to "Masking" option, and select "Luminance masking" and "Normalize adaptive quantization".
Now go back to "Quantization", and you can set Macroblocks to 2.
Then go back and deselect "Masking" options

-kwag
Reply With Quote
  #20  
02-03-2004, 06:12 PM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Will this affect filesize or quality??

Anerboda
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Any easy tutorials to create KVCDs? dinesh Video Encoding and Conversion 3 11-29-2005 02:12 AM
Settings in RB-OPT 0.17 Beta for my KDVDs? Zyphon Video Encoding and Conversion 30 07-12-2005 03:18 AM
CCE settings to create KDVDs? leo Video Encoding and Conversion 53 03-19-2004 09:01 PM
FFMPEG: My really good experience and settings with FFVFW marcellus Video Encoding and Conversion 37 02-09-2004 07:09 AM
FFMPEG: Do ffvfw and mencoder/ffmpeg give the same results? Razorblade2000 Video Encoding and Conversion 4 02-06-2004 04:23 PM

Thread Tools



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