m1n1/proxyclient/experiments/touchbar_apple_prepare.sh
Janne Grunau 22890f3ba1 experiments: Optimize bad apple video playback
Let ffmpeg rotate, align to stride and convert to RGBA.
Do not allocate a framebuffer for every frame.

Signed-off-by: Janne Grunau <j@jannau.net>
2023-04-16 17:11:33 +09:00

7 lines
227 B
Bash
Executable file

#!/bin/bash
if [ ! -f bad_apple.webm ] ; then
yt-dlp -o bad_apple 'https://www.youtube.com/watch?v=UkgK8eUdpAo'
fi
ffmpeg -i bad_apple.webm -vf scale=80:60,rotate='PI/2:oh=iw:ow=ih+4' -f rawvideo -pix_fmt rgba -y out.bin