mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
mpegdemux: add support for H.265
This commit is contained in:
parent
bbfd3154fb
commit
60501f128c
2 changed files with 10 additions and 0 deletions
|
@ -164,6 +164,7 @@
|
|||
#define ST_AUDIO_AAC_LOAS 0x11
|
||||
#define ST_VIDEO_MPEG4 0x10
|
||||
#define ST_VIDEO_H264 0x1b
|
||||
#define ST_VIDEO_H265 0x24
|
||||
|
||||
/* Un-official Dirac extension */
|
||||
#define ST_VIDEO_DIRAC 0xd1
|
||||
|
|
|
@ -109,6 +109,7 @@ static GstStaticPadTemplate video_template =
|
|||
GST_STATIC_CAPS ("video/mpeg, "
|
||||
"mpegversion = (int) { 1, 2, 4 }, " "systemstream = (boolean) FALSE, "
|
||||
"parsed = (boolean) FALSE; " "video/x-h264, "
|
||||
"stream-format=(string)byte-stream; " "video/x-h265, "
|
||||
"stream-format=(string)byte-stream;")
|
||||
);
|
||||
|
||||
|
@ -422,6 +423,14 @@ gst_ps_demux_create_stream (GstPsDemux * demux, gint id, gint stream_type)
|
|||
"stream-format", G_TYPE_STRING, "byte-stream", NULL);
|
||||
threshold = VIDEO_SEGMENT_THRESHOLD;
|
||||
break;
|
||||
case ST_VIDEO_H265:
|
||||
template = klass->video_template;
|
||||
name = g_strdup_printf ("video_%02x", id);
|
||||
caps = gst_caps_new_simple ("video/x-h265",
|
||||
"stream-format", G_TYPE_STRING, "byte-stream", NULL);
|
||||
threshold = VIDEO_SEGMENT_THRESHOLD;
|
||||
break;
|
||||
|
||||
case ST_PS_AUDIO_AC3:
|
||||
template = klass->audio_template;
|
||||
name = g_strdup_printf ("audio_%02x", id);
|
||||
|
|
Loading…
Reference in a new issue