![]() |
|
|
#1 |
|
Newbie
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
Problem in mixing audio(wma) and video(wmv)
Hi All,
I am trying to mix audio and video using WMFSDK9. The video i have is in wmv format(made with bmp images) and the audio is in wma format(which is converted from wav file). and the wav file is raw data with pcm header of 8kbps and 16 bitsper sample) When i try to mix thiese two streams the resultant wmv file drops some audio samples in between,but the video is perfect till the end. The audio profile is <profile version="589824" storageformat="1" name="" description=""> <streamconfig majortype="{73647561-0000-0010-8000-00AA00389B71}" streamnumber="1" streamname="audio 1" inputname="0" bitrate="8000" bufferwindow="2688" reliabletransport="0" decodercomplexity="" rfc1766langid="en-us" > <wmmediatype subtype="{00000161-0000-0010-8000-00AA00389B71}" bfixedsizesamples="1" btemporalcompression="0" lsamplesize="640"> <waveformatex wFormatTag="353" nChannels="1" nSamplesPerSec="8000" nAvgBytesPerSec="1000" nBlockAlign="640" wBitsPerSample="16" codecdata="00220000260080070000"/> </wmmediatype> </streamconfig> </profile> and the video profile is <profile version="589824" storageformat="1" name="Screen Video/Audio Medium (CBR)" description=""> <streamconfig majortype="{73646976-0000-0010-8000-00AA00389B71}" streamnumber="1" streamname="Video Stream" inputname="Video409" bitrate="128000" bufferwindow="-1" reliabletransport="0" decodercomplexity="AU" rfc1766langid="en-us" > <videomediaprops maxkeyframespacing="30000000" quality="100"/> <wmmediatype subtype="{3253534D-0000-0010-8000-00AA00389B71}" bfixedsizesamples="0" btemporalcompression="1" lsamplesize="0"> <videoinfoheader dwbitrate="128000" dwbiterrorrate="0" avgtimeperframe="2000000"> <rcsource left="0" top="0" right="1024" bottom="768"/> <rctarget left="0" top="0" right="1024" bottom="768"/> <bitmapinfoheader biwidth="1024" biheight="768" biplanes="1" bibitcount="24" bicompression="MSS2" bisizeimage="0" bixpelspermeter="0" biypelspermeter="0" biclrused="0" biclrimportant="0"/> </videoinfoheader> </wmmediatype> </streamconfig> </profile> Please tell me what is wrong with this and why I am not able to mix perfectly and paly back. Thanks, Msurni |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|