Client cann't send keep-alive if using TLS.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Client cann't send keep-alive if using TLS.

Rodrigo Pimenta Carvalho
Hi.

When my rtsp server (test-video.c example) is not with TLS, everything is ok and the client can receive a video stream for a long time without problems.

On the other hand, if the same rtsp server is with TLS, the same client receives the video stream, but only for 1 minute. After 60 seconds it rises an error and the video is interrupted.

The command for the client is:
gst-launch-1.0 -v -m --gst-debug-level=3 rtspsrc location="rtsps://user:password@192.168.0.80:8554/test" tls-validation-flags=generic-error  ! rtph264depay ! h264parse ! imxvpudec ! videoconvert ! autovideosink

End the erro log is:

0:00:55.534803006  1896  0x179c0f0 WARN                 rtspsrc /home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c:4364:gst_rtspsrc_send_keep_alive:<rtspsrc0> warning: Could not send keep-alive. (System error)
0:00:55.535870006  1896  0x179c0f0 WARN                 rtspsrc /home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c:4710:gst_rtspsrc_loop_udp:<rtspsrc0> warning: Unhandled return value -7.
Got message #1219 from element "rtspsrc0" (warning): GstMessageWarning, gerror=(GError)NULL, debug=(string)"/home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c\(4364\):\ gst_rtspsrc_send_keep_alive\ \(\):\ /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:\012Could\ not\ send\ keep-alive.\ \(System\ error\)";
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
/home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c(4364): gst_rtspsrc_send_keep_alive (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send keep-alive. (System error)
0:00:55.537390673  1896  0x179c0f0 WARN                 rtspsrc /home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c:4781:gst_rtspsrc_loop_udp:<rtspsrc0> error: Could not receive message. (System error)
Got message #1220 from element "rtspsrc0" (warning): GstMessageWarning, gerror=(GError)NULL, debug=(string)"/home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c\(4710\):\ gst_rtspsrc_loop_udp\ \(\):\ /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:\012Unhandled\ return\ value\ -7.";
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
/home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c(4710): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Unhandled return value -7.
0:00:55.538810340  1896  0x179c0f0 WARN                 rtspsrc /home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c:5067:gst_rtspsrc_loop:<rtspsrc0> error: Internal data flow error.
Got message #1221 from element "rtspsrc0" (error): GstMessageError, gerror=(GError)NULL, debug=(string)"/home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c\(4781\):\ gst_rtspsrc_loop_udp\ \(\):\ /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:\012Could\ not\ receive\ message.\ \(System\ error\)";
0:00:55.539849006  1896  0x179c0f0 WARN                 rtspsrc /home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c:5067:gst_rtspsrc_loop:<rtspsrc0> error: streaming task paused, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
/home/icchw/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/rtsp/gstrtspsrc.c(4781): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (System error)
Execution ended after 0:00:55.099170673
Setting pipeline to PAUSED ...
Setting pipeline to READY ...

What should I do in this case??
What is wrong with the client (or maybe with the server)?

P.S.: the server was built with gstreamer 1.8.1. But the client is being executed in a machine with gstreamer 1.4.1.



Any hint will be very hepful!

Best regards.

Rodrigo Pimenta Carvalho·
Loading...