|
Hi everyone ....
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. My pipeline is something look like this....
souphttpsrc location="http://ip:port:/mjpg" ! multipartdemux ! jpegdec ! queue ! ffenc_mpeg4 ! rtpmp4vpay name=pay0 pt=96
And the thing is its working....
I tried to play the stream in ffplay using the url rtsp://localhost:554/test
and i got //--------------------------------------------------------------------------------------------------------------// ** Message: Timestamp..............................................=-1481577766 RTSP response message 0xbfd3ba28 status line: code: '200' reason: 'OK' version:
'1.0' headers: key: 'CSeq', value: '4' key: 'RTP-Info', value: 'url=rtsp://192.168.1.244:554/test/stream=0;seq=18158;rtptime=2813389530' key: 'Range', value: 'npt=0.000000--0.000000' key: 'Server', value: 'GStreamer RTSP server' key: 'Session', value: 'npnpcotgspxfmrbn' body: length 0 ** Message: going to state PLAYING media 0x92ce040 ** Message: adding 192.168.1.244:5000-5001 ** Message: active 1 media 0x92ce040 ** Message: state PLAYING media 0x92ce040 ** Message: 0x92ce040: got message type new-clock ** Message: Session created
//-------------------------------------------------------------------------------//
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
....
and i terminal i got some message saying....
///-----------------------------------------------------------//
RTSP response message 0xbfe35318 status line: code: '200' reason: 'OK' version: '1.0' headers: key: 'CSeq', value: '19' key: 'RTP-Info', value: 'url=rtsp://192.168.1.244:554/test/stream=0;seq=38220;rtptime=907387371' key: 'Range', value: 'npt=0.000000--0.000000' key: 'Server', value: 'GStreamer RTSP server' key: 'Session', value: 'amstwlbpespamgbj' body: length 0 ** Message: going to state PLAYING media 0x8a00048 ** Message: adding 192.168.1.210:1738-1739 ** Message: active 1 media 0x8a00048 ** Message: state PLAYING media 0x8a00048 ** Message: 0x8a00048: got message type new-clock ** Message: Session created ** Message:
0x89c2828: new source 0x8a207e0 ** 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; ** Message: finding 192.168.1.210:1739 ** Message: 0x89c2828: found transport 0x8a3bf08 for source 0x8a207e0 ** Message: 0x89c2828: source 0x8a207e0 in transport 0x8a3bf08 is active ** Message: keep session 0x8a274a0 alive ** Message: 0x89c2828: new SDES 0x8a207e0 ** Message: 0x89c2828: source 0x8a207e0 in transport 0x8a3bf08 is active ** Message: keep session 0x8a274a0 alive ** Message: 0x89c2828: source 0x8a207e0 in transport 0x8a3bf08 is active ** Message: keep session
0x8a274a0 alive
//-----------------------------------------------------------//
Here we are adding three callbacks to check the session alive ......in rtsp-media.c.
g_signal_emit_by_name (media->rtpbin, "get-internal-session", idx, &stream->session); g_signal_connect (stream->session, "on-new-ssrc", (GCallback) on_new_ssrc, stream); g_signal_connect (stream->session, "on-ssrc-sdes", (GCallback) on_ssrc_sdes, stream);
when i am playing the
stream using the ffplay i hav no problemm.......
Why these callbacks are activated only when am trying in vlc..? Why i am getting a single frame in vlc..?
Any idea....
---------------------------- Thanks Alex
|
------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
|