Support for mkv video files #392

Closed
opened 2026-01-19 18:30:09 +00:00 by michael · 3 comments
Owner

Originally created by @orschiro on GitHub.

Originally assigned to: @nl5887 on GitHub.

Hi there,

Many thanks for transfer.sh! I regularly use it to share some files.

Just now I wanted to share a screencast that I had created with simplescreenrecorder on my Linux machine: https://transfer.sh/RzaoH/screencast.mkv

The default format is mkv which currently does not seem to be supported.

Would it be possible to support mkv files?

Thankfully,

Robert

Originally created by @orschiro on GitHub. Originally assigned to: @nl5887 on GitHub. Hi there, Many thanks for transfer.sh! I regularly use it to share some files. Just now I wanted to share a screencast that I had created with `simplescreenrecorder` on my Linux machine: https://transfer.sh/RzaoH/screencast.mkv The default format is `mkv` which currently does not seem to be supported. Would it be possible to support `mkv` files? Thankfully, Robert
Author
Owner

@paolafrancesca commented on GitHub:

@orschiro is this still an issue?

@paolafrancesca commented on GitHub: @orschiro is this still an issue?
Author
Owner

@johnko commented on GitHub:

According to http://www.matroska.org/news/webm-matroska.html

webm is a subset of mkv

So what might work is serving *.mkv files with a Content-Type video/webm as suggested in http://stackoverflow.com/questions/9622726/html5-video-can-play-mkv-files/29438223#29438223

So maybe after line 165, add:

mime.AddExtensionType(".mkv", "video/webm")
@johnko commented on GitHub: According to http://www.matroska.org/news/webm-matroska.html webm is a subset of mkv So what might work is serving `*.mkv` files with a Content-Type `video/webm` as suggested in http://stackoverflow.com/questions/9622726/html5-video-can-play-mkv-files/29438223#29438223 So maybe after [line 165](https://github.com/dutchcoders/transfer.sh/blob/master/transfersh-server/main.go#L165), add: ``` mime.AddExtensionType(".mkv", "video/webm") ```
Author
Owner

@orschiro commented on GitHub:

@aspacca not anymore. Thanks for the reminder! Closing...

@orschiro commented on GitHub: @aspacca not anymore. Thanks for the reminder! Closing...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#392