Intel-mediasdk test validate that gstreamer with mediaSDK plugin
can encode provided intel media driver was installed.

Signed-off-by: Yeoh Ee Peng <[email protected]>
---
 lib/oeqa/runtime/cases/intel_mediasdk.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 lib/oeqa/runtime/cases/intel_mediasdk.py

diff --git a/lib/oeqa/runtime/cases/intel_mediasdk.py 
b/lib/oeqa/runtime/cases/intel_mediasdk.py
new file mode 100644
index 0000000..88f2617
--- /dev/null
+++ b/lib/oeqa/runtime/cases/intel_mediasdk.py
@@ -0,0 +1,19 @@
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class MsdkTest(OERuntimeTestCase):
+
+    @OEHasPackage(['gstreamer1.0-plugins-base'])
+    @OEHasPackage(['gstreamer1.0-plugins-good'])
+    @OEHasPackage(['gstreamer1.0-plugins-bad'])
+    @OEHasPackage(['intel-mediasdk'])
+    @OEHasPackage(['intel-media-driver', 'libigfxcmrt7'])
+    def test_gstreamer_can_encode_with_msdk_and_intel_media_driver(self):
+        # libigfxcmrt7: package that provide the intel-media-driver
+        (status, output) = self.target.run('gst-inspect-1.0 msdk')
+        self.assertEqual(status, 0, msg='status and output: %s and %s' % 
(status, output))
+
+        (status, output) = self.target.run('export LIBVA_DRIVER_NAME=iHD; '
+                                           'gst-launch-1.0 -ev videotestsrc 
num-buffers=120 ! timeoverlay ! '
+                                           'msdkh264enc ! filesink 
location=test-msdkh264enc.mp4')
+        self.assertEqual(status, 0, msg='status and output: %s and %s' % 
(status, output))
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#6421): 
https://lists.yoctoproject.org/g/meta-intel/message/6421
Mute This Topic: https://lists.yoctoproject.org/mt/72064400/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to