<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 30, 2020 at 5:03 PM Devin Heitmueller <<a href="mailto:dheitmueller@kernellabs.com" target="_blank">dheitmueller@kernellabs.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">On Thu, Oct 29, 2020 at 5:54 PM william keeling <<a href="mailto:williamkeeling@hotmail.com" target="_blank">williamkeeling@hotmail.com</a>> wrote:<br>><br>> I still have not found a solution for this issue.  I wonder if I need to use avio_open2 (not avio_open).  Avio_open2 takes AVDictionary of options as a parameter.  Does anyone know how to find any documentation of the options that an available for the RTMP protocol? <br><br>Have you confirmed that the H.264 stream produced by the hardware encoder can actually be decoded by Youtube?  Some of these hardware encoders use non-standard/less-common options that might cause problems with a streaming service.  Since you're using "-vcodec copy" you're essentially just passing through the NAL stream from the hardware encoder unmodified.<div><br></div><div>I would suggest trying it with an H.264 stream that isn't the output of the hardware encoder, just to see if this is really a problem with the RTMP as opposed to the H.264 stream contained within it.<br><br>Devin<br><br>-- <br>Devin J. Heitmueller - Kernel Labs<br><a href="http://www.kernellabs.com" target="_blank">http://www.kernellabs.com</a></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div><br clear="all"><div>Hi all, </div><div><br></div><div>My guess is that your header information is not properly set. This will cause YouTube or Twitch to not decode the stream. Twitch has much better tools to diagnose these kinds of problems.</div><div>Make sure that you have this code before you call the avcodec_open2:</div><div><br></div><div>if (oc->ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER){<br>         enc_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;<br>                          }<br></div><div><br></div>-- <br><div dir="ltr"><br>Regards<br>Strahinja Radman</div></div>