Skip to content

Instantly share code, notes, and snippets.

View butteredbreadbox's full-sized avatar

butteredbreadbox butteredbreadbox

View GitHub Profile
@butteredbreadbox
butteredbreadbox / loop-hls.sh
Created May 12, 2026 11:56
FFmpeg command for a looping MP4 set to a folder of MP3s for YouTube (HLS)
# "FILENAME.mp4" is where your video filename goes
# "FOLDERNAME" is where your folder name goes for all your mp3s
# "STREAMKEYHLS" is where your stream key goes
#
# uses HLS instead of RTMP
#
# 960x720@30
#!/bin/bash
@butteredbreadbox
butteredbreadbox / loop.sh
Last active May 12, 2026 11:56
FFmpeg command for a looping MP4 set to a folder of MP3s for YouTube
# only tested with mp3s and mp4s.
# code -stolen- taken from https://github.com/foxtacles/youtube-live-radio/blob/master/stream.sh
# "VIDEO.mp4" is where your video filename goes
# "MUSICFOLDER" is where your folder name goes for all your mp3s
# "YOUTUBEKEY" is where your stream key goes
# 960x720@30
#!/bin/bash