Hi All,
I'm banging my head against a wall trying to figure this out. I'm running on a Ubuntu Linaro ARM 71.
Code:
mike@linaro-gnome:~$ uname -a
Linux linaro-gnome 3.4.0-g58e4014-00018-gfd56be5 #1 SMP PREEMPT Thu Oct 9 13:01:53 IST 2014 armv7l armv7l armv7l GNU/Linux
I'm having a heck of a time trying to get ffmpeg to take video in from a webcam. This should be straight forward and it doesn't seem to be.
Code:
mike@linaro-gnome:~$ sudo ffmpeg -f video4linux2 -s 320x240 -i /dev/usbdev1.1 out.mpg
ffmpeg version 2.5 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 15 2014 19:21:39 with gcc 4.8 (Ubuntu/Linaro 4.8.2-19ubuntu1)
configuration:
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
[video4linux2,v4l2 @ 0xe9f450] ioctl(VIDIOC_QUERYCAP): Inappropriate ioctl for device
/dev/usbdev1.1: Inappropriate ioctl for device
The usbdev1.X changes every time I unplug the webcam in. I'm not sure how to get past the above error. I've tried creating a video0 device. The video device never worked and is removed on boot. Do I need a different kernel?
Code:
sudo mknod /dev/video0 c 81 0
sudo chmod 666 /dev/video0
sudo chgrp video /dev/video0
sudo ln -s /dev/video0 /dev/video