Answer the question
In order to leave comments, you need to log in
How to make a web cinema for yourself (video player)?
I tried to figure out how to raise a simple page on my computer or virtual machine, from which you can watch video files that I have.
From a simple one, it seems like you can just use the html5 player, but it only supports certain formats.
Therefore, do I need to convert all video files to conditional webvm or is there a more omnivorous player that can eat both avi and mkv and mp4 formats?
Not for the general public, I just want to remotely watch videos from my own computer without downloading the entire file.
ps I would like to get by with a maximum of php/ffmpeg/bash/html
Answer the question
In order to leave comments, you need to log in
Good question.
I myself did something like this (prototype) on Vue. awfulk1f.beget.tech/pj/cinema/index.html I am
not finishing this project yet. There is pagination, an alphabetical filter (disabled), saving the viewed in cookies.
The player itself is HTML5 only. webm, mp4 - plays normally.
mdn says formats are pretty good
https://developer.mozilla.org/en-US/docs/Web/Media...
https://developer.mozilla.org/en-US/docs/Web/Media. ..
If you want, I can send the source code of the project. With styles there is a complete mess, it was interesting how much easier it was to do this with a framework than with pure JS.
For home use, you can try some HomeMediaServer or simpleDLNA - you set them on your library, and they will transcode the video for the client on the fly.
So it will be possible to watch from other computers, phone, TV.
And MKV is a container that can use any codec, so the player must be able to understand them all.
Maybe there are some custom solutions.
Native (HTML5) support for a wide range of formats is not yet in a hurry to be added.
I haven't delved into the issue thoroughly, but it seems that there are some nuances with copyright.
Against the background of the above, the transfer of video to the desired format looks quite acceptable. Especially considering that it's "for myself"
IMHO for viewing on a local network it is convenient to use something that generates playlists for your library.
Why re-encode when viewing? To make the computer that stores the library work as a number grinder?
I personally used the script from this forum to watch movies on TV via IPTV, which I downloaded to my home computer:
https://wvclub.net/forum/index.php?board=157.0
And then I bought Andriod TVbox and stopped suffering from garbage
, decide on what you will watch a movie. if this is a TV set, then
https://habr.com/en/post/549704/
my choice in your case:
- external HDD with fresh / interesting TV shows and movies once a month
- 480r online cinemas in the browser (I would give preference to pirated on TV box)
- 480p movie via TorrServe or equivalent on TVbox (100 - 200 MB buffer allows you to remove lags and freezes even in 1080p)
TorrServe
tsrvwc.ru
TorrServe. Multiplatform client-server application for streaming digital content via HTTP protocol.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question