<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Thabelo, thank you for your response. I requested a sink for both audio and video and linked it to avimux as follows:<br>gst_pad_link (gst_element_get_pad (h263depay, "src"),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; gst_element_get_pad (avimuxer, "video_0"));<br><br>gst_pad_link (gst_element_get_pad (pcmadepay, "src"),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; gst_element_get_pad (avimuxer, "audio_0"));<br><br>But the result is the same. It creates the file but the file is empty.&nbsp; BTW, i had used gst_element_link_filtered instead of the above statements previously.<br><br>- Zelalem S. <br><br><hr id="stopSpelling">Date: Tue, 23 Jun 2009 13:42:09 +0200<br>From: thabelo@gmail.com<br>To: gstreamer-devel@lists.sourceforge.net<br>Subject: Re: [gst-devel] Problem with changing command line command to code<br><br>request Sink pad of your avimux, link it to your audiobin.<br><br>use gst-inspect "ELEMENT_TO_VIEW"&nbsp; to view your element pads, some of them aren't always available. some are dynamic. <br>Hope that helps.&nbsp; <br>
<br><div class="EC_gmail_quote">On Tue, Jun 23, 2009 at 1:00 PM, Zelalem Sintayehu <span dir="ltr">&lt;<a href="mailto:zelalems@hotmail.com">zelalems@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="EC_gmail_quote" style="padding-left: 1ex;">




<div>
Hi all, I had a command line command that copies video streams from a network into a file. When I try to change it to a code I face with problem. There is no error and the file is created but the content of the file is empty. I have also used sync=FALSE for the filesink element. I used two bins one for the audio and another for the video and then put the two bins and the avimux and filesink in the pipeline and started the pipepline. I even checked the state of the pipeline and it is in running state, but the file is empty. Pease help me. The following is the case:<br>
<br>I wanted to change the following into a code:<br>gst-launch-0.10 -v avimux
name=mux ! filesink location=videoandaudio.avi sync=true {udpsrc
port=5000
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998"
num-buffers=5000 ! queue ! rtph263pdepay !
'video/x-h263,width=320,height=240,framerate=(fraction)25/1' ! queue} !
mux.video_0 {udpsrc port=5002
caps="application/x-rtp,media=(string)audio,payload=(int)96,
rate=(int)8000, encoding-name=(string)PCMA" ! queue ! rtppcmadepay !
'audio/x-alaw, rate=(int)8000, channels=(int)1' ! queue} ! mux.audio_0;<br><br>And the following is what I did:<br>&nbsp;gst_bin_add_many (GST_BIN (audbin),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; udpsource_audio, queue_audio, pcmadepay, NULL);<br>
&nbsp; gst_bin_add_many (GST_BIN (vidbin),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; udpsource_video, queue_video_1, h263depay, NULL);<br>&nbsp; gst_bin_add_many (GST_BIN (pipeline), vidbin, audbin,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; avimuxer, filedes,&nbsp; NULL);<br><br>&nbsp; gst_element_link_many (udpsource_video, queue_video_1, h263depay, NULL);<br>
&nbsp; gboolean link_ok_video = gst_element_link_filtered (h263depay, avimuxer, caps_video_2);&nbsp; <br><br>&nbsp;gst_element_link_many (udpsource_audio, queue_audio, pcmadepay, NULL);<br>&nbsp;gboolean link_ok_audio = gst_element_link_filtered (pcmadepay, avimuxer, caps_audio_2);<br>
<br>&nbsp;gst_element_link_many (avimuxer, filedes, NULL);<br><br>&nbsp;gboolean pipstate=gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);<br><br>Thank you.<br><br>- Zelalem S. <br><br><br><hr>Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a href="http://spaces.live.com/spacesapi.aspx?wx_action=create&amp;wx_url=/friends.aspx&amp;mkt=en-us">Try it!</a></div>

<br>------------------------------------------------------------------------------<br>
Are you an open source citizen? Join us for the Open Source Bridge conference!<br>
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.<br>
Need another reason to go? 24-hour hacker lounge. Register today!<br>
<a href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a><br>_______________________________________________<br>

gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009' target='_new'>Check it out!</a></body>
</html>