[FFmpeg-user] Preserving color space for MOV container

Christian Johannesen chrisjohannesen at gmail.com
Fri Jul 17 18:57:25 CEST 2015


On Fri, Jul 17, 2015 at 12:15 PM, Dave Rice <dave at dericed.com> wrote:

>
> > On Jul 17, 2015, at 10:59 AM, Christian Johannesen <
> chrisjohannesen at gmail.com> wrote:
> >
> > On Fri, Jul 17, 2015 at 2:48 AM, Carl Eugen Hoyos <cehoyos at ag.or.at>
> wrote:
> >
> >> Christian Johannesen <chrisjohannesen <at> gmail.com> writes:
> >>
> >>> I'm wondering if it is possible to preserve or set
> >>> the color_space, color_transfer & color_primaries
> >>> in a conversion to a MOV container format.
> >>
> >> You currently have to pass the following options:
> >> -color_primaries
> >> -color_trc
> >> -color_range
> >
> >
> >> Carl Eugen
> >>
> >
> > Thanks for the direction on setting this, I can see that FFMPEG does
> > recognize the option, but I don't see the metadata getting set in the
> > output MOV when I scan it with ffprobe.
> >
> > Updated command:
> >
> > ffmpeg -guess_layout_max 0 -i D:\MEDIA\TELECINE_1080i5994_ProRes422LT.mov
> > -map 0:v -vf
> >
> pullup,dejudder,idet,yadif=deint=interlaced:mode=0,setsar=sar=1/1,setfield=prog
> > -r 24000/1001 -vcodec prores -profile:v 1 -colorspace 1 -color_primaries
> 1
> > -color_trc 1 -color_range 1 -map 0:a -acodec copy -channel_layout mono
> > -timecode 01:45:14:18 -metadata:s encoder="Apple ProRes 422 LT"
> > D:\MEDIA\TEST_1080p2398_ProRes422LT.mov
>
> [...]
>
> Have you tried -movflags write_colr? IIRC the colr atom is disabled by
> default in mov.
> Dave
>
> I had not tested that. Now that its enabled the output matches the source
when checked with ffprobe.

Thank you very much!
Chris


More information about the ffmpeg-user mailing list