301 слов
2 мин
peerflix
Установка
Инструкцию по установке можно найти в репозитории.
Waiting for api.github.com...
В Arch Linux
можно устноваить с помощью команды:
sudo pacman -S peerflix
Использование
Рассмотрим стандартный вывод программы:
[anderson@desktop ~]$ peerflix
Usage: peerflix magnet-link-or-torrent [options]
Options:
-c, --connections max connected peers [default: 100]
-p, --port change the http port [default: 8888]
-i, --index changed streamed file (index)
-l, --list list available files with corresponding index
-t, --subtitles load subtitles file
-q, --quiet be quiet
-v, --vlc autoplay in vlc*
-s, --airplay autoplay via AirPlay
-m, --mplayer autoplay in mplayer*
-g, --smplayer autoplay in smplayer*
--mpchc autoplay in MPC-HC player*
--potplayer autoplay in Potplayer*
-k, --mpv autoplay in mpv*
-o, --omx autoplay in omx**
-w, --webplay autoplay in webplay
-j, --jack autoplay in omx** using the audio jack
-f, --path change buffer file path
-b, --blocklist use the specified blocklist
-n, --no-quit do not quit peerflix on vlc exit
-a, --all select all files in the torrent
-r, --remove remove files on exit
-h, --hostname host name or IP to bind the server to
-e, --peer add peer by ip:port
-x, --peer-port set peer listening port
-d, --not-on-top do not float video on top
--exit exit peerflix on download
--on-downloaded script to call when file is 100% downloaded
--on-listening script to call when server goes live
--version prints current version
Options passed after -- will be passed to your player
"peerflix magnet-link --vlc -- --fullscreen" will pass --fullscreen to vlc
* Autoplay can take several seconds to start since it needs to wait for the first piece
** OMX player is the default Raspbian video player
В основном, я пользуюсь следующими ключами:
peerflix "<magnet-link or torrent-file>" -f /path/ -l -k
-f путь для скачиваемого фильма/сериала
-l показать список для выбора серии (если это сериал)
-k видеоплеер mpv
NOTEЕсли не указать путь, куда будет скачиваться видео-файл, то по умолчанию он будет загружаться в папку
/tmp/
.