<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Stefan, thank you for your response. You know when I didn't get help for some time, I had lost my hope and abandon it. 2 second is considerable time. Anyway, I am sorry for my sily question, but I don't understnad what you mean by "narrow it down"? Also how can I "Check if you receive the material properly timestamped"?.<br><br>Thank you again for your help.<br><br>- Zelalem S. <br><br><br>> Date: Sat, 18 Jul 2009 19:03:10 +0300<br>> From: ensonic@hora-obscura.de<br>> To: gstreamer-devel@lists.sourceforge.net<br>> Subject: Re: [gst-devel] How can I synchronize video and audio<br>> <br>> Zelalem Sintayehu schrieb:<br>> > Hi guys, I wanted to record video coming from network into avi file,<br>> > and wrote some code. The file is created but it is unsynchronized (by<br>> > almost 2 second) and it is annoying. I am using avimuxer. I also used<br>> > buffer for the audio source hoping to reduce the time difference. The<br>> > following is the source and destination codes (the command line version<br>> > of my code). Is there anything that I should consider to avoid this<br>> > problem. Please help me. If you think that I should use other file<br>> > formats and video muxer, please advice me.<br>> > <br>> > Source:<br>> > Audio: <br>> > gst-launch-0.10<br>> > -v alsasrc ! queue ! audio/x-raw-int,rate=8000,channels=1,depth=8 !<br>> > audioconvert ! alawenc ! rtppcmapay ! udpsink port=5002<br>> > Video:<br>> > gst-launch<br>> > v4l2src ! video/x-raw-rgb,width=320,height=240 ! queue ! videorate !<br>> > video/x-raw-rgb,rate=15/1 ! ffmpegcolorspace! ffenc_h263p ! rtph263ppay<br>> > ! udpsink port=5000<br>> > <br>> > Destination:<br>> > gst-launch-0.10 -v<br>> > avimux name=mux ! filesink location=videoandaudio.avi sync=true {udpsrc<br>> > port=5000<br>> > caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998" <br>> > ! queue ! rtph263pdepay !<br>> > 'video/x-h263,width=320,height=240,framerate=(fraction)25/1' ! queue} !<br>> > mux.video_0 {udpsrc port=5002<br>> > caps="application/x-rtp,media=(string)audio,payload=(int)96,<br>> > rate=(int)8000, encoding-name=(string)PCMA" num-buffers=5000 ! queue !<br>> > rtppcmadepay ! 'audio/x-alaw, rate=(int)8000, channels=(int)1' ! queue}<br>> > ! mux.audio_0;<br>> > <br>> try to narrow it down. Check if you receive the material properly timestamped.<br>> Check if avimux handles timestamping correctly when muxing.<br>> <br>> STefan<br>> <br>> > Thank you.<br>> > <br>> > - Zelalem S. <br>> > <br>> > <br>> > <br>> > _________________________________________________________________<br>> > Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.<br>> > <br>> > http://www.microsoft.com/windows/windowslive/products/photos.aspx<br>> > <br>> > <br>> > ------------------------------------------------------------------------<br>> > <br>> > ------------------------------------------------------------------------------<br>> > <br>> > <br>> > ------------------------------------------------------------------------<br>> > <br>> > _______________________________________________<br>> > gstreamer-devel mailing list<br>> > gstreamer-devel@lists.sourceforge.net<br>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>> <br>> <br>> ------------------------------------------------------------------------------<br>> Enter the BlackBerry Developer Challenge <br>> This is your chance to win up to $100,000 in prizes! For a limited time, <br>> vendors submitting new applications to BlackBerry App World(TM) will have<br>> the opportunity to enter the BlackBerry Developer Challenge. See full prize <br>> details at: http://p.sf.net/sfu/Challenge<br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br><br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>