Re: [FFmpeg-user] Converting BT2020 HVEC Videos to H.264 without Color Washout

2021-03-25 Thread Pedro Vivas Hernández
Lurking. Important. Thank you.

On Thu, Mar 25, 2021 at 5:17 PM Pavel Koshevoy  wrote:

> On Thu, Mar 25, 2021 at 9:27 AM Craig L.  wrote:
>
> > I recently started finding certain videos were washing out upon H.264
> > conversion.
> >
> >
> > After doing some research I found that if I added -color_primaries
> > bt2020 to the command, the color would come out correctly, but ONLY if
> > the video was played in Quicktime.  When played in Chrome, it would look
> > washed out.
> >
> > Here is a link to a screengrab showing the video in quicktime on the
> > left and in Chrome on the right.  Same video.
> >
> >
> > *https://snipboard.io/N8nYv0.jpg* 
> >
> >
> >
> >
> > After much research I can't figure out how to handle this?
> >
> > What is the correct way to convert these videos that I suppose are 10
> > bit HDR  into H.264 so that they will play correctly in Chrome, etc.
> >
> >
> >
> > This is my current command:
> >
> > /usr/local/bin/ffmpeg  -i "156237-Video2.mov"   -filter_complex
> > "scale=480:270"  -color_trc smpte2084 -color_primaries bt2020 -c:v
> > libx264 -profile:v high -pix_fmt yuv420p -level 5.1 -preset ultrafast
> > -movflags faststart   -vsync 2  -c:a aac -b:a 128k -y
> > 156237-Video2.mov-16-9-1616621202.mp4
> >
> >
> >
> >
> >
>
> For best possible player compatibility you really need to convert from
> HDR10 to SDR (bt709).
>
> To do that you need to use either colorspace or zscale ffmpeg filter.  The
> colorspace filter didn't support HLG the last time I checked, but that
> wouldn't matter if your source is HDR10, not HLG.
> Since you'd be converting from high dynamic range to standard dynamic range
> you would also need to use the tonemap filter.
>
> There is probably a LUT file somewhere that implements HDR10 -> BT709 color
> space conversion and tone mapping in one step, skipping zscale/tonemap.  If
> you had such LUT you could use it with lut3d filter.
>
> Pavel.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

-- 
yoctobio.me
--
Sent from a mobile phone.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Rolling bands fix using amplify?

2021-03-19 Thread Pedro Vivas Hernández
Hi, new here. Was wondering if rolling bands flicker on a clip that was
exposed with a cheap LED can be fixed with a video filter. Looking through
the manual I saw deflicker, which assume has more to do with timelapse
flicker, and amplify, which compares pixels and adjacent frames. The bands
are super slow and super subtle (like 2 IRE darker), so DA flicker free
isn’t working (for me) and re:Vision deflicker’s manual rolling bands
adjustment is fine, but it’s basically what I’d do manually.

Thanks!
-- 
yoctobio.me
--
Sent from a mobile phone.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".