|
pianod2
multisource multiuser scriptable networked music player
|
Read media stream metadata via ffmpeg. More...
#include <ffmpegmetadata.h>


Public Member Functions | |
| virtual void | setGain (float gain) override |
| LavMetadataReader (const std::string &path) | |
Public Member Functions inherited from Audio::LibavMediaReader | |
| LibavMediaReader (const std::string &media_url, int timeout=15) | |
| Base abstract class for reading a media file or URL using ffmpeg. More... | |
| virtual | ~LibavMediaReader (void) |
Additional Inherited Members | |
Static Public Member Functions inherited from Media::Metadata | |
| static float | gainFromiTunesNormalization (const char *) |
| Get the iTunes normalization, a/k/a sound check. More... | |
| static float | gainFromiTunesNormalization (const std::string &value) |
| static float | getFileGain (const std::string &filename) |
| Get a file's gain for playback. More... | |
| static const Metadata | getMetadata (const std::string &filename) |
| Get metadata using whatever best mechanism is available. More... | |
Public Attributes inherited from Media::Metadata | |
| std::string | artist |
| std::string | album |
| std::string | title |
| std::string | cddb_id |
| std::string | genre |
| int | year = 0 |
| int | track_number = 0 |
| int | track_count = 0 |
| int | disc_number = 0 |
| int | disc_count = 0 |
| float | duration = 0 |
| float | gain = 0 |
Protected Member Functions inherited from Audio::LibavMediaReader | |
| int | initializeStream (std::unique_ptr< AVCodecContext, CodecDeleter > &codec_context) |
| Prepare a ffmpeg source for playing its audio stream. More... | |
| void | processReplayGain (AVReplayGain *gain, int size) |
| Process a replaygain packet by extracting the track gain, or if not found then then the album gain. More... | |
Static Protected Member Functions inherited from Media::Metadata | |
| static void | splitOf (const char *value, int *first, int *second) |
Split a string <number>/<number> into its two components. More... | |
| static void | splitOf (const std::string &value, int *first, int *second) |
Protected Attributes inherited from Audio::LibavMediaReader | |
| const std::string | url |
| Media URL or filename. More... | |
| bool | is_network = false |
| True if media is network streaming. More... | |
| AVFormatContext * | transport = nullptr |
Read media stream metadata via ffmpeg.
| Media::LavMetadataReader::LavMetadataReader | ( | const std::string & | path | ) |

|
overridevirtual |
Implements Audio::LibavMediaReader.