Opened 4 years ago

Closed 4 years ago

#2536 closed defect (fixed)

qt raw 2/4bpp regression

Reported by: cehoyos Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: rawvideo regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Ticket #823 is reproducible again for some samples, reported by ami_stuff:
The 2bit and 4bit samples from ticket #823 are broken since 6184fa2, I will attach a PoC to show that this may not be related to the rawvideo decoder.

$ ffmpeg -i 2bpp_129.mov out2.avi
ffmpeg version N-52792-g7c23922 Copyright (c) 2000-2013 the FFmpeg developers
  built on May  6 2013 01:09:09 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 29.100 / 52. 29.100
  libavcodec     55.  7.100 / 55.  7.100
  libavformat    55.  4.101 / 55.  4.101
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 63.101 /  3. 63.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2bpp_129.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-12-23 23:19:30
  Duration: 00:00:05.96, start: 0.000000, bitrate: 671 kb/s
    Stream #0:0(eng): Video: rawvideo (raw  / 0x20776172), pal8, 129x97, 670 kb/s, 24 fps, 24 tbr, 600 tbn, 600 tbc
    Metadata:
      creation_time   : 2011-12-23 23:19:30
      handler_name    : Procedura obs�ugi skr�t�w danych Apple
[mpeg4 @ 0x342c540] too many threads/slices (8), reducing to 7
Output #0, avi, to 'out2.avi':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    ISFT            : Lavf55.4.101
    Stream #0:0(eng): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 129x97, q=2-31, 200 kb/s, 24 tbn, 24 tbc
    Metadata:
      creation_time   : 2011-12-23 23:19:30
      handler_name    : Procedura obs�ugi skr�t�w danych Apple
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
Press [q] to stop, [?] for help
[swscaler @ 0x34066a0] Warning: data is not aligned! This can lead to a speedloss
frame=  143 fps=0.0 q=31.0 Lsize=     284kB time=00:00:05.95 bitrate= 390.9kbits/s
video:275kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.258414%
$ ffmpeg -i 4bpp_129.mov out4.avi
ffmpeg version N-52792-g7c23922 Copyright (c) 2000-2013 the FFmpeg developers
  built on May  6 2013 01:09:09 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 29.100 / 52. 29.100
  libavcodec     55.  7.100 / 55.  7.100
  libavformat    55.  4.101 / 55.  4.101
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 63.101 /  3. 63.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '4bpp_129.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-12-23 23:19:54
  Duration: 00:00:05.96, start: 0.000000, bitrate: 1267 kb/s
    Stream #0:0(eng): Video: rawvideo (raw  / 0x20776172), pal8, 129x97, 1266 kb/s, 24 fps, 24 tbr, 600 tbn, 600 tbc
    Metadata:
      creation_time   : 2011-12-23 23:19:54
      handler_name    : Procedura obs�ugi skr�t�w danych Apple
[mpeg4 @ 0x2da22a0] too many threads/slices (8), reducing to 7
Output #0, avi, to 'out4.avi':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    ISFT            : Lavf55.4.101
    Stream #0:0(eng): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 129x97, q=2-31, 200 kb/s, 24 tbn, 24 tbc
    Metadata:
      creation_time   : 2011-12-23 23:19:54
      handler_name    : Procedura obs�ugi skr�t�w danych Apple
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
Press [q] to stop, [?] for help
[swscaler @ 0x2d7c6c0] Warning: data is not aligned! This can lead to a speedloss
frame=  143 fps=0.0 q=23.4 Lsize=     252kB time=00:00:05.95 bitrate= 347.1kbits/s
video:243kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.687037%

Attachments (1)

patchrawvideoregression.diff (805 bytes) - added by cehoyos 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by cehoyos

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords rawvideo added
  • Status changed from new to open

Definitely a rawvideo regression, patch on mailing list.

comment:3 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.