Hi,
I'm brand new with this, please be gentle.
I try to take a picture with my phone's camera from the command line and do not get it to work. Eg. streamer (via Libertine) says:
phablet@ubuntu-phablet:~$ libertine-launch -i xenial streamer -c /dev/video0 -o outfile.jpeg
: DISPLAY environment variable not set!
files / video: JPEG (JFIF) / audio: none
v4l2: open /dev/video0: Device or resource busy
vid-open: failed: libv4l
no grabber device available
What is 'busying' my camera? I tried this with all my video devices listed – errors vary, but none works:
phablet@ubuntu-phablet:~$ ls /dev/video*
/dev/video0 /dev/video2 /dev/video33 /dev/video35 /dev/video39
/dev/video1 /dev/video32 /dev/video34 /dev/video38
/dev/video:
q6_dec q6_enc venus_dec venus_enc
I also tried with different apps (besides streamer) and a restart (in case some app would still block the camera). The phone I use is a 'oneplus one' running ut 16.04 (OTA-11) and the camera app works perfectly fine. Am I missing something super obvious?
Any help is highly appreciated, thanks a lot in advance!!!
Karl
edit, maybe helpful:
phablet@ubuntu-phablet:~$ libertine-launch -i xenial v4l2-ctl --list-devices
: DISPLAY environment variable not set!
VIDIOC_QUERYCAP: failed: Invalid argument
VIDIOC_QUERYCAP: failed: Invalid argument
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Invalid argument
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Invalid argument
VIDIOC_QUERYCAP: failed: Invalid argument
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
msm_vdec_8974 ():
/dev/video32
/dev/video33
/dev/video38
/dev/v4l-subdev4
/dev/v4l-subdev17
/dev/v4l-subdev16
/dev/v4l-subdev0
/dev/v4l-subdev1
/dev/v4l-subdev2
/dev/v4l-subdev3
/dev/v4l-subdev15
/dev/v4l-subdev5
/dev/v4l-subdev6
/dev/v4l-subdev7
/dev/v4l-subdev8
/dev/v4l-subdev9
/dev/v4l-subdev10
/dev/v4l-subdev11
/dev/v4l-subdev12
/dev/v4l-subdev13
/dev/v4l-subdev14
(D?ֶ?r):
/dev/video1
/dev/video2
Failed to open /dev/video0: Device or resource busy