#include <MediaInformation.h>
|
static constexpr const char * | KeyFormatProperties = "format" |
|
static constexpr const char * | KeyFilename = "filename" |
|
static constexpr const char * | KeyFormat = "format_name" |
|
static constexpr const char * | KeyFormatLong = "format_long_name" |
|
static constexpr const char * | KeyStartTime = "start_time" |
|
static constexpr const char * | KeyDuration = "duration" |
|
static constexpr const char * | KeySize = "size" |
|
static constexpr const char * | KeyBitRate = "bit_rate" |
|
static constexpr const char * | KeyTags = "tags" |
|
Media information class.
Definition at line 33 of file MediaInformation.h.
◆ MediaInformation()
ffmpegkit::MediaInformation::MediaInformation |
( |
std::shared_ptr< rapidjson::Value > |
mediaInformationValue, |
|
|
std::shared_ptr< std::vector< std::shared_ptr< ffmpegkit::StreamInformation > > > |
streams, |
|
|
std::shared_ptr< std::vector< std::shared_ptr< ffmpegkit::Chapter > > > |
chapters |
|
) |
| |
◆ getAllProperties()
std::shared_ptr< rapidjson::Value > ffmpegkit::MediaInformation::getAllProperties |
( |
| ) |
|
Returns all properties defined.
- Returns
- all properties in a Value or nullptr if no properties are defined
Definition at line 141 of file MediaInformation.cpp.
◆ getBitrate()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getBitrate |
( |
| ) |
|
◆ getChapters()
std::shared_ptr< std::vector< std::shared_ptr< ffmpegkit::Chapter > > > ffmpegkit::MediaInformation::getChapters |
( |
| ) |
|
◆ getDuration()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getDuration |
( |
| ) |
|
◆ getFilename()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getFilename |
( |
| ) |
|
◆ getFormat()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getFormat |
( |
| ) |
|
◆ getFormatProperties()
std::shared_ptr< rapidjson::Value > ffmpegkit::MediaInformation::getFormatProperties |
( |
| ) |
|
Returns all format properties defined.
- Returns
- all format properties in a Value or nullptr if no format properties are defined
Definition at line 131 of file MediaInformation.cpp.
◆ getFormatProperty()
std::shared_ptr< rapidjson::Value > ffmpegkit::MediaInformation::getFormatProperty |
( |
const char * |
key | ) |
|
Returns the format property associated with the key.
- Returns
- format property in a Value or nullptr if the key is not found
Definition at line 120 of file MediaInformation.cpp.
◆ getLongFormat()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getLongFormat |
( |
| ) |
|
◆ getNumberFormatProperty()
std::shared_ptr< int64_t > ffmpegkit::MediaInformation::getNumberFormatProperty |
( |
const char * |
key | ) |
|
Returns the format property associated with the key.
- Returns
- format property as number or nullptr if the key is not found
Definition at line 111 of file MediaInformation.cpp.
◆ getNumberProperty()
std::shared_ptr< int64_t > ffmpegkit::MediaInformation::getNumberProperty |
( |
const char * |
key | ) |
|
Returns the property associated with the key.
- Returns
- property as number or nullptr if the key is not found
Definition at line 82 of file MediaInformation.cpp.
◆ getProperty()
std::shared_ptr< rapidjson::Value > ffmpegkit::MediaInformation::getProperty |
( |
const char * |
key | ) |
|
Returns the property associated with the key.
- Returns
- property in a Value or nullptr if the key is not found
Definition at line 91 of file MediaInformation.cpp.
◆ getSize()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getSize |
( |
| ) |
|
◆ getStartTime()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getStartTime |
( |
| ) |
|
Returns start time.
- Returns
- media start time in milliseconds
Definition at line 38 of file MediaInformation.cpp.
◆ getStreams()
◆ getStringFormatProperty()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getStringFormatProperty |
( |
const char * |
key | ) |
|
Returns the format property associated with the key.
- Returns
- format property as string or nullptr if the key is not found
Definition at line 102 of file MediaInformation.cpp.
◆ getStringProperty()
std::shared_ptr< std::string > ffmpegkit::MediaInformation::getStringProperty |
( |
const char * |
key | ) |
|
Returns the property associated with the key.
- Returns
- property as string or nullptr if the key is not found
Definition at line 73 of file MediaInformation.cpp.
◆ getTags()
std::shared_ptr< rapidjson::Value > ffmpegkit::MediaInformation::getTags |
( |
| ) |
|
◆ _chapters
std::shared_ptr<std::vector<std::shared_ptr<ffmpegkit::Chapter> > > ffmpegkit::MediaInformation::_chapters |
|
private |
◆ _mediaInformationValue
std::shared_ptr<rapidjson::Value> ffmpegkit::MediaInformation::_mediaInformationValue |
|
private |
◆ _streams
◆ KeyBitRate
constexpr const char* ffmpegkit::MediaInformation::KeyBitRate = "bit_rate" |
|
staticconstexpr |
◆ KeyDuration
constexpr const char* ffmpegkit::MediaInformation::KeyDuration = "duration" |
|
staticconstexpr |
◆ KeyFilename
constexpr const char* ffmpegkit::MediaInformation::KeyFilename = "filename" |
|
staticconstexpr |
◆ KeyFormat
constexpr const char* ffmpegkit::MediaInformation::KeyFormat = "format_name" |
|
staticconstexpr |
◆ KeyFormatLong
constexpr const char* ffmpegkit::MediaInformation::KeyFormatLong = "format_long_name" |
|
staticconstexpr |
◆ KeyFormatProperties
constexpr const char* ffmpegkit::MediaInformation::KeyFormatProperties = "format" |
|
staticconstexpr |
◆ KeySize
constexpr const char* ffmpegkit::MediaInformation::KeySize = "size" |
|
staticconstexpr |
◆ KeyStartTime
constexpr const char* ffmpegkit::MediaInformation::KeyStartTime = "start_time" |
|
staticconstexpr |
◆ KeyTags
constexpr const char* ffmpegkit::MediaInformation::KeyTags = "tags" |
|
staticconstexpr |
The documentation for this class was generated from the following files: