Zend certified PHP/Magento developer

FFmpeg frame counter + resolution/bitrate/FPS box

I was trying to use drawtext FFmpeg filter to insert a frame counter at the bottom of my video by using this command:

ffmpeg -i input.mp4 -vf "drawtext=fontfile=C\:/Windows/fonts/consola.ttf: text='Frame\: %{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=50: box=1: boxcolor=white: boxborderw=5" -c:a copy output.mp4

So far all works fine. I was wondering how could I insert also a resolution/bitrate box at the top of the video as shown in the image below:

A frame in question