Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Playing RTP stream on Windows with Qt 6.2
fggd last edited by
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?
JoeCFD last edited by JoeCFD
GStreamer is only used by Qt Multimedia on Linux.
Take a look at qt gstreamer.
Hi and welcome to devnet,
This does not look like a valid URL. You should fix it first.
fggd last edited by fggd
In a fact I tried also
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.