Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

RTSP Stream display issue with IP camera



  • Hi all,

    I am working on a application that need to show a live video feed. I started testing the application with a Raspberry pi camera hosting a RTSP stream. This worked great and i just entered the cameras IP in QML video tag. I later bought a Vivotek ip camera(IP8162/62p). When i tried using it as i had the PiCamera, it did not work. I tried using VLC-qt and i got that to work on my laptop running Ubuntu. My problem is that the application is being developed for a digi imx6 board, and getting libvlc to work on it is quite the challenge. I would like to avoid using libvlc.

    I tried to use a QProcess that calls "gst-launch-1.0 rtspsrc location=rtsp://<RTSP STREAM IP ADDRESS >:554/stream1 latency=300 ! decodebin ! qtvideosink" but i can't get it to display the stream in Qt.

    If anyone have ran in to a similar problem or a possible solution please let me know.

    IMX6 Board runs linux Yocto 2.4, and have GStreamer-1.0 installed
    Developing in Qt 5.9.6


  • Lifetime Qt Champion

    Hi,

    You should then consider using the qmlglsink provided by GStreamer directly. See here.


Log in to reply