During encoding, ffmpeg accepts a "compression rate" (crf) parameter (different from the actual compression ratio) when the H264 codec is used:
ffmpeg -i input.mp4 -vf fps=15 -crf 20 -c:v libx264 output.mp4
Is it possible to get the value of this parameter back by examining the video file? It doesn't seem to be part of the metadata, as far as I can tell.