Loading...
Searching...
No Matches
score::libav::MediaInfo Struct Reference
Result of probing a media file. More...
Detailed Description
Result of probing a media file.
duration_av is in AV_TIME_BASE units (microseconds). Use duration_seconds() for a convenient floating-point conversion.
streams lists the media type of every stream, in order.
format_context is the opened, fully-analyzed AVFormatContext. The caller may use it to inspect codec parameters, metadata, etc. It is closed when this object is destroyed.
Classes | |
| struct | FormatContextDeleter |
Public Types | |
| using | FormatContextPtr = std::unique_ptr< AVFormatContext, FormatContextDeleter > |
Public Member Functions | |
| std::optional< double > | duration_seconds () const noexcept |
| bool | has_video () const noexcept |
| bool | has_audio () const noexcept |
Public Attributes | |
| FormatContextPtr | format_context |
| std::vector< AVMediaType > | streams |
| std::optional< int64_t > | duration_av |
The documentation for this struct was generated from the following file: