Quantcast DVD2SVCD: ini Files to use KVCD_LBR Parameters for Dvd2s(K)VCD - Page 2 - digitalFAQ.com Forums [Archives]
  #21  
10-25-2002, 03:50 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
wonder-full
Thanks again Kwag,
i try to encode 2 films now.

i thing that dvd2s(K)vcd is a new revolution in vcds!
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
  #22  
10-25-2002, 08:33 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Kwag,

I saw this post on Doom9 to DVD2SVCD.

Kwag wrote:
Quote:
kwag
Member

Registered: Mar 2002
Location:
Posts: 43

CQ modes now predicted to ~1--2% final file size
If anyone cares about using CQ, CQ_VBR modes for encoding instead of multi-pass VBR, now you can predict the file size down to 1%-2%, without having to do multi pass encoding.
Here's a FitCD version modified with the file prediction formula: http://ns1.shidima.com/kwag/FitCD_v105_prediction.zip
Discussion thread here: http://www.kvcd.net/forum/viewtopic.php?t=1294

Basically this is what's added to the end of an AviSynth script:

###--------------------- Start Of File Size Prediction ----------------------###

IL = Framecount / 100 # interval length in frames
SL = round(Framerate) # sample length in frames
SelectRangeEvery(IL,SL)
## MPEG size = ((Total frames/Framerate)/100) * (MPEG sample file size * .95) ##

###------------------------End File Size Prediction--------------------------###

Use the formula: MPEG size = ((Total frames/Framerate)/100) * (MPEG sample file size * .95)

@DVD2SVCD,
Would be nice if you could integrate this method for CQ encoding into DVD2SVCD, as the results are more accurate than the current method being used.

Thanks,
-kwag


Last edited by kwag on 17th October 2002 at 04:32
I am going to stop my effort to automate D2K using "Autoit" and hope
D2S includes your algo for file size estimates. If D2S has a routine
similar to FitCD, WOW , this is the best of all worlds. Tried the
beta version of D2S and it's good, but not yet as good as manual.
Just think, a routine that creates the highest quality video and audio
to fill 1 or 2 Cd's and all while you sleep. That's heaven!!!

-black prince
Reply With Quote
  #23  
10-25-2002, 10:15 AM
acidfire acidfire is offline
Free Member
 
Join Date: Jul 2002
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
I had one problem when I ran dvd2svcd last night,and hope someone can help. Dvd2svcd did what it dose but when it got to tmpg and started to encode an error message poped up (illegal decimal point) or (illegal floating point) one or the other. Sorry forget which one it was and I'm not at my computer. Any help would be great. Thanks for the help.
Reply With Quote
  #24  
10-25-2002, 01:15 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Kwag,

I encoded Monsters Inc using DVD2S(K)VCD and manually for LBR.
I have two questions:

1) The avs script generated by D2S shows a bilinearResize(352,180)
with AddBorders(0,30,0,30) and FitCD shows BilinearResize
(336,224,0,0,704,480) with AddBorders(8,8,8,8 ). I overrode the
D2S script with FitCD's but the picture still came out squashed.

2) The CQ_VBR calculated by D2S was 30. The manual file size
prediction allowed me to use 55. The picture quality for the manual
process was excellent, where as D2S's was acceptable. Is this due
to D2S's calculations? Is there a way to temporarialy override this?

The process is very easy compared to manual. It should be very
close to manual if the above problems can be solved. It sure would
be nice to incorporate FitCD into D2S.

-black prince
Reply With Quote
  #25  
10-25-2002, 02:40 PM
Canman Canman is offline
Free Member
 
Join Date: Oct 2002
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
dvd2svcd just released RC3 on doom9's forum, it has the algorithm used created by kwag/shh.

Oh, and btw, to calculate a close CQ value use this formula:

Code:
NewCQValue = UsedCQValue + ((((WantedSize - KwagPredictedSize) / WantedSize) * UsedCQValue)*0.6)

Or broken down:

CQFactor = (WantedSize - KwagPredictedSize) / WantedSize
DiffCQ = UsedCQValue * CQFactor * 0.6
NewCQValue = UsedCQValue+DiffCQ
That should get you pretty close to the right CQValue after just one run.
Reply With Quote
  #26  
10-25-2002, 03:29 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
Thanks for that formula Canman,

I'll have to try that. Not sure how accurate it can be, because CQ_VBR vs. file size in TMPEG doesn't work on a linear scale. At least with the KVCD Q. Matrix. It behaves rather strangely

-kwag
Reply With Quote
  #27  
10-26-2002, 09:23 AM
NYPlayer NYPlayer is offline
Free Member
 
Join Date: Apr 2002
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag,

Chapters are working make sure titled picture is unchecked and dvd chapters is checked.

Also very important on the bitrate tab change all the cd sizes to 795. By adding chapters you are adding xml and other things so the file size will increase.
Reply With Quote
  #28  
10-26-2002, 10:06 AM
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 NYPlayer
Kwag,

Chapters are working make sure titled picture is unchecked and dvd chapters is checked.

Also very important on the bitrate tab change all the cd sizes to 795. By adding chapters you are adding xml and other things so the file size will increase.
That is the way I've done, and with any option I try, I still don't get chapters. Look at the dvd2svcd chapters file.ini:

[CHAPTERS]
Chapter0001=0
Chapter0002=1
Chapter0003=1
Chapter0004=1
Chapter0005=1
Chapter0006=1
Chapter0007=1
Chapter0008=1
Chapter0009=1
Chapter0010=1
Chapter0011=1
Chapter0012=1
Chapter0013=1
Chapter0014=1
Chapter0015=1

And that's with any PBC Type. Same problem on another machine. Tried the same DVD. All in Windows Xp Prof.

Only that I have CD size set to 800. I'll try now to set it at 795.

-kwag
Reply With Quote
  #29  
10-26-2002, 10:30 AM
NYPlayer NYPlayer is offline
Free Member
 
Join Date: Apr 2002
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag you are 100% correct I encoded Scoopy Doo chapters worked. I just completed Saturday Night fever the chapters did not work.
I did get a Perfect file size 800,310 and great picture.

GENERAL INFO
- Source: DVD (NTSC)
- Movie Offset: 2 sec
- CD Overlap seconds: No
- Startup delays: Video: 344 ms Audio 1: 344 msAudio 2: 344 ms
- Video format: NTSC
- Length: 01:58:57
- CD Images:
VIDEO INFO:
- Encoder: TMPGEnc 2.58.44.152
- Rate Control Mode: Automatic variable bitrate (CQ_VBR)
- Max. bitrate: 1150
- CQ Value 25.60
- Min. bitrate: 128
- Motion search prec.: Motion estimate search (fast)
- Field order: No
- DC component prec.: 8 bits
- Output YUV as YCbCr: No
- Floating point DCT: Yes
- No motion search: False
- Soften block noise: No
- iDCT Algorithm: 32-bit SSE MMX
- NTSC Field Operation: Force Film On
- Deinterlace: None
- Pulldown: Yes, TMPGEnc internal
- Width: 352
- Height: 240
- Matrix:
Intra:
8 16 19 22 26 27 29 34
16 19 22 26 27 29 34 37
19 22 26 27 29 34 37 38
22 26 27 31 36 37 38 40
26 27 29 36 39 38 40 48
27 29 34 37 38 40 48 58
29 34 37 38 40 48 58 69
34 37 38 40 48 58 69 79
Non-Intra:
16 18 20 22 24 26 28 30
18 20 22 24 26 28 30 32
20 22 24 26 28 30 32 34
22 24 26 30 32 32 34 36
24 26 28 32 34 34 36 38
26 28 30 32 34 36 38 40
28 30 32 34 36 38 42 42
30 32 34 36 38 40 42 44


AVISYNTH SCRIPT:
LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\mpeg2dec .dll")
mpeg2source("c:\film\Source\DVD2AV~1.D2V")
LoadPlugin("C:\Documents and Settings\Edwin Perez\Desktop\VCD AVI ETC\UnFilter\UnFilter.dll")
Unfilter(5,5)
BilinearResize(352,180)
AddBorders(0,30,0,30)


AUDIO INFO:
- Audiostreams: 1
- Audio 1 Language: English
- Audio 1 Bitrate: 128
- Audio 1 Sample freq: 44100
- Audio 1 Mode: Stereo
Reply With Quote
  #30  
10-26-2002, 11:18 AM
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
Just tried again, but this time I did a "Use frame selection" and selecting the complete picture. Still same effect. First chapters points to 0, and all others to 1 .
I wish I had a PAL DVD, because I think that the problem is NTSC related. Not so sure, but if PAL people are getting chapters, then what else

-kwag
Reply With Quote
  #31  
10-26-2002, 11:42 AM
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
I just modified the format on ChapterXtractor to display the chapter information the way DVD2SVCD's chapters ini file is supposed to be. What I'll do now is when the chapters ini file is created, I'll edit the file and paste the correct information, and see if when DVD2SVCD creates the .bin/.cue files, everything is the way it's supposed to be. My ChapterXtractor modified format now creates this:

[CHAPTERS]
Chapter0001=0
Chapter0002=5933
Chapter0003=13183
Chapter0004=24939
Chapter0005=33389
Chapter0006=40324
Chapter0007=50142
Chapter0008=61173
Chapter0009=67752
Chapter0010=77014
Chapter0011=82935
Chapter0012=93986
Chapter0013=103034
Chapter0014=117191

Which is what DVD2SVCD should send to VCDXBuild to create the correct entry points when the image is built. I'll post here as soon as the process is done. About 2 more hours to go.

-kwag
Reply With Quote
  #32  
10-27-2002, 04:18 AM
Canman Canman is offline
Free Member
 
Join Date: Oct 2002
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Thanks for that formula Canman,

I'll have to try that. Not sure how accurate it can be, because CQ_VBR vs. file size in TMPEG doesn't work on a linear scale. At least with the KVCD Q. Matrix. It behaves rather strangely

-kwag
You're right of course, my formula only works ok when using CQ, not CQ_VBR.
Reply With Quote
  #33  
11-11-2002, 07:42 PM
Freetza Freetza is offline
Free Member
 
Join Date: Apr 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Kwag, I used dvd2svcd with your lib file on a 92 minute movie and it came out great! Then I used it to encode an 84 minute movie and for some reason, it cut it into two files, the second only being 17 megs. I didn't change any settings and the bitrate tab says use 1 cd all the way down. Is this because it predicted the wrong file size? Any help is greatly appreciated! Thanks!
Mike
Reply With Quote
  #34  
11-11-2002, 07:55 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 Freetza,

Check that you have the latest DVD2SVCD 1.1.0 Build 1, and change the "Factor" to 0.95 under the "Encoder" tab .

-kwag
Reply With Quote
  #35  
11-11-2002, 08:02 PM
Freetza Freetza is offline
Free Member
 
Join Date: Apr 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
I have the right version, but I'll try turning down the prediction factor, thanks for the super fast response!
Mike
Reply With Quote
  #36  
11-24-2002, 10:06 PM
mrj03 mrj03 is offline
Free Member
 
Join Date: Nov 2002
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel
"i do this" with the ini file and get more sharpness with Unfilter.dll
(unfilter can be found in doom9)

the result image is nice.....

__________________________________________________

[AVISYNTH_BilinearResize with Unfilter by jorel]
0=LoadPlugin(!Unfilter.dll)
1=Unfilter(^x_value,^y_value)
2=BilinearResize(^TargetWidth,^TargetHeight)
3=AddBorders(0,^BorderTop,0,^BorderBottom)
!Unfilter.dll=C:\Arquivos de programas\DVD2SVCD110b1rc1\UnFilter\UnFilter.dll
^x_value=50
^y_value=50
__________________________________________________ _

ps: "by jorel" is only named.....not maked.
try to use it in a simple chapter and see the quality.....
more information about Unfilter in doom9!

I can't find the UnFilter.dll on Doom9. Could you please reply with the link
to that file so i can download it.....thanks....
Reply With Quote
  #37  
11-24-2002, 10:25 PM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
Try here
http://www.trbarry.com/UnFilter.zip
Reply With Quote
  #38  
11-24-2002, 10:46 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by urban tec
yes,this link works very nice but, in
w*w.doom9.org,
downloads,
have unfilter!!!!
Reply With Quote
  #39  
12-29-2002, 07:13 PM
I Dont Know I Dont Know is offline
Free Member
 
Join Date: Dec 2002
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Hi all

Can someone please tell me what settings on
DVD2SVCD I have to change to make a
KVCD from a PAL (not ntsc) Dvd

And which Template is best to use the
kvcd_lbr
or
matrices?

Sorry if I seem a bit thick on this subject
but Im only just learning about creating KVCD's and SVCD's

Thanks to all in advance
Reply With Quote
  #40  
12-29-2002, 07:20 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 I (You ) Dont Know,

You're almost set with DVD2SVCD, as far as the matrix. Run DVD2SVCD and click on the "Matrix" tab and select "KVCD".
Now click on Encoder/Advanced Settings and change the GOP to read 1-12-2-1-24 from top to bottom. Encode as CQ if your target is greater or equal to 528x480 (KVCDx3) or CQ_VBR for anything below. Check that motion estimation is set to (Fast). That's it

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD2SVCD: Mux audio from two .vob files oxycotton420 Video Encoding and Conversion 9 06-09-2004 11:12 PM
DVD2SVCD: DS2 Settings files? neu-ikc Video Encoding and Conversion 1 01-02-2004 04:53 PM
DVD2SVCD: Finally got MA working in AVI2SVCD, with KVCD_LBR.ini, but... Thomas Davie Video Encoding and Conversion 24 07-22-2003 12:37 PM
DVD2SVCD: need a new kvcd_lbr.ini jorel Video Encoding and Conversion 6 12-21-2002 06:08 PM
DVD2SVCD: Bitrate tab in dvd2s(K)vcd jorel Video Encoding and Conversion 1 10-28-2002 09:34 AM

Thread Tools



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