A dead simple personal on demand video streaming service written in Rust based on warp and async/await.
The service serves a directory, a user can view the directory on the web UI, stream videos, and (optionally) transcode the videos on the fly. The web UI looks like
- Downloading videos on a server with large internet throughput. Then view the video on your laptop (starting from arbitrary position of the video), optionally with lower quality to save bandwidth and get more smooth playing experience.
- Combine with another service like qBittorrent, which downloads submitted links to a specified directory, which can be served by Nozomi Video Streamer.
- ...
Download the binaries from release page. Ensure you have ffmpeg
installed on your server.
On server
./nozomi-video-streamer --help
./nozomi-video-streamer --serving-dir /data
On client now you can play video with (for example)
http get 'https://your-domain.com:4000/video-name.mp4' | mpv -
or copy the video url (under linux with xclip
installed) using the client for more customized options:
./nozomi-video-streamer-client --help
# this will play the video with 2M bitrate with the url in your clipboard
./nozomi-video-streamer-client --bitrate 2M | mpv -
There are other useful optional arguments like
--url
: specify video url manually rather than read from clipboard (if you don't havexclip
installed you may find this option useful)--start-time
: start playing a video from an offset, the format isHH:MM:SS
, you can also do things like--start-time 00:01:02 00:02:01
, which is equivalent to a single--start-time 00:03:03
--sub-file
: upload a.ass
subtitle file and play the video with the uploaded subtitle