I'm trying to split several video clips, one from a webcam and the others from a camcorder. Since they have different sizes, audio, etc., I'm converting them to a standardized format. Here's what I have so far:
Problem: the first video clip (from the webcam, framerate of 25.1, size 320x160, pixel format bgr24, audio sampling 44,100 ) plays the audio okay, but the video is speed up by what looks to be about a factor of 4.Code:c1=DirectShowSource("c:\avi\meetup\279.339.avi").Trim(0,500).BicubicResize(720, 480).ConvertToYV12().ChangeFPS(25).ResampleAudio(48000) f=c1 c2=DirectShowSource("c:\avi\meetup\280.339.avi").Trim(0,500).BicubicResize(720, 480).ConvertToYV12().ChangeFPS(25).ResampleAudio(48000) f=Dissolve(f,c2,45) f
The second clip appears to be okay, but need the two clips to be in a standard format for the dissolve.
Any suggestions on how to fix this? I realize my conversion efforts are somewhat a stab in the dark, and the audio adds even more complexity.
When I tried to resample the audio down to 11k, the audio was silent.
Thanks for any suggestions,
Tac
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
I thought about (figuring it'd be easier to debug as well), but how can I put that in the script? That is, is there a way to save a clip to a particular format within the script itself?
Code:a=DirectShowLoad('a.avi').Trim(0,500).ChangeFPS(25) a.SaveAsMPEG("a.mpg") # ???????
Thx,
Tac -
You don't put it in a script. You open the basic script in VDub(Mod), choose a lossless codec (HuffYUV, Lagarith, etc), and encode the AVI. Do that for both video clips, and if they wind up with the same properties, create a new script for the AVIs using AVISource and do the dissolves or whatever else you want.
Similar Threads
-
Losslees Audio on DVD player without resampling
By ITISRAVI in forum AudioReplies: 7Last Post: 22nd Jun 2011, 23:28 -
[Audio] Capturing, editing, keeping a/v in sync and dynamic resampling
By rmdeboer82 in forum CapturingReplies: 1Last Post: 20th Mar 2011, 14:16 -
Resampling audio
By siluet in forum Newbie / General discussionsReplies: 5Last Post: 19th Oct 2009, 11:24 -
Resampling Audio
By Germanicus__ in forum AudioReplies: 18Last Post: 19th Jun 2009, 03:55 -
Audio sync issue even when dynamically resampling audio
By purpleman in forum CapturingReplies: 4Last Post: 19th Mar 2008, 10:18