Page 1 of 1

debian+ nanopi s2 + cam500b no /dev/video0

Posted: Fri Aug 11, 2017 2:33 pm
by vinmicgra
I need some advise for kernel configuration.

With the latest debian image the cam does not show up as /dev/video0.

The cam does work with the built in nanocams and in android. But I need to use mjpeg-streamer under debian.

fa@NanoPi2:~$ dmesg | grep ov5640
[ 2.500000] ...................................ov5640_probe 2234
[ 2.512000] ...................................ov5640_video_probe 2193
[ 2.528000] ov5640_initialize_ctrls.............1794………..

fa@NanoPi2:~$ ls /dev/video*
/dev/video10 /dev/video4 /dev/video5 /dev/video6 /dev/video7 /dev/video8 /dev/video9

Re: debian+ nanopi s2 + cam500b no /dev/video0

Posted: Sat Sep 02, 2017 2:41 pm
by jon43
Hi,

Despite many topics with people asking this, FriendlyARM don't seem interested to fix it

an ugly workaround would be to generate .jpg stils in loop with the nanocams tool and use the file input plugin of mjpg-streamer to turn it to an http stream.

something like :

creating a ram directory as to not wear the SD-Card :

Code: Select all

mkdir /cam;mount -t tmpfs -o size=5m tmpfs /cam 



prepare mjpg-streamer to look for the file 24 time a second :

Code: Select all

mjpg_streamer -i "input_file.so -f /cam -n still.jpg -d 0.04" -o "output_http.so -n "


then a shell script with :

Code: Select all

#!/bin/bash
while :
do
   nanocams -c 1 -o /cam/still.jpg
done



and here you go : http://YOURNANOPI2:8080/?action=stream

the framerate is bad but it works