Opened 6 years ago

Last modified 3 years ago

#7367 new defect

Magic Lantern Video (MLV) looks green

Reported by: llogan Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mlv
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by llogan)

$ ./ffmpeg -i M16-1626.MLV -frames:v 1 output.png
ffmpeg version N-91634-gc2eec1762d Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.0 (GCC)
  configuration:
  libavutil      56. 19.100 / 56. 19.100
  libavcodec     58. 23.100 / 58. 23.100
  libavformat    58. 17.103 / 58. 17.103
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 26.100 /  7. 26.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
[mlv @ 0x555e950c76c0] unsupported tag RAWC, size 16
[mlv @ 0x555e950c76c0] unsupported tag VERS, size 164
[mlv @ 0x555e950c76c0] unsupported tag VERS, size 156
[mlv @ 0x555e950c76c0] unsupported tag VERS, size 164
[mlv @ 0x555e950c76c0] Opening 'M16-1626.M00' for reading
Input #0, mlv, from 'M16-1626.MLV':
  Metadata:
    guid            : 0x9d14f8469a33a33a
    cameraName      : Canon EOS REBEL T5i
    cameraModel     : 2147484454
    cameraSerial    : 13196E1243
    isoMode         : manual
    isoValue        : 100
    isoAnalog       : 72
    digitalGain     : 0
    shutterValue    : 31152
    focalLength     : 50
    focalDist       : 0
    aperture        : 320
    stabilizerMode  : 0
    autofocusMode   : 3
    flags           : 0
    lensID          : 29
    lensName        : EF50mm f/1.8 II
    time            : 2018-08-16 16:25:16
    wb_mode         : 9
    kelvin          : 3200
    wbgain_r        : 855
    wbgain_g        : 1024
    wbgain_b        : 350
    wbs_gm          : 0
    wbs_ba          : 0
  Duration: 00:00:01.17, start: 0.000000, bitrate: 309417 kb/s
    Stream #0:0: Video: rawvideo (BIT[16] / 0x10544942), bayer_rggb16le, 1280x720, 23.97 tbr, 23.97 tbn, 23.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, image2, to 'output.png':
  Metadata:
    guid            : 0x9d14f8469a33a33a
    cameraName      : Canon EOS REBEL T5i
    cameraModel     : 2147484454
    cameraSerial    : 13196E1243
    isoMode         : manual
    isoValue        : 100
    isoAnalog       : 72
    digitalGain     : 0
    shutterValue    : 31152
    focalLength     : 50
    focalDist       : 0
    aperture        : 320
    stabilizerMode  : 0
    autofocusMode   : 3
    flags           : 0
    lensID          : 29
    lensName        : EF50mm f/1.8 II
    time            : 2018-08-16 16:25:16
    wb_mode         : 9
    kelvin          : 3200
    wbgain_r        : 855
    wbgain_g        : 1024
    wbgain_b        : 350
    wbs_gm          : 0
    wbs_ba          : 0
    encoder         : Lavf58.17.103
    Stream #0:0: Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 23.97 fps, 23.97 tbn, 23.97 tbc
    Metadata:
      encoder         : Lavc58.23.100 png
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.188x    
video:510kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Sample:
https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket7367/M16-1626.MLV

Created using magiclantern-Nightly.2018Jul03.700D115.zip. Subject is a gray card. Color is correct if played back in camera. mlvfs converts MLV to DNG and also creates a correct color output.

The pink and purple artifacts in the center of the image are present in the source are not related to this "green" issue.

Attachments (1)

M16-1626_000000.dng (1.8 MB ) - added by Carl Eugen Hoyos 3 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by pross, 5 years ago

Green color is also present when decoding the .dng file with FFmpeg.

The problem is caused by lack of white-balance post processing.

comment:2 by llogan, 3 years ago

Description: modified (diff)

by Carl Eugen Hoyos, 3 years ago

Attachment: M16-1626_000000.dng added
Note: See TracTickets for help on using tickets.