Quantcast Avisynth: Deleting the Least Significant Frames? - digitalFAQ.com Forums [Archives]
  #1  
01-21-2004, 05:20 AM
canon canon is offline
Free Member
 
Join Date: Oct 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
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?
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  
01-21-2004, 06:05 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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
Reply With Quote
  #3  
01-21-2004, 06:10 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4  
01-21-2004, 06:14 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Phil ... who do you adress by your last post?

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
Reply With Quote
  #5  
01-21-2004, 06:31 AM
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 incredible
Phil ... who do you adress by your last post?
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
Reply With Quote
  #6  
01-21-2004, 08:04 AM
canon canon is offline
Free Member
 
Join Date: Oct 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
now I can see how stupid it was to split the Thread
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

this is why I decided to deal with the video, and besweet didn't seem to be the right place to continue
Reply With Quote
  #7  
01-21-2004, 11:19 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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 *******************
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Frames fingerprints? Prodater64 Avisynth Scripting 1 12-30-2004 01:04 PM
Avisynth: GOP of 12/15 frames for anime/cartoons? Why? spam_lover Avisynth Scripting 1 12-17-2003 11:51 PM
Fields to Frames and Telecine with AVISynth? The Alvinator Avisynth Scripting 26 12-13-2003 11:02 AM
HeadAC3he: significant quality loss converting to 128kbps mp2? J-Wo Audio Conversion 5 08-13-2003 03:54 PM
Deleting vobs from hd jorel Computers 15 03-02-2003 02:00 AM

Thread Tools



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