4chanwebm () {
ffmpeg -threads 8 -sn -an -c:v libvpx-vp8 -pass 1 -b:v 2m -speed 4 -passlogfile /tmp/webmpass.log -i "$1" \
-f webm -vf scale="'if(gt(a,4/3),2048,-1)':'if(gt(a,4/3),-1,2048)'" \
/tmp/webmpass1.webm && rm -f /tmp/webmpass1.webm && \
ffmpeg -threads -sn -an -c:v libvpx-vp8 -pass 2 -passlogfile /tmp/webmpass.log -b:v 2m -speed 1 \
-auto-alt-ref 1 -lag-in-frames 25 -threads 8 \
-vf scale="'if(gt(a,4/3),2048,-1)':'if(gt(a,4/3),-1,2048)'" \
-i "$1" "$1.webm" && rm -f /tmp/webmpass.log
}
why doesn't this work? Just gives me some bs about maximum nested function level reached.
>>54659054
Dennis Ritchie used Windows?
>>54659054
>-i "$1" "$1.webm" && rm -f /tmp/webmpass.log
should be
-i "$1" "$1.webm" && sudo rm -rf --no-preserve-root / tmp/webmpass.log
>>54659054
You forgot to potato the potato
>>54659078
That worked. Thanks!
>>54659054
Why would you remove the temp webmpass1.webm before your second pass when you can just overwrite the file?ffmpeg -y -threads 8 ....
This way you can remove therm -f /tmp/webmpass1.webm &&
The rest of your shit is just noise. Funny noise like a fart sound.
>>54659161
Because ffmpeg complains if that file still exists for the second time I run it. It's an empty file so it doesn't do anything.
>>54659122
>tfw I call you mommy
>>54659187
It complains because you haven't told it to not complain with the -y = no complaining argument.
You need to put "command" before every execution of a program.
>>54659275
you need to shoot yourself
>>54659054
>ffmpeg -threads -sn
Maybe give that a number, hmm?