[libav-bugs] [Bug 583] New: FFV1: Incorrectly encoding pix_fmts gray/gray16 FFV1.3

bugzilla at libav.org bugzilla at libav.org
Mon Nov 4 02:44:36 CET 2013


https://bugzilla.libav.org/show_bug.cgi?id=583

           Summary: FFV1: Incorrectly encoding pix_fmts gray/gray16 FFV1.3
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: pb at das-werkstatt.com


Files encoded using pix_fmts "gray" or "gray16" using FFV1 version 3 (FFV1.3)
are encoded incorrectly. Encoding "gray" using FFV1 version 1 works fine,
however.

Both files (gbrp9/gbrp10) are created without any warning message. Decoding
them displays some areas black, others dislocated.

Tested with current git head.
Steps to reproduce:

----------
$ avconv -f image2 -i tests/lena.pnm -t 1 -an -c:v ffv1 -level 1 -strict
experimental -pix_fmt gray -v 9 -loglevel 99 delme.avi
-----------
$ avconv -f image2 -i tests/lena.pnm -t 1 -an -c:v ffv1 -level 1 -strict
experimental -pix_fmt gray16 -v 9 -loglevel 99 delme.avi
-----------

Complete, uncut console output:
-----------
$ avconv -f image2 -i tests/lena.pnm -t 1 -an -c:v ffv1 -level 1 -strict
experimental -pix_fmt gray16 -v 9 -loglevel 99 delme.avi

avconv version v9-2436-g87480c9, Copyright (c) 2000-2013 the Libav developers
  built on Nov  3 2013 13:09:20 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-swscale --enable-avfilter --enable-pthreads
--enable-bzlib --enable-zlib --enable-libmp3lame --enable-libvorbis
--enable-libxvid --enable-libopenjpeg --enable-decoder=png --enable-encoder=png
--enable-libfreetype --toolchain=gcov --enable-libschroedinger
  libavutil     52. 17. 0 / 52. 17. 0
  libavcodec    55. 24. 0 / 55. 24. 0
  libavformat   55. 10. 0 / 55. 10. 0
  libavdevice   54.  0. 0 / 54.  0. 0
  libavfilter    3. 11. 1 /  3. 11. 1
  libavresample  1.  1. 0 /  1.  1. 0
  libswscale     2.  1. 2 /  2.  1. 2
Splitting the commandline.
Reading option '-f' ... matched as option 'f' (force format) with argument
'image2'.
Reading option '-i' ... matched as input file with argument 'tests/lena.pnm'.
Reading option '-t' ... matched as option 't' (record or transcode "duration"
seconds of audio/video) with argument '1'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument
'1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'ffv1'.
Reading option '-level' ... matched as AVOption 'level' with argument '1'.
Reading option '-strict' ... matched as AVOption 'strict' with argument
'experimental'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format)
with argument 'gray16'.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option 'delme.avi' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file tests/lena.pnm.
Applying option f (force format) with argument image2.
Successfully parsed a group of options.
Opening an input file: tests/lena.pnm.
Input #0, image2, from 'tests/lena.pnm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0, 1, 1/25: Video: ppm, rgb24, 256x256, 0/1, 25 tbn
Successfully opened the file.
Parsing a group of options: output file delme.avi.
Applying option t (record or transcode "duration" seconds of audio/video) with
argument 1.
Applying option an (disable audio) with argument 1.
Applying option c:v (codec name) with argument ffv1.
Applying option pix_fmt (set pixel format) with argument gray16.
Successfully parsed a group of options.
Opening an output file: delme.avi.
Successfully opened the file.
Detected 8 logical cores.
[buffer @ 0x2df3f60] w:256 h:256 pixfmt:rgb24
[buffersink @ 0x2df49c0] auto-inserting filter 'auto-inserted fifo 0' between
the filter 'trim for output stream 0:0' and the filter 'output stream 0:0'
[format @ 0x2df4d00] auto-inserting filter 'auto-inserted scaler 0' between the
filter 'Parsed filter 0 null' and the filter 'format'
[scale @ 0x2df5c80] w:256 h:256 fmt:rgb24 -> w:256 h:256 fmt:gray16le flags:0x4
[ffv1 @ 0x2dfba60] detected 8 logical cores
[ffv1 @ 0x2dfba60] bits_per_raw_sample > 8, forcing coder 1
Output #0, avi, to 'delme.avi':
  Metadata:
    ISFT            : Lavf55.10.0
    Stream #0.0, 0, 1/25: Video: ffv1, gray16le, 256x256, 1/25, q=2-31, 200
kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (ppm -> ffv1)
Press ctrl-c to stop encoding
No more output streams to write to, finishing.
frame=    1 fps=  0 q=0.0 Lsize=      44kB time=0.04 bitrate=9088.8kbits/s    
video:39kB audio:0kB global headers:0kB muxing overhead 14.353296%

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list