FFmpeg: How to control console output while reading from RTSP?

前端 未结 1 1019
广开言路
广开言路 2021-01-14 13:39

So I created simple Consol app: FFmpeg RTSP Video stream reader (using only general FFmpeg C API) But while ffmpeg reads from RTSP it shows lots of info. I did not asked for

相关标签:
1条回答
  • 2021-01-14 14:09

    Use av_log_set_callback, to set your function as callback:

    static void avlog_cb(void *, int level, const char * szFmt, va_list varg) {
        //do nothing...
    }
    
    av_log_set_callback(avlog_cb);
    

    or, you may also use

    av_log_set_level(AV_LOG_ERROR);
    

    to print error messages only.

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