Double pass encoding
This commit is contained in:
parent
eeeb46dd07
commit
97fa27ee7a
6
prep
6
prep
@ -30,7 +30,11 @@ type=$(file -bL --mime-type "$file")
|
||||
[[ ! ${type:0:5} = video ]] && Log "File $name is of type $type" 1
|
||||
|
||||
# Encode video
|
||||
/usr/bin/ffmpeg -y -i "$file" -c:v libx264 -x264opts no-scenecut -b:v 6M -force_key_frames 'expr:gte(t,n_forced*2)' -c:a copy -tune zerolatency -f mp4 "$video" ||
|
||||
## Single pass
|
||||
#/usr/bin/ffmpeg -y -i "$file" -c:v libx264 -x264opts no-scenecut -b:v 6M -force_key_frames 'expr:gte(t,n_forced*2)' -c:a copy -tune zerolatency -f mp4 "$video" ||
|
||||
# Double pass
|
||||
/usr/bin/ffmpeg -y -i "$file" -c:v libx264 -x264opts no-scenecut -b:v 6M -force_key_frames 'expr:gte(t,n_forced*2)' -c:a copy -tune zerolatency -pass 1 -f mp4 "$video" &&
|
||||
/usr/bin/ffmpeg -y -i "$file" -c:v libx264 -x264opts no-scenecut -b:v 6M -force_key_frames 'expr:gte(t,n_forced*2)' -c:a copy -tune zerolatency -pass 2 -f mp4 "$video" ||
|
||||
Log "Error encoding $name" 2
|
||||
|
||||
# Schedule cron job
|
||||
|
||||
Loading…
Reference in New Issue
Block a user