<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Interestingly if I skip avio_open and just try to write the header using avformat_write_header I see some traffic going out to the streaming server up until just after the ANNOUNCE is sent but I get an error saying</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">'Invalid data found when processing input'</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">...and the SETUP call is never made.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do I need to open the output file when sending RTSP output and if not how do I fix the 'Invalid data found when processing input' error?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks for any thoughts</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Tim</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Libav-user <libav-user-bounces@ffmpeg.org> on behalf of Tim Lunt <timlunt@msn.com><br>
<b>Sent:</b> Thursday, July 26, 2018 2:57:18 PM<br>
<b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<br>
<b>Subject:</b> Re: [Libav-user] Missing RTSP protocol?</font>
<div> </div>
</div>
<div>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi still no joy – I’ve tried numerous combinations of options and a few different transcoding / muxing examples and I’m still getting the same output</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Output #0, rtsp, to 'rtsp:// ###.###.###.###:554/live/stream':</p>
<p class="MsoNormal">True</p>
<p class="MsoNormal">    Stream #0:0True</p>
<p class="MsoNormal">, 1, 1/10000000True</p>
<p class="MsoNormal">: Video: rawvideo, 1 reference frame, bgr0, 2048x1152, 0/1, q=2-31True</p>
<p class="MsoNormal">, True</p>
<p class="MsoNormal">30 fps, True</p>
<p class="MsoNormal">30 tbr, True</p>
<p class="MsoNormal">10000k tbn, True</p>
<p class="MsoNormal">10000k tbcTrue</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">True</p>
<p class="MsoNormal">    Stream #0:1True</p>
<p class="MsoNormal">, 0, 1/25True</p>
<p class="MsoNormal">: Video: h264, 1 reference frame, yuv420p, 352x288 (0x0), 0/1, q=2-31, 400 kb/sTrue</p>
<p class="MsoNormal">, True</p>
<p class="MsoNormal">25 tbnTrue</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could not open 'rtsp://###.###.###.###:554/live/stream': Protocol not found</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Still having similar issues with the protocol not found error message</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve also tried to just call - avio_check with the following and that’s giving me the same ‘Protocol not found’ output</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">const char *fname = "rtsp://###.###.###.###:554/live/stream";
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ret = avio_check(fname, AVIO_FLAG_WRITE);</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do you think there is something wrong with the build files I’m using?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help much appreciated</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Tim</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Libav-user <libav-user-bounces@ffmpeg.org> on behalf of Tim Lunt <timlunt@msn.com><br>
<b>Sent:</b> Monday, July 23, 2018 11:12:02 AM<br>
<b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<br>
<b>Subject:</b> Re: [Libav-user] Missing RTSP protocol?</font>
<div> </div>
</div>
<div>
<meta content="text/html; charset=utf-8">
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
.x_MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-GB" link="blue" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi, thanks for the response and clarification on the rtsp being a demuxer (not sure how I missed that).</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I’ve been able to get an rtsp stream working from the command line using the following command</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">.\ffmpeg.exe -rtbufsize 1500M -f dshow -i video="screen-capture-recorder" -pix_fmt yuv420p -vsync 1 -vcodec libx264 -r 23.976 -threads 0 -b:v: 1024k -bufsize 1024k -preset veryfast -profile:v baseline -tune film -g 48 -x264opts no-scenecut
 -acodec aac -b:a 192k -ac 2 -ar 48000 -rtsp_transport tcp -f rtsp rtsp:/<server-ip><port>/live/myStream</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I don’t currently have all of those options set in my AVDictionary (options) so I’m going to have a play with setting a few to see if I can get it running.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I’ll update later with any progress</p>
<p class="x_MsoNormal"> </p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Libav-user <libav-user-bounces@ffmpeg.org> on behalf of Carl Eugen Hoyos <ceffmpeg@gmail.com><br>
<b>Sent:</b> Friday, July 20, 2018 9:08:27 PM<br>
<b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<br>
<b>Subject:</b> Re: [Libav-user] Missing RTSP protocol?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">2018-07-20 21:58 GMT+02:00, Tim Lunt <timlunt@msn.com>:<br>
> I’m trying to stream to an RTSP server but I’m getting a protocol not found<br>
> error when trying to open the output.<br>
><br>
> I’ve used the 4.0 builds from <a href="https://ffmpeg.zeranoe.com/builds/">https://ffmpeg.zeranoe.com/builds/</a> and I cant<br>
> see the RTSP protocol being disabled in the build flags (see below) so not<br>
> sure what I’m missing – is RTSP still available in 4.0?<br>
<br>
rtsp is a demuxer, it uses either the udp or the tcp protocol.<br>
<br>
Does the stream work with the command line interface?<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
Libav-user@ffmpeg.org<br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div>
</span></font></div>
</div>
</body>
</html>