add ffmpeg merge
This commit is contained in:
parent
678debf8eb
commit
ba48c2d3cd
14
mybashrc
14
mybashrc
|
@ -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…
Reference in New Issue