Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#189 closed defect (fixed)

QT - add support for QT NONE (RAW) 1bpp monochrome mode

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

Description

Add support for QT NONE (RAW) 1bpp monochrome mode.

C:\>ffmpeg -i NONE_1bpp_monochrome.mov out.avi
ffmpeg version git-N-29638-g95f163b, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on May  6 2011 12:50:01 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.  3. 0 / 53.  3. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    0. 14. 0 /  0. 14. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'NONE_1bpp_monochrome.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-05-11 11:59:25
  Duration: 00:00:02.98, start: 0.000000, bitrate: 4578 kb/s
    Stream #0.0(eng): Audio: qdm2, 48000 Hz, 2 channels, s16, 48 kb/s
    Metadata:
      creation_time   : 2011-05-11 11:59:25
    Stream #0.1(eng): Video: rawvideo, yuv420p, 640x480, 4608 kb/s, 15 fps, 15 t
br, 15 tbn, 15 tbc
    Metadata:
      creation_time   : 2011-05-11 11:59:25
[buffer @ 01D12FA0] w:640 h:480 pixfmt:yuv420p
Output #0, avi, to 'out.avi':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-05-11 11:59:25
    ISFT            : Lavf53.0.3
    Stream #0.0(eng): Video: mpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 15 tbn,
15 tbc
    Metadata:
      creation_time   : 2011-05-11 11:59:25
    Stream #0.1(eng): Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
    Metadata:
      creation_time   : 2011-05-11 11:59:25
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
frame=    0 fps=  0 q=0.0 Lsize=      36kB time=3.00 bitrate=  98.5kbits/s
video:0kB audio:23kB global headers:0kB muxing overhead 53.866667%

Attachments (2)

NONE_1bpp_monochrome.mov (1.6 MB) - added by ami_stuff 5 years ago.
rawdec.diff (362 bytes) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ami_stuff

comment:1 Changed 5 years ago by ami_stuff

The prroblem is that avctx->bits_per_coded_sample outputs 33 for
attached QT file. I don't know what the specs says, but the file
plays correctly with QuickTime? and "Media Player Classic".

I attache patch which adds support for the file.

Changed 5 years ago by ami_stuff

comment:2 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from unspecified to git-master

Patch applied.

comment:3 Changed 4 years ago by cehoyos

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