Using Plex HTPC on 21:9 aspect ratio screen

Edit :
In fact the zoom mode set the panscan function that crop the video to fill the screen while retaining aspect ratio.
With a 2.35 aspect ratio film it will nearly do the trick on a 21:9 screen. But if you want a more precise control or you have a film with an other aspect ratio that is not near 21:9 here is the solution :

use a custom inputmap for the keyboard :
copy the file:
C:\Users\<your_user>\AppData\Local\Plex HTPC\inputmaps\defaults\keyboard.json
to
C:\Users\<your_user>\AppData\Local\Plex HTPC\inputmaps\keyboard.json

edit the json file and add after latest mappings :

	//zoom controls
	"Ctrl\\+\\+" : "mpv:add video-zoom 0.05",
	"Ctrl\\+\\-" : "mpv:add video-zoom -0.05",
	"Ctrl\\+\\*" : "mpv:cycle-values video-zoom 0 0.0574502 0.4025857 0.4269356",
	"Ctrl\\+0" : "mpv:set video-zoom 0",

after that

  • CTRL +/- will (un)zoom step by step
  • CTRL * will cycle predefined zoom level : 0 (reset) , 1.85:1 video, 2.35:1 video and 2.39:1 video
    note that these preset are calculated for 16:9 aspect video files with black bars to embed movies with other aspect ratio and displayed on a 21:9 screen
  • CTRL 0 will reset zoom
3 Likes