Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Test method of double screen display based on SAIL-IMX6

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Dual screens show the configuration of the same or different videos and related instructions

Home screen playback video instruction

Instruction 1:gst-launch-1.0 playbin uri= file:///IMG_6009.mp4

Instruction 2:gst-play-1.0

/ IMG_6009.mp4

The overlaysink plug-in is required to control video playback on different screens or on both screens at the same time (the system has been installed). The file for configuring overlaysink is / usr/share/imx_6q_display_config, and the configuration format is as follows:

[Display NAME] must be configured, referring to the display name

Device= must be configured to indicate device files, such as / dev/video17 or / dev/video18

Fmt= optional configuration, set display format, such as RGBP, RGB565, etc., default is RGBP

Width= optional configuration, set display resolution

Height= optional configuration, set display resolution

Alpha= optional configuration, set alpha (transparent) value, default 0

Color_key= optional configuration, color configuration, off by default

The specific configuration is as follows: (configure HDMI as the main screen and LCD as the secondary screen)

[master]

Device = / dev/video17

Fmt = RGBP

Alpha = 0

[slave]

Device = / dev/video18

Fmt = RGBP

Width = 800,

Height = 480

Depending on the above configuration, you can play different video instructions on different screens (HDMI+LCD) at the same time:

Gst-launch-1.0 playbinuri=file:/IMG_6008.mp4 playbinuri=file:/IMG_6009.mp4 video-sink= "overlaysink display-master=false display-slave=true"

To play the same video on different screens, you can run the following command:

Gst-launch-1.0 playbinuri=file:/IMG_6009.mp4 video-sink= "overlaysink display-master=truedisplay-slave=true"

Specify that the video is played on the secondary screen to run the following command:

Gst-launch-1.0 playbinuri=file:/IMG_6009.mp4 video-sink= "overlaysink display-master=falsedisplay-slave=true"

Play 4 videos on one screen with the following instructions:

Gst-launch-1.0 playbinuri=file:/IMG_6009.mp4 video-sink= "overlaysink overlay-width=240overlay-height=240" playbinuri=file:/ IMG6008.mp4 flags=0x41video-sink= "overlaysink overlay-left=240 overlay-width=240overlay-height=240" playbinuri=file:/ sample.mp4 flags=0x41video-sink= "overlaysink overlay-top=240 overlay-width=240overlay-height=240" playbinuri=file:/IMG_6009.mp4 flags=0x41video-sink= "overlaysink overlay-left=240 overlay-top=240 overlay-width=240overlay-height=240"

QT4.8.6 is migrated to the file system of the development board

Create a new local/tslib/ directory under the / usr/ directory

Execute the following instructions:

Cd / usr

Mkdir local

Cd local

Mkdir tslib

Cd..

Chmod-R 777 local

Extract the build.tar.gz to the / usr/local/tslib/ directory of the development board and execute the following instructions

Tar zxvf build.tar.gz-C / usr/local/tslib/

Create a new qt/ directory under the / usr/ directory

Execute the following instructions:

Cd / usr

Mkdir qt

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report