So I managed to get the back camera working in Jami settings preview and it also works in video call, thanks to
https://forum.pine64.org/showthread.php?tid=9267
Since Jami enforces (issue on git to be fired) 1280x720 and by default back camera is used, following does the trick (ensure jami is not running):
Afterwards as soon as Jami is started the back camera works, there are some problems though:
1) the CPU utilization on video call with working camera is very high (it's not the case when PP camera is not working but you see the other side so I guess it's not HW accelerated).
2) The thing you need to identify manually is
which you can get from
=====================================================================================
I have tried to get it working with front camera, for that I did switch cameras via media-ctl
from:
to
by running
since gc2145 is the front camera. Unfortunately I cannot really find what the specs/supported resolutions for it are. I couldn't make it working in Jami, I guess that in Arch Linux ARM for PP even the drivers for it are missing, since I noticed this:
but at least something
https://forum.pine64.org/showthread.php?tid=9267
Since Jami enforces (issue on git to be fired) 1280x720 and by default back camera is used, following does the trick (ensure jami is not running):
Code:
media-ctl -d /dev/media1 --set-v4l2 '"ov5640 4-004c":0[fmt:UYVY8_2X8/1280x720]'
Afterwards as soon as Jami is started the back camera works, there are some problems though:
1) the CPU utilization on video call with working camera is very high (it's not the case when PP camera is not working but you see the other side so I guess it's not HW accelerated).
2) The thing you need to identify manually is
Code:
"ov5640 4-004c"
Code:
media-ctl -d /dev/media1 -p
=====================================================================================
I have tried to get it working with front camera, for that I did switch cameras via media-ctl
from:
Code:
<- "ov5640 4-004c":0 [ENABLED]
<- "gc2145 4-003c":0 []
Code:
<- "ov5640 4-004c":0 []
<- "gc2145 4-003c":0 [ENABLED]
by running
Code:
media-ctl -d /dev/media1 -l '"ov5640 4-004c":0->"sun6i-csi":0[0]'
media-ctl -d /dev/media1 -l '"gc2145 4-003c":0->"sun6i-csi":0[1]'
since gc2145 is the front camera. Unfortunately I cannot really find what the specs/supported resolutions for it are. I couldn't make it working in Jami, I guess that in Arch Linux ARM for PP even the drivers for it are missing, since I noticed this:
Code:
[ 1300.385100] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2
[ 1300.385110] gc2145 4-003c: Failed to read firmware gc2145-init.bin, continuing anyway..
but at least something