homebridge-camera-rpi
homebridge-camera-rpi copied to clipboard
Poor image quality
I compiled the latest ffmpeg on the zero w with hardware encode support. I got everything set up and the latency is incredibly low. It’s very impressive but the image quality is horrid. It looks like what would happen if you kept saving a JPEG of a JPEG. The compression is far too high.
Is there an option somewhere where I could tune this? I know I can stream much higher quality images equally fast with RPI cam web interface so I’m assuming there is just a really conservative default somewhere I can change.
Is this issue specific to the latest version of ffmpeg? Or do you experience bad image quality with the prebuilt image as well?
This is a link to a screen cap of my build. Prebuilt has the same problem.
https://youtu.be/p0EslUyGKpw
Ok that is the same quality I get. If you want a higher quality you will need to increase the bitrate. You could hardcode a higher value in this line.
MUCH better! I dropped in a value of 5000000 and it's crystal clear. There's no latency or frame rate loss. I can't get the Apple Watch to use it now though, even though I see it's automatically using a the right settings for the watch.
.
How did the codepiece look like @mentaluproar ?