Skip to content

Simple Go + FFMPEG script for watching for, downloading, and converting live streams to mp4 files

License

Notifications You must be signed in to change notification settings

xeoncross/go-youtube-livestream-saver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube v3 Livestream Downloader

I wanted something to download and save livestreams from a certain channel since I'm not always around when they stream and they don't save the videos to their channel.

This script runs forever watching and waiting for a livestream to start, then downloads the video and converts it to mp4 for more universal playback.

WIP

Convert to mp4

ffmpeg -i input.ts -acodec copy -vcodec copy out.mp4

Download stream using streamlink

streamlink -v --http-no-ssl-verify --hls-live-restart -o 2019-05-26.ts https://www.youtube.com/watch?v=nDIsueMUy-c best

https://github.com/streamlink/streamlink

Resources

About

Simple Go + FFMPEG script for watching for, downloading, and converting live streams to mp4 files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages