digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   SansGrip Filters: Sampler (http://www.digitalfaq.com/archives/avisynth/1883-sansgrip-filters-sampler.html)

SansGrip 12-21-2002 08:50 PM

Sampler
 
I just uploaded to my site a little Christmas present for y'all. Docs are included, but you guys should know what to do with it ;).

Merry Christmas!

kwag 12-21-2002 09:00 PM

Got it!
Thanks SansGrip :D

-kwag

muaddib 12-21-2002 09:17 PM

I think you forgot to change the readme.html title... it says LegalClip! :wink:

SansGrip 12-21-2002 09:18 PM

Quote:

Originally Posted by muaddib
I think you forgot to change the readme.html title... it says LegalClip! :wink:

:lol:

Oops ;).

SansGrip 12-21-2002 09:31 PM

New version 0.1a
 
Uploaded 0.1a with a fix for that and a couple of other oversights. I haven't been drinking so I can't even use that as an excuse...

:D

muaddib 12-21-2002 11:27 PM

Hi SansGrip,

I got an idea... :idea:
Is it possible to add a single frame to the end (or beginning) of the sample that the "sampler" is outputting?
In that frame you could show some information like Movie Length, Sample Length, Sample Size and the most important... Predicted Total Size :!:

You make a sample with the "sampler" and the "sampler" it self tells you what is the predicted mpeg size! :D

I know that first we have to find a stable formula for the prediction, but... well, just wondering. It would be nice. :wink:

SansGrip 12-21-2002 11:36 PM

Quote:

Originally Posted by muaddib
In that frame you could show some information like Movie Length, Sample Length, Sample Size and the most important... Predicted Total Size :!:

Showing the movie length, sample length, etc. at the end is a very good idea as long as it doesn't mess up the encoded size of the sample strip. I don't imagine one frame would make much difference at all...

Unfortunately it wouldn't be possible to calculate the predicted total size, since the filter has no way of knowing what size the clip will encode to in the end. Would've been nice, though ;).

muaddib 12-22-2002 01:01 AM

Quote:

Originally Posted by SansGrip
Showing the movie length, sample length, etc. at the end is a very good idea as long as it doesn't mess up the encoded size of the sample strip. I don't imagine one frame would make much difference at all...

That's what I thought...


Quote:

Originally Posted by SansGrip
Unfortunately it wouldn't be possible to calculate the predicted total size, since the filter has no way of knowing what size the clip will encode to in the end. Would've been nice, though ;).

Oh man... I can't believe how stupid I am! Of course it can't know what will be its own size! :oops: :oops:
Sorry for this nonsense... :(

kwag 12-22-2002 01:04 AM

Quote:

Originally Posted by muaddib
Quote:

Originally Posted by SansGrip
Unfortunately it wouldn't be possible to calculate the predicted total size, since the filter has no way of knowing what size the clip will encode to in the end. Would've been nice, though ;).

Oh man... I can't believe how stupid I am! Of course it can't know what will be its own size! :oops: :oops:
Sorry for this nonsense... :(

We're going too fast 8O. Our brains are going to blow apart :mrgreen:

SansGrip 12-22-2002 01:04 AM

Quote:

Originally Posted by muaddib
Oh man... I can't believe how stupid I am! Of course it can't know what will be its own size! :oops: :oops:
Sorry for this nonsense... :(

When it comes to this kind of extreme tweaking no idea is a stupid idea. You should see some of the file size prediction formulas kwag and I have been running over the last hour :mrgreen:.

muaddib 12-22-2002 01:25 AM

Quote:

Originally Posted by kwag
We're going too fast 8O. Our brains are going to blow apart :mrgreen:

GO! GO! GO! ... Don't slow down! :lol:


Quote:

Originally Posted by SansGrip
When it comes to this kind of extreme tweaking no idea is a stupid idea. You should see some of the file size prediction formulas kwag and I have been running over the last hour :mrgreen:.

I can only imagine... but I'm already scared! :mrgreen:

jorel 12-22-2002 07:13 AM

Re: Sampler
 
Quote:

Originally Posted by SansGrip
I just uploaded to my site a little Christmas present for y'all. Docs are included, but you guys should know what to do with it ;).

Merry Christmas!

simple question:

:? :? :? :? :? :? :? 8O 8O

what is this(God)?

:-@ :oops: :( :cry: :evil: :x :? :? :? 8O 8O 8O

SansGrip 12-22-2002 10:28 AM

Re: Sampler
 
Quote:

Originally Posted by jorel
simple question:
:? :? :? :? :? :? :? 8O 8O

It's an Avisynth filter to replace the

Code:

IL = Framcount / 100
SL = Round(Framerate)
SelectRangeEvery(IL, SL)

strangeness for file size prediction with a simple line like

Code:

Sampler(100, 24)
See "the big thread" for more information ;).

SansGrip 12-22-2002 12:32 PM

New version 0.2
 
Just uploaded a new version in which I added audio support and made miscellaneous unimportant tweaks. While we won't benefit directly from the audio support (though it is fun to play with :D) it does mean that TMPGEnc will now always see the correct length of the sample strip without us having to muck about with the source range dialog.

Let me know how it goes for you.

SansGrip 12-22-2002 04:39 PM

New version 0.2a
 
I uploaded yet another new version (probably my last for the day ;)): samples now defaults to movie length in minutes, and length now defaults to one second. Coincidentally, this is precisely what we need to use for our sample encoding :mrgreen:.

jorel 12-22-2002 04:48 PM

Re: New version 0.2a
 
Quote:

Originally Posted by SansGrip
I uploaded yet another new version (probably my last for the day ;)): samples now defaults to movie length in minutes, and length now defaults to one second. Coincidentally, this is precisely what we need to use for our sample encoding :mrgreen:.

at the end of the day i learn one thing:
:wink: :?
you and Kwag are driving me crazy!!!!! 8O 8O (kidding)
i don't understand how to use it! :(

@muaddib,vou contar contigo meu amigo,help me!

and the link to download don't work!
thanks. :)

SansGrip 12-22-2002 05:06 PM

Re: New version 0.2a
 
Quote:

Originally Posted by jorel
and the link to download don't work!

Ack, the first time I announce without checking the link and wouldn't you know it... ;) Fixed now.

jorel 12-22-2002 05:09 PM

Re: New version 0.2a
 
Quote:

Originally Posted by SansGrip
Quote:

Originally Posted by jorel
and the link to download don't work!

Ack, the first time I announce without checking the link and wouldn't you know it... ;) Fixed now.

yeah works......thanks !! :D

muaddib 12-22-2002 10:08 PM

Re: New version 0.2a
 
Quote:

Originally Posted by SansGrip
I uploaded yet another new version (probably my last for the day ;)): samples now defaults to movie length in minutes, and length now defaults to one second. Coincidentally, this is precisely what we need to use for our sample encoding :mrgreen:.

Wait a min... now I get lost.
Should we use lenght = 24 or lenght = 1sec :?:

SansGrip 12-22-2002 10:20 PM

Re: New version 0.2a
 
Quote:

Originally Posted by muaddib
Wait a min... now I get lost.
Should we use lenght = 24 or lenght = 1sec :?:

With the current formula all you need is Sampler(). By length=1sec what I mean is length=frame_rate, which is the same thing.


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

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