[Libav-user] RTMP issue
WilliamKeeling at hotmail.com
Mon Aug 24 03:40:04 EEST 2020
My question is an issue with a program written to live stream to YouTube working is all modes other than rtmp live stream.
The program writes FLV container (H.264 and AAC streams) to FFMPEG standard URL. The IO context is opened with “avio_open(&io_ctx, url, AVIO_FLAG_WRITE);”. 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. 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. 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.
So, I need to understand what FFMPEG command line is doing with rtmp: URL that I am not doing with the FFMPEG API.
My source code is at github.com/wkeeling63/rcam. Any ideas you have I would love to hear as I am stumped.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user