Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4642 closed defect (worksforme)

Converting a certain gif to mp4 turns all frames green

Reported by: nicksantos Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Run the following command with the provided gif file:

% FFREPORT=true ffmpeg -v 9 -loglevel 99 -i turns_green_when_converted_to_mp4.gif -q 5 -pix_fmt yuv420p green.mp4

ffmpeg version N-69101-ge7d8518 Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 15 2015 21:55:44 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
  configuration: --enable-libtheora --enable-postproc --prefix=/home/ec2-user/ffmpeg/build-ffmpeg

All the frames in the mp4 come out green.

Interestingly, I was only able to reproduce this on my EC2 linux machines. The conversion worked fine when I ran the same command on OSX.

I'll attach the full log, the input file, and the output file.

Attachments (3)

ffmpeg-20150619-151841.log (15.7 KB) - added by nicksantos 4 years ago.
ffmpeg verbose log
turns_green_when_converted_to_mp4.gif (360.6 KB) - added by nicksantos 4 years ago.
input gif
green.mp4 (201.2 KB) - added by nicksantos 4 years ago.
output mp4

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by nicksantos

ffmpeg verbose log

Changed 4 years ago by nicksantos

input gif

Changed 4 years ago by nicksantos

output mp4

comment:1 Changed 4 years ago by cehoyos

  • Resolution set to worksforme
  • Status changed from new to closed

green.mp4 plays fine here with FFplay, MPlayer, xine, totem and vlc...

comment:2 Changed 4 years ago by cehoyos

Unrelated: Note that --enable-postproc has no effect, if you want libpostproc, you have to pass --enable-gpl to configure.

comment:3 Changed 4 years ago by nicksantos

It shows up all green for me on Quicktime.

comment:4 Changed 4 years ago by nicksantos

(compatibility with quicktime is pretty important to us for Safari support. Otherwise we'd be using ogv for everything.)

Unrelated: thank you for the --enable-gpl advice!

Note: See TracTickets for help on using tickets.