How to set client_port in GStreamer ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to set client_port in GStreamer ?

3,035 次查看
toanjunifer
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

标签 (1)
5 回复数

2,902 次查看
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

2,902 次查看
toanjunifer
Senior Contributor I

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

0 项奖励

2,902 次查看
igorpadykov
NXP Employee
NXP Employee

may be useful to look at

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

Best regards
igor

2,902 次查看
toanjunifer
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 项奖励

2,902 次查看
toanjunifer
Senior Contributor I

I have been updated the client log. 

0 项奖励