#ifndef DCPOMATIC_FFMPEG_CONTENT_H
#define DCPOMATIC_FFMPEG_CONTENT_H
-#include "video_content.h"
#include "audio_content.h"
#include "subtitle_content.h"
-#include "audio_mapping.h"
-#include <boost/enable_shared_from_this.hpp>
-#include <boost/lexical_cast.hpp>
struct AVFormatContext;
struct AVStream;
class Filter;
class FFmpegSubtitleStream;
class FFmpegAudioStream;
+class VideoContent;
struct ffmpeg_pts_offset_test;
struct audio_sampling_rate_test;
-class FFmpegContentProperty : public VideoContentProperty
+class FFmpegContentProperty
{
public:
static int const SUBTITLE_STREAMS;
+ /** The chosen subtitle stream, or something about it */
static int const SUBTITLE_STREAM;
static int const FILTERS;
};
-class FFmpegContent : public VideoContent, public AudioContent, public SubtitleContent
+class FFmpegContent : public AudioContent, public SubtitleContent
{
public:
FFmpegContent (boost::shared_ptr<const Film>, boost::filesystem::path);
/* SubtitleContent */
bool has_text_subtitles () const;
bool has_image_subtitles () const;
+ double subtitle_video_frame_rate () const;
void set_filters (std::vector<Filter const *> const &);
return _first_video;
}
- std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod, bool starting) const;
+ std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
+ std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
+
+ void signal_subtitle_stream_changed ();
+
+ boost::shared_ptr<VideoContent> video;
+
+protected:
+ void add_properties (std::list<UserProperty> &) const;
private:
friend struct ffmpeg_pts_offset_test;
boost::optional<ContentTime> _first_video;
/** Video filters that should be used when generating DCPs */
std::vector<Filter const *> _filters;
+
+ AVColorRange _color_range;
+ AVColorPrimaries _color_primaries;
+ AVColorTransferCharacteristic _color_trc;
+ AVColorSpace _colorspace;
+ boost::optional<int> _bits_per_pixel;
};
#endif