1 #ifndef _AV_TRANSCODER_UTIL_HPP
2 #define _AV_TRANSCODER_UTIL_HPP
8 #include <libavcodec/avcodec.h>
9 #include <libavformat/avformat.h>
10 #include <libavutil/pixfmt.h>
11 #include <libavutil/samplefmt.h>
22 typedef std::map<std::string, std::string>
NamesMap;
std::map< std::string, OptionArray > OptionArrayMap
NamesMap getAvailableAudioCodecsNames()
Get a map of short/long names of all audio codecs available in FFmpeg / libav.
std::vector< std::string > getSupportedPixelFormats(const std::string &videoCodecName)
Get pixel format supported by a video codec.
AVPixelFormat getAVPixelFormat(const std::string &pixelFormat)
Get the corresponding AVPixelFormat from the pixel format name.
std::vector< std::string > getSupportedSampleFormats(const std::string &audioCodecName)
Get sample format supported by an audio codec.
std::vector< AVOutputFormat * > getAvailableFormats()
std::string getPixelFormatName(const AVPixelFormat pixelFormat)
OptionArrayMap getAvailableOptionsPerOutputFormat()
Get the list of options for each output format.
std::map< std::string, std::string > NamesMap
NamesMap getAvailableAudioFormatsNames()
Get a map of short/long names of all formats dedicate for video available in FFmpeg / libav...
std::vector< AVCodec * > getAvailableCodecs()
NamesMap getAvailableVideoCodecsNames()
Get a map of short/long names of all video codecs available in FFmpeg / libav.
NamesMap getAvailableFormatsNames()
Get a map of short/long names of all formats available in FFmpeg / libav.
OptionArrayMap getAvailableOptionsPerVideoCodec()
Get the list of options for each video codec.
NamesMap getAvailableVideoFormatsNames()
Get a map of short/long names of all formats dedicate for video available in FFmpeg / libav...
OptionArrayMap getAvailableOptionsPerAudioCodec()
Get the list of options for each audio codec.
std::string getSampleFormatName(const AVSampleFormat sampleFormat)
AVSampleFormat getAVSampleFormat(const std::string &sampleFormat)
Get the corresponding AVSampleFormat from the sample format name.