Skip to content

Commit 304aa2f

Browse files
committed
Split hevc test
1 parent e3cf21b commit 304aa2f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

auto_editor/cmds/test.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -462,15 +462,20 @@ def test_prores(self):
462462
out2 = self.main([out], ["-c:v", "prores"], "prores2.mkv")
463463
assert fileinfo(out2).videos[0].pix_fmt == "yuv422p10le"
464464

465-
def test_hevc(self):
465+
def test_decode_hevc(self):
466+
out = self.main(["resources/testsrc-hevc.mp4"], ["-c:v", "h264"]) + ".mp4"
467+
output = fileinfo(out)
468+
assert output.videos[0].codec == "h264"
469+
assert output.videos[0].pix_fmt == "yuv420p"
470+
471+
def test_encode_hevc(self):
466472
if os.environ.get("GITHUB_ACTIONS") == "true":
467473
raise SkipTest()
468474

469475
out = self.main(["resources/testsrc.mp4"], ["-c:v", "hevc"], "out.mkv")
470-
assert fileinfo(out).videos[0].pix_fmt == "yuv420p"
471-
472-
out2 = self.main(["resources/testsrc-hevc.mp4"], []) + ".mp4"
473-
assert fileinfo(out2).videos[0].pix_fmt == "yuv420p"
476+
output = fileinfo(out)
477+
assert output.videos[0].codec == "hevc"
478+
assert output.videos[0].pix_fmt == "yuv420p"
474479

475480
# Issue 280
476481
def test_SAR(self):

0 commit comments

Comments
 (0)