How to set client_port in GStreamer ?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set client_port in GStreamer ?

195 Views
Senior Contributor I

Hi, 

I'm using iMX6S and I'm trying to stream (RTSP- Real Time Stream Protocol) over internet by GStreamer. When I push stream video to server, I got this error from server: 

ERR: transport header does not have valid client ports ([RTP/AVP/UDP;unicast;client_port=0-0;mode=RECORD])

I also try many way to configure client ports but It's does work. 

With client side, I use this element: 

rtspclientsink location=rtsp://<IP Public of Server>:<Opened PORT>/stream

UPDATE: This is log from client: 

Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://<IP>:<PORT>/stream
Progress: (open) Retrieving server options
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[INFO] ringBufferEnable 0, chromaInterleave 0, mapType 0, linear2TiledEnable 0
[WARN] VPU iram is less than needed, some parts don't use iram
Progress: (request) Sending RECORD request
Progress: (record) Sending server stream info
Progress: (request) SETUP stream 0
ERROR: from element /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not write to resource.

Did I missing something ?

What should I do ?

Thank you,

Toan

Labels (1)
5 Replies

62 Views
NXP TechSupport
NXP TechSupport

Hi Dao

one can look at ridgerun gstreamer tutorial, "Setup normal camera to client RTSP session" :

GStreamer RTSP negoiated RTP Transport Streamer Back Channel Communication - RidgeRun Developer Conn... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

62 Views
Senior Contributor I

Setup "client-port" is not mentioned in that article. Can you tell me more details ? I very appreciate that. 

0 Kudos

62 Views
NXP TechSupport
NXP TechSupport

may be useful to look at

GStreamer-devel - gst-rtsp-server, rtspsrc &Firewall/NAT? 

Best regards
igor

62 Views
Senior Contributor I

This is which I get:

This is not a GStreamer specific problem, it happens with all RTSP (and other) servers. What you need to do is to choose a client port and configure the client to always request that port, then enter a firewall rule to open that port. Be forewarned, there are some buggy NATs that will lie about opening ports.

But in Linux, I don't know what I have to do that. Do you have any ideas ?

0 Kudos

62 Views
Senior Contributor I

I have been updated the client log. 

0 Kudos