Power & Source of Big Ideas

debian+ nanopi s2 + cam500b no /dev/video0

Moderators: chensy, FATechsupport

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
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

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 6 guests