<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
I added the AV_LOG_VERBOSE and got the following output:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
pi@pi2cam:/userland/build/bin $ ./rcam -D dmic_sv -d 5  -q 30 -w 1920 -h 1080 rtmp://a.rtmp.youtube.com/live2/<KEY>
<div>[tcp @ 0x18acb70] Starting connection attempt to 2607:f8b0:401a:7::8 port 1935</div>
<div>[tcp @ 0x18acb70] Successfully connected to 2607:f8b0:401a:7::8 port 1935</div>
<div><br>
</div>
<div>[aac @ 0x18ba620] Qavg: 118.451</div>
[AVIOContext @ 0x18aefd0] Statistics: 0 seeks, 341 writeouts<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If you can point me to an example of logging callback I will try and add it if you think it will yield more useful information.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks in advance for your ideas and help,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
William </div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> ffmpeg-user <ffmpeg-user-bounces@ffmpeg.org> on behalf of Moritz Barsnick <barsnick@gmx.net><br>
<b>Sent:</b> Monday, August 24, 2020 9:25 AM<br>
<b>To:</b> FFmpeg user discussions <ffmpeg-user@ffmpeg.org><br>
<b>Subject:</b> Re: [FFmpeg-user] RTMP issue</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hi William<br>
<br>
On Mon, Aug 24, 2020 at 00:40:04 +0000, william keeling wrote:<br>
<br>
> My question is an issue with a program written to live stream to<br>
> YouTube working is all modes other than rtmp live stream.<br>
<br>
For programming with the ffmpeg libav* libraries, you should usually<br>
turn to the libav-user mailing list, But perhaps we can help.<br>
<br>
> finishes the stream is never processed by YouTube. When the stream is<br>
> piped (pipe:1 URL) thru FFMPEG (demuxed and muxed only -- ffmpeg -i -<br>
> -vcodec copy -acodec copy -f flv rtmp:<URL>) the live stream works<br>
> without issues.<br>
<br>
At least that means that your content encoding, bit rate, number of<br>
audio channels, and so on, are correct for YouTube. It's just the<br>
muxing, or perhaps something like a flag or metadata.<br>
<br>
> So, I need to understand what FFMPEG command line is doing with rtmp: URL that I am not doing with the FFMPEG API.<br>
> My source code is at github.com/wkeeling63/rcam. Any ideas you have I<br>
> would love to hear as I am stumped.<br>
<br>
Too bad ths only compiles on Raspberry Pi, so there's no way to<br>
reproduce your muxing issue.<br>
<br>
Since you didn't provide a log callback using av_log_set_callback(),<br>
shouldn't your application show all the usual ffmpeg/libav* log output<br>
on stdout? Can you provide us with that ouptut? Raise the log level<br>
with e.g. av_log_set_level(AV_LOG_VERBOSE), if required.<br>
<br>
Thanks,<br>
Moritz<br>
_______________________________________________<br>
ffmpeg-user mailing list<br>
ffmpeg-user@ffmpeg.org<br>
<a href="https://ffmpeg.org/mailman/listinfo/ffmpeg-user">https://ffmpeg.org/mailman/listinfo/ffmpeg-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".</div>
</span></font></div>
</div>
</body>
</html>