[FFmpeg-user] maintaining full swing when encoding in 10 bit (want to preserve all values from 0-1023)

Kevin Wheatley kevin.j.wheatley at gmail.com
Tue Nov 10 10:33:20 CET 2015


what happens is that there is an auto inserted scale filter used to
convert from RGB to YCbCr, the auto inserted defaults/features don't
work for your case you could try explicitly add the scale using

-vf scale=in_range=XXX:out_range=YYY:out_color_matrix=bt709

Replace XXX and YYY with 'full'/'tv' and you can control the scaling
(obviously you should fill in the appropriate matrix values for your
case).

It isn't perfect, and depending on your destination you may not get
full [0-1023] due to some codes being reserved for sync in video
formats, but this way you may get something closer to what you need
without needing the recompile.

Kevin

On Mon, Nov 9, 2015 at 7:08 PM, Marwan Daar <marwan.daar at gmail.com> wrote:
> thanks Paul. I'm not sure how to do that though. I found this:
>
> https://github.com/sekrit-twc/zimg
>
> but have no idea how to incorporate this into my workflow. Do I somehow need
> to compile this library into a new build? I've never done such a thing - is
> it easy to learn?
>
> -Marwan
>>
>> That are swscale bug(s). Compile with z.img and use zscale.
>>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list