RTSP streaming - IP address query

karan karanlinux at yahoo.com
Fri Nov 21 01:13:50 PST 2014


Hi, 
I need to make RTSP stream within local network. I am using *test-launch.c*
example application from gst-rtsp-server source for this.

My server IP address : *192.168.0.101*
My client IP address  : *192.168.0.102*


In test-launch.c, I am setting up the server's IP address by adding
following line  :
*gst_rtsp_server_set_address(server,"192.168.0.101");*

I am using the server's IP address to stream and also to receive.

Following command works locally. 
(server has USB camera at the node /dev/video0)

In Server : 
/*./test-launch '( v4l2src /dev/video0 ! x264enc ! rtph264pay name=pay0
pt=96 )'*/

In client :
/*gst-launch-0.10 rtspsrc location=rtsp://192.168.0.101:8554/test \
! rtph264depay \
! queue ! ffdec_h264 \
! xvimagesink sync=false*/

*NOTE : It also worked globally over internet* 
If needed I will post the changes made to above commands to make it work
over internet.

My question is :
*Is it possible to use client's IP address to stream from server and to
receive in client ?*

Because My problem is that, 
I have to implement rtsp stream in our IMX6 solo based custom board with GSM
modem.
Here I have to stream from our board and receive it in PC.
*SIM card doesn't have a PUBLIC IP address and so I will not be able to
receive the stream in PC.*

NOTE : I was able to make UDP stream from our board and receive it PC with
following commands.
MY PC's Public IP address : *XXX.XX.124.9*

In our board:
*gst-launch -v mfw_v4lsrc device=/dev/video1 fps-n=15 fps-d=1 capture-mode=7
! \
capsfilter caps="video/x-raw-yuv, width=(int)176, height=(int)144" \
! vpuenc codec=6 ! rtph264pay ! \
udpsink host=XXX.XX.124.9 port=5000 -v –gst-debug=*:2*


In PC :
*gst-launch -v -e udpsrc port=5000 caps="application/x-rtp, \
media=(string)video, clock-rate=(int)90000, \
encoding-name=(string)H264" \
! rtph264depay ! ffdec_h264 ! \
autovideosink -v --gst-debug=*:2*

*Help me to make RTSP stream from our custom board to PC.
*

~ Karan ~
 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-streaming-IP-address-query-tp4669598.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list