diff --git a/tests/test_files/test.mp4 b/tests/test_files/test.mp4 new file mode 100644 index 0000000..678151c Binary files /dev/null and b/tests/test_files/test.mp4 differ diff --git a/tests/test_markitdown.py b/tests/test_markitdown.py index 4a981bd..98bbefe 100644 --- a/tests/test_markitdown.py +++ b/tests/test_markitdown.py @@ -130,6 +130,12 @@ "5bda1dd6", ] +VIDEO_TEST_EXIFTOOL = { + "Title": "Sample video test for MarkItDown", + "Comment": "This is a sample video created using FFmpeg, with the voice-over generated by the Parler-TTS model.", + "ImageSize": "1280x720", +} + # --- Helper Functions --- def validate_strings(result, expected_strings, exclude_strings=None): @@ -246,6 +252,14 @@ def test_markitdown_exiftool() -> None: target = f"{key}: {JPG_TEST_EXIFTOOL[key]}" assert target in result.text_content + # Test Video metadata + result = markitdown.convert( + os.path.join(TEST_FILES_DIR, "test.mp4"), transcribe=False, llm_summary=False + ) + for key in VIDEO_TEST_EXIFTOOL: + target = f"{key}: {VIDEO_TEST_EXIFTOOL[key]}" + assert target in result.text_content + def test_markitdown_deprecation() -> None: try: