Merge pull request #1353 from jburgess777/ffmpeg-option-logging
Add more logging to diagnose problems with applying ffmpeg options
This commit is contained in:
commit
06943bae82
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue