Can a PNG file be captured with ffmpeg?

Can a PNG file be captured with ffmpeg?

The video data contains a lot of darker shades of grey. When I capture a single PNG file, everything is fine. Capturing with ffmpeg/avconf using x264 truncates my color space to 16..235. I tried to define -color_range 2 but it didn’t have any effect.

Which is the full range of RGB in FFmpeg?

Y=16,U=128,V=128 will be mapped to RGB 16,16,16 instead of RGB 0,0,0. So if you stared with with Y 16-235 , that will be converted RGB 16-235. And that will be converted back to YUV 16-235 if you used full range.

How can I Fix my FFmpeg color range?

You fix your YUV , give it legal values, give it some room and making sure you have right color space, also set flags how they want it (color space, matrix, transfer, range) and that is all you can do. You cannot control how they change it to RGB with whatever hardware etc.

How many matrix combinations are there in FFmpeg?

You can apply 601 or 709 matrix , and full or limited variants, and in either direction. So that’s 4 combinations for each direction. (601 full and limited, 709 full and limited).

Is there a way to shift the color of a video?

When I open the output video in different viewers (vlc, windows media player), the resulting color are shifted and appears more green. I have played with pix_fmt and the format filter with no result.

How to reduce the color range in avconv?

Capturing with ffmpeg/avconf using x264 truncates my color space to 16..235. I tried to define -color_range 2 but it didn’t have any effect. I also played with the different pixel formats (yuv444p, yuv420, ..) –without success. This is the command line which produces the reduce color range video:

How to convert YUV color space to sRGB?

How to convert an mp4 file with YUV color space to RGB or sRGB color space using ffmpeg? I am trying to upload my video to YouTube and I read somewhere that RGB video looks better than YUV one.