1 #ifndef _AV_TRANSCODER_MEDIA_PROPERTY_AUDIO_PROPERTIES_HPP
2 #define _AV_TRANSCODER_MEDIA_PROPERTY_AUDIO_PROPERTIES_HPP
17 std::string getSampleFormatLongName()
const;
18 std::string getChannelLayout()
const;
19 std::string getChannelName()
const;
20 std::string getChannelDescription()
const;
22 size_t getSampleRate()
const;
23 size_t getNbChannels()
const;
24 size_t getBitRate()
const;
25 size_t getNbSamples()
const;
27 size_t getTicksPerFrame()
const;
44 catch(
const std::exception& e)
53 AvExport std::ostream&
operator<<(std::ostream& flux,
const AudioProperties& audioProperties);
std::vector< std::pair< std::string, std::string > > PropertyVector
PropertyVector is a vector of pair, because the order of properties matters to us.
void add(PropertyVector &propertyVector, const std::string &key, const size_t &value)
void addProperty(PropertyVector &data, const std::string &key, T(AudioProperties::*getter)(void) const) const
AVCodecContext & getAVCodecContext()
Wrapper of an AVFormatContext.
Virtual based class of properties for all types of stream.
std::ostream & operator<<(std::ostream &flux, const InputFile &input)
std::string getSampleFormatName(const AVSampleFormat sampleFormat)
const std::string propertyValueIfError