Browse Source

add ffmpeg-mp4

master
VirtuBox 8 months ago
parent
commit
a0635d264c
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      mybashrc

+ 11
- 0
mybashrc View File

@ -711,6 +711,16 @@ _STABILISE_VIDEO() {
}
_MP4_CONVERT() {
for i in "$PWD"/*; do
echo "Processing vid $i ...${i%.*}"
ffmpeg -i "$i" -c:v libx264 -preset slow -crf 20 -c:a copy -pix_fmt yuv420p -movflags +faststart "${i%.*}.mp4"
rm -f "$i"
done
}
_YOUTUBE_ENCODE() {
for i in "$PWD"/*; do
ffmpeg -i "$i" -c:v libx264 -preset slow -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p -movflags +faststart "${i%.*}-yt.mp4"
@ -801,3 +811,4 @@ alias urbackup-client-setup=_URBACKUP_CLIENT
alias delete-all-site=_DELETE_WO_SITES
alias stabilise-video=_STABILISE_VIDEO
alias yt-encode=_YOUTUBE_ENCODE
alias ffmpeg-mp4=_MP4_CONVERT

Loading…
Cancel
Save