mpegdemux: add support for H.265

This commit is contained in:
Nicola Murino 2019-01-24 10:32:46 +01:00 committed by Sebastian Dröge
parent bbfd3154fb
commit 60501f128c
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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);