Add more logging to diagnose problems with applying ffmpeg options

This commit is contained in:
Jon Burgess 2016-03-20 21:44:58 +00:00
parent ecb8c48b3b
commit bfd846bbff
1 changed files with 9 additions and 0 deletions

View File

@ -257,6 +257,10 @@ int FfmpegCamera::OpenFfmpeg() {
}
}
else
{
Warning( "Unable to parse ffmpeg option %d '%s', expecting key=value", i, opVect[i].c_str() );
}
}
Debug ( 1, "Calling avformat_open_input" );
@ -272,6 +276,11 @@ int FfmpegCamera::OpenFfmpeg() {
return -1;
}
AVDictionaryEntry *e;
if ((e = av_dict_get(opts, "", NULL, AV_DICT_IGNORE_SUFFIX)) != NULL) {
Warning( "Option %s not recognized by ffmpeg", e->key);
}
mIsOpening = false;
Debug ( 1, "Opened input" );