mlbserver 2021.10.0-1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -0
- package/index.js +1837 -0
- package/package.json +30 -0
- package/session.js +2263 -0
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# mlbserver
|
|
2
|
+
|
|
3
|
+
Current version 2021.10.01.2
|
|
4
|
+
|
|
5
|
+
Credit to https://github.com/tonycpsu/streamglob and https://github.com/mafintosh/hls-decryptor
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install -g mlbserver
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Launch the server
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
mlbserver
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
and follow the prompts. Load the resulting web URL in a browser to start using the server and to see more documentation.
|
|
20
|
+
|
|
21
|
+
Basic command line options:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
--port or -p (primary port to run on; defaults to 9999 if not specified)
|
|
25
|
+
--debug or -d (false if not specified)
|
|
26
|
+
--version or -v (returns package version number)
|
|
27
|
+
--logout or -l (logs out and clears session)
|
|
28
|
+
--session or -s (clears session)
|
|
29
|
+
--cache or -c (clears cache)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Advanced command line options:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
--account_username (email address, default will use stored credentials or prompt user to enter them)
|
|
36
|
+
--account_password (default will use stored credentials or prompt user to enter them)
|
|
37
|
+
--multiview_port (port for multiview streaming; defaults to 1 more than primary port, or 10000)
|
|
38
|
+
--multiview_path (where to create the folder for multiview encoded files; defaults to app directory)
|
|
39
|
+
--ffmpeg_path (path to ffmpeg binary to use for multiview encoding; default downloads a binary using ffmpeg-static)
|
|
40
|
+
--ffmpeg_encoder (ffmpeg video encoder to use for multiview; default is the software encoder libx264)
|
|
41
|
+
--ffmpeg_logging (if present, logs all ffmpeg output -- useful for experimenting or troubleshooting)
|
|
42
|
+
--page_username (username to protect pages; default is no protection)
|
|
43
|
+
--page_password (password to protect pages; default is no protection)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You may want to experiment with different ffmpeg hardware encoders depending on your system as described at https://stackoverflow.com/a/50703794
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
h264_amf to access AMD gpu, (windows only)
|
|
50
|
+
h264_nvenc use nvidia gpu cards (work with windows and linux)
|
|
51
|
+
h264_omx raspberry pi encoder
|
|
52
|
+
h264_qsv use Intel Quick Sync Video (hardware embedded in modern Intel CPU)
|
|
53
|
+
h264_v4l2m2m use V4L2 Linux kernel api to access hardware codecs
|
|
54
|
+
h264_vaapi use VAAPI which is another abstraction API to access video acceleration hardware (Linux only)
|
|
55
|
+
h264_videotoolbox use videotoolbox an API to access hardware on OS X
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Note that use of h264_v4l2m2m here requires ffmpeg to be compiled with this patch: https://www.raspberrypi.org/forums/viewtopic.php?p=1780625#p1780625
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT
|