![]() ![]() ![]() I was trying to record video from a webcam together with audio from a microphone, video is HD (1080p) so I wanted to save an AVI file encoded in MPEG4, so I used ffshow-tryous (free Mpeg4 encoder) together with an Avi Mux Filter, the problem was that some (well most of them :) ) of my videos had sync issues. Just wanted to add the solution for my situation, maybe it will help someone. It seems there's a constant 500ms gap between the audio and video, if I use virtualDub to delay the audio by 500ms it looks fine, how can set this in the graph? Please any advice would be highly appreciated, I am hopeless :/ Oh i forgot to mention I also tried building the graph in GraphEditPlus but the problem still remains, here's a link to the graph: Ĭurrently I am testing all my changes on the CapWMV sample from DirectShow.NET's samples. ![]() Tried saving the audio and video to two different files and used VirtualDub to see if they match, they still dont. Set SyncUsingStreamOffset(true) on the grap - timestamps are much closer now but the final result is the sameħ. Created a SystemClock and set it has the ReferenceClock - made no differenceĦ. ![]() tried manually setting the ReferenceClock to one of the capture filters (audio/video) but both won't cast to IReferenceClockĥ. create SampleGrabber that prints the timestamp for both audio and video - saw that the audio timestamp is 500ms earlier but I have no idea what to do with this fact.Ĥ. Changed from AVI Mux to WM ASF Writer - video is frozen at the beginning (2 seconds) and rest of video is in-sync (but the two first seconds are not usable)ģ. Started with ffdshow encoder and changed to AVI Mux - problem persists, audio is delayed and at the end of the video the picture remains frozen and the audio continuesĢ. I have an application that captures video from a webcam and audio from the microphone and save it to a file, for some reason the audio and video are never in-sync, i tried the following:ġ. I have started a thread on this at DirectShow.NET's forum, here is the link īut unfortunately the problem still persists. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |