X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_examiner.h;h=59c3299b26c7325313eb7f1b791821babc6ff73c;hb=58f0530b1687673ea6e24a083063c3fdf2bff0b2;hp=81275a9e1733c4223f9a94610b1a2a6a1748ae7f;hpb=1629bd7df2150156109afbc7a16677cb29e82adf;p=dcpomatic.git diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h index 81275a9e1..59c3299b2 100644 --- a/src/lib/ffmpeg_examiner.h +++ b/src/lib/ffmpeg_examiner.h @@ -31,7 +31,8 @@ public: float video_frame_rate () const; dcp::Size video_size () const; - VideoFrame video_length () const; + ContentTime video_length () const; + boost::optional sample_aspect_ratio () const; std::vector > subtitle_streams () const { return _subtitle_streams; @@ -41,17 +42,21 @@ public: return _audio_streams; } - boost::optional first_video () const { + boost::optional first_video () const { return _first_video; } private: + void video_packet (AVCodecContext *); + void audio_packet (AVCodecContext *, boost::shared_ptr); + void subtitle_packet (AVCodecContext *, boost::shared_ptr); + std::string stream_name (AVStream* s) const; std::string audio_stream_name (AVStream* s) const; std::string subtitle_stream_name (AVStream* s) const; - boost::optional frame_time (AVStream* s) const; + boost::optional frame_time (AVStream* s) const; std::vector > _subtitle_streams; std::vector > _audio_streams; - boost::optional _first_video; + boost::optional _first_video; };