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? |
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 :!: |
That is not at all a good idea but just to answer to your question :
Code:
SelectRangeEvery(875, 874) You should read the manual of avisynth at least once ! Lot of answers are in it. |
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 :!: :?: |
Quote:
Quote:
Quote:
|
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 |
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 ******************* |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.