diff options
Diffstat (limited to 'extern/audaspace/plugins/ffmpeg/FFMPEG.cpp')
-rw-r--r-- | extern/audaspace/plugins/ffmpeg/FFMPEG.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/extern/audaspace/plugins/ffmpeg/FFMPEG.cpp b/extern/audaspace/plugins/ffmpeg/FFMPEG.cpp index 3ffe963b2b9..07c0fee691a 100644 --- a/extern/audaspace/plugins/ffmpeg/FFMPEG.cpp +++ b/extern/audaspace/plugins/ffmpeg/FFMPEG.cpp @@ -35,14 +35,24 @@ void FFMPEG::registerPlugin() FileManager::registerOutput(plugin); } -std::shared_ptr<IReader> FFMPEG::createReader(std::string filename) +std::shared_ptr<IReader> FFMPEG::createReader(std::string filename, int stream) { - return std::shared_ptr<IReader>(new FFMPEGReader(filename)); + return std::shared_ptr<IReader>(new FFMPEGReader(filename, stream)); } -std::shared_ptr<IReader> FFMPEG::createReader(std::shared_ptr<Buffer> buffer) +std::shared_ptr<IReader> FFMPEG::createReader(std::shared_ptr<Buffer> buffer, int stream) { - return std::shared_ptr<IReader>(new FFMPEGReader(buffer)); + return std::shared_ptr<IReader>(new FFMPEGReader(buffer, stream)); +} + +std::vector<StreamInfo> FFMPEG::queryStreams(std::string filename) +{ + return FFMPEGReader(filename).queryStreams(); +} + +std::vector<StreamInfo> FFMPEG::queryStreams(std::shared_ptr<Buffer> buffer) +{ + return FFMPEGReader(buffer).queryStreams(); } std::shared_ptr<IWriter> FFMPEG::createWriter(std::string filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate) |