Skip to content

Instantly share code, notes, and snippets.

View DayVeeBoi's full-sized avatar

I_Heart_Cheezy_Poofs DayVeeBoi

View GitHub Profile
@DayVeeBoi
DayVeeBoi / youtube-gif.sh
Created February 13, 2023 19:44 — forked from hubgit/youtube-gif.sh
Convert a section of a YouTube video to an animated GIF
#!/bin/bash
# brew install x265
# brew install ffmpeg
# brew install youtube-dl
# brew install imagemagick
ID='U65_uY5N2WM' # YouTube video ID, i.e. https://www.youtube.com/watch?v={ID}
# fetch the video file with youtube-dl
@DayVeeBoi
DayVeeBoi / m3u8-to-mp4.md
Created November 8, 2022 19:21 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4