File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ void preloadCodecsAndFormats()
17
17
av_register_all ();
18
18
}
19
19
20
+ void setLogLevel ( const int level )
21
+ {
22
+ av_log_set_level ( level );
23
+ }
24
+
20
25
void split ( std::vector< std::string >& splitedString, const std::string& inputString, const std::string& splitChars )
21
26
{
22
27
char * part = strtok ( const_cast <char *>( inputString.c_str () ), splitChars.c_str () );
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ extern "C" {
13
13
#include < libavcodec/version.h>
14
14
#include < libavcodec/avcodec.h>
15
15
#include < libavutil/rational.h>
16
+ #include < libavutil/log.h>
16
17
}
17
18
18
19
#include < string>
@@ -59,6 +60,12 @@ typedef AVRational Rational;
59
60
// / Register all the codecs and formats which are enabled at configuration time.
60
61
void AvExport preloadCodecsAndFormats ();
61
62
63
+ /* *
64
+ * @brief Set the log level of ffmpeg/libav.
65
+ * @param level: refer to define AV_LOG_*** (from AV_LOG_QUIET to AV_LOG_MAX_OFFSET)
66
+ */
67
+ void AvExport setLogLevel ( const int level );
68
+
62
69
#ifndef SWIG
63
70
void split ( std::vector< std::string >& splitedString, const std::string& inputString, const std::string& splitChars = " ;" );
64
71
int getFilesInDir ( const std::string& dir, std::vector< std::string >& files );
You can’t perform that action at this time.
0 commit comments