<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 e-mail. I understand what you mean now. I will try to do both and will tell you the result.<br><br>Thank you again for the support.<br><br>- Zelalem S. <br><br><br>> Date: Sat, 18 Jul 2009 22:51:03 +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 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>> Don't expect that everything is ready. I don't have an explanation for the<br>> problem you see. As nobody else was answering, it seems that you will have to<br>> figure our what the probelm is. With "narrow it down", I was suggsting to try to<br>> make simpler/different variants to see if you can pinpoint the problem. E.g.<br>> recod to a mp4 with mp4mux to see if it might be a problem in avimux.<br>> <br>> Also you should not start two pipelines on the src side, instead of<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>> just do<br>> <br>> Source:<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>> 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>> Then both livesource use the same clock to timestamp buffers.<br>> <br>> Stefan<br>> <br>> <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>> 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 />With Windows Live, you can organize, edit, and <a href='http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx' target='_new'>share your photos.</a></body>
</html>