Tag Archives: video resolution

Resolution change of the video output in Openelec on Orange PI PC (Part2)

After the installation and compilation of the sunxi tools we are able to manage the script.bin file

http://www.microdev.it/wp/en/2016/07/29/resolution-change-of-the-video-output-in-openelec-on-orange-pi-pc-part1/

Copy into scriptfile folder our script.bin file.

From th sunxi link it is possible to view the guide about the parameters of the fex file

Fex Guide

Using the tool, compiled in part1 article, let’s convert the file from binary into a text one, executing the following command

Now we can work on the script.fex file. Edit it with a text tool software, for example pluma in Debian

script.fex

In this file we have to find the parameters to modify the video output; here are the parameters to modify

In our test file we found the following settings

According to the fex guide, for the HDMI output (screen_output_type=3) and a setting of 720p60 we have to change the 10 value into 5 in the screen0_output_mode parameter

WARNING: This file contains all the main parameters for the correct operation of the card. Don’t  change anything if you are not sure  waht the change of parameters entails.

After the parameters change convert the text file into a binary format with the following command, generating a .bin file

Move this file into the micro sd card; rename the original script.bin file into script.bin.back and move the  script720p60.bin into script.bin.

In the  Fex Guide we find all the parameters settings according to the various output resolutions.

Inserting the sd card into the Orange PI PC we can test the new output resolution connecting the hdmi to our television and powering on the card.

Resolution change of the video output in Openelec on Orange PI PC (Part1)

In the Orange PI Openelec image the default video output resolution is 1080p60. If our tv works with a different resolution we’ll have no image on the television.

To overcome this problem it is possible to change the resolution and fps  for the video output.

The micro sd has two partitions. We have to work in the vfat partition

schedasd

We have to modify the script.bin file.

contenutoschedasd

In the home partition of the debian user (sviluppo in our case) create a folder orangepi; inside this folder create another folder called  sunxi. Go into sunxi folder

Follow the instructions available from linux-sunxi site in order to modify the script.bin file. As first step install the required tools

Sunxi Tools

We have to install the libusb package, as described below

Install git and pkg-config

Now using git download the tool sources

Go into sunxi.tools folder

Execute the tools compilation

We are now able to modify the Orange PI PC parameters available in the script.bin file.

Create a folder under sunxi, for example scriptfile

Add to th ePATH variable the sunxi tools folders executables

Now in next article we can modify the parameters of video output in the script.bin file

http://www.microdev.it/wp/en/2016/07/29/resolution-change-of-the-video-output-in-openelec-on-orange-pi-pc-part2/