I am working on a recipe to convert Avid DNxHD files which are rec.709 "legal" range (15-235 in 8bpc) to .png files which are "full" range (0-255). In looking around it seems that "colorspace" could do this, but I am quite new to FFMPEG filters and I can't seem to get it to work... I've looked all over the place but not found a solution to this simple question
-i video.mov -fv yadif=0:0:0,colorspace=srgb transcode_%04d.png
just throws an error, and I assume I just don't know the proper syntax (no real example for this in the manual, that I could find).
Separately i thought this might work: -i video.mov -vf yadif=0:0:0,scale=in_range=tv:out_range=full transcode_%04d.png
. This runs without complaining, but the output .png's are still in legal range.
ffmpeg -i video.mov -vf trim=end_frame=1,signalstats@pre,format=rgb24,signalstats@post test.png
I assume the black/white portion is visible in the first frame. If not, add-ss X
before-i
where X should be a timestamp of a frame that has white/black in it. Share log. Add2> log.txt
at end of cmd to generate it.full
is not an automatic outcome.