Intel-vaapi-driver test validate that gstreamer with vaapi plugin can encode provided intel vaapi driver was installed.
Signed-off-by: Yeoh Ee Peng <[email protected]> --- lib/oeqa/runtime/cases/intel_vaapi_driver.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/oeqa/runtime/cases/intel_vaapi_driver.py diff --git a/lib/oeqa/runtime/cases/intel_vaapi_driver.py b/lib/oeqa/runtime/cases/intel_vaapi_driver.py new file mode 100644 index 0000000..5bbdc24 --- /dev/null +++ b/lib/oeqa/runtime/cases/intel_vaapi_driver.py @@ -0,0 +1,16 @@ +from oeqa.runtime.case import OERuntimeTestCase +from oeqa.runtime.decorator.package import OEHasPackage + +class VaapiDriverTest(OERuntimeTestCase): + + @OEHasPackage(['gstreamer1.0-plugins-base']) + @OEHasPackage(['gstreamer1.0-plugins-good']) + @OEHasPackage(['gstreamer1.0-vaapi']) + @OEHasPackage(['intel-vaapi-driver']) + def test_gstreamer_can_encode_with_intel_vaapi_driver(self): + (status, output) = self.target.run('gst-inspect-1.0 vaapi') + self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) + + (status, output) = self.target.run('gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' + 'timeoverlay ! vaapih264enc ! mp4mux ! filesink location=./test_h264.mp4') + self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) \ No newline at end of file -- 2.7.4
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#6422): https://lists.yoctoproject.org/g/meta-intel/message/6422 Mute This Topic: https://lists.yoctoproject.org/mt/72064402/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
