homebridge-camera-rpi icon indicating copy to clipboard operation
homebridge-camera-rpi copied to clipboard

Poor image quality

Open mentaluproar opened this issue 6 years ago • 6 comments

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.

mentaluproar avatar Jan 07 '19 07:01 mentaluproar

Is this issue specific to the latest version of ffmpeg? Or do you experience bad image quality with the prebuilt image as well?

moritzmhmk avatar Jan 09 '19 13:01 moritzmhmk

This is a link to a screen cap of my build. Prebuilt has the same problem.

https://youtu.be/p0EslUyGKpw

mentaluproar avatar Jan 10 '19 17:01 mentaluproar

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.

moritzmhmk avatar Jan 10 '19 18:01 moritzmhmk

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.

mentaluproar avatar Jan 10 '19 18:01 mentaluproar

.

magnip avatar Mar 09 '19 19:03 magnip

How did the codepiece look like @mentaluproar ?

jonerikandersen avatar Jul 31 '19 13:07 jonerikandersen