manuelvaraletai commited on
Commit
3c7b3f9
·
verified ·
1 Parent(s): 93725c6

Create test_video_writer.py

Browse files
Files changed (1) hide show
  1. tests/test_video_writer.py +21 -0
tests/test_video_writer.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # test/test_video_writer.py
2
+
3
+ import sys
4
+ import numpy as np
5
+ from utils.video_processor import VideoProcessor
6
+
7
+ def test_codec_support():
8
+ print("== TEST: Validación de códecs para VideoWriter ==")
9
+
10
+ width, height, fps = 640, 480, 30
11
+ processor = VideoProcessor()
12
+
13
+ codec = processor._test_video_writer(width, height, fps)
14
+
15
+ if codec:
16
+ print(f"✅ Códec compatible encontrado: {codec}")
17
+ else:
18
+ print("❌ No se encontró ningún códec compatible. Se debe usar fallback.")
19
+
20
+ if __name__ == "__main__":
21
+ test_codec_support()