<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to force TCP transport layer when using QMediaPlayer to open an RTSP link (ffmpeg backend)]]></title><description><![CDATA[<p dir="auto">I am using QMediaPlayer to open an RTSP link. I use PyQt6 version 6.5.2</p>
<pre><code class="language-python">player = QMediaPlayer()
player.setSource(QUrl(rtsp_link))
player.play()
</code></pre>
<p dir="auto">But that RTSP link can only be opened using TCP transport protocol and the previous code will hang up</p>
<p dir="auto">I tried to open that RTSP link using ffplay</p>
<p dir="auto">This hang</p>
<pre><code>ffplay rtsp_link
</code></pre>
<p dir="auto">This work</p>
<pre><code>ffplay -rtsp_transport tcp rtsp_link
</code></pre>
<p dir="auto">How to tell ffmpeg backend to use TCP to open that link?</p>
]]></description><link>https://forum.qt.io/topic/149538/how-to-force-tcp-transport-layer-when-using-qmediaplayer-to-open-an-rtsp-link-ffmpeg-backend</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 11:15:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/149538.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Sep 2023 11:50:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to force TCP transport layer when using QMediaPlayer to open an RTSP link (ffmpeg backend) on Thu, 14 Sep 2023 17:45:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">AFAIK, it's not possible currently.</p>
<p dir="auto">You might want to check the <a href="https://bugreports.qt.io" target="_blank" rel="noopener noreferrer nofollow ugc">bug report system</a> to see if there's something related there and if not open a feature request.</p>
]]></description><link>https://forum.qt.io/post/772731</link><guid isPermaLink="true">https://forum.qt.io/post/772731</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 14 Sep 2023 17:45:22 GMT</pubDate></item></channel></rss>