My video terminates before the audio variable "in_theory" comes to an end. The in_theory audio length is 1:35 seconds. I would like the video to last that duration. This is what I have tried.
Code:in_theory=WAVSource("C:\projects\video_editing\projects\acroyoga\intheory\intheory1.wav")+WAVSource("C:\projects\video_editing\projects\acroyoga\intheory\intheorythanks.wav") bg=WAVSource("C:\projects\video_editing\projects\acroyoga\intheory\bg.wav") bg_audio=bg+bg+bg+bg+bg+bg audio = MixAudio(bg_audio, in_theory, 0.25, 0.75) logo = imagesource("C:\projects\video_editing\projects\acroyoga\intheory\intheory.png", pixel_type = "RGB32").ConvertToYUY2 () logo = AudioDub(logo, audio) return logo.ConvertToYUY2 ().info() #return logo.ConvertToYUY2 ().trim (0, Ceil (in_theory.AudioLengthF()/in_theory.AudioRate()*logo.FrameRate()))![]()
+ Reply to Thread
Results 1 to 3 of 3
-
-
[ SOLVED SOLUTION]
Code:in_theory=WAVSource("C:\projects\video_editing\projects\acroyoga\intheory\intheory1.wav")+WAVSource("C:\projects\video_editing\projects\acroyoga\intheory\intheorythanks.wav") bg=WAVSource("C:\projects\video_editing\projects\acroyoga\intheory\bg.wav") bg_audio=bg+bg+bg+bg+bg+bg audio = MixAudio(bg_audio, in_theory, 0.25, 0.75) logo = imagesource("C:\projects\video_editing\projects\acroyoga\intheory\intheory.png", end=Ceil (in_theory.AudioLengthF()/in_theory.AudioRate()*24),pixel_type = "RGB32").ConvertToYUY2 () logo = AudioDub(logo, audio) return logo.trim(0, logo.Framecount()-1,false).ConvertToYUY2 ()
-
That's right.
The original problem is that ImageSource has a default length of 1001 frames, so you need to set the length based on the length of the audio track, as you have now done using end=...
I'm puzzled by the final trim in your script.
'In theory' () it should not be necessary.
Did you find you had to put that in for some reason?
Similar Threads
-
How to make audio / video business card and website audio/videos clips
By tmh in forum Newbie / General discussionsReplies: 6Last Post: 4th May 2011, 11:25 -
ASF2VC1 & transcode the audio WMA to AC3, then mux video VC-1 and audio
By tigerb in forum Newbie / General discussionsReplies: 0Last Post: 9th Jan 2010, 08:02 -
How to combine video with audio file and replace audio with video files ?
By designbuyers in forum Newbie / General discussionsReplies: 2Last Post: 8th Feb 2009, 11:12 -
Syncing spearate audio/video: Better to stretch/shrink video than audio?
By stantheman1976 in forum EditingReplies: 15Last Post: 16th Jan 2008, 04:14 -
Converting an AVI video with AC3 audio to an AVI video with MP3 audio
By rijulHKG in forum AudioReplies: 1Last Post: 15th Jul 2007, 00:23