Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#205 closed enhancement (fixed)

Add support for 1bpp 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: yes
Analyzed by developer: no

Description

AVI (NONE, black & white) file created with QT, doesn't decode.

Patch to fix this attached.

C:\>ffmpeg -i NONE_black_white.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_black_white.avi':
  Duration: 00:00:05.96, start: 0.000000, bitrate: 976 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 @ 01DA2380] 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
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
[...]

Attachments (2)

NONE_black_white.avi (710.8 KB) - added by ami_stuff 6 years ago.
rawdec.diff (379 bytes) - added by ami_stuff 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by ami_stuff

Changed 6 years ago by ami_stuff

comment:1 Changed 6 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

Patch applied.

comment:2 Changed 5 years ago by cehoyos

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