Click here to Skip to main content
15,921,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm working on a application recording video from TV via DirectShow. The function used is
SetOutputFileName() 

parameter : MEDIASUBTYPE_Avi
If compression filter (Cinepak Codec by Radius) is applied, the video recorded is suffering severe frame dropping.
If no compression filter is applied, the video file recorded is as large as 2GB in two mintues.
In both cases, video and audio are not synchronized.

How to deal with it?
Posted

You need to use a better codec and get a faster machine, or use a lower image size or frame rate. You're dropping frames b/c your computer can't keep up, and you're out of sync because the codecs that come with windows all suck. DivX is a good codec. The other thing you can do with a slow machine is to capture uncompressed, and compress later.
 
Share this answer
 
To Christian Graus,
DivX cannot be found in Win7.
It's too large if we capture uncompressed.
 
Share this answer
 
Comments
Christian Graus 6-Jul-10 0:11am    
What made you think that the 'answer' button was the right thing to push to post this ? Again, NONE of the codecs that come with Windows are worth a damn. You need to download and install decent ones. Push 'comment' to comment, and 'answer' to answer.
Sandeep Mewara 6-Jul-10 1:52am    
Reason for my vote of 1
It is a comment to CG answer and not an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900