After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796736 - nvdec: Check device codec capabilities before creating video parser
nvdec: Check device codec capabilities before creating video parser
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-07-03 08:56 UTC by Yeongjin Jeong
Modified: 2018-11-03 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
nvdec: Check device codec capabilities before creating video (4.53 KB, patch)
2018-07-03 08:56 UTC, Yeongjin Jeong
none Details | Review
nvdec: Add support VC1 decoding (1.30 KB, patch)
2018-07-03 10:14 UTC, Yeongjin Jeong
none Details | Review
nvdec: Add support VC1 decoding (1.30 KB, patch)
2018-07-03 10:16 UTC, Yeongjin Jeong
none Details | Review

Description Yeongjin Jeong 2018-07-03 08:56:41 UTC
Created attachment 372913 [details] [review]
nvdec: Check device codec capabilities before creating video

Some NVIDIA video decoder not supports HEVC or VPX decoding.

So we need  check device codec capabilities before creating video.

See https://developer.nvidia.com/nvidia-video-codec-sdk#NVDECFeatures
Comment 1 Yeongjin Jeong 2018-07-03 10:14:08 UTC
Created attachment 372915 [details] [review]
nvdec: Add support VC1 decoding

NVIDIA video decoder supports VC1 decoding

e.q. )
gst-launch-1.0 filesrc location=(video file path) ! avidemux ! nvdec ! glimagesink

sample video. )
http://samples.mplayerhq.hu/V-codecs/WVC1/glitch-ffvc1.avi
Comment 2 Yeongjin Jeong 2018-07-03 10:16:04 UTC
Created attachment 372916 [details] [review]
nvdec: Add support VC1 decoding

NVIDIA video decoder supports VC1 decoding

e.q. )
gst-launch-1.0 filesrc location=(video file path) ! avidemux ! nvdec ! glimagesink

sample video. )
http://samples.mplayerhq.hu/V-codecs/WVC1/glitch-ffvc1.avi
Comment 3 Tim-Philipp Müller 2018-07-03 10:31:14 UTC
Can we check hardware capabilities at run-time?
Comment 4 Yeongjin Jeong 2018-07-03 12:19:47 UTC
(In reply to Tim-Philipp Müller from comment #3)
> Can we check hardware capabilities at run-time?

I think, it's hard to check capabilities in run-time because header file is referenced at build time, and cuda API does not seem to be the latest structure to support dynamic linking. (e.q. cuda 8.x)

But it seems possible if we load object file dynamically with g_module_open(), and find the module's symbols  with g_module_symbol().
Comment 5 Matthew Waters (ystreet00) 2018-07-03 13:52:11 UTC
Use cuvidGetDecoderCaps() for querying what's supported at runtime.

I would prefer avoiding the #ifdef hell if at all possible and delegating all this to runtime checks.
Comment 6 GStreamer system administrator 2018-11-03 14:27:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/743.