guidesStorage/PeerTube/peertube_mpv_usage.md

35 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

И так, публикую инструкцию по добыванию ссылки на плейлист PeerTube, позволяющий смотреть видео и трансляции в mpv например
Приступим, вот вам скидывают ссылку:
```
https://xxivproduction.video/w/raveD9uY1hLLhdTxLPiKKf
```
Приведите её к виду:
```
https://xxivproduction.video/api/v1/videos/raveD9uY1hLLhdTxLPiKKf
```
Затем немного консольной магии:
```
curl "https://xxivproduction.video/api/v1/videos/raveD9uY1hLLhdTxLPiKKf" | json_reformat | grep m3u8
```
Будет такой вывод:
```
"playlistUrl": "https://xxivproduction.video/static/streaming-playlists/hls/cbc82d60-3d2e-4d48-b856-aac3135bae30/master.m3u8"
```
Скопируйте ссылку, кстати, если что, можете и вручную, через браузер, консоль не обязательна.
Ну, теперь вы можете сделать вот так:
```
mpv "https://xxivproduction.video/static/streaming-playlists/hls/cbc82d60-3d2e-4d48-b856-aac3135bae30/master.m3u8"
```
Хотите слушать как подкаст? Нет проблем:
```
mpv --no-video "https://xxivproduction.video/static/streaming-playlists/hls/cbc82d60-3d2e-4d48-b856-aac3135bae30/master.m3u8"
```
Надеюсь хоть что-то понятно из того что я написал :)
Основной тред: https://soc.phreedom.club/notice/AGNRBmmwESNc31y6fg