mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
codecmap: add vp9 mapping
This commit is contained in:
parent
8cb8461f7e
commit
8da0a61dc0
1 changed files with 9 additions and 0 deletions
|
@ -1293,6 +1293,12 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
NULL);
|
||||
break;
|
||||
|
||||
case AV_CODEC_ID_VP9:
|
||||
caps =
|
||||
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-vp9",
|
||||
NULL);
|
||||
break;
|
||||
|
||||
case AV_CODEC_ID_THEORA:
|
||||
caps =
|
||||
gst_ff_vid_caps_new (context, NULL, codec_id, encode,
|
||||
|
@ -3743,6 +3749,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
|
|||
} else if (!strcmp (mimetype, "video/x-vp8")) {
|
||||
id = AV_CODEC_ID_VP8;
|
||||
video = TRUE;
|
||||
} else if (!strcmp (mimetype, "video/x-vp9")) {
|
||||
id = AV_CODEC_ID_VP9;
|
||||
video = TRUE;
|
||||
} else if (!strcmp (mimetype, "video/x-flash-screen")) {
|
||||
id = AV_CODEC_ID_FLASHSV;
|
||||
video = TRUE;
|
||||
|
|
Loading…
Reference in a new issue