diff options
author | sangeeta jain <sangeeta.jain@intel.com> | 2021-03-02 14:13:13 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-03-02 14:16:32 +0800 |
commit | 76e0a427e58d068d0758fa052d2d1548067cf592 (patch) | |
tree | 17cd4fa21dacd64251c372d6f5c600f261dde36b | |
parent | 8e72e716c96d3480c3e1cf2096a8e64c51b9f24b (diff) | |
download | meta-intel-76e0a427e58d068d0758fa052d2d1548067cf592.tar.gz |
intel_vaapi_driver.py: update testcase to export GST_VAAPI_ALL_DRIVERS
Replace LIBVA_DRIVER_NAME=i915 by GST_VAAPI_ALL_DRIVERS=1.
Exporting of driver is required in gatesgarth as it is using gstreamer
version 1.16. For gstreamer version 1.18 and above it is not required.
See:
https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/commit/11a8
175fffb58e974819ce1de230228821adada5
Also, fix pipeline to include mp4mux for mp4 output.
Signed-off-by: sangeeta jain <sangeeta.jain@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r-- | lib/oeqa/runtime/cases/intel_vaapi_driver.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/oeqa/runtime/cases/intel_vaapi_driver.py b/lib/oeqa/runtime/cases/intel_vaapi_driver.py index 85d2dd39..b78b2859 100644 --- a/lib/oeqa/runtime/cases/intel_vaapi_driver.py +++ b/lib/oeqa/runtime/cases/intel_vaapi_driver.py | |||
@@ -16,14 +16,14 @@ class VaapiDriverTest(OERuntimeTestCase): | |||
16 | (status, output) = self.target.run('gst-inspect-1.0 vaapi') | 16 | (status, output) = self.target.run('gst-inspect-1.0 vaapi') |
17 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | 17 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) |
18 | 18 | ||
19 | (status, output) = self.target.run('export LIBVA_DRIVER_NAME=i965; ' | 19 | (status, output) = self.target.run('export GST_VAAPI_ALL_DRIVERS=1; ' |
20 | 'gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' | 20 | 'gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' |
21 | 'timeoverlay ! vaapih264enc ! mp4mux ! filesink location=/tmp/vtest_h264.mp4') | 21 | 'vaapih264enc ! mp4mux ! filesink location=/tmp/vtest_h264.mp4') |
22 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | 22 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) |
23 | 23 | ||
24 | @OETestDepends(['intel_vaapi_driver.VaapiDriverTest.test_gstreamer_can_encode_with_intel_vaapi_driver']) | 24 | @OETestDepends(['intel_vaapi_driver.VaapiDriverTest.test_gstreamer_can_encode_with_intel_vaapi_driver']) |
25 | def test_gstreamer_can_decode_with_intel_vaapi_driver(self): | 25 | def test_gstreamer_can_decode_with_intel_vaapi_driver(self): |
26 | (status, output) = self.target.run('export LIBVA_DRIVER_NAME=i965; ' | 26 | (status, output) = self.target.run('export GST_VAAPI_ALL_DRIVERS=1; ' |
27 | 'gst-launch-1.0 filesrc location=/tmp/vtest_h264.mp4 ! ' | 27 | 'gst-launch-1.0 filesrc location=/tmp/vtest_h264.mp4 ! ' |
28 | 'qtdemux ! h264parse ! vaapih264dec ! vaapisink') | 28 | 'qtdemux ! h264parse ! vaapih264dec ! vaapisink') |
29 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | 29 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) |