Skip to content

Instantly share code, notes, and snippets.

View civa86's full-sized avatar
๐Ÿ™
lazy loading

Dario Civallero civa86

๐Ÿ™
lazy loading
View GitHub Profile
@civa86
civa86 / ffmpeg.sh
Last active January 15, 2025 10:27
Utils
# Download from: https://www.ffmpeg.org/download.html
# Install ffmpeg and ffprobe in yout PATH
# Convert all mp4 in the folder to mkv
find ./ -name '*.mp4' -exec bash -c 'ffmpeg -i $0 -c copy ${0/mp4/mkv}' {} \;
# Save the first minute of a video
ffmpeg -v error -stats -ss 00:00:00 -i path/to/input.mkv -to 00:01:00 -codec copy -avoid_negative_ts make_zero path/to/output.mkv
@civa86
civa86 / git.sh
Created January 18, 2022 13:33
Git
# Delete remote branch
git push origin --delete <branch>