Zvětšení kompresního poměru

This commit is contained in:
2021-02-02 20:31:18 +01:00
parent 5aac1c0f41
commit e096b6facc
2 changed files with 4 additions and 4 deletions

View File

@@ -6,8 +6,8 @@ if [[ ! -f "ffmpeg2pass-0.log" ]]; then
nameWithoutExtension=$(echo $videoToConvert | sed 's/\..*//')
ffmpeg -i $videoToConvert -c:v libvpx-vp9 -b:v 0 -crf 10 -pass 1 -an -f null /dev/null && \
ffmpeg -i $videoToConvert -c:v libvpx-vp9 -b:v 0 -crf 10 -pass 2 -c:a libopus transcoding-$nameWithoutExtension.webm
ffmpeg -i $videoToConvert -c:v libvpx-vp9 -b:v 0 -crf 35 -pass 1 -an -f null /dev/null && \
ffmpeg -i $videoToConvert -c:v libvpx-vp9 -b:v 0 -crf 35 -pass 2 -c:a libopus transcoding-$nameWithoutExtension.webm
mv transcoding-$nameWithoutExtension.webm c$nameWithoutExtension.webm