|
1 | 1 | ## F1Viewer |
2 | 2 |
|
3 | | -Stream any F1TV VOD with [MPV](https://mpv.io/) or download the corresponding .m3u8 file. |
4 | | -Make sure MPV is added to your `PATH`. |
| 3 | +Stream any F1TV VOD with MPV or download the corresponding .m3u8 file. |
5 | 4 |
|
6 | | -Now also supports live streams (except the main feed). |
| 5 | +Now also supports live streams. |
7 | 6 |
|
8 | | -You can play the downloaded files with VLC or MPV player. To play them with MPV you need to set the flag `--demuxer-lavf-o=protocol_whitelist=[http,https,tls,rtp,tcp,udp,crypto,httpproxy,file]`. |
9 | | - |
10 | | -Some files have audio desync issues with VLC. |
11 | | - |
12 | | - |
| 7 | + |
13 | 8 |
|
| 9 | +### USAGE |
| 10 | + |
| 11 | + 1. **Install F1Viewer** |
14 | 12 |
|
15 | | -**USAGE** |
| 13 | + build it yourself |
| 14 | + |
| 15 | + $ git clone https://github.com/SoMuchForSubtlety/F1viewer/ |
| 16 | + $ cd F1Viewer |
| 17 | + $ cp sample-config.json config.json |
| 18 | + $ go get github.com/rivo/tview |
| 19 | + $ go build |
16 | 20 |
|
17 | | - $ cp sample-config.json config.json |
18 | | - $ go get github.com/rivo/tview |
19 | | - $ go build |
20 | | - $ .\F1viewer |
| 21 | + |
| 22 | + **or** |
21 | 23 |
|
| 24 | + download [pre-compiled binaries](https://github.com/SoMuchForSubtlety/F1viewer/releases/) |
| 25 | + |
| 26 | + |
| 27 | + 2. **Download MPV** |
| 28 | + |
| 29 | + Download it from [here](https://mpv.io/installation/) (Windows users please get the latest version from [here](https://sourceforge.net/projects/mpv-player-windows/files/)) and either put it in the same folder as the F1Viewer binary or add it to your PATH environment variable. |
22 | 30 |
|
23 | | -**FLAGS** |
| 31 | +### FLAGS |
24 | 32 |
|
25 | 33 | -d |
26 | | -shows a debug window |
| 34 | +shows debug information |
27 | 35 |
|
28 | 36 | -vlc |
29 | | -enables the VLC http stream option |
| 37 | +enables the VLC http stream option, requires a config with the correct parameters set. |
| 38 | + |
| 39 | +### CONFIG |
| 40 | +The config is optional. It is used to set a preferred audio language and VLC streaming credentials. |
| 41 | +The sample config looks like this. |
| 42 | + |
| 43 | + { |
| 44 | + "preferred_language": "en", |
| 45 | + "vlc_telnet_port": "4212", |
| 46 | + "vlc_telnet_pass": "admin" |
| 47 | + } |
| 48 | +Save it as `config.json` in the same Folder as the F1Viewer binary |
0 commit comments