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.
- SDL compiled installation./configure--prefix=/xxx && make && make install
- 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)
- 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