[FFmpeg-user] pix_fmt gray problem with pnm encoder

C. Bassa cgbsat at gmail.com
Tue May 29 21:34:18 CEST 2012


And with "-pix_fmt gray"
ffmpeg -f video4linux2 -i /dev/video1 -s 720x576 -r 25 -sameq -pix_fmt
gray img%06d.pnm

Output:
ffmpeg version git-2012-05-05-396d2ae Copyright (c) 2000-2012 the
FFmpeg developers
  built on May  5 2012 12:58:58 with gcc 4.5.2
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-version3 --enable-x11grab
--enable-libfreetype
  libavutil      51. 49.100 / 51. 49.100
  libavcodec     54. 19.100 / 54. 19.100
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.104 /  2. 72.104
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[video4linux2,v4l2 @ 0x970a420] Estimating duration from bitrate, this
may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 1338320005.442445, bitrate: 165887 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422,
720x576, 165887 kb/s, 25 tbr, 1000k tbn, 25 tbc
Incompatible pixel format 'gray' for codec 'ppm', auto-selecting format 'rgb24'
[buffer @ 0x9705ca0] w:720 h:576 pixfmt:yuyv422 tb:1/1000000 sar:0/1
sws_param:flags=2
[scale @ 0x97062a0] w:720 h:576 fmt:yuyv422 sar:0/1 -> w:720 h:576
fmt:rgb24 sar:0/1 flags:0x4
Output #0, image2, to 'img%06d.pnm':
  Metadata:
    encoder         : Lavf54.4.100
    Stream #0:0: Video: ppm, rgb24, 720x576, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> ppm)
Press [q] to stop, [?] for help
ioctl(VIDIOC_DQBUF): Input/output errorkB time=00:00:02.72 bitrate=
0.0kbits/s dup=6 drop=0
frame=   69 fps= 25 q=0.0 Lsize=       0kB time=00:00:02.76 bitrate=
0.0kbits/s dup=6 drop=0

Regards,
    C. Bassa


More information about the ffmpeg-user mailing list