SkyLive

所属分类:FaaS/Serverless
开发工具:Python
文件大小:2564KB
下载次数:0
上传日期:2023-05-31 08:54:23
上 传 者sh-1993
说明:  SkyLive是一种建立在去中心化Sia Skynet之上的非托管(无服务器)流媒体解决方案
(SkyLive is a non-custodial (serverless) streaming solution built on top of the decentralized Sia Skynet)

文件列表:
LICENSE (1061, 2023-05-31)
benchmark_portals.py (1610, 2023-05-31)
bin (0, 2023-05-31)
bin\ffmpeg.exe (133, 2023-05-31)
bin\ffmpeg_darwin (133, 2023-05-31)
bin\ffmpeg_linux_amd64 (133, 2023-05-31)
bin\ffmpeg_linux_arm64 (133, 2023-05-31)
bin\ffmpeg_linux_i686 (133, 2023-05-31)
config_default.py (224, 2023-05-31)
convert_old_playlists.py (838, 2023-05-31)
docs (0, 2023-05-31)
docs\Skylive.xcf (4513984, 2023-05-31)
docs\how it works.jpg (206147, 2023-05-31)
docs\how it works.xcf (994361, 2023-05-31)
docs\obs_filename.jpg (24748, 2023-05-31)
docs\obs_settings.jpg (80670, 2023-05-31)
docs\overload.jpg (16737, 2023-05-31)
download_upload.py (3257, 2023-05-31)
requirements.txt (85, 2023-05-31)
stream_downloader.py (4395, 2023-05-31)
stream_hls.py (8969, 2023-05-31)

# Skylive-CLI SkyLive provides non-custodial streaming solution, so you can broadcast live videos without a centralized server. This repo contains command line, however, we have some other user-friendly stuff here: [Watch SkyLive](https://skylive.coolhd.hu) [Stream on SkyLive](https://github.com/DaWe35/SkyLive-GUI) [Host another SkyLive webportal](https://github.com/DaWe35/SkyLive-webportal) [Check out our roadmap](https://github.com/DaWe35/SkyLive/projects/3) # How to start stream If you are NOT a programmer, [SkyLive-GUI](https://github.com/DaWe35/SkyLive-GUI) will be a better choise :) - Download & extract the latest binaries from [releases](https://github.com/DaWe35/SkyLive/releases) - Register a [SkyLive](https://skylive.coolhd.hu) account and scheule a new stream. - Open command prompt and start the uploader with this command: `"C:\\path\to\stream_hls.exe" --record_folder "C:\\path\to\record_here"`. If you want to save the stream on your computer, use the `--keep_files true` argument. - Enter the generated stream token from https://SkyLive.coolhd.hu/studio - Setup OBS (below) and start recording into the 'record_here' folder! # How to finish the stream - Click Stop recording in OBS - Wait for every segment uploaded - Close stream_hls.exe - Open https://SkyLive.coolhd.hu/studio and `Finish` the stream (after this, the video will be seekable) # Setup OBS: - Download & config OBS Currently, there is a [bug](https://github.com/obsproject/obs-studio/issues/2500) in OBS, so you can't record more than 14 chunks into m3u8. While the issue is not fixed, we need to use the custom ffmpeg output, so please use the settings what you see below: ![OBS settings](https://raw.githubusercontent.com/DaWe35/Skylive/master/docs/obs_settings.jpg) - Output mode: *Advanced* - Type: *Custom output (FFmpeg)* *Without FFmpeg, the recording may be stuck after 14 or 33 chunks* - File path: *.../Skylive/record_here* *You need to pass this folder in the `--record_folder` parameter later.* - Container format: *hls* *It records small .ts chunks, compatible with HTTP Live Streaming* - Muxer settings: *hls_time=10* *10 seconds chunks are acceptable - too large cause more delay, too small causes upload congestion.* - Video Encoder Settings: *preset=veryfast* *Saves the CPU. Available presets: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo* *Try out some, but be careful: if encoding is overloaded, viewers will experience buffering* # Restream m3u8 from Youtube/Twitch You can restream any public Youtube/Twitch stream to SkyLive without any transcoding or screen recording. The `stream_downloader.py` will download live stream on-demand, so you can re-upload it to SkyLive with `stream_hls.py`. Start downloader: `stream_downloader.exe --record_folder "C:\\path\to" --url https://www.youtube.com/watch?v=kG5araSvvLI` Start uploader: `stream_hls.exe --record_folder "C:\\path\to"` # Other tricks, notes ### Build `pyinstaller --onefile stream_hls.py --hidden-import=pkg_resources.py2_warn` `pyinstaller --onefile stream_downloader.py ` `pyinstaller --onefile benchmark_portals.py` ### Export HLS to mp4 After the stream, you can easily convert the .ts chunks into one mp4 file: `ffmpeg -i "http://host/folder/input.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy output.mp4`

近期下载者

相关文件


收藏者