projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41376a
)
x264: Add bitrate info to the tags output.
author
Jan Schmidt
<jan@centricular.com>
Sat, 5 Sep 2015 13:34:45 +0000
(23:34 +1000)
committer
Jan Schmidt
<jan@centricular.com>
Sat, 5 Sep 2015 13:34:45 +0000
(23:34 +1000)
Makes it possible for muxers to know the target bitrate as soon
as encoding starts, which flvmux now uses.
ext/x264/gstx264enc.c
patch
|
blob
|
history
diff --git
a/ext/x264/gstx264enc.c
b/ext/x264/gstx264enc.c
index 4581b0328467b6528106178ddeff701b91203f02..dd1236c21ea38fcd5650afe747dd14ae32840d0c 100644
(file)
--- a/
ext/x264/gstx264enc.c
+++ b/
ext/x264/gstx264enc.c
@@
-1854,7
+1854,9
@@
gst_x264_enc_set_src_caps (GstX264Enc * encoder, GstCaps * caps)
tags = gst_tag_list_new_empty ();
gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE, GST_TAG_ENCODER, "x264",
- GST_TAG_ENCODER_VERSION, X264_BUILD, NULL);
+ GST_TAG_ENCODER_VERSION, X264_BUILD,
+ GST_TAG_MAXIMUM_BITRATE, encoder->bitrate * 1024,
+ GST_TAG_NOMINAL_BITRATE, encoder->bitrate * 1024, NULL);
gst_video_encoder_merge_tags (GST_VIDEO_ENCODER (encoder), tags,
GST_TAG_MERGE_REPLACE);
gst_tag_list_unref (tags);