Hi experts,<div><br></div><div>I am trying to use FFMpeg from my app to stream a RTMP flow</div><div><br></div><div>I have a piece a code working fine to generate a local FLV file. And I thought that it would be enough to replace my filename by the RTMP url when allocating the AVFormatContext to have RTMP streaming... but nothing happens. And even setting the debug log level doesn't say anything</div>
<div><br></div><div>My code is very "standard"</div><div><br></div><div>AVFormatContext *oc;</div><div>avformat_alloc_output_context2(&oc, NULL, "FLV", "rtmp://<a href="http://127.0.0.1:1935/live/test.flv">127.0.0.1:1935/live/test.flv</a>");</div>
<div><br></div><div>then adding AVStream for audio and video</div><div><br></div><div>And using av_interleaved_write_frame to write the encoded packets.</div><div><br></div><div>Anyone has a clue ?</div><div><br></div><div>
Thanks</div><div><br></div><div>Olivier</div>