Downscale recording as needed for device codecs

Some devices cannot play back video at screen resolution, so check
whether any codecs can support screen resolution, or downscale the video
to the max supported size and refresh rate.

Fixes: 167978946
Test: manual
Change-Id: Ie174aa0db25f189c8e3601a81ad869777ba70a60
1 file changed