summaryrefslogtreecommitdiff
path: root/ext/x264/gstx264enc.h
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2019-10-17 14:55:51 +0200
committerThibault Saunier <tsaunier@gnome.org>2020-01-07 21:21:42 +0000
commit9273903286b0fe7a9d8a5279c44a5e149e55ff24 (patch)
tree04f3e918d829c67157658b8ac6f1bfd317963a5a /ext/x264/gstx264enc.h
parenta47b6b5f3c215e05f93617085db03b5a4a9ac72f (diff)
x264enc: Respect Youtube bitrate recommandation
Properly follow google recommendations[0] concerning bitrate when the user wants to use the youtube profile. [0]: https://support.google.com/youtube/answer/1722171?hl=en
Diffstat (limited to 'ext/x264/gstx264enc.h')
-rw-r--r--ext/x264/gstx264enc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/x264/gstx264enc.h b/ext/x264/gstx264enc.h
index c7de48cf..e1a091fc 100644
--- a/ext/x264/gstx264enc.h
+++ b/ext/x264/gstx264enc.h
@@ -25,6 +25,7 @@
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideoencoder.h>
+#include "gstencoderbitrateprofilemanager.h"
#ifdef HAVE_STDINT_H
#include <stdint.h>
@@ -126,6 +127,8 @@ struct _GstX264Enc
/* cached values to set x264_picture_t */
gint x264_nplanes;
+
+ GstEncoderBitrateProfileManager *bitrate_manager;
};
struct _GstX264EncClass