<div dir="ltr">Been doing some tcp-dumping<br><br>so vlc works fine with my camera, and gstreamer now  (after i added "" around the location ) times out ..<br><br>first request from gstreamer:<br>OPTIONS rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> RTSP/1.0<br>CSeq: 1<br>User-Agent: GStreamer/1.14.5<br>User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)<br>ClientChallenge: 9e26d33f2984236010ef6253fb1887f7<br>CompanyID: KnKV4M4I/B2FjJ1TToLycw==<br>GUID: 00000000-0000-0000-0000-000000000000<br>RegionData: 0<br>PlayerStarttime: [28/03/2003:22:50:23 00:00]<br>ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586<br>Date: Tue, 17 Aug 2021 01:57:59 GMT<br><br>first request from vlc:<br>OPTIONS rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> RTSP/1.0<br>CSeq: 2<br>User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)<br><br><br>then they both receive a response from the camera like:<br>RTSP/1.0 401 Unauthorized<br>CSeq: 2<br>WWW-Authenticate: Digest realm="Login to DF402EB32420A830",nonce="637fd510-1343-4036-b53c-8a2ecd29d992"<br><br><br>gstreamer -> camera:<br><br><OPTIONS rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> RTSP/1.0<br>CSeq: 2<br>User-Agent: GStreamer/1.14.5<br>User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)<br>ClientChallenge: 9e26d33f2984236010ef6253fb1887f7<br>CompanyID: KnKV4M4I/B2FjJ1TToLycw==<br>GUID: 00000000-0000-0000-0000-000000000000<br>RegionData: 0<br>PlayerStarttime: [28/03/2003:22:50:23 00:00]<br>ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586<br>User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)<br>ClientChallenge: 9e26d33f2984236010ef6253fb1887f7<br>CompanyID: KnKV4M4I/B2FjJ1TToLycw==<br>GUID: 00000000-0000-0000-0000-000000000000<br>RegionData: 0<br>PlayerStarttime: [28/03/2003:22:50:23 00:00]<br>ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586<br>Authorization: Digest username="admin", realm="Login to DF402EB32420A830", nonce="6d062b3c-8bfc-4673-93d1-0bc95d0c7bbc", uri="rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a>", response="51790ca8f65c888dbfef80af89b56b69"<br>Date: Tue, 17 Aug 2021 01:57:59 GMT<br>— after this i hear nothing from the camera until gstreamer times out<br><br><br>vlc ->camera:<br><br>OPTIONS rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> RTSP/1.0<br>CSeq: 3<br>Authorization: Digest username="admin", realm="Login to DF402EB32420A830", nonce="637fd510-1343-4036-b53c-8a2ecd29d992", uri="rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a>", response="61f572072b3309ddf167eb2f76d4618a"<br>User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)<br><br>and vlc keeps getting responses of DESCRIBE SETUP and starts playing after this.<br>so the only difference i can see is the extra parameters that gstreamer is sending..<br><br>is there a way to make rtspsrc respond in a much simpler way ?<br><br>current cmd (i'm trying to fool the camera with the user-agent):<br><br>gst-launch-1.0  --gst-debug=rtspsrc:5 rtspsrc location='rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true">192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true</a>' user-id=admin user-pw=L2E8C359 latency=150 onvif-mode=false user-agent="LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)" ! decodebin max-size-time=30000000000 ! videoconvert ! autovideosink<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 16 Aug 2021 at 21:05, tom <<a href="mailto:tomschuring@gmail.com">tomschuring@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have a IMOU IPC-F22AP PoE webcam that i can stream from using<br><br>vlc rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> latency=150 onvif-mode=true<br><br>However if i try gstreamer:<br><br>~$ gst-launch-1.0  --gst-debug=rtspsrc:5 rtspsrc location=rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> latency=150 onvif-mode=true ! decodebin max-size-time=30000000000 ! videoconvert ! autovideosink<br><br>I receive a <br><br>0:00:00.142907259 32612   0x558a3461e0 WARN                 rtspsrc gstrtspsrc.c:6112:gst_rtspsrc_send:<rtspsrc0> error: Not Found (404)<br>-- full log below --<br><br>I noted that at <a href="https://gstreamer.freedesktop.org/documentation/rtsp/rtspsrc.html?gi-language=c" target="_blank">https://gstreamer.freedesktop.org/documentation/rtsp/rtspsrc.html?gi-language=c</a><br>it says:<br><span style="font-family:"Source Sans Pro","Source Sans",sans-serif;font-size:14px;background-color:rgb(238,238,238)">rtspsrc strictly follows RFC 2326 and therefore does not (yet) support RealMedia/Quicktime/Microsoft extensions.</span><br><br>Is this what it looks like when the stream doesn't follow RFC 2326 ?<br><br>If so, is there a way around this ?<br><br>Kind Regards,<br>Tom<br><br><br>--- log -----<br>~$ gst-launch-1.0  --gst-debug=rtspsrc:5 rtspsrc location=rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif</a> latency=150 onvif-mode=true ! decodebin max-size-time=30000000000 ! videoconvert ! autovideosink<br>[1] 32612<br>[2] 32613<br>[3] 32614<br>bash: onvif-mode=true: command not found<br>[2]-  Done                    subtype=0<br>[3]+  Done                    unicast=true<br>yoda@yoda-desktop:~$ 0:00:00.063119666 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:8617:gst_rtspsrc_uri_set_uri:<rtspsrc0> parsing URI<br>0:00:00.063195294 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:8624:gst_rtspsrc_uri_set_uri:<rtspsrc0> configuring URI<br>0:00:00.063229566 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:8640:gst_rtspsrc_uri_set_uri:<rtspsrc0> set uri: rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1" target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1</a><br>0:00:00.063251181 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:8642:gst_rtspsrc_uri_set_uri:<rtspsrc0> request uri is: rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1" target="_blank">192.168.2.8:554/cam/realmonitor?channel=1</a><br>Setting pipeline to PAUSED ...<br>0:00:00.063501293 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:8391:gst_rtspsrc_start:<rtspsrc0> starting<br>0:00:00.063658121 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd OPEN<br>0:00:00.063717237 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd:<rtspsrc0> not interrupting busy cmd unknown<br>Pipeline is live and does not need PREROLL ...<br>0:00:00.063937244 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread:<rtspsrc0> got command OPEN<br>0:00:00.063999069 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0<br>0:00:00.064036466 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4614:gst_rtsp_conninfo_connect:<rtspsrc0> creating connection (rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1)." target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1).</a>..<br>Progress: (open) Opening Stream<br>0:00:00.064489554 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4625:gst_rtsp_conninfo_connect:<rtspsrc0> sanitized uri rtsp://<a href="http://192.168.2.8:554/cam/realmonitor?channel=1" target="_blank">192.168.2.8:554/cam/realmonitor?channel=1</a><br>0:00:00.064558202 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4659:gst_rtsp_conninfo_connect:<rtspsrc0> connecting (rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1)." target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1).</a>..<br>Progress: (connect) Connecting to rtsp://<a href="http://admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1" target="_blank">admin:L2E8C359@192.168.2.8:554/cam/realmonitor?channel=1</a><br>0:00:00.098391258 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7342:gst_rtspsrc_retrieve_sdp:<rtspsrc0> create options... (async)<br>0:00:00.098442406 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7351:gst_rtspsrc_retrieve_sdp:<rtspsrc0> send options...<br>0:00:00.098543971 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:476:default_before_send:<rtspsrc0> default handler<br>0:00:00.098585119 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:476:default_before_send:<rtspsrc0> default handler<br>0:00:00.098602202 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5964:gst_rtspsrc_try_send:<rtspsrc0> sending message<br>Progress: (open) Retrieving server options<br>0:00:00.107064139 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5866:gst_rtsp_src_receive_response:<rtspsrc0> received response message<br>0:00:00.107110494 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5885:gst_rtsp_src_receive_response:<rtspsrc0> got response message 401<br>0:00:00.107148829 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5785:gst_rtspsrc_setup_auth:<rtspsrc0> Attempting authentication using credentials from the URL<br>0:00:00.107169194 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5814:gst_rtspsrc_setup_auth:<rtspsrc0> Attempting Digest authentication<br>0:00:00.107204560 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:476:default_before_send:<rtspsrc0> default handler<br>0:00:00.107227738 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:476:default_before_send:<rtspsrc0> default handler<br>0:00:00.107248936 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5964:gst_rtspsrc_try_send:<rtspsrc0> sending message<br>0:00:00.131234908 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5866:gst_rtsp_src_receive_response:<rtspsrc0> received response message<br>0:00:00.131283920 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5885:gst_rtsp_src_receive_response:<rtspsrc0> got response message 200<br>0:00:00.131317255 32612   0x558a3461e0 INFO                 rtspsrc gstrtspsrc.c:7364:gst_rtspsrc_retrieve_sdp:<rtspsrc0> Now using version: 1.0<br>0:00:00.131349599 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7371:gst_rtspsrc_retrieve_sdp:<rtspsrc0> create describe...<br>0:00:00.131380694 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7388:gst_rtspsrc_retrieve_sdp:<rtspsrc0> send describe...<br>0:00:00.131457311 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:476:default_before_send:<rtspsrc0> default handler<br>0:00:00.131512730 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:476:default_before_send:<rtspsrc0> default handler<br>Progress: (open) Retrieving media info<br>0:00:00.131558564 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5964:gst_rtspsrc_try_send:<rtspsrc0> sending message<br>0:00:00.142655741 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5866:gst_rtsp_src_receive_response:<rtspsrc0> received response message<br>0:00:00.142705326 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:5885:gst_rtsp_src_receive_response:<rtspsrc0> got response message 404<br>0:00:00.142733868 32612   0x558a3461e0 WARN                 rtspsrc gstrtspsrc.c:5829:gst_rtspsrc_setup_auth:<rtspsrc0> error: No supported authentication protocol was found<br>0:00:00.142851268 32612   0x558a3461e0 WARN                 rtspsrc gstrtspsrc.c:6112:gst_rtspsrc_send:<rtspsrc0> error: Not found<br>0:00:00.142907259 32612   0x558a3461e0 WARN                 rtspsrc gstrtspsrc.c:6112:gst_rtspsrc_send:<rtspsrc0> error: Not Found (404)<br>ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading.<br>Additional debug info:<br>gstrtspsrc.c(5829): gst_rtspsrc_setup_auth (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:<br>No supported authentication protocol was found<br>0:00:00.142977574 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7514:gst_rtspsrc_retrieve_sdp:<rtspsrc0> free connection<br>ERROR: pipeline doesn't want to preroll.<br>Setting pipeline to PAUSED ...<br>0:00:00.143045284 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4715:gst_rtsp_conninfo_close:<rtspsrc0> closing connection...<br>Setting pipeline to READY ...<br>0:00:00.143136642 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4721:gst_rtsp_conninfo_close:<rtspsrc0> freeing connection...<br>0:00:00.143163934 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd CLOSE<br>0:00:00.143174664 32612   0x558a3461e0 WARN                 rtspsrc gstrtspsrc.c:7548:gst_rtspsrc_open:<rtspsrc0> can't get sdp<br>0:00:00.143195914 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5585:gst_rtspsrc_loop_send_cmd:<rtspsrc0> cancel previous request LOOP<br>0:00:00.143251749 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush busy WAIT<br>0:00:00.143271021 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1<br>0:00:00.143300449 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread:<rtspsrc0> got command CLOSE<br>0:00:00.143321179 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0<br>0:00:00.143344356 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...<br>0:00:00.143362795 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close:<rtspsrc0> not ready, doing cleanup<br>0:00:00.143379462 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close:<rtspsrc0> closing connection...<br>0:00:00.143396077 32612   0x558a3461e0 DEBUG                rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup:<rtspsrc0> cleanup<br>Setting pipeline to NULL ...<br>0:00:00.143477382 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:8422:gst_rtspsrc_stop:<rtspsrc0> stopping<br>0:00:00.143507487 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd WAIT<br>0:00:00.143527852 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush busy WAIT<br>0:00:00.143546446 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1<br>0:00:00.143600927 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...<br>0:00:00.143622334 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close:<rtspsrc0> not ready, doing cleanup<br>0:00:00.143640199 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close:<rtspsrc0> closing connection...<br>0:00:00.143657596 32612   0x558a42ba10 DEBUG                rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup:<rtspsrc0> cleanup<br>Freeing pipeline ...<br><br><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:Verdana,sans-serif">☕</span><span style="color:rgb(0,0,0);font-family:Verdana,sans-serif;background-color:rgb(241,241,241)">𝓉</span><span style="color:rgb(0,0,0);font-family:Verdana,sans-serif">𝓈</span><br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:Verdana,sans-serif">☕</span><span style="color:rgb(0,0,0);font-family:Verdana,sans-serif;background-color:rgb(241,241,241)">𝓉</span><span style="color:rgb(0,0,0);font-family:Verdana,sans-serif">𝓈</span><br></div></div>