summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_transcoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ffmpeg_transcoder.h')
-rw-r--r--src/lib/ffmpeg_transcoder.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/ffmpeg_transcoder.h b/src/lib/ffmpeg_transcoder.h
index 5380e84b0..9799285e2 100644
--- a/src/lib/ffmpeg_transcoder.h
+++ b/src/lib/ffmpeg_transcoder.h
@@ -18,6 +18,9 @@
*/
+#ifndef DCPOMATIC_FFMPEG_TRANSCODER_H
+#define DCPOMATIC_FFMPEG_TRANSCODER_H
+
#include "transcoder.h"
#include "event_history.h"
extern "C" {
@@ -28,7 +31,12 @@ extern "C" {
class FFmpegTranscoder : public Transcoder
{
public:
- FFmpegTranscoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job);
+ enum Format
+ {
+ FORMAT_PRORES
+ };
+
+ FFmpegTranscoder (boost::shared_ptr<const Film> film, boost::weak_ptr<Job> job, boost::filesystem::path output, Format format);
void go ();
@@ -38,10 +46,6 @@ public:
return false;
}
- void set_output (boost::filesystem::path o) {
- _output = o;
- }
-
private:
void video (boost::shared_ptr<PlayerVideo>, DCPTime);
void audio (boost::shared_ptr<AudioBuffers>, DCPTime);
@@ -51,6 +55,7 @@ private:
AVFormatContext* _format_context;
AVStream* _video_stream;
AVPixelFormat _pixel_format;
+ std::string _codec_name;
mutable boost::mutex _mutex;
DCPTime _last_time;
@@ -59,3 +64,5 @@ private:
boost::filesystem::path _output;
};
+
+#endif