[vlc-commits] gstdecode: Add support for more video codecs
Vikram Fugro
git at videolan.org
Sun Sep 27 15:45:31 CEST 2020
vlc | branch: master | Vikram Fugro <vikram.fugro at gmail.com> | Sun Sep 27 15:00:57 2020 +0530| [9894f84b1286cadf3d2d15362e153dab6c4038cf] | committer: Jean-Baptiste Kempf
gstdecode: Add support for more video codecs
Add support for vp9 and hevc
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9894f84b1286cadf3d2d15362e153dab6c4038cf
---
modules/codec/gstreamer/gstdecode.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index 61cb95f4a6..020bc9ded6 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -363,6 +363,11 @@ static GstStructure* vlc_to_gst_fmt( const es_format_t *p_fmt )
gst_structure_set( p_str, "stream-format", G_TYPE_STRING,
"byte-stream", NULL );
break;
+ case VLC_CODEC_HEVC:
+ p_str = gst_structure_new_empty( "video/x-h265" );
+ gst_structure_set( p_str, "alignment", G_TYPE_STRING, "au",
+ "stream-format", G_TYPE_STRING, "hvc1", NULL );
+ break;
case VLC_CODEC_MP4V:
p_str = gst_structure_new_empty( "video/mpeg" );
gst_structure_set( p_str, "mpegversion", G_TYPE_INT, 4,
@@ -371,6 +376,9 @@ static GstStructure* vlc_to_gst_fmt( const es_format_t *p_fmt )
case VLC_CODEC_VP8:
p_str = gst_structure_new_empty( "video/x-vp8" );
break;
+ case VLC_CODEC_VP9:
+ p_str = gst_structure_new_empty( "video/x-vp9" );
+ break;
case VLC_CODEC_MPGV:
p_str = gst_structure_new_empty( "video/mpeg" );
gst_structure_set( p_str, "mpegversion", G_TYPE_INT, 2,
More information about the vlc-commits
mailing list