Merge pull request #1353 from jburgess777/ffmpeg-option-logging

Add more logging to diagnose problems with applying ffmpeg options
This commit is contained in:
Isaac Connor 2016-03-21 10:44:06 -04:00
commit 06943bae82
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" ); Debug ( 1, "Calling avformat_open_input" );
@ -272,6 +276,11 @@ int FfmpegCamera::OpenFfmpeg() {
return -1; 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; mIsOpening = false;
Debug ( 1, "Opened input" ); Debug ( 1, "Opened input" );