<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi everyone ....<br><br>&nbsp;&nbsp; I here trying to broadcast a camera using gst-rtsp-server. I just created a pipeline to get the mjpeg stream from the camera and i encode it in to a mpeg4 stream.<br>My pipeline is something look like this....<br><br>souphttpsrc location="http://ip:port:/mjpg" ! multipartdemux ! jpegdec ! queue ! ffenc_mpeg4 ! rtpmp4vpay name=pay0 pt=96 <br><br>And the thing is its working....<br><br>I tried to play the stream in ffplay using the url rtsp://localhost:554/test<br><br>and i got<br>//--------------------------------------------------------------------------------------------------------------//<br>** Message: Timestamp..............................................=-1481577766<br>RTSP response message 0xbfd3ba28<br>&nbsp;status line:<br>&nbsp;&nbsp; code:&nbsp;&nbsp; '200'<br>&nbsp;&nbsp; reason: 'OK'<br>&nbsp;&nbsp; version:
 '1.0'<br>&nbsp;headers:<br>&nbsp;&nbsp; key: 'CSeq', value: '4'<br>&nbsp;&nbsp; key: 'RTP-Info', value: 'url=rtsp://192.168.1.244:554/test/stream=0;seq=18158;rtptime=2813389530'<br>&nbsp;&nbsp; key: 'Range', value: 'npt=0.000000--0.000000'<br>&nbsp;&nbsp; key: 'Server', value: 'GStreamer RTSP server'<br>&nbsp;&nbsp; key: 'Session', value: 'npnpcotgspxfmrbn'<br>&nbsp;body: length 0<br>** Message: going to state PLAYING media 0x92ce040<br>** Message: adding 192.168.1.244:5000-5001<br>** Message: active 1 media 0x92ce040<br>** Message: state PLAYING media 0x92ce040<br>** Message: 0x92ce040: got message type new-clock<br>** Message: Session created<br><br>//-------------------------------------------------------------------------------//<br><br><span style="color: rgb(255, 0, 0);">When i played in ffplay its working fine .........the problem comes when the stream is tried to play in vlc.... I got only one image in vlc and it hangs there
 </span>....<br><br>and i terminal i got some message saying....<br><br>///-----------------------------------------------------------//<br><br>RTSP response message 0xbfe35318<br>&nbsp;status line:<br>&nbsp;&nbsp; code:&nbsp;&nbsp; '200'<br>&nbsp;&nbsp; reason: 'OK'<br>&nbsp;&nbsp; version: '1.0'<br>&nbsp;headers:<br>&nbsp;&nbsp; key: 'CSeq', value: '19'<br>&nbsp;&nbsp; key: 'RTP-Info', value: 'url=rtsp://192.168.1.244:554/test/stream=0;seq=38220;rtptime=907387371'<br>&nbsp;&nbsp; key: 'Range', value: 'npt=0.000000--0.000000'<br>&nbsp;&nbsp; key: 'Server', value: 'GStreamer RTSP server'<br>&nbsp;&nbsp; key: 'Session', value: 'amstwlbpespamgbj'<br>&nbsp;body: length 0<br>** Message: going to state PLAYING media 0x8a00048<br>** Message: adding 192.168.1.210:1738-1739<br>** Message: active 1 media 0x8a00048<br>** Message: state PLAYING media 0x8a00048<br>** Message: 0x8a00048: got message type new-clock<br>** Message: Session created<br>** Message:
 0x89c2828: new source 0x8a207e0<br>** Message: structure: application/x-rtp-source-stats, ssrc=(uint)871788172, internal=(boolean)false, validated=(boolean)false, received-bye=(boolean)false, is-csrc=(boolean)false, is-sender=(boolean)false, rtcp-from=(string)192.168.1.210:1739, have-rb=(boolean)false, rb-fractionlost=(uint)0, rb-packetslost=(int)0, rb-exthighestseq=(uint)0, rb-jitter=(uint)0, rb-lsr=(uint)0, rb-dlsr=(uint)0, rb-round-trip=(uint)0;<br>** Message: finding 192.168.1.210:1739<br>** Message: 0x89c2828: found transport 0x8a3bf08 for source&nbsp; 0x8a207e0<br>** Message: 0x89c2828: source 0x8a207e0 in transport 0x8a3bf08 is active<br>** Message: keep session 0x8a274a0 alive<br>** Message: 0x89c2828: new SDES 0x8a207e0<br>** Message: 0x89c2828: source 0x8a207e0 in transport 0x8a3bf08 is active<br>** Message: keep session 0x8a274a0 alive<br>** Message: 0x89c2828: source 0x8a207e0 in transport 0x8a3bf08 is active<br>** Message: keep session
 0x8a274a0 alive<br><br><br><br><br>//-----------------------------------------------------------//<br><br>Here we are adding three callbacks to check the session alive ......in rtsp-media.c.<br><br><br><br>&nbsp;<span style="color: rgb(255, 0, 0);"> g_signal_emit_by_name (media-&gt;rtpbin, "get-internal-session", idx,</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &amp;stream-&gt;session);</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp; g_signal_connect (stream-&gt;session, "on-new-ssrc", (GCallback) on_new_ssrc,&nbsp;&nbsp;&nbsp; stream);</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp; g_signal_connect (stream-&gt;session, "on-ssrc-sdes", (GCallback) on_ssrc_sdes,</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; stream);</span><br><br>when i am playing the
 stream using the ffplay i hav no problemm.......<br><br>Why these callbacks are activated only when am trying in vlc..?<br>Why i am getting a&nbsp; single frame in vlc..?<br><br>Any idea....<br><br><br>----------------------------<br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Thanks</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Alex</span><br></td></tr></table><br>