0 Members and 1 Guest are viewing this topic.
avconv -i 01.mp4 -vf scale=640:-1 -pass 1 -threads auto -c:v libx264 -b:v 800k -r 29.970 -fastfirstpass 1 -preset veryfast -vprofile main -tune fastdecode -level 30 -f mp4 -an /dev/null && avconv -y -i 01.mp4 -vf scale=640:-1 -pass 2 -threads auto -c:v libx264 -b:v 800k -r 29.970 -preset veryfast -vprofile main -tune fastdecode -level 30 -c:a aac -strict experimental -ac 1 -b:a 96k 02.mp4
alias 'h264'='avconv -i "$1" -vf scale=640:-1 -pass 1 -threads auto -c:v libx264 -b:v 800k -r 29.970 -fastfirstpass 1 -preset veryfast -vprofile main -tune fastdecode -level 30 -f mp4 -an /dev/null && avconv -y -i 01.mp4 -vf scale=640:-1 -pass 2 -threads auto -c:v libx264 -b:v 800k -r 29.970 -preset veryfast -vprofile main -tune fastdecode -level 30 -c:a aac -strict experimental -ac 1 -b:a 96k ${1%%.*}.mp4'
: No such file or directory
h264 () { avconv -y -i "$1" -vf scale=w=640:h=-1 -pass 1 -threads auto -c:v libx264 -b:v 800k -r 29.970 -fastfirstpass 1 -preset veryfast -vprofile main -tune fastdecode -level 30 -f mp4 -an /dev/null && avconv -y -i "$1" -vf scale=w=640:h=-1 -pass 2 -threads auto -c:v libx264 -b:v 800k -r 29.970 -preset veryfast -vprofile main -tune fastdecode -level 30 -c:a aac -strict experimental -ac 1 -b:a 96k "${1%%.*}-blog.mp4"; }
Was muss ich ändern, um zum Beispiel alle Videos eines Verzechnis auf einem Rutsch neuzukodieren?
for i in *.{avi,flv};do avconv -i "$i" -vf scale=640:-1 -pass 1 -threads auto -c:v libx264 -b:v 800k -r 29.970 -fastfirstpass 1 -preset veryfast -vprofile main -tune fastdecode -level 30 -f mp4 -an /dev/null -y && avconv -y -i "$i" -vf scale=640:-1 -pass 2 -threads auto -c:v libx264 -b:v 800k -r 29.970 -preset veryfast -vprofile main -tune fastdecode -level 30 -c:a aac -strict experimental -ac 1 -b:a 96k "${i%%.*}"-blog.mp4;done
for i in "$@"; do echo $idone
qt-faststart in.mp4 out.mp4
Normally, a MOV/MP4 file has all the metadata about all packets stored in one location (written at the end of the file, it can be moved to the start for better playback using the qt-faststart tool).