wip
This commit is contained in:
@@ -20,7 +20,7 @@ PACKAGES=(
|
|||||||
git zip # storage
|
git zip # storage
|
||||||
bc xxd # data processing
|
bc xxd # data processing
|
||||||
gnupg pass pass-otp pwgen # crypt
|
gnupg pass pass-otp pwgen # crypt
|
||||||
imv mpv imagemagick gimp # media
|
imv mpv ffmpeg imagemagick gimp # media
|
||||||
aichat libqalculate translate-shell # utils
|
aichat libqalculate translate-shell # utils
|
||||||
libreoffice-still # docs
|
libreoffice-still # docs
|
||||||
|
|
||||||
|
|||||||
21
arch-user/bin/ffmpeg/add-subtitles.sh
Executable file
21
arch-user/bin/ffmpeg/add-subtitles.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# -ne 3 ]; then
|
||||||
|
echo "Usage: $0 <video_file> <subtitle_file> <output_file>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
echo "Error: Video file '$1' not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ ! -f "$2" ]; then
|
||||||
|
echo "Error: Subtitle file '$2' not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ext="${3##*.}"
|
||||||
|
if [ "$ext" = "mp4" ]; then
|
||||||
|
ffmpeg -i "$1" -i "$2" -c copy -c:s mov_text "$3"
|
||||||
|
else
|
||||||
|
ffmpeg -i "$1" -i "$2" -c copy "$3"
|
||||||
|
fi
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
shopt -s autocd
|
shopt -s autocd
|
||||||
|
|
||||||
stty intr ^_
|
stty intr ^N
|
||||||
|
|
||||||
alias ssh='wssh'
|
alias ssh='wssh'
|
||||||
alias sudo='wsudo'
|
alias sudo='wsudo'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[ -f ~/.bashrc ] && . ~/.bashrc
|
[ -f ~/.bashrc ] && . ~/.bashrc
|
||||||
stty intr ^K
|
stty intr ^N
|
||||||
alias ssh='wssh'
|
alias ssh='wssh'
|
||||||
alias sudo='wsudo'
|
alias sudo='wsudo'
|
||||||
su() {
|
su() {
|
||||||
|
|||||||
Reference in New Issue
Block a user