ffmpeg -i input_video.mp4 -vf "format=gray,format=monob" -f rawvideo pipe:1 > output.bin