Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#206 closed enhancement (fixed)

Add support for 2bpp raw in AVI

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: avi rawvideo
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

AVI (NONE, 4colors) file created with QT, doesn't decode.

Patch to fix this attached.

C:\>ffmpeg -i NONE_4colors.avi out.avi
ffmpeg version git-N-29815-gde545d2, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on May 11 2011 14:36:19 with gcc 4.5.3
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi
g
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  5. 0 /  2.  5. 0
  libswscale    0. 14. 0 /  0. 14. 0
Input #0, avi, from 'NONE_4colors.avi':
  Duration: 00:00:05.96, start: 0.000000, bitrate: 1591 kb/s
    Stream #0.0: Video: rawvideo, yuv420p, 192x128, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 22050 Hz, 1 channels, s16, 352 kb/s
[buffer @ 01DA2620] w:192 h:128 pixfmt:yuv420p tb:1/1000000 sar:0/1
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf53.0.3
    Stream #0.0: Video: mpeg4, yuv420p, 192x128, q=2-31, 200 kb/s, 25 tbn, 25 tb
c
    Stream #0.1: Audio: mp2, 22050 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
[...]

Attachments (2)

NONE_4colors.avi (1.1 MB ) - added by ami_stuff 13 years ago.
rawdec.diff (380 bytes ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (4)

by ami_stuff, 13 years ago

Attachment: NONE_4colors.avi added

by ami_stuff, 13 years ago

Attachment: rawdec.diff added

comment:1 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavcodec
Resolution: fixed
Status: newclosed
Type: defectenhancement
Version: unspecifiedgit-master

Patch applied.

comment:2 by Carl Eugen Hoyos, 12 years ago

Keywords: avi rawvideo added
Note: See TracTickets for help on using tickets.