Skip to content

leksuss/streamit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StreamIt

Maintainability

This tool is for creating a stream for youtube broadcasting. Suppose you have a directory with video files and want to stream this files with youtube broadcasting: randomly and looply. If so, you find what you need!

StreamIt is very simple and lightweight. Videofiles used as is with no live conversion. Therefore there is no load on CPU and you can use any VDS/VPS with minimum CPU/RAM, but with decent HDD/SSD and outbound bandwidth.

Requirements

  • python 3
  • tmux (optional)

How to use

To start streaming you need to specify folder with video files, stream key and stream url. You can find it on Dashboard livestream on your youtube account:

youtube_stream

And use it like this (default url is rtmp://a.rtmp.youtube.com/live2):

python3 streamit.py /home/user/folder_with_videos --key 90b3-11eb-819b-3cf5f0877

This is runtime tool, so the better way is run it inside tmux, screen or something.

Bonus: converting script

If you received a bad keyframe message from youtube broadcast service, you need to convert videofiles with to force key frame every 2-3 seconds. See ffmpeg documentation for all the functions and their details. You can use convert.py script to do this. Just set path and dest_path to specify source/dest dir with video files.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages