Unsolved Playing RTP stream on Windows with Qt 6.2
-
Hello,
I am trying to understand how can I play RTP video stream with QMediaPlayer, e.g. generated with GStreamer by running:
.\gst-launch-1.0.exe videotestsrc ! 'video/x-raw,width=640,height=480' ! openh264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000
I tried passing simply passing url like:
QMediaPlayer* player = .... player->setSource(QUrl("rtp://@127.0.0.1:5000"));
That didn't work. AFAIK QtMultimedia in ver 6.2 doesn't support GStreamer pipelines on Windows.
Is there a way to do it w/o custom GStreamer or libVLC based implementation?Thank you
Filip -
https://doc.qt.io/qt-5/qtmultimedia-windows.html
GStreamer is only used by Qt Multimedia on Linux.
Take a look at qt gstreamer.
https://gstreamer.freedesktop.org/modules/qt-gstreamer.html -
Hi and welcome to devnet,
@fggd said in Playing RTP stream on Windows with Qt 6.2:
player->setSource(QUrl("rtp://@127.0.0.1:5000"));
This does not look like a valid URL. You should fix it first.
-
@SGaist said in Playing RTP stream on Windows with Qt 6.2:
player->setSource(QUrl("rtp://@127.0.0.1:5000"));
Hi @SGaist
In a fact I tried also
"rtp://127.0.0.1:5000"
"udp://127.0.0.1:5000"
without luck -
Just found out this answer from Lars. Basically full cross-platform support for rtp/rtsp may come after 6.2.
One possible alternative is to rebuild QtMultimedia to use GStreamer.