More edge case testing

This commit is contained in:
henryruhs
2025-05-23 18:53:03 +02:00
parent 04319fb3c6
commit 834c17340d
2 changed files with 7 additions and 1 deletions

View File

@@ -214,6 +214,12 @@ def merge_video(target_path : str, temp_video_fps : Fps, output_video_resolution
if output_file_format in [ 'm4v', 'mkv', 'mp4' ] and output_video_encoder == 'rawvideo':
output_video_encoder = 'libx264'
if output_file_format == 'm4v':
output_video_encoder = 'libx264'
if output_file_format == 'mov' and output_video_encoder == 'libvpx-vp9':
output_video_encoder = 'libx264'
if output_file_format == 'webm':
output_video_encoder = 'libvpx-vp9'

View File

@@ -97,7 +97,7 @@ def test_merge_video() -> None:
create_temp_directory(target_path)
extract_frames(target_path, '452x240', 25.0, 0, 1)
assert merge_video(target_path, 25.0, '452x240', 25.0, 0, 1) is True
assert merge_video(target_path, 25.0, '452x240', 25.0, 0, 1) is True
clear_temp_directory(target_path)