Skip to content

Set the video MIME type for .mov and uppercase extensions - #49

Open
finaing wants to merge 1 commit into
sign-language-processing:mainfrom
finaing:video-mimetypes
Open

finaing wants to merge 1 commit into
sign-language-processing:mainfrom
finaing:video-mimetypes

Conversation

@finaing

@finaing finaing commented Nov 12, 2026

Copy link
Copy Markdown

pose_to_segments --videosets a MIME type only for videos ending in lowercase .mp4. For any other video it passes mimetype=None, so pympi guesses the type from its own short list of extensions. That list has no .mov and is case-sensitive, so linking a .mov or .MP4 video crashes. This PR looks up the lowercase extension in a table of common video types (mp4, mov, mpg/mpeg, avi, wmv, mkv, webm) and falls back to video/<extension> for anything else.

Note that my previous PR and this change neighbouring lines in `main(), so the one merged second may need a small conflict resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant