View Full Version : Any way to increase the length of the video?
matrix
18th December 2002, 03:41
Is there any way I can increase the length of the video only.
I have these segmented avi's, and for each and every one of them the audio keeps on playing for allmost 18 sec after the video stops.
They are all around 1 min 24 sec long (video)(29.97fps). The audio goes up to 1m 41s. Huge difference.
I would like to keep this movie, if I can.
If anybody has any ideas, I'd appreciate some help.
Regards.
matrix
neuron2
18th December 2002, 04:47
a=Avisource("file.avi")
Interleave(a,a)
Decimate(4)
Decimate(5)
AssumeFPS(29.97)
Decomb strikes again!
stickboy
18th December 2002, 08:56
Do you want to change the framerate?
Avisynth has the AssumeFPS() function. You also could use VirtualDub, set video and audio to direct-stream-copy mode, and in the Frame Rate dialog, set "Change so video and audio durations match".
matrix
19th December 2002, 02:04
I must be doing something wrong.
Decomb doesn't seem to do it. It reports back about the frames I should have, but still the same difference.
I tried without audio, and do the audio part separately, mux it with bbmpeg, or with audio, with same results. (I encoded it at 29.97fps though)
VirtualDub on the other hand does it right, but I don't have room for other 40GB of avi's, and can't frameserve to Tmpg. The damn thing won't take those files.
All the other (convert.., assume.., changeFps), I tried a wile ago, but didn't help.
Any other ideas?
neuron2
19th December 2002, 07:07
Originally posted by matrix
I must be doing something wrong.
Decomb doesn't seem to do it. It reports back about the frames I should have, but still the same difference.
Set the frame rate back to 29.97 at the end. Forgot to say that. Use AssumeFPS().
matrix
20th December 2002, 02:37
Thanks Donald.
It does it now. Very close anyway.
I'll try some more files, then go for the whole thing.
Thank you again. I appreciate your help.
Matrix
neuron2
20th December 2002, 04:34
BTW, you could also achieve the result by using ConvertFPS() to insert the required number of extra frames and then set it back to 29.97 as for the Decomb method. The difference is that you will have blended frames with this method, whereas the Decomb method will give you duplicates. That's a subjective, aesthetic choice.
matrix
21st December 2002, 02:15
BTW, you could also achieve the result by using ConvertFPS()
In the beginning I tried using ChangeFPS, as the doc say "In later versions, the behaviour has been changed and the number of frames is increased or decreased like in ConvertFPS". And I used ConvertFPS at the end, to change it back to 29.97. It didn't work that way.
I red some more about ConvertFPS, and yes I think it might do it.
Right now I'm doing it with Decomb. I'll see how it comes out.
Did some tests earlier, and everything seemd to be fine. Some files are a little longer, some shorter. On a single file, I got a difference of 1sec or less. But when I put 3 together, ended up just fine.
Hopefully I'll get it right this time.
Thanks again.
neuron2
21st December 2002, 05:49
Sounds like you might run into some audio sync problems, but let's see what happens and cross that bridge when (if) we get there.
matrix
22nd December 2002, 03:21
You were right. I did run into problems. For some scenes, it was allmost unnoticeably, but for some others it was pretty bad.
Lukily I only did the first part.
I'm doing it now with ConvertFPS. It was a lot of work to check the lenght of both the video and audio(wich is longer), for every file to be able to calculate the new framerate.
I think is going to work this way. I tried a few files, and they matched perfecly.
matrix
23rd December 2002, 01:00
Just for the record.
I did it using ConvertFPS(),and AssumeFPS() at the end. It works.
Suffered a little qualitywise, but is not too bad.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.