Power & Source of Big Ideas

NanoPi Air + CAM500B, VE Open Error

Moderators: chensy, FATechsupport

I'm using nanopi-neo-air_FriendlyCore-Xenial_3.4.39_20171102.img as is, without any apt-get update or upgrade, meaning
- drivers are provided by friendlycore.
- ffmpeg is the friendlycore customized version.

I followed the wiki page and run the following command

Code: Select all

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


But I got error

Code: Select all

pi@NanoPi-NEO-Air:~$ 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.mp4
ffmpeg version 2.3.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep  6 2016 11:47:46 with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2
  libavutil      54.  6.100 / 54.  6.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  2.100 / 56.  2.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.102 /  5.  0.102
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1531727714.421512, bitrate: 331776 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 331776 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
[cedrus264 @ 0xf5a560] VE Open error.
Output #0, mp4, to 'test.mp4':
    Stream #0:0: Video: h264, q=2-31, 128 kb/s, 30 fps
    Metadata:
      encoder         : Lavc56.0.101 cedrus264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (cedrus264))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


I'm not sure how VE is supported, as my lsmod returned the following.

Code: Select all

pi@NanoPi-NEO-Air:~$ lsmod
Module                  Size  Used by
cdc_ether               3006  0
usbnet                 13246  1 cdc_ether
bcmdhd                599208  0
cfg80211              470289  1 bcmdhd
compat                 25372  2 cfg80211,bcmdhd


How should I get CAM500B working?
I managed to figure it out by myself. Actually it is permission issue.

The ffmpeg command needs to be run with root privilege. Either launching the command with root account, or launching with sudo should fix the problem.

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 102 on Mon Oct 08, 2018 12:42 pm

Users browsing this forum: No registered users and 2 guests