[FFmpeg-user] Problem with video4linux2

Peter Bašista pbasista at gmail.com
Sat May 28 18:53:28 CEST 2011


When I try to capture the video from my webcam:

ffmpeg -f video4linux2 -s 640x480 -r 30 -i /dev/video0 -vcodec
mpeg2video -b 2048k -an output.avi

I get this output and error:

ffmpeg version git-N-30353-g78046da, Copyright (c) 2000-2011 the
FFmpeg developers
  built on May 28 2011 18:37:07 with gcc 4.5.2
  configuration: --enable-libfaac --enable-libx264 --enable-libmp3lame
--enable-gpl --enable-nonfree
  libavutil    51.  2. 2 / 51.  2. 2
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2. 11. 0 /  2. 11. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[video4linux2 @ 0x1a88bc0] The V4L2 driver ioctl set standard(NTSC) failed
[video4linux2 @ 0x1a88bc0] Could not find codec parameters (Invalid
Codec type -1)
[video4linux2 @ 0x1a88bc0] Estimating duration from bitrate, this may
be inaccurate
/dev/video0: could not find codec parameters

However, if I use the Ubuntu version of ffmpeg:

FFmpeg version 0.6.2-4:0.6.2-1ubuntu1, Copyright (c) 2000-2010 the
Libav developers
built on Mar 22 2011 15:55:04 with gcc 4.5.2

and exactly the same command, everything works fine.

Something has probably changed and it is preventing the video4linux2 to work.

Do you have any idea how to make it work?

Peter Basista


More information about the ffmpeg-user mailing list