mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
avvidenc/dec: Disable more hardware encoder/decoders
Important when using a system ffmpeg/libav. https://bugzilla.gnome.org/show_bug.cgi?id=774278
This commit is contained in:
parent
83ff353ff9
commit
3c3be3125f
2 changed files with 15 additions and 1 deletions
|
@ -2245,6 +2245,13 @@ gst_ffmpegviddec_register (GstPlugin * plugin)
|
|||
goto next;
|
||||
}
|
||||
|
||||
if (g_str_has_suffix (in_plugin->name, "_qsv")) {
|
||||
GST_DEBUG
|
||||
("Ignoring qsv 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 */
|
||||
|
|
|
@ -991,13 +991,20 @@ gst_ffmpegvidenc_register (GstPlugin * plugin)
|
|||
goto next;
|
||||
}
|
||||
|
||||
if (g_str_has_suffix (in_plugin->name, "_nvenc")) {
|
||||
if (strstr (in_plugin->name, "nvenc")) {
|
||||
GST_DEBUG
|
||||
("Ignoring nvenc encoder %s. We can't handle this outside of ffmpeg",
|
||||
in_plugin->name);
|
||||
goto next;
|
||||
}
|
||||
|
||||
if (g_str_has_suffix (in_plugin->name, "_qsv")) {
|
||||
GST_DEBUG
|
||||
("Ignoring qsv 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