]> git.sesse.net Git - nageru/blobdiff - nageru/ffmpeg_capture.h
A hack to make Kaeru overlay CEF scores on a transcoded file. Probably not useful...
[nageru] / nageru / ffmpeg_capture.h
index 2ab9481aad6d351e5597f86cc0df3315a39d6606..0823ce09bdb345d1884efc506abbd7cc9a456e35 100644 (file)
@@ -57,6 +57,7 @@ class FFmpegCapture : public bmusb::CaptureInterface
 {
 public:
        FFmpegCapture(const std::string &filename, unsigned width, unsigned height);
+       FFmpegCapture(const std::vector<std::string> &filenames, unsigned width, unsigned height);
 #ifdef HAVE_SRT
        // Takes ownership of the SRT client socket.
        FFmpegCapture(int srt_sock, const std::string &stream_id);
@@ -90,13 +91,13 @@ public:
        std::string get_filename() const
        {
                std::lock_guard<std::mutex> lock(filename_mu);
-               return filename;
+               return filenames[0];
        }
 
        void change_filename(const std::string &new_filename)
        {
                std::lock_guard<std::mutex> lock(filename_mu);
-               filename = new_filename;
+               //filename = new_filename;
                should_interrupt = true;
        }
 
@@ -275,7 +276,8 @@ private:
        inline unsigned frame_height(const AVFrame *frame) const;
 
        mutable std::mutex filename_mu;
-       std::string description, filename;
+       std::string description;
+       std::vector<std::string> filenames;
        int srt_sock = -1;
        uint16_t timecode = 0;
        unsigned width, height;  // 0 means keep input size.