[libcamera-devel] Video recording on PinePhone Re: libcamera on pinephone

Rafael Diniz rafael at riseup.net
Wed Jul 6 18:54:28 CEST 2022


"The PinePhone Pro would produce much better results for the effort."
What does it mean?

The Pinephone Pro is a totally different phone than the  PinePhone (1), 
also is more than twice the price. Both are currently in stock and 
shipping, not that it matters at all. Not saying you are stealing the 
thread. But you are.

Is it like "- my camera is not working!" "- so buy one 2.5x the price 
and you'll get one working".

Rafael


On 7/6/22 12:08, Joel Winarske via libcamera-devel wrote:
> I realize this is about the PinePhone, but the PinePhone Pro (RK3399) 
> has a dual ISP block:
> http://opensource.rock-chips.com/wiki_Rockchip-isp1 
> <http://opensource.rock-chips.com/wiki_Rockchip-isp1>
> 
> Cameras:
> * 13MP Sony IMX258 main camera with Gorilla Glass 4™  protective layer
> * 8MP OmniVision OV8858 front-facing camera
> 
> The PinePhone Pro would produce much better results for the effort.  
> They are currently in stock and shipping.
> 
> On Tue, Jul 5, 2022 at 2:16 PM Pavel Machek via libcamera-devel 
> <libcamera-devel at lists.libcamera.org 
> <mailto:libcamera-devel at lists.libcamera.org>> wrote:
> 
>     Hi!
> 
>      > > qcam looks like a step in right direction, but .. it needs two
>     streams
>      > > to be able to take photos, and we don't that capability on
>     pinephone.
>      > >
>      > > For taking photos, I see two possibilities:
>      > >
>      > > a) Do the viewfinder in low resolution, then switch to high
>      > > resolution, take a photo, and switch back. Unfortunately pipeline
>      > > reconfiguration is rather slow (> 2 seconds?) on pinephone.
>      >
>      > 2 seconds is a lot, there may be a way to reduce that, it should be
>      > investigated.
> 
>     I was optimistic. It is more like 7 seconds.
> 
>      > > b) Run the chip in high resolution all the time, downscaling for
>      > > viewfinder. Should result in less shutter lag, but viewfinder
>     will be
>      > > limited to 15 fps and will need more cpu power.
>      >
>      > Could the GPU be used to scale the full resolution down ?
> 
>     Probably. But I find CPUs easier to use.
> 
>      > > Camera seems to be
>      > > able to do JPEG natively, does it make sense to try to get that
>     to work?
>      >
>      > That's an option, but if you want to have a viewfinder at the
>     same time,
>      > you would then need to decompress the frames. Furthermore, MJPEG for
>      > videos isn't great, as the compression ratio will be low.
> 
>     PinePhone has rather weak CPUs. 4 of them, but not great. I don't
>     think I can encode something better than MJPEG in 1280x720. So, JPEG
>     should be good solution for PinePhone.
> 
>     (But likely dead-end as it will be unavailable on PinePhone Pro /
>     Librem -- if I understand it correctly).
> 
>      > Any hope of getting the A64 video encoder to work ?
> 
>     A64 video encoder? https://forum.pine64.org/showthread.php?tid=9231
>     <https://forum.pine64.org/showthread.php?tid=9231> ?
>     Hmm. Looks interesting but a lot of work.
> 
>     Best regards,
> 
>                                                                      Pavel
>     -- 
>     People of Russia, stop Putin before his war on Ukraine escalates.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220706/90ae90d9/attachment.sig>


More information about the libcamera-devel mailing list