Hi,<br />
<br />
I have a mpeg-4 encoded video data and a wave file corresponding a video call (containing both audio and video). I am able to stream the mpeg-4 video file and the wave file separately by using live555 library. <br />
I want to play both the files together i.e. when the test_vid.m4e (mpeg-4 file) is being played, the test_aud.wav also gets played. For this I made the following changes in DynamicRTSPServer.cpp when the subsession for video and audio is created:<br />
<br />
if (stricmp(extension, ".m4e") == 0) <br />
{<br />
// Assumed to be a MPEG-4 Video Elementary Stream file:<br />
NEW_SMS("MPEG-4 Video");<br />
<br />
sms->addSubsession(MPEG4VideoFileServerMediaSubsession::createNew(env, fileName, reuseSource));<br />
<br />
//---------- added these lines so that the wave gets streamed-----<br />
Boolean convertToULaw = False;<br />
sms->addSubsession(WAVAudioFileServerMediaSubsession::createNew (env, "D:test_aud.wav", reuseSource, convertToULaw));<br />
}<br />
<br />
After these small changes the video file and the audio file are getting streamed and the vlc is able to play them together. However the two files are not getting played synchronously by vlc. The video is lagging behind the audio. <br />
I don't know if I have done the above thing correctly or not.<br />
Could you please suggest me the correct way of streaming video and audio files together so that they can be played synchoronously by vlc.<br />
<br />
Regards,<br />
Nisha<br />
<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>