Files
splash/tests/integration_tests/test_cases/test_video_codecs.py
2025-09-12 11:16:06 -04:00

27 lines
1.2 KiB
Python

import splash
from splash_test import SplashTestCase
from time import sleep
class TestVideoCodecs(SplashTestCase):
def test_codecs(self):
print("Testing video codecs")
splash.set_world_attribute("replaceObject", ["image", "image_ffmpeg", "image", "object"])
sleep(2.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_h264.mov")
sleep(10.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_hap.mov")
sleep(10.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_hap_alpha.mov")
sleep(10.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_hap_q.mov")
sleep(10.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_hap_r.mov")
sleep(10.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_hap_hdr_unsigned.mov")
sleep(10.0)
splash.set_object_attribute("image", "file", f"{SplashTestCase.test_dir}/../assets/tornado_hap_hdr_signed.mov")
sleep(10.0)