How to read a continuous stream of PPM frames as output by ffmpeg.[1] [2]