Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MKV support #29

Open
feross opened this issue May 5, 2016 · 14 comments
Open

MKV support #29

feross opened this issue May 5, 2016 · 14 comments

Comments

@feross
Copy link
Collaborator

feross commented May 5, 2016

Right now, WebTorrent uses the videostream package to provide support for MP4. It would be great to be able to stream MKV files since it's a very popular container format.

@v0dy
Copy link

v0dy commented Jun 6, 2016

This library might help! https://github.com/RReverser/mpegts

@lesander
Copy link

How about WebChimera, @feross? http://www.webchimera.org/

@feross
Copy link
Collaborator Author

feross commented Aug 13, 2016

WebChimera does not work in the browser. But it's an option for Electron or
nw.js apps.
On Sat, Aug 13, 2016 at 1:45 PM Sander Laarhoven [email protected]
wrote:

How about WebChimera, @feross https://github.com/feross?
http://www.webchimera.org/


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#29 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHbpuJ8Z2PpOtAJcGSmgld2B7S3ODKFks5qfizWgaJpZM4IYVHZ
.

@ma-tt
Copy link

ma-tt commented Apr 10, 2017

+1 for .mkv support.

1 similar comment
@TiberioBrasil
Copy link

+1 for .mkv support.

@feross
Copy link
Collaborator Author

feross commented Apr 12, 2017

@ma-tt @OfertasDescontos Please don't post useless +1 comments. Use the "reactions" feature to indicate your support for an idea. Thanks.

@qgustavor
Copy link

qgustavor commented May 3, 2017

There is node-matroska, "Matroska library written for nodejs". While node-matroska isn't easily browserifyable the original project, node-ebml, is. I used it to make this tool. My code is quite messy, consider it a proof-of-concept. If node-matroska gets improved and finished maybe it can be used here.

@geecko86
Copy link

Any update on this front?

@HostFat
Copy link

HostFat commented Jun 1, 2018

Yep, it will be great to have it :)

@paulwaldmann
Copy link

@jhiesey, please give us some of your magic and add MKV support.

@regalstreak
Copy link

regalstreak commented Sep 15, 2018

inb4 just use vlc

@pavloniym
Copy link

Hello, guys!
Any updates about MKV stream support?

@zekiblue
Copy link

zekiblue commented Jan 2, 2021

mkv support is essential guys, most of the videos are served in mkv

@qgustavor
Copy link

@zekiblue I don't think so: maybe most videos distributed illegally are served using this container (unless you also consider WebM, which is based on Matroska, but isn't MKV), Anyway I'm just guessing: streaming services, AFAIK, are huge, do not use MKV and count for "most of the videos served".

Matroska is just an container, the main issue on supporting MKV is that many videos I find using this container use codecs not supported by many browsers. You can test it by running ffmpeg -i your-video.mkv -codec copy test.mp4 then trying to play the video in a browser. I just tried some random video and it failed.

That being said, if the codec issue gets ignored, one way to solve this issue is reproducing the above command using JavaScript: use node-ebml to parse the MKV file (it works using streams, which is ideal), extract streams from it and remux those into MP4. Subtitle streams can also be extracted and forwarded to some renderer such as JavascriptSubtitlesOctopus or Captionator.js.

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

No branches or pull requests