mirror of
https://github.com/facefusion/facefusion.git
synced 2026-06-06 20:53:54 +02:00
Refactor/stream helper testing (#1141)
* fix tests part1 * improve testing * use real audio * more renaming * switch to hash assertions * switch to hash assertions * switch to hash assertions * switch to hash assertions * skip on macos
This commit is contained in:
@@ -30,9 +30,9 @@ def test_create() -> None:
|
||||
|
||||
|
||||
def test_encode() -> None:
|
||||
vision_frame = read_video_frame(get_test_example_file('target-240p.mp4'))
|
||||
video_buffer = cv2.cvtColor(vision_frame, cv2.COLOR_BGR2YUV_I420).tobytes()
|
||||
video_resolution = (vision_frame.shape[1], vision_frame.shape[0])
|
||||
video_frame = read_video_frame(get_test_example_file('target-240p.mp4'))
|
||||
video_buffer = cv2.cvtColor(video_frame, cv2.COLOR_BGR2YUV_I420).tobytes()
|
||||
video_resolution = (video_frame.shape[1], video_frame.shape[0])
|
||||
aom_encoder = create(video_resolution, 1000, 1, 0)
|
||||
|
||||
if is_linux() or is_windows():
|
||||
|
||||
Reference in New Issue
Block a user