mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
avivf_mux: support VP9 and AV1
Besides vp8, ff_ivf_muxer supports VP9 and AV1
This commit is contained in:
parent
c057fef347
commit
4f51000920
1 changed files with 18 additions and 0 deletions
|
@ -2322,6 +2322,11 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
||||||
gst_ff_aud_caps_new (context, NULL, codec_id, encode, "audio/aptx-hd",
|
gst_ff_aud_caps_new (context, NULL, codec_id, encode, "audio/aptx-hd",
|
||||||
NULL);
|
NULL);
|
||||||
break;
|
break;
|
||||||
|
case AV_CODEC_ID_AV1:
|
||||||
|
caps =
|
||||||
|
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-av1",
|
||||||
|
NULL);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
GST_DEBUG ("Unknown codec ID %d, please add mapping here", codec_id);
|
GST_DEBUG ("Unknown codec ID %d, please add mapping here", codec_id);
|
||||||
break;
|
break;
|
||||||
|
@ -3750,6 +3755,19 @@ gst_ffmpeg_formatid_get_codecids (const gchar * format_name,
|
||||||
|
|
||||||
*video_codec_list = pga_video_list;
|
*video_codec_list = pga_video_list;
|
||||||
*audio_codec_list = pga_audio_list;
|
*audio_codec_list = pga_audio_list;
|
||||||
|
} else if ((!strcmp (format_name, "ivf"))) {
|
||||||
|
static enum AVCodecID ivf_video_list[] = {
|
||||||
|
AV_CODEC_ID_VP8,
|
||||||
|
AV_CODEC_ID_VP9,
|
||||||
|
AV_CODEC_ID_AV1,
|
||||||
|
AV_CODEC_ID_NONE
|
||||||
|
};
|
||||||
|
static enum AVCodecID ivf_audio_list[] = {
|
||||||
|
AV_CODEC_ID_NONE
|
||||||
|
};
|
||||||
|
|
||||||
|
*video_codec_list = ivf_video_list;
|
||||||
|
*audio_codec_list = ivf_audio_list;
|
||||||
} else if ((plugin->audio_codec != AV_CODEC_ID_NONE) ||
|
} else if ((plugin->audio_codec != AV_CODEC_ID_NONE) ||
|
||||||
(plugin->video_codec != AV_CODEC_ID_NONE)) {
|
(plugin->video_codec != AV_CODEC_ID_NONE)) {
|
||||||
tmp_vlist[0] = plugin->video_codec;
|
tmp_vlist[0] = plugin->video_codec;
|
||||||
|
|
Loading…
Reference in a new issue