<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
My question is an issue with a program written to live stream to YouTube working is all modes other than rtmp live stream.<o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
The program writes FLV container (H.264 and AAC streams) to FFMPEG standard URL.<span style="mso-spacerun:yes">
</span>The IO context is opened with “avio_open(&io_ctx, url, AVIO_FLAG_WRITE);”.<span style="mso-spacerun:yes">
</span>When written to file: it plays in VLC media player, the file is uploadable to YouTube and FLVCheck tool shows the file conforms to the FLV specification.<span style="mso-spacerun:yes">
</span>But when the URL is rtmp: the stream to YouTube shows connected but never plays live and after if finishes the stream is never processed by YouTube.<span style="mso-spacerun:yes">
</span>When the stream is piped (pipe:1 URL) thru FFMPEG (demuxed and muxed only -- ffmpeg -i - -vcodec copy -acodec copy -f flv rtmp:<URL>) the live stream works without issues.<o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
So, I need to understand what FFMPEG command line is doing with rtmp: URL that I am not doing with the FFMPEG API.<o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
My source code is at github.com/wkeeling63/rcam.<span style="mso-spacerun:yes"> </span>
Any ideas you have I would love to hear as I am stumped.<o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
<o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
Thanks <o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
William<o:p> </o:p></p>
<br>
</div>
</body>
</html>