Permalink
Browse files

Enable more ffmpeg logging at startup of playback.

Allow logging in avformat_find_stream_info() if
"-v libav --loglevel debug" is specified.
This proves useful for live TV debugging among others.

(adapted from commit ae0dcaf)
  • Loading branch information...
stichnot committed Feb 1, 2013
1 parent 79a24c9 commit 1d4d50bc7e32ccaaabc983a6dec92b1c2a5fb2a0
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -879,7 +879,9 @@ extern "C" void HandleBDStreamChange(void *data)
int AvFormatDecoder::FindStreamInfo(void)
{
QMutexLocker lock(avcodeclock);
- silence_ffmpeg_logging = true;
+ // Suppress ffmpeg logging unless "-v libav --loglevel debug"
+ if (!VERBOSE_LEVEL_CHECK(VB_LIBAV, LOG_DEBUG))
+ silence_ffmpeg_logging = true;
int retval = av_find_stream_info(ic);
silence_ffmpeg_logging = false;
return retval;

0 comments on commit 1d4d50b

Please sign in to comment.