LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-14-2016, 03:57 AM   #1
jiatang
Member
 
Registered: Jul 2016
Posts: 36

Rep: Reputation: Disabled
Cool Connect NanoPi NEO AIR to DVP Camera(CAM500B)


The CAM500B camera module is a 5M-pixel camera with DVP interface. For more tech details about it you can refer to Matrix - CAM500B.

Boot Debian, connect your NEO AIR to a network, log into the board as root and run "mjpg-streamer":

cd /root/mjpg-streamer
make
./start.shThe mjpg-streamer application is an open source video steam server. After it is successfully started the following messages will be popped up:


i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 1280 x 720
i: Frames Per Second.: 30
i: Format............: YUV
i: JPEG Quality......: 90
o: www-folder-path...: ./www/
o: HTTP TCP port.....: 8080
o: usernameassword.: disabled
o: commands..........: enabledIn our case the NEO AIR's IP address was 192.168.1.230. We typed 192.168.1.230:8080 in a browser and were able to view the images taken from the camera's. Here is what you would expect to observe:

The mjpg-streamer soft-encodes data with libjpeg and you can hard-encode its data with ffmpeg which will greatly increase CPU's efficiency and speed up data encoding:

ffmpeg -t 30 -f v4l2 -channel 0 -video_size 1280x720 -i /dev/video0 -pix_fmt nv12 -r 30 -b:v 64k -c:v cedrus264 test.mp4By default it records a 30-second video. Typing "q" stops video recording. After recording is stopped a test.mp4 file will be generated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you guys think about NanoPi NEO Air from FriendlyARM jiatang Linux - Embedded & Single-board computer 0 09-29-2016 12:45 PM
Nanopi-NEO how to use USB WiFi jiatang Linux - Embedded & Single-board computer 0 09-15-2016 10:44 AM
How to Connect USB WiFi to NanoPi NEO jiatang Linux - Hardware 1 08-16-2016 11:23 PM
How to install nodejs with my NanoPi NEO jiatang Linux - Software 1 08-16-2016 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration