digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Deleting the least significant frames? (http://www.digitalfaq.com/archives/avisynth/7814-avisynth-deleting-least.html)

canon 01-21-2004 05:20 AM

Avisynth: Deleting the least significant frames?
 
Hi everybody
I started this at http://www.kvcd.net/forum/viewtopic.php?t=8686, but this seams to be the right place to go on.

I have a 73 minutes video, and it runs a little bit faster than the audio. I want it to end 5 seconds earlier.
How can I do it?
Do I have to delete frames?
The video is pal, so I have to delete 125 frames. the optimal would be to delete 1 of every 875 frames. but, because I don't want to damage the movie, I want to find the most appropriate frames (static frames, far enough from each other).
Does anyone know an intelligent way for doing that?

incredible 01-21-2004 06:05 AM

In the thread above i thought you're not in Avisynth and if Besweet makes problems ....

Just apply a

assumesamplerate(44104)
ResampleAudio(44100)

at the end of your script and that makes your audio a bit faster and comes out again right at 44.1khz.
So do a preview at the end of the video if by the value 44104 everything is in sync and if the audio still is a bit to slow just rise the value to for example 44105 etc. until it matches.

BUT! That above is a case in general or in case of captures (dropped frames) and I don't know why you split your Thread :?: as Dialhot came up there with right suggestions :!:

Dialhot 01-21-2004 06:10 AM

That is not at all a good idea but just to answer to your question :

Code:

SelectRangeEvery(875, 874)
(that ask to avisynth to take 874 frames every 875 ones, so ti drop 1 frame every 875 frames).

You should read the manual of avisynth at least once ! Lot of answers are in it.

incredible 01-21-2004 06:14 AM

Phil ... who do you adress by your last post? :lol:

I think this is totaly confusing in here as it seems to me that (as he said) he wants to scale the audio not cutting.

So it would be interesting if everything until the end is IN SYNC where really some frames of the audio do still exist when the video is over, and to me also this seems STRANGE :!: :?:

Dialhot 01-21-2004 06:31 AM

Quote:

Originally Posted by incredible
Phil ... who do you adress by your last post? :lol:

The one of canon of course.

Quote:

I think this is totaly confusing in here as it seems to me that (as he said) he wants to scale the audio not cutting.
As you said, he slip the threads and in this new one (even if I know what is is real problem) is ask a completly differrent question. That is why I said "it is not a good idea to process like that but that is the answer to the question you are asking this present thread".

Quote:

So it would be interesting if everything until the end is IN SYNC where really some frames of the audio do still exist when the video is over, and to me also this seems STRANGE :!: :?:
For sure it's strange. I do not gave a answer to the cause, but give a way to reach the goal... For that I answered in the other thread :-)

canon 01-21-2004 08:04 AM

now I can see how stupid it was to split the Thread :oops: :oops: :oops:
I promise not to do it anymore.
(and now I'm not sure were to continue).

I tried to Let tmpgenc encode both audio and video together. the result was in sync but the sound was awful and it actually sounded "stretched".

I gave up trying to adjust the audio, everything I tried failed :cry:

this is why I decided to deal with the video, and besweet didn't seem to be the right place to continue

incredible 01-21-2004 11:19 AM

Canon as you see by yourself how this ends please do further replies on the original, says the first thread.

Therefore I think I'm right when saying:


************** Closed *******************


All times are GMT -5. The time now is 09:41 PM  —  vBulletin Jelsoft Enterprises Ltd

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