FFMPEG API: How to connect to RTSP stream using av_open_input_file?

后端 未结 1 418
感情败类
感情败类 2021-02-10 02:08

I\'m trying to connect to some RTSP stream using av_open_input_file() like this:

AVFormatContext* ic; avcodec_register_all(); av_register_all(); av_open_input_file

1条回答
  •  悲&欢浪女
    2021-02-10 02:29

    Turned out I did not enable network support when building FFMPEG.

    The following options worked for me:

    --enable-network --enable-protocol=tcp --enable-demuxer=rtsp --enable-decoder=h264

    0 讨论(0)
提交回复
热议问题