mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
libav: Ignore VAAPI decoders and VAAPI/nvenc encoders
These can show up when having a build against a system version of ffmpeg.
This commit is contained in:
parent
9bc5380f5a
commit
5f4bd291c1
2 changed files with 21 additions and 0 deletions
|
@ -2061,6 +2061,13 @@ gst_ffmpegviddec_register (GstPlugin * plugin)
|
|||
goto next;
|
||||
}
|
||||
|
||||
if (strstr (in_plugin->name, "vaapi")) {
|
||||
GST_DEBUG
|
||||
("Ignoring VAAPI decoder %s. We can't handle this outside of ffmpeg",
|
||||
in_plugin->name);
|
||||
goto next;
|
||||
}
|
||||
|
||||
GST_DEBUG ("Trying plugin %s [%s]", in_plugin->name, in_plugin->long_name);
|
||||
|
||||
/* no codecs for which we're GUARANTEED to have better alternatives */
|
||||
|
|
|
@ -973,6 +973,20 @@ gst_ffmpegvidenc_register (GstPlugin * plugin)
|
|||
goto next;
|
||||
}
|
||||
|
||||
if (strstr (in_plugin->name, "vaapi")) {
|
||||
GST_DEBUG
|
||||
("Ignoring VAAPI encoder %s. We can't handle this outside of ffmpeg",
|
||||
in_plugin->name);
|
||||
goto next;
|
||||
}
|
||||
|
||||
if (g_str_has_suffix (in_plugin->name, "_nvenc")) {
|
||||
GST_DEBUG
|
||||
("Ignoring nvenc encoder %s. We can't handle this outside of ffmpeg",
|
||||
in_plugin->name);
|
||||
goto next;
|
||||
}
|
||||
|
||||
/* only video encoders */
|
||||
if (!av_codec_is_encoder (in_plugin)
|
||||
|| in_plugin->type != AVMEDIA_TYPE_VIDEO)
|
||||
|
|
Loading…
Reference in a new issue