digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   KVCD Predictor (http://www.digitalfaq.com/archives/avisynth/1626-kvcd-predictor.html)

jorel 11-23-2002 12:18 AM

thanks,i was waiting for this!
:D

kwag 11-23-2002 12:31 AM

Let's get ready to rumBLEEEEEEEEEE :lol:
It's playtime :mrgreen:

Thanks SansGrip :wink:
-kwag

SansGrip 11-23-2002 12:35 AM

Quote:

Originally Posted by jorel
thanks,i was waiting for this!

Quote:

Originally Posted by kwag
Let's get ready to rumBLEEEEEEEEEE
It's playtime

heheh enjoy ;).

kwag 11-23-2002 12:39 AM

Works like a charm SansGrip :D
Just a small detail. When you run the "Sample Encoding Helper", and you go to step 2, could you add extensions .m1v and .m2v on the dialog? Because it defaults to .mpg, and the samples are usually video only .m1v of .m2v ( if MPEG-2 ) files.

-kwag

SansGrip 11-23-2002 12:44 AM

Quote:

Originally Posted by kwag
Just a small detail. When you run the "Sample Encoding Helper", and you go to step 2, could you add extensions .m1v and .m2v on the dialog? Because it defaults to .mpg, and the samples are usually video only .m1v of .m2v ( if MPEG-2 ) files.

I gathered from the file size prediction thread that one's supposed to encode the sample with a system stream, and hence with a .mpg extension. Wouldn't this more accurate than a .m1v or .m2v without a system stream?

kwag 11-23-2002 12:50 AM

Quote:

Originally Posted by SansGrip
I gathered from the file size prediction thread that one's supposed to encode the sample with a system stream, and hence with a .mpg extension. Wouldn't this more accurate than a .m1v or .m2v without a system stream?

Actually, it should be more accurate using only the video stream, because the audio is already being calculated separately. So the .m1v or .m2v is a video only stream without any other dependencies. And that's the way it's encoded too. At least I encode video stream only ( ES Video Only ) in TMPEG.

-kwag

SansGrip 11-23-2002 12:55 AM

Quote:

Originally Posted by kwag
Actually, it should be more accurate using only the video stream, because the audio is already being calculated separately. So the .m1v or .m2v is a video only stream without any other dependencies. And that's the way it's encoded too. At least I encode video stream only ( ES Video Only ) in TMPEG.

By "with a system stream" I meant the "System (Video only)" option. Since the final encode will have three streams -- video, audio and system -- and we're factoring out the audio, that leaves the other two streams to account for in the calculations. If you encode the samples as an elementary video stream with no system stream, wouldn't that cause inaccuracies since the final encode will have all three streams in it?

Or am I confused? ;)

kwag 11-23-2002 01:05 AM

Well, at least all the samples that I've done manually with the formula, I always used ( ES Video Only ) stream. The final file size has always been ~2% to ~3% less than predicted.

-kwag

SansGrip 11-23-2002 01:08 AM

Quote:

Originally Posted by kwag
Well, at least all the samples that I've done manually with the formula, I always used ( ES Video Only ) stream. The final file size has always been ~2% to ~3% less than predicted.

The lack of a system stream might explain it. If your final size with video and audio streams only is, say, 780mb, with the system stream it'll be 780 * (2048 / 2018) = 791mb.

Or maybe I'm barking up the wrong tree. If you think it would be best to add m1v and m2v to the "open file" dialog it'll take me about a minute. My only concern is that if it really is best to encode samples with both a video and system stream, allowing ES files might throw people off...?

kwag 11-23-2002 01:19 AM

Ok, I just ran a test on two prediction samples. One as ES Video only and another as System ( Video Only ).
File sizes:
ES (Video Only): 9,752MB
System (Video Only): 25,705 8O

So obviously, it has to be run as ES stream.

-kwag

SansGrip 11-23-2002 01:23 AM

Quote:

Originally Posted by kwag
ES (Video Only): 9,752MB
System (Video Only): 25,705 8O

Wow, that's a huge difference. I'm going to cancel my current encode and run the same test on my reference source material. If I get that big a difference I'll release 0.2a with .m1v and .m2v in about 20 minutes.

Edit: Just goes to show there's no substitute for testing! Thanks kwag :).

kwag 11-23-2002 01:27 AM

Quote:

Originally Posted by SansGrip
Edit: Just goes to show there's no substitute for testing! Thanks kwag :).

Hey, anytime :D
Maybe TMPEG is screwing up somewhere :roll: . I'm on 2.59 PLUS

-kwag

kwag 11-23-2002 01:29 AM

I guess it's not TMPEG. Just tried it with 2.58 PLUS, and got the same large file size using System(Video Only).

-kwag

SansGrip 11-23-2002 01:32 AM

2.59 must be acting up, because I get completely expected results from the two encodes.

System (video only): 15.3mb
ES (video only): 15.1mb

In this case, the video and system stream is...

15.1 * (2048 / 2018) = 15.3

...exactly the right size :?: :?:.

SansGrip 11-23-2002 01:33 AM

Quote:

Originally Posted by kwag
I guess it's not TMPEG. Just tried it with 2.58 PLUS, and got the same large file size using System(Video Only).

This is probably a stupid question, but... are you SURE you're hitting "System (Video only)" and not "System (Video+Audio)"?? 8O

Edit: I'm using 2.58 not-plus...

kwag 11-23-2002 01:42 AM

Quote:

Originally Posted by SansGrip
Quote:

Originally Posted by kwag
I guess it's not TMPEG. Just tried it with 2.58 PLUS, and got the same large file size using System(Video Only).

This is probably a stupid question, but... are you SURE you're hitting "System (Video only)" and not "System (Video+Audio)"?? 8O

Edit: I'm using 2.58 not-plus...

Yes. 100% sure. Just running it right now to be sure. System(Video only), not the last one(Check button). Same result 8O
So maybe the PLUS is screwed up 8O , but then 2.58 does the same too :!:

-kwag

SansGrip 11-23-2002 01:46 AM

Quote:

Originally Posted by kwag
Yes. 100% sure. Just running it right now to be sure. System(Video only), not the last one(Check button). Same result 8O
So maybe the PLUS is screwed up 8O , but then 2.58 does the same too :!:

2.58 "regular" works as expected for me. I'm wondering if this is a PLUS issue? I can't think of anything other than a bug that would account for such a massive difference in file size :?:... Video + system streams should be just over 1.5% larger than video alone 8O.

kwag 11-23-2002 01:49 AM

Downloading TMPEG standard now...

Edit: Same result with the 2.59 free version 8O 8O

-kwag

SansGrip 11-23-2002 01:51 AM

Quote:

Originally Posted by kwag
Downloading TMPEG standard now...

heheh, and here was me thinking I was just about to go to bed... :mrgreen:

kwag 11-23-2002 02:02 AM

I know I am going to bed :)
It's 4:00AM here 8O .
Good night ( or morning 8O ) everyone :lol:

-kwag

SansGrip 11-23-2002 02:05 AM

Quote:

Originally Posted by kwag
I know I am going to bed :)
It's 4:00AM here 8O .
Good night ( or morning 8O ) everyone :lol:

What?? You mean you can SLEEP... at a time like THIS?? :lol:

Just kidding. Have a good one :D.

nicksteel 11-23-2002 07:27 AM

KVCD Predictor on Windows 98se
 
deleted

SansGrip 11-23-2002 09:30 AM

Re: KVCD Predictor on Windows 98se
 
Quote:

Originally Posted by nicksteel
Can I run Predictor on 98se, and if so, what extra files do I need (MSCOREE.DLL, etc)?

You'll need the Microsoft .NET runtime, which can be downloaded from Windows Update.

nicksteel 11-23-2002 09:57 AM

You'll need the Microsoft .NET runtime, which can be downloa
 
Is this the 20meg plus file they list?

nicksteel 11-23-2002 10:23 AM

Can I run Predictor on 98se, and if so, what extra files do
 
deleted

SansGrip 11-23-2002 11:08 AM

Re: Can I run Predictor on 98se, and if so, what extra files
 
Quote:

Originally Posted by nicksteel
I've downloaded the .NET RUNTIME. How do I install? I get error message asking me to set registery key to point to NET framework install location.

That's strange. Did you get it from Windows Update?

nicksteel 11-23-2002 02:10 PM

.NET
 
deleted

kwag 11-23-2002 02:24 PM

Hi nicksteel,

You can't use TMPEG's wizards with CQ or CQ_VBR encoding modes. Download FitCD, which has the file prediction script to encode your sample, and then use SansGrip's KVCDPredictor program to calculate your sample size.
Get it here: http://www.kvcd.net/forum/viewtopic.php?t=1369

-kwag

rendalunit 11-23-2002 02:25 PM

If you're encoding with CBR mode then you don't need to use the KVCD Predictor because it's for predicting final file size with VBR mode. You'll have much better results if you don't use the TMPGEnc wizard and leave the rate control set to CQ_VBR mode and use the excellent KVCD Predictor program :wink:

I would put that movie on two cds with the KVCDx3 template and use 128kbps audio or higher. Download a sample from the main page to see if your player supports this resolution (528x480 or 544x480)

Kwag- we simultaneously posted :lol: :lol:

nicksteel 11-23-2002 03:55 PM

deleted

black prince 11-23-2002 03:57 PM

Hi SansGrip,

SansGrip wrote:
Quote:

SansGrip

Joined: 09 Nov 2002
Posts: 126
Location: Ontario, Canada
Posted: Tue Nov 19, 2002 1:47 am Post subject:
--------------------------------------------------------------------------------
black prince wrote:
Getting all kinds of errors trying to execute KVCD file prediction after insatlling Microsoft.NET:
Very weird. Theoretically if you have the runtime installed you should just be able to double-click it and go.

I asked Dr Google and he came up with a bunch of other people with this kind of problem. One suggested solution I read was uninstalling the .NET framework (through Add/Remove Programs), then installing MDAC 2.7 from here, then reinstalling .NET.

Sorry you're having problems with this . Unfortunately I don't have a copy of Windows ME to test it on, but I can try it on my Windows 98 laptop tomorrow. Hopefully I'll have the same problem, and will figure out how to fix it, and can then tell you .
I've tried everything except re-install Win ME OS. :( .NET will not uninstall
using add/remove programs.

KVCD Predictor would be nice, but .NET too troublesome. I've written
a similar file size predictor using "Autoit" with a similar GUI screen as
KVCD Predictor. I input the movie length and the desired audio bitrate
and the program calculates the audio file size and the differance for
1 or 2 CD selected and the differance becomes the video target file size.
I've saved Tmpgenc .tpr files for CQ 20 to 60 test of the avs test script.
My program starts with CQ=40, since my range is 20 to 60 CQ. depending
on the est. file size result from CQ 40. It will use either 30 which is mid-
point between 20 to 40 or 50 which mid-point between 40 to 60. My
second pass refines the CQ range further until the results approximately
gives me the closet target file size for video. Crude, but effective and
after 5 tests it's very accurate. :D Thanks to the discussions on this
forum the ideas really helped to cut down on the numbers of test
passes to reach the approximate file size. :D I'm sure KVCD Predictor
far surpasses my crude program, but It works for me. 8)

-black prince


-black prince

SansGrip 11-23-2002 05:01 PM

Quote:

Originally Posted by black prince
I've tried everything except re-install Win ME OS. :( .NET will not uninstall using add/remove programs.

That really is odd. I forgot to try installing .NET on my laptop, and I won't have time to do it tonight, but I shall try to do it tomorrow. Hopefully it'll give me an insight into your problem.

Quote:

Originally Posted by black prince
I've written a similar file size predictor using "Autoit" with a similar GUI screen as KVCD Predictor.

Glad to hear you found a solution regardless :).

SansGrip 11-23-2002 05:03 PM

Re: .NET
 
Quote:

Originally Posted by nicksteel
I'm downloading again from Microsoft and will try again.

When I installed the runtime I did it from Windows Update and there were no problems at all. I've never tried installing it from the Microsoft download page.

Let me know how it goes.

nicksteel 11-23-2002 05:23 PM

I'm downloading again from Microsoft and will try again.
 
Worked great on second download. Don't know what happened.

Would really appreciate advice on my last post. I assume that I change the settings from FILM to NTSC. And I would really like to know if the 704x480 would be better than the 528x480 for widescreen HDTV playback.

Nick
Houston

kwag 11-23-2002 05:38 PM

@SansGrip,

I can't mirror your ~sansgrip/ directory. Only your ~sansgrip/avisynth directory. Don't know if this is on purpose, or your provider has incorrect attributes for your home directory. Or maybe you have to create a ~sansgrip/extras , etc., and then that sub directory can be accesed for your non avisynth related programs.

-kwag

SansGrip 11-24-2002 11:35 AM

Quote:

Originally Posted by kwag
I can't mirror your ~sansgrip/ directory. Only your ~sansgrip/avisynth directory. Don't know if this is on purpose, or your provider has incorrect attributes for your home directory.

This is on purpose. There's a whole bunch of stuff in there that you wouldn't want to mirror :).

Quote:

Originally Posted by kwag
Or maybe you have to create a ~sansgrip/extras

I was actually going to revamp my page into two, one for Avisynth filters and one for everything else. I'll probably get round to that today :).

SansGrip 11-24-2002 12:42 PM

@kwag:

Any updates on the video+system/ES video strangeness?

kwag 11-24-2002 01:25 PM

Quote:

Originally Posted by SansGrip
@kwag:

Any updates on the video+system/ES video strangeness?

It's a BIG bug on TMPEG. I tried my older version 2.57 PLUS, and it works correctly using Video only and System video only. So TMPEG 2.59 is broken on System (Video only) 8O

-kwag

SansGrip 11-24-2002 02:17 PM

Quote:

Originally Posted by kwag
It's a BIG bug on TMPEG.

Ouch!

So... Should sample strips be encoded with a system stream or without? :)

A thought that struck me last night:

If KVCDP only accepted .m1v and .m2v files it would eliminate the possibility that someone might feed it a file with audio too. But I still think we need to take the system stream into account, as it adds ~1.5% to the final result.

So, what if we encode the sample strips as an ES, but I figure the system stream into the final calculations?

black prince 11-24-2002 02:24 PM

Hi Kwag and SansGrip,

Kwag wrote:
Quote:

It's a BIG bug on TMPEG. I tried my older version 2.57 PLUS, and it works correctly using Video only and System video only. So TMPEG 2.59 is broken on System (Video only)
-kwag
I use Tmpgenc Plus 2.59. Does this mean I should go back to 2.57 or
stick with what I have. I'm confused as what to use. :? I am getting
accurate file size prediction with the manual process. What to do,
what to do :?:

-black prince


All times are GMT -5. The time now is 04:10 PM  —  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.