Use Lffmpeg to play HLS stream below Linux

Source: Internet
Author: User

Ffplay playback relies on the SDL library, and SDL (Simple DirectMedia Layer) is a set of open source cross-platform multimedia development libraries. First compile the SDL and then compile the ffmpeg.

    1. SDL compiled installation./configure--prefix=/xxx && make && make install
    2. FFmpeg compile and install./configure --prefix=/opt/afb/ffmpeg/dir_install--enable-debug--disable-stripping-- Disable-optimizations--disable-doc --disable-ffmpeg--disable-ffprobe--disable-ffserver && make && Amp Make install && CP/*/*.a*/opt/afb/ffmpeg/dir_install/lib/(copy library file to use GDB Debug for unknown reason)
    3. Test playback./ffplay-report-v Info http://live.xmcdn.com/live/1065/64.m3u8

Log message-V option description

    const struct {const char *name; int level;} log_levels[] = {
     &nbs p;  {"Quiet"  , av_log_quiet  },
        {"Panic"  , av_log_panic  },
        {"Fatal"  , av_log_fatal   },
        {"Error"  , av_log_error  },
         {"Warning", av_log_warning},
        { "Info"   , av_log_info   },
        {"Verbose", av_ Log_verbose},
        {"Debug"  , av_log_debug  },
         {"Trace"  , av_log_trace  },
   };

#define Av_log_quiet-8
#define AV_LOG_PANIC 0
#define Av_log_fatal 8
#define AV_LOG_ERROR 16
#define Av_log_warning 24
#define AV_LOG_INFO 32
#define AV_LOG_VERBOSE 40
#define AV_LOG_DEBUG 48
#define AV_LOG_TRACE 56

Use Lffmpeg to play HLS stream below Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.