Browse Source

add ffmpeg merge

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

+ 14
- 0
mybashrc View File

@ -727,6 +727,19 @@ _YOUTUBE_ENCODE() {
done
}
_MERGE_VIDEO() {
if [ "$#" -eq 0 ]; then
videos=$(echo ./*)
else
videos="$*"
fi
for video in $videos; do
rm -f mylist
echo "file '$video'" >> mylist.txt
done
ffmpeg -f concat -safe 0 -i mylist.txt -c copy "output-merged.mp4"
}
# enable color support of ls and also add handy aliases
# some more ls aliases
#alias wp='/usr/bin/wp --allow-root'
@ -753,6 +766,7 @@ alias ee-mysql-optimize=EE_MYSQL_OPTIMIZATION
alias ee-syslog='tail -n 250 /var/log/syslog | ccze -A'
alias egrep='egrep --color=auto'
alias ffmpeg-cut-start=ffmpeg_start_time
alias ffmpeg-merge=_MERGE_VIDEO
alias ftpadd=_FTP_ADD
alias fgrep='fgrep --color=auto'
alias gg="ping google.fr"


Loading…
Cancel
Save