#!/bin/sh -x
# $1 - input video file, e.g. video.mp4
# $2 - timestamp, e.g. 00:33
# $3 - output image file, e.g. output.jpg
ffmpeg -ss $2 -i $1 -vframes 1 -q:v 2 $3
#!/bin/sh -x
# $1 - input file, e.g. input.mp4
ffmpeg -i "$1" -q:v 2 %06d.jpg
ffmpeg -f image2 -framerate 30 -i %06d.jpg -c:v libx264 out.mp4
@rlan the desired effect is to not have any visible color (luma/brightness) differences between the <1> <2> and <3> components. I am just writing frames from <2> to disk and re-encoding it again, it should not have changes in brightness.