Opened 9 years ago

Closed 8 years ago

#4569 closed defect (needs_more_info)

DNxHD as Input produce wrong color/gamma in output

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

Description

We try to convert DNxHD files to x264/mp4, to prores we have also try, so I guess the output format doesn't matter. The output has always wrong colors, it looks like a wrong gamma value or something similar.

The DNxHD files comes from adobe media encoder and have a bt709 matrix. I put a picture to the post. The left side is the original DNxHD and the right side is x264. You see more saturation in the middle tone and all is a bit darker.

My command is:
ffmpeg -i dnxhd45.mov -pix_fmt yuv420p -c:v libx264 -crf 21 -preset slower -c:a libfdk_aac -b:a 128k output.mp4

Attachments (1)

DNxHD_to_any.jpg (102.8 KB ) - added by jb_alvarado 9 years ago.
compare

Download all attachments as: .zip

Change History (7)

by jb_alvarado, 9 years ago

Attachment: DNxHD_to_any.jpg added

compare

comment:1 by jb_alvarado, 9 years ago

Summary: DNxHD as Input produce from color/gamma in outputDNxHD as Input produce wrong color/gamma in output

comment:2 by Kieran Kunhya, 9 years ago

What are you using to play the h264 file? Quicktime has known h264 gamma problems for years.

comment:3 by jb_alvarado, 9 years ago

I have compare them in After Effects. But in my office we figure something out and maybe it is the same problem:
We have files from Cameras how is compressed in XDCAM and it comes in mp4 containers. blackmagic Davinci can not open this mp4 files, so I copy the video and andio lines from the mp4 to mov with ffmpeg:
ffmpeg -i xdcam.mp4 -c copy xdcam.mov

When I compare the new file in Adobe Premiere, I have the same color shift like with DNxHD. When I convert the mp4 to prores with media encoder and compare this with the xdcam.mov in Davinci the colors are ok.

So maybe there is only a problem with the metadata?!

Version 0, edited 9 years ago by jb_alvarado (next)

comment:4 by jb_alvarado, 9 years ago

Ok a other information to:

When I use a DNxHD file with RGB Color space, instead of bt709, everything is ok.

comment:5 by Carl Eugen Hoyos, 9 years ago

Please provide your command line together with the complete, uncut console output and the input sample to make this a valid ticket.

comment:6 by Elon Musk, 8 years ago

Resolution: needs_more_info
Status: newclosed

No samples, can not reproduce

Note: See TracTickets for help on using tickets.