Skip to content

Commit

Permalink
Don't require libx264 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Mar 14, 2024
1 parent c6f80a3 commit c6dc867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_codec_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def image_sequence_encode(self, codec_name):
self.assertEqual(frame.format.name, pix_fmt)

def test_encoding_h264(self):
self.video_encoding("libx264", {"crf": "19"})
self.video_encoding("h264", {"crf": "19"})

def test_encoding_mpeg4(self):
self.video_encoding("mpeg4")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_encoding_with_pts(self):
path = self.sandboxed("video_with_pts.mov")

with av.open(path, "w") as output:
stream = output.add_stream("libx264", 24)
stream = output.add_stream("h264", 24)
self.assertIn(stream, output.streams.video)
stream.width = WIDTH
stream.height = HEIGHT
Expand Down

0 comments on commit c6dc867

Please sign in to comment.