LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2015, 02:49 PM   #1
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Rep: Reputation: 15
Ubuntu ffmpeg and no video or dsp on boot


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

Last edited by gothrog; 01-15-2015 at 02:54 PM.
 
Old 01-15-2015, 05:47 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

All of the research that I did on:

Code:
Inappropriate ioctl for device
Points to a script that is running that I think is causing conflict.

http://fixunix.com/unix/89077-inappr...ice-error.html
http://www.perlmonks.org/?node_id=699034

Quote:
The usbdev1.X changes every time I unplug the webcam in.
Somehow ( I could be wrong) that doesn't sound like that should be happening.
In what way does it change?

I would isolate that more and see if 'lsusb' see's the webcam.

-:-I couldn't get ffmpeg to work until I installed 'xterm' I'm not sure if Ubuntu needs xterm or not.-:-

Not sure if a newer kernel is the answer for you. Sometimes if your having issues with performance and hardware a newer kernel can make a difference.

I'm not familuar with ARM Architecture so I won't be much help there.

http://howto-pages.org/ffmpeg/

How to get video streaming from USB webcam
http://www.qtcentre.org/threads/4062...rom-USB-webcam

Maybe try VLC instead:-
http://xmodulo.com/live-stream-video-webcam-linux.html
http://manpages.ubuntu.com/manpages/.../ffmpeg.1.html

Maybe other members with experience with this error will chime in and advise you.
Sorry I don't know more-
 
  


Reply

Tags
ffmpeg, ubuntu, video, webcam


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FFMPEG video is out of sync dermetfan Linux - Software 19 09-19-2013 06:05 PM
/dev/dsp|video - clone, fork, sharing of the device Micah Linux - Software 2 07-14-2012 04:29 PM
ffmpeg mixing audio/video - trying to end vid after video stream completes joejoe99 Linux - Software 2 06-21-2012 11:44 PM
LXer: DSP Video Processing Without DSP Programming via Open Source APIs LXer Syndicated Linux News 0 11-07-2006 05:21 PM
i want to sync my video using ffmpeg Jeon, Chang-Min Linux - Software 0 11-17-2005 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

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