<h3 dir="auto">Descripe the feature and motivation</h3>
<p dir="auto">nowadays, video live is popular, opencv can receive rtsp/rtmp/usb .etc，but it cloudn't support to transform/push video stream to video server. it's possible to add this new feature?</p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 4.5.5</li>
<li>Operating System / Platform =&gt; Linux</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I am using opencv to pull and push the video stream by rtsp protocol</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">By using python binding:</p>
<p dir="auto">pulling:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cap = cv2.VideoCapture(&quot;rstp://localhost:8555&quot;,cv2.CAP_FFMPEG)"><pre class="notranslate"><code class="notranslate">cap = cv2.VideoCapture("rstp://localhost:8555",cv2.CAP_FFMPEG)
</code></pre></div>
<p dir="auto">No problem</p>
<p dir="auto">pushing：</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" video_writer = cv2.VideoWriter(&quot;rstp://localhost:8555&quot;, fourcc, fps, size, True,cv2.CAP_FFMPEG)
video_writer.write(frame)"><pre class="notranslate"><code class="notranslate"> video_writer = cv2.VideoWriter("rstp://localhost:8555", fourcc, fps, size, True,cv2.CAP_FFMPEG)
video_writer.write(frame)
</code></pre></div>
<p dir="auto">i get</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OpenCV(4.5.5) opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):rstp://localhost:8555 in function 'cv::icvExtractPattern'"><pre class="notranslate"><code class="notranslate">OpenCV(4.5.5) opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):rstp://localhost:8555 in function 'cv::icvExtractPattern'
</code></pre></div>
<p dir="auto">Is there a way to push the stream like below?</p>
<h5 dir="auto">Issue submission checklist</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question

</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I checked the problem with documentation, FAQ, open issues,<br>
forum.opencv.org, Stack Overflow, etc and have not found any solution

</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there

</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc

</li>
</ul>