summaryrefslogtreecommitdiff
path: root/.local/bin/fixaudio
blob: 699218a167225f455c8c7c0e71c35ad104694dcb (plain)
1
2
3
4
5
6
7
8
#!bin/sh

base=$(basename "$1")
ext="${base##*.}"
base="${base%.*}"
# ffmpeg -i "$1" -itsoffset 0.350 -i "$1" -c:v h264 -c:a aac -map 0:0 -map 1:1 "$base"_synced."ext" && \
ffmpeg -i "$1" -itsoffset 0.250 -i "$1" -map 0:v -map 1:a -c copy "$base"_synced."$ext" && \
notify-send -i "/home/master/.fonts/svg/headphones.svg" "Audio synced"