[Ffmpeg-devel] ffmpeg could not grab from video device while is not open xawtv

Martin Farnik martin.farnik
Mon Jun 5 12:52:23 CEST 2006


Hello.
I have trouble with ffmpeg when grabing from v4l device. I use standart conexant bt878 grabbing card - 
Leadtek Winfast vc100.

on command:
ffmpeg -vd /dev/video0 -an -s 720x576 -f mpeg -tvstd PAL -b 1024 -y
./test.mpg

i will get:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  
  libavutil version: 49.0.0
  libavcodec version: 51.9.0
  libavformat version: 50.4.0
  built on May 31 2006 11:49:22, gcc: 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)
[video4linux @ 0x82d1184]Fatal: grab device does not support suitable format
Could not find video grab device

But when I run and let running xawtv before grabbing with ffmpeg
everything works ok:

FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice
Bellard
  configuration:
  libavutil version: 49.0.0
  libavcodec version: 51.9.0
  libavformat version: 50.4.0
  built on May 31 2006 11:49:22, gcc: 3.4.1 (Mandrakelinux (Alpha
  3.4.1-3mdk)
Input #0, video4linux, from '':
  Duration: N/A, bitrate: N/A
  Stream #0.0, 25.00 fps(r): Video: rawvideo, yuv422, 720x576, 165888 kb/s
Output #0, mpeg, to 'pokus.mpg':
  Stream #0.0, 25.00 fps(c): Video: mpeg1video, yuv420p, 720x576, q=2-31,
  2048 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   89 q=6.2 Lsize=    1076kB time=3.5 bitrate=2504.1kbits/s
video:959kB audio:0kB global headers:0kB muxing overhead 12.185015%

vlc project works ok.

Please help me to find where the problem is.




More information about the ffmpeg-devel mailing list