Closed IanButterworth closed 5 years ago
I think that "daily" users of VideoIO
won't feel that such a warning is necessary. For those that want to debug, develop, or test things, then they'll go looking for ffmpeg
-style log-levels and find it in the documentation (which would be good to add).
There are two bigger-picture related things to keep in mind here (in my humble opinion):
VideoIO
≠ ffmpeg
: so we don't need to replicate every aspect of ffmpeg
(e.g. the ffmpeg
banner every time a command is run)import
is wise (since you'll need to make this decision many more times in the future).see #191
I like your logic. +1 on reasons to have proper docs
Addresses #184.
Default log level is set to
AVUtil.AV_LOG_FATAL
, and can be set with:Docstrings:
I'm not sure that this is a good idea.. but I've added an info message at import.. Perhaps we don't need that..?
The MWE from #184 no longer spits out warnings on this branch
It also suppresses the non-test-breaking warnings during
] test VideoIO
! woohoo!!