How to extract (to a JSON/TXT/XML) the number of video bitrates every N frames with FFMPEG

How to extract (to a JSON/TXT/XML) the number of video bitrates every N frames with FFMPEG.
Thanks!