Page 1 of 1

V1.3 (OV5647) camera update - 1296x730 @ 57fps

Posted: Thu Jan 11, 2018 4:37 pm
by 6by9
As part of something else I stumbled across an error in the V1.3 camera 1296x730 16:9 mode - instead of being a centre crop of the 4:3 sensor, it's the top 9/16ths of the image :(
If you try "raspivid -w 1280 -h 720 -o foo.h264 -md 4" and "raspivid -w 1280 -h 720 -o foo.h264 -md 5" they should have produced the same result (one cropping in the ISP, and the other on the sensor), but they don't.
I'm not intending to fix this as it would mean that anyone using that mode would suddenly get a different field of view and recording things they weren't expecting.

However it prompted me to look closer at the registers, and it's shown up that if I correct another register so we actually read out a 16:9 image, then I can get 57fps out of it instead of the old 49fps :) Every cloud and all that.
The changes are pending code review, but should be out in the next few days for those who are prepared to use rpi-update and accept the risks.

Re: V1.3 (OV5647) camera update - 1296x730 @ 57fps

Posted: Thu Jan 11, 2018 6:05 pm
by HermannSW
Nice, will row 5 of OV5647 table be updated then?
https://www.raspberrypi.org/documentati ... /camera.md

Can you please update row 7 of imx219 table to

Code: Select all

7	640x480	4:3	40-120fps	Partial	2x2

as well? (0 frame skips, 8296μs ± 7μs)

Code: Select all

pi@raspberrypi2B:~ $ raspivid -md 7 -w 640 -h 480 -fps 120 -o video.h264 -pts timecodes.txt -t 3000
pi@raspberrypi2B:~ $ ./ptsanalyze timecodes.txt 1-79
341 tstamps.csv frames were captured at 120fps
frame delta time[us] distribution
      1 
      1 8290
      1 8291
      5 8293
     18 8294
     95 8295
    143 8296
     61 8297
     11 8298
      3 8299
      1 8300
      1 8303
after skip frame indices (middle column)
0% frame skips
pi@raspberrypi2B:~ $ 

Re: V1.3 (OV5647) camera update - 1296x730 @ 57fps

Posted: Fri Jan 12, 2018 11:10 am
by 6by9
Released as part of https://github.com/Hexxeh/rpi-firmware/ ... 9eed210bb4. Use "sudo rpi-update" on a non-critical Pi to get it.
HermannSW wrote:
Thu Jan 11, 2018 6:05 pm
Nice, will row 5 of OV5647 table be updated then?
https://www.raspberrypi.org/documentati ... /camera.md
The docs can be updated by anyone by sending a pull request to https://github.com/raspberrypi/documentation/pulls, but yes it ought to be done.
I've also nudged waveform80 so that the PiCamera docs can be updated.
HermannSW wrote:Can you please update row 7 of imx219 table to

Code: Select all

7	640x480	4:3	40-120fps	Partial	2x2
Also certainly, but I'll double check that I get the same results. I'd expect to as mode 6 (1280x720) will allow up to 120fps, but other parts of the system need to be overclocked to consume the data at that rate (mainly codecs as that is H264 level 4.2). I think with overclocking we got 720P at around 117fps stable when recording to H264, but that does depend on how cooperative your particular Pi is to overclocking.

Re: V1.3 (OV5647) camera update - 1296x730 @ 57fps

Posted: Fri Jan 12, 2018 11:34 am
by 6by9
I've updated raspiraw's repo with the change too.