File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,15 @@ InputFile& InputFile::analyse()
136
136
return *this ;
137
137
}
138
138
139
+ Properties InputFile::analyseFile ( const std::string& filename )
140
+ {
141
+ InputFile file ( filename );
142
+ file.analyse ();
143
+ Properties properties;
144
+ file.getProperties ( properties );
145
+ return properties;
146
+ }
147
+
139
148
AVMediaType InputFile::getStreamType ( size_t index )
140
149
{
141
150
if ( index >= m_formatContext->nb_streams )
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ class AvExport InputFile
34
34
// / get file properties
35
35
const Properties& getProperties () const { return m_properties; }
36
36
37
+ void getProperties ( Properties& properties ) const { properties = m_properties; }
38
+
39
+ static Properties analyseFile ( const std::string& filename );
40
+
37
41
AVMediaType getStreamType ( size_t index );
38
42
39
43
AvInputStream& getStream ( size_t index );
You can’t perform that action at this time.
0 commit comments