<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hello Everyone,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have generated RTP Audio and Video streams on the server using Gstreamer and have tried to record them on the client using Gstreamer. On the client, a file is being generated with expected size but I cannot play it either with gstreamer or with other standard video players. The codes are as follows:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>Server side:<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US>SRC=localhost<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>DEST=localhost<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>VCAPS="video/x-raw,width=352,height=288,framerate=15/1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>gst-launch-1.0 -ve rtpbin name=rtpbin \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> videotestsrc num-buffers=200 ! $VCAPS ! x264enc ! rtph264pay ! rtpbin.send_rtp_sink_0 \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rtpbin.send_rtp_src_0 ! udpsink host=$DEST port=5000 \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> audiotestsrc num-buffers=200 ! voamrwbenc ! rtpamrpay ! rtpbin.send_rtp_sink_1 \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rtpbin.send_rtp_src_1 ! udpsink host=$DEST port=5002<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>Client side:<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US>SRC=localhost<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>DEST=localhost<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-rate=(int)16000,encoding-name=(string)AMR-WB,encoding-params=(string)1,octet-align=(string)1"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>LATENCY=400<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>VIDEO_STR=" rtph264depay ! avdec_h264 ! videoconvert ! x264enc ! qtmux name=mux ! filesink location=<dir>/Captured.3gp"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>AUDIO_STR=" rtpamrdepay ! avdec_amrwb ! audioconvert ! voamrwbenc ! mux."<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>gst-launch-1.0 -v rtpbin name=rtpbin latency=$LATENCY \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> udpsrc caps=$VIDEO_CAPS address=$SRC port=5000 ! rtpbin.recv_rtp_sink_0 \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rtpbin. ! $VIDEO_STR \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> udpsrc caps=$AUDIO_CAPS address=$SRC port=5002 ! rtpbin.recv_rtp_sink_1 \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rtpbin. ! $AUDIO_STR<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>and when I play the file via GStreamer, I get the following error<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>gst-launch-1.0 playbin uri=file:///<dir>/Captured.3gp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Setting pipeline to PAUSED ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Pipeline is PREROLLING ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: This file contains no playable streams.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Additional debug info:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>qtdemux.c(640): gst_qtdemux_post_no_playable_stream_error (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>no known streams found<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ERROR: pipeline doesn't want to preroll.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Setting pipeline to NULL ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Freeing pipeline ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>However for the same server side code, I can successfully play audio and video streams on the client side using autovideosink and autoaudiosink, and I can record audio and video streams in different sessions on the client as well. The problem is when I try to record the audio and video streams at the same time to a 3gp file. What might be the problem?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Many thanks in advance<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Edip<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>