QT6.2 MediaPlayer url for udp stream
-
I am using custom gstreamer pipeline in Qt5.15 to show a video stream
udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:2, depth=(string)8, width=(string)720, height=(string)576, colorimetry=(string)BT709-2" port=5 ! rtpvrawdepay ! queue ! videoconvert ! autovideosink
However, as far as I know qt6 does not accepts custom pipelines.
I want to try Qt6, what I need to define as url to MediaPlayer?
Source ip address is 169.254.188.4 -
Hi and welcome to devnet,
From the top of my head, try using:
rtsp://169.254.188.4
Hope it helps
-
Try using a
.sdp
file, this allow to specify video stream configuration.
At the top of my head, this may enough :v=0 s=My session name i=Short video infos m=video 5 RTP/AVP 96 c=IN IP4 0.0.0.0 a=rtpmap:96 H264/90000 a=recvonly
Note than port number is specified under
m
(media) fieldMore informations can be found at https://en.wikipedia.org/wiki/Session_Description_Protocol
I know than
.sdp
file are supported in Qt 5.x.y series, I have not try yet wih Qt 6 series (I'm stuck with Qt 5 series for another reasons)