[FFmpeg-user] Problem with video4linux2

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat May 28 21:21:58 CEST 2011


On date Saturday 2011-05-28 18:53:28 +0200, Peter Bašista encoded:
> 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

Should be fixed now, please update and report in case of problems.
-- 
ffmpeg-user random tip #7
If you're asking about problems with an ffmpeg tool, *always* post the 
command you're using and the complete output.


More information about the ffmpeg-user mailing list