Skip to content

Instantly share code, notes, and snippets.

View parsapoorsh's full-sized avatar
🍊
Hey there! I am using GitHub

Parsa Poorshikhian parsapoorsh

🍊
Hey there! I am using GitHub
View GitHub Profile
@abrman
abrman / ffmpeg_burn_subs.command
Created June 20, 2021 19:49
ffmpeg add srt to video file with solid black subtitle background
# Adds subtitles.srt to video.mp4 as solid black background, and saves as subbed_video.mp4
# via: https://stackoverflow.com/questions/25870169/how-to-set-background-to-subtitle-in-ffmpeg
# Options:
# OutlineContour=&AARRGGBB - [Alpha, Red, Green, Blue], Change Alpha value for semi-transparent background
# Outline=3 - Specifies the padding for the background rectangle.
ffmpeg -i video.mp4 -filter_complex "subtitles=subtitles.srt:force_style='OutlineColour=&000000000,BorderStyle=3,Outline=3,Shadow=0,MarginV=20'" subbed_video.mp4
@vratiu
vratiu / .bash_aliases
Last active December 4, 2025 09:50
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset