Click here to Skip to main content
15,925,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Record AVI with sound Pin
normanS15-May-06 20:08
normanS15-May-06 20:08 
GeneralRe: Record AVI with sound Pin
huutribk200115-May-06 20:21
huutribk200115-May-06 20:21 
GeneralRe: Record AVI with sound Pin
huutribk200115-May-06 20:26
huutribk200115-May-06 20:26 
GeneralRe: Record AVI with sound Pin
normanS15-May-06 23:57
normanS15-May-06 23:57 
GeneralRe: Record AVI with sound Pin
huutribk200116-May-06 0:02
huutribk200116-May-06 0:02 
GeneralRe: Record AVI with sound Pin
normanS16-May-06 0:22
normanS16-May-06 0:22 
GeneralRe: Record AVI with sound Pin
huutribk200116-May-06 16:51
huutribk200116-May-06 16:51 
GeneralRe: Record AVI with sound Pin
normanS16-May-06 19:23
normanS16-May-06 19:23 
Where exactly is the problem?

As far as I could tell, the code I posted was similar to what you used (same APIs, etc), so it should be possible for you to use my code (parameters used in the audio header, sequence of calling AVI functions etc) to give ideas of what to try in your code. The source of the data (you are reading from AVI and WAV files, I am getting it from audio and video buffers in memory) should not make a difference.

One thought I had - are you creating the AVI with video only, and the WAV with audio only, then trying to add the audio to the end of the video-only AVI? If so, this is not recommended - it may work (maybe only in some AVI players?), but performance could be really bad, since AVIs are designed to alternate between chunks of audio and chunks of video.

A better approach if you have video.avi and audio.wav would be to read a frame of video from video.avi, a block of audio the same length as the video frame (33.333 or 40 milliseconds) from audio.wav, then write this information to a new mixedAudioVideo.avi. Repeat until finished.

What error message are you getting when you try to play the AVI you create? Maybe that can give a tip of what is going wrong.
QuestionHelp mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2315-May-06 17:37
nrj2315-May-06 17:37 
AnswerRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
_AnsHUMAN_ 15-May-06 17:46
_AnsHUMAN_ 15-May-06 17:46 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2315-May-06 18:32
nrj2315-May-06 18:32 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2316-May-06 20:25
nrj2316-May-06 20:25 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
_AnsHUMAN_ 16-May-06 20:36
_AnsHUMAN_ 16-May-06 20:36 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2316-May-06 21:00
nrj2316-May-06 21:00 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
_AnsHUMAN_ 16-May-06 21:06
_AnsHUMAN_ 16-May-06 21:06 
AnswerRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2315-May-06 20:43
nrj2315-May-06 20:43 
Questionhow to create a transparent Edit control on a CWnd object, while not a CDialog object? Pin
samfromcn15-May-06 15:55
samfromcn15-May-06 15:55 
AnswerRe: how to create a transparent Edit control on a CWnd object, while not a CDialog object? Pin
NiceNaidu15-May-06 18:41
NiceNaidu15-May-06 18:41 
GeneralRe: how to create a transparent Edit control on a CWnd object, while not a CDialog object? Pin
samfromcn16-May-06 16:25
samfromcn16-May-06 16:25 
QuestionCreate a Window on the Desktop (that replaces the background image, behind the icons) Pin
ghudo15-May-06 15:53
ghudo15-May-06 15:53 
QuestionHTML Help Pin
tigre21515-May-06 14:46
tigre21515-May-06 14:46 
AnswerRe: HTML Help Pin
led mike15-May-06 18:07
led mike15-May-06 18:07 
GeneralRe: HTML Help Pin
NiceNaidu15-May-06 18:46
NiceNaidu15-May-06 18:46 
QuestionHow to set an image to the tree sub item! Pin
M_Nuaimi15-May-06 13:22
M_Nuaimi15-May-06 13:22 
AnswerRe: How to set an image to the tree sub item! Pin
huutribk200115-May-06 20:38
huutribk200115-May-06 20:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.