S
S
SobolevVladimir2018-07-03 05:12:57
HTML
SobolevVladimir, 2018-07-03 05:12:57

How to display mkv video in browser?

My friends and I are trying to make something like an online cinema for ourselves. I practice many things for the first time and immediately want to apologize for my ignorance and poor command of slang.
I'm using a node.js feature called peerflix https://github.com/mafintosh/peerflix
which allows you to play a stream from a torrent file. The problem is that mostly videos in .avi or .mkv formats are uploaded to torrents. The HTML5 video tag only supports .mp4, ogg, and a couple of other underused formats.
Question 1:
Is there any player or solution for this problem? Regarding .avi, I have already found out that there is no way to drag it into the browser, but what about mkv? In my standard video tag, only video is displayed without sound, and then only in chrome.
Question 2:
I am a complete zero in server building and immediately apologize. When launched, this peerflix starts running locally at 192.168.100.3:8888 . As far as I understand, this is the ip of the subnet that the router creates. I specify it in the video tag and the movie is broadcast on it. How can I make sure that this ip is not local and my friends can contact it and also receive a video stream?
Question 3:
To start broadcasting, I write commands in the windows console, which are listed in the peerflix documentation on github.
By type - peerflix film.torrent
How can I make this command run on the site when a button is pressed on the server? As far as I understand, regular hosting is not enough here.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Paul Nice, 2018-07-04
@Paul_Nice

If we are talking about creating only a VoD cinema, then a slightly different logic is probably needed:
Search for in-demand content - content preparation - distribution 1.
h264 video / aac audio to mp4 - the most versatile option
2. you will need a static IP address
ubuntu server, streaming software, a la fluxonic and distribute your content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question