3 ms·
That's nifty! Here's an alternative way to pass the bytes to ffmpeg, using hexdump (does not require vim) and `read -n1` (works in bash, but not in zsh): hexd
by xyproto 6y ago
That's nifty!
Here's an alternative way to pass the bytes to ffmpeg, using hexdump (does not require vim) and `read -n1` (works in bash, but not in zsh):
hexdump -v -e '1/1 "%02x"' secret.txt | while read -n1 b; do ffmpeg -y -f v4l2 -i /dev/video0 -t $((0x$b)) -f rawvideo /dev/null; done