[Libav-user] Avio_open error opening rtsp server connection

Geek.Song ffmpeg at gmail.com
Sun Sep 2 15:45:42 CEST 2012


On Sun, Sep 2, 2012 at 12:10 AM, Andre Esteves <andresteves at gmail.com> wrote:
> Hi everyone,
>
> I built ffmpeg for android to use with JNI and i tried to make use of
> methods that are in the muxing example
> (http://ffmpeg.org/doxygen/trunk/muxing_8c-source.html#l00414).
> I source code im using is:
>         char server[] = "rtsp://192.168.1.34/rtplive/streamTeste";
>         av_register_all();
> avcodec_register_all();
> avformat_network_init();
>
> /* auto detect the output format from the name. */
> avformat_alloc_output_context2(&oc, 0, "mp4", server);

"mp4" should be replaced by "rtsp"


-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2


More information about the Libav-user mailing list