Hello everyone.
Please help me out cause I am loosing my sleep on the matter and it sucks...
Here is the thing. I got 2 videos. It's the same thing shot with two different angles using 2 different cameras. Only 1 camera was recording sound.
I captured both videos in my computer and managed to add sound to the second video as well.
Now I want to do the "split screen" effect so that I can create 1 video that's slit into two so that I can see both the videos simultaneously. I used AviSynch together with VirtualDubMod and It worked. However, even though the videos starts normally... at about 5 minutes time, ONLY the second video goes out of synch. As the time passes ONLY the second video keeps going way and way off sunch. Once again, I am pointing out that both videos play perfectly and with great synch when playing on their own. I have also cut them both to the exact same duration to see if that will fix the problem but nothing... still the same.
Pleaseeeee Help!
Thanks a lot in advance.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 22 of 22
Thread
-
-
Thanks for that.
I just used the simplest script there is...
a = AviSource("C:\cating2.avi",false)
b = AviSource("C:\ela.avi", false)
StackHorizontal(a,b)
Sound is off cause it wouldn't work otherwise - I kept getting some error about an ACM codec and didn't want to try and figure out a way around it... I have extracted the sound from the first video so it doesn't really matter. I just add it in there afterwards
Let me know what you think.
Thank you very much -
Originally Posted by guns1inger
-
I think he's asking you to post a screen shot from Gspot for each of the videos. Here's a 'How to': https://forum.videohelp.com/topic271697.html
-
Here is the Gspots for both files...
PLEASE HELP guys... I am guessing the problem occurs cause the audio is "split across interleaves" on the one and "alligned on interleaves" on the other one.
I am begging cause I just can't stop before I make it work... it's part of my job and I am getting crazy nervous over it.
Thanks in advance for any help guys.
-
If these were shot with DV cameras then you would be better off getting the original DV source to work with.
Looking at the two clips you have at the moment, they appear to have been re-encoded by different encoders, and with different settings. They have slightly different framerates, and different lengths. Either of these facts could account for your sync issues.
You could try adding a .assumefps(29.97) to each avisource statement to see if it smooths things out. However, given the lengths are also different, you have to se sure that you start them both at exactly the same point, which might not be the first frame of each clip.Read my blog here.
-
Yeah, that's what jumped out at me as well, the different framerates. I'd say it not only could account for the out of synch audio, but is definitely responsible for it.
I'd use an AssumeFPS for one to make it the same framerate as the one whose audio is being used. They have the same number of frames, and if they start at the same place, by making the framerates the same, they should both remain in synch. This assumes that it's the "a" one whose audio is being used, and is 30.00fps:
a = AviSource("C:\cating2.avi",false)
b = AviSource("C:\ela.avi", false)
b=b.AssumeFPS(30.00)
StackHorizontal(a,b)
Nice call, guns1inger, asking for the 2 GSpot pics. -
Thanks a lot guys... It still didn't work but I can see some improvement.
here is the weird thing.. duration is different - yet frames are equal. ALSO - the sound is the same for both clips. I extracted the sound from clip a and added it in clip b and it was fully synchronized the whole time....
The video stats are different cause 1 was shot with a MiniDV cam and the other was shot was a webcam.
Any other ideas? to be quite honest I am not familiar with the assumefps command - so i am just coping-pasting what you said... i tried changing the (xx.xx) but it only made it worse....
I am open to your ideas experts -
Duration is dependent on framerate, so there is no surprise the 30 fps clip plays faster.
Neither of the clips you are using came directly from a mini DV camera, and the conversion to Divx has altered the framerate somewhat, which may have compounded your problem. The footage from the mini DV camera should have a frame rate of 29.976 fps. We aren't talking a lot of difference, but over 50 minutes the sync problems become very obvious.
I would start by getting the original source DV if possible. Then concentrate on getting the video to sync up. Given you have two sources running at different frame rates, you may never get a perfect match. Once you have the video worked out, you can working getting the video to match.Read my blog here.
-
Originally Posted by guns1inger
What should I try now? Each of the two videos are synched when playing on their own and I cut them so that they last exacly the same. So it's very weird that they are out of synch when played together - in my amateur opinion... if the problem is the different frame rates, then isn't there a way to encode-decode (not sure which of the two) them and make them same? -
WMV isn't the original source. The original mini DV source should be in an avi container. With all this encoding and re-encoding (the DV source has been encoded at least twice), I'm not surprised things are getting skewed.
You should be able to load the wmv files using DirectShowSource instead of AviSource.
Try this and see what happens
a = DirectShowSource("C:\cating2.wmv",false)
b = DirectShowSource("C:\ela.wmv", false)
a=a.AssumeFPS(29.97)
b=b.AssumeFPS(30.00)
StackHorizontal(a,b)Read my blog here.
-
Originally Posted by guns1inger
The original source is .wmv cause I was recording from the camera directly to my computer through windows movie makes... there is an option before you start the capture asking if you want DV quality or best quality for computer editing which is of course lower and takes up less space... i had to go with the second choice and thus I am getting the problems i guess..
the second video (webcam) was .avi . I just saw that - apologies for my mistake...
what do you think?
don't you find it strange that both vids last exacly the same, and the audio is great on both of them when played individually - but once I put them together, the second one gets out of synch little by little? -
DV quality is best quality - it is the same as the camera put on tape.
Open your avisynth script in virtualdub and see what the error is.
They don't last the same time, they have the same number of frames. Unless each frame is take at exactly the same moment, they won't be the same. Your clips run at different framerates, so they aren't the same length. I suspect the frame numbers being the same in just coincidence.
What version of avisynth are you using ?
What does the error message say when loaded into virtualdub ?Read my blog here.
-
Open your avisynth script in virtualdub and see what the error is.
http://avisynth.org/mediawiki/DirectShowSource -
Originally Posted by guns1inger
I am such an amateur... how I got myself in this mess - i'll never know...
On a last thought... since I have both the original source vids... couldn't I encode them using the same codec to make them have the same rate?
At this point, i'll just give you the whole story. I had an audition and I used a camera (miniDV) to record the actors and another camera (webcam) to record the casting directors. The webcam (unfortunately) didn't record sound - even though it should. Now I am trying to make a vid (split screen) showing the performances and the casting directors faces... I managed to save the audio of the performances and I put it on the second vid - the casting dir. - and it works. I put them together using avisynch and it all goes well during the first few minutes and then it loses synch... it gets worse every minute.
I have a deadline by which I need to submit the video, so what would you say is the fastest solution to it?
Please help... I understand that I am becoming annoying but it's really important.
Thanks again -
The audio will be in sync because it is the constant between the two. If I had a PAL DV camera and an NTSC DV camera filming the same event, I would have two clips with the same audio, running the same duration, but one clip would run at 25 fps, the other at 29.97 fps. There would be a different number of frames in each clip, the but the audio from either would sync with both.
I believe your problem is because the 29.97 recording (the DV camera) has been re-encoded (by the sounds of it, several times) and the framerates have shifted during one or more encodings. I would go back to the original DV and cap that again, this time using WinDV.
Codec does not determine framerate in most cases (not all - DV is fixed, most are not).
So get your original source videos, and use this script (amended - Thanks, Manono)
a = DirectShowSource("C:\cating2.wmv",Audio=False)
b = DirectShowSource("C:\ela.wmv", Audio=False)
a=a.AssumeFPS(29.97)
b=b.AssumeFPS(30.00)
StackHorizontal(a,b)
You may still have problems with sync simply because of disparate framerates, but lets see if it is closer.Read my blog here.
-
Thanks again.
I tried that, and now the second vid is getting better... still out of sync but better... and the first video has become more out of sync.
lol... you cannot even begin to imagine what I've tried with these two vids these last couple of days. I even changed the frame rate of the first vid, then streched the audio using cool edit and then I thought that hypothecally i had it all figured out... but nope... nothing...
please don't give up on me. -
Also... just had an idea... is there any other program that can do the split screen edit which could make my life easier?
-
A thing I forgot to mention on all my previous posts and might be importatn....
When I make the split screen file - i use DivX 5.1 fast encoding (in virtualdubmod)... could this be a cause for problems? All the other ways to encode take loads of time... -
As you're using different sources now,
you should re-post info about cating.wmv and ela.avi caps.
Might be time to upload some samples.
What is your target?
I don't think you've said.
Anyway my suggestion
(assuming framerates are the same as encoded samples you posted info about):
Code:a = DirectShowSource("C:\cating2.wmv") b = AviSource("C:\ela.avi", Audio=False).ChangeFPS(29.984) StackHorizontal(a,b) AssumeFPS(29.97)
-
Guys! I just want to say BIG THANKS! I finally made it!
The correct script was:
a = AviSource("C:\cating3m.avi", Audio=False).ChangeFPS(29.97)
b = AviSource("C:\trelalalo.avi", Audio=False).ChangeFPS(29.97)
StackHorizontal(a,b)
AssumeFPS(29.97)
You can't possibly imagine how much time it took me. How many "how-to" guides I read. I feel like an expert now lol.
I appreciate what you've done for me so much - i wish I could give something in return.
I guess that's all.... Funny thing is I started cutting each video to 50 smaller videos and I added them 1 by 1... the full thing was 8 hours long and it was split between 3 sets of vids. so you can imagine that cutting them up one by one just wouldn't work.
I tried 45tripp's script and it got better so I stopped what I was doing and just started working on the script ONCE AGAIN! I really can't believe it worked.
I LOVE YOU! lol
Wish you the best!
Similar Threads
-
audio and video not in synch by a second or two problem
By sabathiel in forum CapturingReplies: 0Last Post: 14th Oct 2011, 21:45 -
Audio synch problem after IVTC
By avengerevenge in forum AudioReplies: 1Last Post: 15th Feb 2010, 11:34 -
Video/Audio synch problem
By tangomango in forum Newbie / General discussionsReplies: 2Last Post: 8th Sep 2008, 12:19 -
Audio Synch problem only after burning?
By MCPorche in forum AudioReplies: 1Last Post: 31st Jan 2008, 19:34 -
Audio At strat in Synch , along of Movie Lost Synch with Video !!!!!
By p_samimi in forum AudioReplies: 9Last Post: 12th Jan 2008, 23:47