Does not recover after power off and on of the P1P
Thanks for this project! I was able to get it running on Gentoo Linux.
Could you maybe enhance it so that it recovers automatically after the P1P was powered down for a while and was started again?
At the moment, I have to do it manually by pressing CTRL-C and starting it again.
I update the code to detect read timeout. It will close stream when timeout error occurs.
You can write a shell script to recover the stream immediately or check the online status of printer then recover the stream.
Currently I don't have enough time to test . Please let me know if there is any problem.
Thank you! BTW, I had to add "-use_wallclock_as_timestamps 1" to the ffmpeg command in your script, so that the stream was convertible to h264 (either directly in this command or by an external converter).
Just noticed that the process stops when I send a new print job to the printer via the cloud. And I cannot start it again fully until after the printer starts printing. Then I can start it again and it works again. I guess, this is probably not avoidable but is another reason why it would be good if the process recovers by itself.