<div dir="ltr"><div><div>Hi.<br></div><br>I work a lot with ltv cams with no issues. The only hint I made for them is assign a specific stream handler for rtspsrc<br><br> source.connect('select-stream',self.stream_handler)<br><br></div><div>Where stream handler is:<br></div><div><br> def stream_handler(self,bus,num,caps):<br> if caps.get_structure(0).get_value('media') == 'video':<br> return True<br> elif caps.get_structure(0).get_value('media') == 'audio':<br> return True<br> else:<br> return False<br><br><br></div><br><div>Hope that helps<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-04 16:44 GMT+03:00 Mailing List SVR <span dir="ltr"><<a href="mailto:lists@svrinformatica.it" target="_blank">lists@svrinformatica.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Il 04/10/2016 14:23, KnightUS ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i start testing new version of ltv cams. for test i use simple gst-play<br>
(1.9.2).<br>
gst-play rtsp://<a href="http://admin:123456@192.168.37.245:554/profile1/" rel="noreferrer" target="_blank">admin:123456@192.168.37<wbr>.245:554/profile1/</a> working fine, but<br>
if i start second stream (again start gst-play and have 2 connections) i get<br>
error : Error (400): Bad Request<br>
<br>
i try to start gst-launch with debug=true<br>
gst-launch-1.0 rtspsrc<br>
location="rtsp://<a href="http://admin:123456@192.168.37.245:554/profile1/" rel="noreferrer" target="_blank">admin:123456@<wbr>192.168.37.245:554/profile1/</a>" debug=true<br>
<br>
output:<br>
........skip.......<br>
sdp packet 0x7f8b4c019490:<br>
version: '0'<br>
origin:<br>
username: '-'<br>
sess_id: '1463353216773351'<br>
sess_version: '1'<br>
nettype: 'IN'<br>
addrtype: 'IP4'<br>
addr: '192.168.37.245'<br>
session_name: '\profile1'<br>
information: '(NULL)'<br>
uri: 'http:///'<br>
emails:<br>
email 'admin@'<br>
connection:<br>
nettype: '(NULL)'<br>
addrtype: '(NULL)'<br>
address: '(NULL)'<br>
ttl: '0'<br>
addr_number: '0'<br>
key:<br>
type: '(NULL)'<br>
data: '(NULL)'<br>
attributes:<br>
attribute 'control' : '*'<br>
attribute 'range' : 'npt=00.000- '<br>
medias:<br>
media 0:<br>
media: 'video'<br>
port: '0'<br>
num_ports: '0'<br>
proto: 'RTP/AVP'<br>
formats:<br>
format '96'<br>
information: '(NULL)'<br>
key:<br>
type: '(NULL)'<br>
data: '(NULL)'<br>
attributes:<br>
attribute 'control' : 'track1'<br>
attribute 'rtpmap' : '96 H264/90000'<br>
attribute 'fmtp' : '96 profile-level-id=674200;<br>
sprop-parameter-sets=Z0IAIJWoF<wbr>ACBkA==,aM48gA==; packetization-mode=1'<br>
media 1:<br>
media: 'audio'<br>
port: '0'<br>
num_ports: '0'<br>
proto: 'RTP/AVP'<br>
formats:<br>
format '8'<br>
information: '(NULL)'<br>
key:<br>
type: '(NULL)'<br>
data: '(NULL)'<br>
attributes:<br>
attribute 'control' : 'track2'<br>
attribute 'rtpmap' : '8 pcma/8000'<br>
attribute 'ptime' : '40'<br>
media 2:<br>
media: 'application'<br>
port: '0'<br>
num_ports: '0'<br>
proto: 'RTP/AVP'<br>
formats:<br>
format '8'<br>
information: '(NULL)'<br>
key:<br>
type: '(NULL)'<br>
data: '(NULL)'<br>
attributes:<br>
attribute 'control' : 'track3'<br>
attribute 'rtpmap' : '8 pcma/8000'<br>
attribute 'recvonly' : ''<br>
RTSP request message 0x7f8b524a2a50<br>
request line:<br>
method: 'SETUP'<br>
uri: 'rtsp://<a href="http://192.168.37.245:554/profile1/track1" rel="noreferrer" target="_blank">192.168.37.245:554/pro<wbr>file1/track1</a>'<br>
version: '1.0'<br>
headers:<br>
key: 'User-Agent', value: 'GStreamer/1.9.2'<br>
key: 'Transport', value: 'RTP/AVP;unicast;client_port=3<wbr>2834-32835'<br>
body:<br>
Ход выполнения: (request) SETUP stream 0<br>
RTSP response message 0x7f8b524a2ab0<br>
status line:<br>
code: '200'<br>
reason: 'OK'<br>
version: '1.0'<br>
headers:<br>
key: 'Server', value: 'TVT RTSP Server/1.0.0'<br>
key: 'CSeq', value: '3'<br>
key: 'Last-Modified', value: 'Tue Jan 27 09:58:45 2015 GMT'<br>
key: 'Cache-Control', value: 'must-revalidate'<br>
key: 'Date', value: 'Sun, May 15 2016 23:00:16 GMT'<br>
key: 'Expires', value: 'Sun, May 15 2016 23:00:16 GMT'<br>
key: 'Transport', value:<br>
'RTP/AVP;unicast;destination=1<wbr>92.168.21.112;source=192.168.3<wbr>7.245;client_port=32834-32835;<wbr>server_port=20210-20211;ssrc=<wbr>372ce429'<br>
key: 'Session', value: '616916849174063;timeout=60'<br>
body: length 0<br>
RTSP request message 0x7f8b524a2a50<br>
request line:<br>
method: 'SETUP'<br>
uri: 'rtsp://<a href="http://192.168.37.245:554/profile1/track2" rel="noreferrer" target="_blank">192.168.37.245:554/pro<wbr>file1/track2</a>'<br>
version: '1.0'<br>
headers:<br>
key: 'User-Agent', value: 'GStreamer/1.9.2'<br>
key: 'Transport', value: 'RTP/AVP;unicast;client_port=3<wbr>4586-34587'<br>
body:<br>
Ход выполнения: (request) SETUP stream 1<br>
RTSP response message 0x7f8b524a2ab0<br>
status line:<br>
code: '200'<br>
reason: 'OK'<br>
version: '1.0'<br>
headers:<br>
key: 'Server', value: 'TVT RTSP Server/1.0.0'<br>
key: 'CSeq', value: '4'<br>
key: 'Last-Modified', value: 'Tue Jan 27 09:58:45 2015 GMT'<br>
key: 'Cache-Control', value: 'must-revalidate'<br>
key: 'Date', value: 'Sun, May 15 2016 23:00:16 GMT'<br>
key: 'Expires', value: 'Sun, May 15 2016 23:00:16 GMT'<br>
key: 'Transport', value:<br>
'RTP/AVP;unicast;destination=1<wbr>92.168.21.112;source=192.168.3<wbr>7.245;client_port=34586-34587;<wbr>server_port=20212-20213;ssrc=<wbr>53ff4d59'<br>
key: 'Session', value: '616916849174063;timeout=60'<br>
body: length 0<br>
*RTSP request message 0x7f8b524a2a50<br>
request line:<br>
method: 'SETUP'<br>
uri: 'rtsp://<a href="http://192.168.37.245:554/profile1/track3" rel="noreferrer" target="_blank">192.168.37.245:554/pro<wbr>file1/track3</a>'<br>
version: '1.0'<br>
Ход выполнения: (request) SETUP stream 2<br>
headers:<br>
key: 'User-Agent', value: 'GStreamer/1.9.2'<br>
key: 'Transport', value: 'RTP/AVP;unicast;client_port=3<wbr>5766-35767'<br>
body:<br>
RTSP response message 0x7f8b524a2ab0<br>
status line:<br>
code: '400'<br>
reason: 'Bad Request'<br>
version: '1.0'<br>
headers:<br>
key: 'Server', value: 'TVT RTSP Server/1.0.0'<br>
key: 'CSeq', value: '5'<br>
key: 'Date', value: 'Sun, May 15 2016 23:00:16 GMT'<br>
key: 'Expires', value: 'Sun, May 15 2016 23:00:16 GMT'<br>
key: 'Allow', value: 'OPTIONS'<br>
key: 'Allow', value: 'DESCRIBE'<br>
key: 'Allow', value: 'SETUP'<br>
key: 'Allow', value: 'TEARDOWN'<br>
key: 'Allow', value: 'PLAY'<br>
key: 'Allow', value: 'GET_PARAMETER'<br>
key: 'Allow', value: 'SET_PARAMETER'<br>
body: length 0*<br>
.....skip.....<br>
gstrtspsrc.c(6407): gst_rtspsrc_setup_streams ():<br>
/GstPipeline:pipeline0/GstRTSP<wbr>Src:rtspsrc0:<br>
Error (400): Bad Request<br>
<br>
<br>
profile1 have 3 tracks: video, audio and application.<br>
track3 get SETUP error if i already connected to camera. if i close<br>
connection i get OK on SETUP track3 and rtsp start PLAY<br>
<br>
vlc, mplayer and other skip this error and work fine.<br>
<br>
How can i skip\disable connect to track3?<br>
</blockquote>
<br>
<br>
Hi,<br>
<br>
I think this is not possible without modify rtspsrc,<br>
<br>
Nicola<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/rtspsrc-with-ip-camera-LTV-tp4679927.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/rtspsrc-with-ip-<wbr>camera-LTV-tp4679927.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
</blockquote></div><br></div>