Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1691

LetterBoxHD Plugin

$
0
0

on HD channels settings like letterbox, bestfit, panscan have no effect, they are just for SD channels, old 4:3 recordings look terribly strechted out, with some calculation it is possible to watch old 4:3 material proportional on HD channels, the plugin I made (called it LetterBoxHD, based onLetterBox plugin) reduces the picture width from 720 to new width 540 and puts the picture in the middle of the screen, proportion is ok 720/540 = 4:3, to get black bars left and right we slide the pictures to the left by (720 -540) / 2 = 90 pixels the plugin may not work on every box, some specific proc nodes are used,
/proc/stb/vmpeg/0/dst_width
/proc/stb/vmpeg/0/dst_left
on H7 I need to write a "0" to
/proc/stb/vmpeg/0/dst_apply
to apply the new settings
plugin starts as Sessionstart, so you won´t see it in Plugins or Extensions or elsewhere, it is enabled per global key, on H7 I use KEY_VMODE, keymap.xml looks like this
 

<keymap>    <map 
context="GlobalActions">        
<key id="KEY_VMODE" mapto="toggle_reduce" flags="m" 
/>    </map></keymap>

you may try another key i.e. KEY_TEXT if you don´t need Teletext or any other free key on your RC, just edit the delivered keymap.xml, on Pli KEY_VMODE is internally in use, I disabled it in /usr/share/enigma2/keymap.xml to get V.MODE key fully free so won´t colide with the plugin

<!--map context="InfobarVmodeButtonActions">    <key 
id="KEY_VMODE" mapto="vmodeSelection" flags="b"/></map-->

the picture width is not sticky, means when you switch over to another channel it gets resetted to 720, just unzip and copy to Extensions and restart Enigma2

Attached Files


Viewing all articles
Browse latest Browse all 1691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>