[FFmpeg-trac] #865(undetermined:new): sunras: support 8bpp grayscale

FFmpeg trac at avcodec.org
Mon Jan 2 04:33:45 CET 2012


#865: sunras: support 8bpp grayscale
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 {{{
 C:\>ffmpeg -i gray.ras out.bmp
 ffmpeg version N-36193-gf514695, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Dec 26 2011 17:50:37 with gcc 4.6.2
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-ru
 ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-
 libope
 ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-
 libgsm --en
 able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-
 libschroedinger -
 -enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-
 amrwben
 c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
 --enable-
 libxvid --enable-zlib
   libavutil      51. 33.100 / 51. 33.100
   libavcodec     53. 48.100 / 53. 48.100
   libavformat    53. 28.100 / 53. 28.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 54.100 /  2. 54.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  5.100 /  0.  5.100
   libpostproc    51.  2.100 / 51.  2.100
 [sunrast @ 02645B60] colormap expected
 Input #0, image2, from 'gray.ras':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: sunrast, pal8, 1024x768, 25 tbr, 25 tbn, 25 tbc
 [buffer @ 020F1340] w:1024 h:768 pixfmt:pal8 tb:1/1000000 sar:0/1
 sws_param:
 Output #0, image2, to 'out.bmp':
   Metadata:
     encoder         : Lavf53.28.100
     Stream #0:0: Video: bmp, pal8, 1024x768, q=2-31, 200 kb/s, 90k tbn, 25
 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (sunrast -> bmp)
 Press [q] to stop, [?] for help
 [sunrast @ 02645B60] colormap expected
 Error while decoding stream #0:0
 frame=    0 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=
 0.0kbits/
 s
 video:0kB audio:0kB global headers:0kB muxing overhead -1.#IND00%
 Output file is empty, nothing was encoded (check -ss / -t / -frames
 parameters i
 f used)
 }}}

 hack attached (I don't know how to identify if 8bpp file is in grayscale
 mode)

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/865>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list