CN114979761A - Display method and system of video player based on universal SOC - Google Patents

Display method and system of video player based on universal SOC Download PDF

Info

Publication number
CN114979761A
CN114979761A CN202210306892.2A CN202210306892A CN114979761A CN 114979761 A CN114979761 A CN 114979761A CN 202210306892 A CN202210306892 A CN 202210306892A CN 114979761 A CN114979761 A CN 114979761A
Authority
CN
China
Prior art keywords
video
displayed
display
sub
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210306892.2A
Other languages
Chinese (zh)
Inventor
胡腾飞
徐玉生
张倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shengxian Technology Co ltd
Original Assignee
Shenzhen Shengxian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shengxian Technology Co ltd filed Critical Shenzhen Shengxian Technology Co ltd
Priority to CN202210306892.2A priority Critical patent/CN114979761A/en
Publication of CN114979761A publication Critical patent/CN114979761A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a display method and a system of a video player based on a universal SOC (system on chip), wherein the method comprises the following steps: receiving a video file to be displayed, and segmenting the video file to be displayed to obtain a plurality of sub video files; and calculating the positions of the plurality of sub-video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation, and filling the sub-video files in each display area according to the positions of the plurality of sub-video files in each display area and the display images in each display area. The invention can be used for realizing the broadcast control of the point-to-point video under the three-screen or four-screen application only by one universal SOC, has super-strong cost performance, and avoids the problems of stretching or phase change or higher cost by adding a multi-screen display card when a traditional video broadcast controller plays 7680X 1080 or 1920X 4320 video images on a 1X 4 or 4X 1 spliced screen.

Description

Display method and system of video player based on universal SOC
Technical Field
The invention relates to the technical field of image display, in particular to a display method and a display system of a video player based on a universal SOC (system on chip).
Background
With the continuous maturity of display technology and the continuous decline of price, LCD mosaic screen has gained more and more extensive application, especially in various exhibition show application occasions. In the exhibition application, the number of the spliced screens is generally small, and three screens and four screens are mainly used, such as 2 × 2, 1 × 3(4), 3(4) × 1, and the spliced screens are mainly used for displaying high-resolution videos or pictures. The description will be given by taking the LCD splicing screen of 16:9 (resolution 1920 x 1080) which is currently in the market. For 4 x 1 splices, the overall resolution was 1920 x 4320; for 2 x 2 tiling, the overall resolution is 3840 x 2160; for 1 × 4 splices, the overall resolution is 7680 × 1080.
At present, a client generally adopts a 4-output splicing processor, the input of the splicing processor is connected with a computer or a playing box, the output of an output picture of the computer or the playing box on a splicing screen is realized through the splicing processor, and a video file or a picture is played in the computer or the playing box. Since the output of the computer display card and the playing box mostly support 4K output (3840 × 2160), if the resolution of the video or picture to be played is also 4K, the video or picture to be played is displayed in an equal ratio on a 2 × 2 splicing screen without stretching or deforming; however, for 4 x 1 or 1 x 4, there must be stretching or phasing when the video or picture is played. In order to solve the problem of deformation or scaling, the problem can be solved by a mode of adding a multi-screen display card to a computer host, for example, 4 display cards are used, 4 output heads of the display cards are respectively connected with 4 spliced screens to form a single logic desktop, and a video or a picture is designed according to the physical resolution of 2 x 2, 4 x 1 or 1 x 4, so that point-to-point playing can be realized, and stretching or deformation is avoided, but the scheme has higher cost.
Disclosure of Invention
In view of the above technical problems, an object of the present invention is to provide a display method and system for a video player based on a general SOC, which solve the problem that the conventional video player may have stretching or phase change when playing 7680 × 1080 or 1920 × 4320 video images on a 1 × 4 or 4 × 1 tiled screen, or the problem that the cost is relatively high by adding multiple screen display cards.
The invention adopts the following technical scheme:
a display method of a video player based on a universal SOC comprises the following steps:
receiving a video file to be displayed, and segmenting the video file to be displayed to obtain a plurality of sub video files;
calculating the positions of the plurality of sub-video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation, wherein the coordinate conversion relation is a mapping relation between the positions of the images of the video files to be displayed when the video files are displayed on the virtual canvas and the positions of the images on the physical canvas;
and filling the sub video files into the display areas according to the positions of the display areas and the display images in the display areas.
Optionally, before the step of calculating the positions of the plurality of sub-video files in each display area on the physical canvas and displaying the images in each display area according to the preset coordinate conversion relationship, the method includes:
creating a coordinate transformation relationship, the creating a coordinate transformation relationship comprising:
creating a virtual canvas, segmenting the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and carrying out coordinate matching on the position of the segmented image relative to the virtual canvas and the position of the video to be displayed on the physical canvas.
Optionally, the segmenting the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and performing coordinate matching between the position of the segmented image relative to the virtual canvas and the position of the video to be displayed on the physical canvas includes:
and if the display resolution of the video to be displayed on the virtual canvas is 3840 × 2160, the video to be displayed is directly output without conversion, and each display area, the display position and the display image of each display area are consistent with the display of the video to be displayed on the virtual canvas.
Optionally, the segmenting the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and performing coordinate matching between the position of the segmented image relative to the virtual canvas and the position of the video to be displayed on the physical canvas includes:
if the display resolution of the video to be displayed on the virtual canvas is 7680 × 1080, the sub-video files of the video to be displayed divided on the virtual canvas are respectively displayed on the 4 display areas, and the positions of the sub-video files displayed on the 4 display areas relative to the virtual canvas when displayed on the virtual canvas are respectively (0,0), (1920,0), (3840,0) and (5760, 0);
or, if the display resolution of the video to be displayed on the virtual canvas is 1920 × 4320, the sub video files of the video to be displayed divided on the virtual canvas are respectively displayed on the 4 display areas, and the positions of the sub video files displayed on the 4 display areas relative to the virtual canvas when displayed on the virtual canvas are (0,0), (0,1080), (0,2160) and (0,3240), respectively.
Optionally, the dividing the video file to be displayed to obtain a plurality of sub-video files includes:
and respectively converting, segmenting and synthesizing the video file to be displayed.
Optionally, the respectively converting, segmenting and synthesizing the video file to be displayed includes:
reading each frame of image in a video file to be displayed, and adding timestamp information into each frame of image;
cutting each frame of image according to the resolution information of the video file to be displayed to obtain a plurality of sub-files, and acquiring offset addresses of the sub-files;
and combining the cut images into a combined video image according to the time stamp information, and adding offset addresses of the sub files and the resolution of the video file to be displayed in the combined video image.
Optionally, the filling the sub-video file into each display area according to the position of each display area and the display image in each display area includes:
and obtaining the sub-video file according to the offset address of the sub-video file, respectively reading each frame of image of the sub-video file according to the timestamp, and filling each frame of image of the sub-video file into each display area according to the position of each display area and the display image in each display area.
A display system of a universal SOC-based video player, comprising:
the segmentation unit is used for receiving a video file to be displayed and segmenting the video file to be displayed to obtain a plurality of sub video files;
the computing unit is used for computing the positions of the plurality of sub-video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation, wherein the coordinate conversion relation is a mapping relation between the positions of the images of the video files to be displayed when the video files are displayed on the virtual canvas and the positions of the images on the physical canvas;
and the display unit is used for filling the sub-video files into the display areas according to the positions of the display areas and the display images in the display areas.
An electronic device, comprising: the display device comprises at least one processor and a memory which is in communication connection with the at least one processor, wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to execute the display method of the video player based on the universal SOC.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the display method of a universal SOC-based video player.
Compared with the prior art, the invention has the beneficial effects that:
according to the method, the video file to be displayed is segmented to obtain a plurality of sub video files; calculating the positions of the plurality of sub-video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation, filling the sub-video files in each display area according to the positions of the display areas and the display images in each display area, realizing the point-to-point video playing control under three-screen or four-screen application only by a general SOC with 4-way or 3-way 1080p decoding capability and HDMI2.0 output capability, having the cost performance of superstrong hardware, and having the characteristic of high stability of embedded pure hardware equipment, avoiding the stretching or phase change problem when the video files filled in each display area are played through a display terminal, and avoiding the stretching or phase change problem when the traditional video playing controller plays 7680 or 1920 4320 video images on a 1 or 4 or 1 spliced screen, or the problem of higher cost of the display card is caused by adding multiple screens.
Drawings
Fig. 1 is a schematic flowchart illustrating a display method of a video player based on a general SOC according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a display system of a video player based on a general SOC according to an embodiment of the present invention;
fig. 3 is a hardware schematic diagram of a display system of a video player based on a general SOC according to an embodiment of the present invention;
fig. 4 is a schematic mapping diagram of a virtual canvas and an HDMI2.0 canvas according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an image filled into each area and displayed according to a coordinate transformation relationship according to an embodiment of the present invention;
fig. 6 is a schematic mapping diagram of a virtual canvas and an HDMI2.0 canvas according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
the first embodiment is as follows:
referring to fig. 1 to 7, fig. 1 shows a display method of a video player based on a general SOC according to the present invention, which includes the following steps:
step S1, receiving a video file to be displayed, and segmenting the video file to be displayed to obtain a plurality of sub video files;
in this embodiment, the video file to be displayed may include 7680 × 1080 or 1920 × 4320 video images inputted to the video player, or ordinary 2K or 4K video files and pictures.
Optionally, the dividing the video file to be displayed to obtain a plurality of sub-video files includes:
and respectively converting, segmenting and synthesizing the video file to be displayed.
Specifically, the converting, segmenting and synthesizing the video file to be displayed respectively includes:
reading each frame of image in a video file to be displayed, and adding timestamp information into each frame of image;
cutting each frame of image according to the resolution information of the video file to be displayed to obtain a plurality of sub-files, and acquiring offset addresses of the sub-files;
and combining the cut images into a combined video image according to the time stamp information, and adding offset addresses of the sub files and the resolution of the video file to be displayed in the combined video image.
In this embodiment, each frame of image of the video file is read, timestamp information is added to the image frame information, then each frame of image is divided into 4 parts horizontally or vertically according to the video resolution and stored as 4 video files, finally the four divided video files are combined into one video file, and the combined file is added with the resolution of the original file, which is not limited to the overall resolution, and the offset address of each divided sub-file in the total file, so that one video file is still presented after the processing.
After the converted, divided and synthesized video or picture file is uploaded to the main core board, the converted, divided and synthesized video or picture file can also be uploaded to a common 2K or 4K video file and picture, and after the addition is completed, the name of the added video file can be seen on a control software interface.
Step S2, calculating the positions of the display areas of the plurality of sub-video files on the physical canvas and the display images in the display areas according to a preset coordinate conversion relation, wherein the coordinate conversion relation is the mapping relation between the positions of the images when the video files to be displayed are displayed on the virtual canvas and the positions of the images on the physical canvas;
optionally, before the step of calculating the positions of the plurality of sub-video files in each display area on the physical canvas and displaying the images in each display area according to the preset coordinate conversion relationship, the method includes:
creating a coordinate transformation relationship, the creating a coordinate transformation relationship comprising:
creating a virtual canvas, segmenting the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and carrying out coordinate matching on the position of the segmented image relative to the virtual canvas and the position of the video to be displayed on the physical canvas.
In this embodiment, the installation layout of the virtual canvas and the actual spliced screen (i.e., the display terminal) is the same, if the spliced screen is installed according to 1 row and 4 columns, the virtual canvas is also 1 row and 4 columns, and the resolutions of the virtual canvas and the spliced screen are both 7680 × 1080; the resolution of the physical canvas output is fixed, namely 3840 × 2160;
it should be noted that the physical canvas refers to the resolution of the video output by the video player.
In this embodiment, the 7680 × 1080 or 1920 × 4320 video image is processed by the video player and then played on the 1 × 4 or 4 × 1 tiled screen. The method flow of the invention is mainly the process of processing the video image of 7680 x 1080 or 1920 x 4320 to be displayed by the video player.
And the mapping relation is that the coordinate mapping is carried out on the display image on 4 virtual canvas blocks in the virtual canvas and the display image divided into 4 equal display areas in the physical canvas.
Specifically, the segmenting the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and performing coordinate matching on the position of the segmented image relative to the virtual canvas and the position of the video to be displayed on the physical canvas, includes:
and if the display resolution of the video to be displayed on the virtual canvas is 3840 × 2160, directly outputting the video to be displayed without conversion, wherein each display area, the display position and the display image of each display area are consistent with the display of the video to be displayed on the virtual canvas.
If the display resolution of the video to be displayed on the virtual canvas is 7680 × 1080, the sub-video files of the video to be displayed divided on the virtual canvas are respectively displayed on the 4 display areas, and the positions of the sub-video files displayed on the 4 display areas relative to the virtual canvas when displayed on the virtual canvas are respectively (0,0), (1920,0), (3840,0) and (5760, 0);
if the display resolution of the video to be displayed on the virtual canvas is 1920 × 4320, the sub video files of the video to be displayed divided on the virtual canvas are respectively displayed on the 4 display areas, and the positions of the sub video files displayed on the 4 display areas relative to the virtual canvas when displayed on the virtual canvas are respectively (0,0), (0,1080), (0,2160) and (0,3240).
And step S3, filling the sub video files into each display area according to the position of each display area and the display image in each display area.
Optionally, the step S3 includes:
and obtaining the sub-video file according to the offset address of the sub-video file, respectively reading each frame of image of the sub-video file according to the timestamp, and filling each frame of image of the sub-video file into each display area according to the position of each display area and the display image in each display area.
Optionally, the method of the present invention further comprises:
and creating N output buffer areas according to actual needs, storing the multi-frame output images for buffering, putting the output buffer areas which are not actually output into the output buffer after each frame of image is processed, waiting for the SOC to output the images, and emptying the buffer areas after the output is finished.
Example two:
referring to fig. 2, fig. 2 shows a display system of a video player based on a general SOC according to the present invention, including:
the segmentation unit is used for receiving a video file to be displayed and segmenting the video file to be displayed to obtain a plurality of sub video files;
the computing unit is used for computing the positions of the plurality of sub-video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation, wherein the coordinate conversion relation is a mapping relation between the positions of the images of the video files to be displayed when the video files are displayed on the virtual canvas and the positions of the images on the physical canvas;
and the display unit is used for filling the sub-video files into the display areas according to the positions of the display areas and the display images in the display areas.
In specific implementation, the system may be composed of hardware such as a primary core board, a backplane, and a partition board, as shown in fig. 3, where fig. 3 is a hardware schematic diagram of a display system of a video player based on a general SOC;
the main core board is designed by adopting a universal SOC (system on chip) with HDMI2.0 output (the output resolution is 3840 × 2160), and is integrated with a storage chip with a large space for storing the video files uploaded by customers. And the video file is output and displayed through the HDMI2.0 after SOC decoding. HDMI2.0 is copied to the partition plate through the bottom plate, and partition plates 1-4 finish the partition output of the HDMI2.0 in the upper left quarter, the upper right quarter, the lower left quarter and the lower right quarter respectively.
It should be noted that a High Definition Multimedia Interface (HDMI [1]) is a fully digital video and audio transmission Interface, and can transmit uncompressed audio and video signals, the maximum bandwidth capacity of HDMI2.0 is 18Gbps, and HDMI2.1 can operate at a maximum rate of 48 Gbps. HDMI2.1 is able to transmit more information, with the transmitted pictures having higher resolution and higher frame rate.
System on Chip, called SoC for short, is also a System on Chip. In a narrow sense, it is the chip integration of the core of the information system; the system-on-chip can be composed of a system-on-chip control logic module, a microprocessor/microcontroller CPU core module, a digital signal processor DSP module, an embedded memory module, an interface module for communicating with the outside, an analog front-end module containing ADC/DAC, a power supply and power consumption management module, a radio frequency front-end module, user defined logic (which can be realized by FPGA or ASIC) and a micro-electro-mechanical module for a wireless SoC, and more importantly, a SoC chip is embedded with a basic software (RDOS or COS and other application software) module or loadable user software and the like.
Specifically, one of the coordinate conversion relations between the virtual canvas and the HDMI2.0 canvas is designed in the main core board, and the concatenation is 2 × 2 concatenation, at this time, the virtual canvas on the control software is consistent with the canvas of the HDMI2.0, the resolution is 3840 × 2160, and only ordinary 2K or 4K videos or pictures can be played under this condition. The HDMI2.0 canvas is the above physical canvas, and is not distinguished.
The second coordinate conversion relationship between the virtual canvas and the HDMI2.0 canvas is designed on the primary core board and is spliced to 1 × 4, please refer to fig. 4, fig. 4 shows a mapping schematic diagram of the virtual canvas and the HDMI2.0 canvas of the present invention, in fig. 4, the resolution of the virtual canvas on the control software is 7680 × 1080, and the resolution of the canvas of the HDMI2.0 is 3840 × 2160, so that conversion is required to be performed according to the following manner: the HDMI2.0 canvas is divided into four parts which are 4 equal parts, namely A, B, C, D, the coordinates of the upper left corner of each part are (0,0), (1920,0), (3840,0), (5760,0) in sequence, and the width and the height are 1920 and 1080. And calculating areas required to be displayed and covered in A, B, C, D four areas of the image and the position and the size of each area to be displayed according to the set coordinate conversion relation, cutting a plurality of parts of the image according to the requirements, and filling the parts to be displayed in each area respectively.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an image filled into each area and displayed according to a coordinate transformation relationship, where the output is HDMI2.0, the output image is not stretched or deformed, and no additional cost is added by performing image transformation according to the preset coordinate transformation relationship.
Fig. 6 shows a mapping diagram of the virtual canvas and the HDMI2.0 canvas according to the present invention, where the resolution of the virtual canvas on the control software is 1920 × 4320, and the resolution of the HDMI2.0 canvas is 3840 × 2160, so that conversion is required, and the conversion is performed in the following manner: the HDMI2.0 canvas is divided into four parts which are 4 equal parts, namely A, B, C, D, the coordinates of the upper left corner of each part are (0,0), (0,1080), (0,2160) and (0,3240) in sequence, and the width and the height are 1920 and 1080.
And then, according to an actual splicing mode, adding and configuring the virtual canvas on the control software, and simultaneously setting the main control board to adopt a certain coordinate conversion mode.
And then, the control software issues a windowing instruction to the main core board, namely, a certain video file is displayed at a specified position and size on the spliced screen, and the position and size are calculated according to the virtual canvas on the control software.
After the primary core board receives the windowing command, it is determined whether the resolution of the video file to be windowed is 7680 x 1080 or 1920 x 4320. If yes, finding out the corresponding 4 sub-files according to the offset address of each sub-file, respectively reading each frame in the 4 sub-video files according to the time stamp, and pasting four images with the same time stamp to A, B, C, D four areas of the HDMI2.0 canvas of the main core board according to the set coordinate conversion mode to be fully displayed.
If the resolution of the video file to be windowed is a common 2K or 4K video file, each frame is analyzed, the area of the image which needs to be displayed and covered in A, B, C, D four areas and the position and the size of each area display are calculated according to the set coordinate conversion relation, and a plurality of parts of the image are cut according to the needs and are respectively filled in the part to be displayed in each area.
After each frame of image is processed, the main core board is placed in a cache area of which the output cache is not actually output, the SOC waits for outputting the image, and the cache area is emptied after the output is finished.
Example three:
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and in this application, an electronic device 100 for implementing a display method of a video player based on a general SOC according to the present invention according to the embodiment of the present application may be described by using the schematic diagram shown in fig. 7.
As shown in fig. 7, an electronic device 100 includes one or more processors 102, one or more memory devices 104, and the like, which are interconnected via a bus system and/or other type of connection mechanism (not shown). It should be noted that the components and structure of the electronic device 100 shown in fig. 7 are only exemplary and not limiting, and the electronic device may have some of the components shown in fig. 7 and may have other components and structures not shown in fig. 3 as needed.
The processor 102 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.
The storage 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. On which one or more computer program instructions may be stored that may be executed by processor 102 to implement the functions of the embodiments of the application (as implemented by the processor) described below and/or other desired functions. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The invention also provides a computer storage medium on which a computer program is stored, in which the method of the invention, if implemented in the form of software functional units and sold or used as a stand-alone product, can be stored. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer storage medium and used by a processor to implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer storage media may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer storage media that does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (10)

1. A display method of a video player based on a universal SOC is characterized by comprising the following steps:
receiving a video file to be displayed, and segmenting the video file to be displayed to obtain a plurality of sub video files;
calculating the positions of the plurality of sub video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation; the coordinate conversion relation is a mapping relation between the position of an image when the video file to be displayed is displayed on the virtual canvas and the position of the image on the physical canvas;
and filling the sub-video file into each display area according to the position of each display area and the display image in each display area.
2. The display method of a universal SOC-based video player according to claim 1, wherein the calculating the positions of the sub-video files in the respective display areas on the physical canvas according to the preset coordinate transformation relationship and before the step of displaying the images in the respective display areas comprises:
creating a coordinate transformation relationship, the creating a coordinate transformation relationship comprising:
creating a virtual canvas, segmenting the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and carrying out coordinate matching on the position of the segmented image relative to the virtual canvas and the position of the video to be displayed on the physical canvas.
3. The display method of the video player based on the universal SOC according to claim 2, wherein the dividing the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and the coordinate matching of the position of the divided image relative to the virtual canvas with the position of the video to be displayed on the physical canvas comprises:
and if the display resolution of the video to be displayed on the virtual canvas is 3840 × 2160, directly outputting the video to be displayed without conversion, wherein each display area, the display position and the display image of each display area are consistent with the display of the video to be displayed on the virtual canvas.
4. The display method of the video player based on the universal SOC according to claim 2, wherein the dividing the image to be displayed according to the display resolution of the video to be displayed on the virtual canvas, and the coordinate matching of the position of the divided image relative to the virtual canvas with the position of the video to be displayed on the physical canvas comprises:
if the display resolution of the video to be displayed on the virtual canvas is 7680 × 1080, the sub-video files of the video to be displayed divided on the virtual canvas are respectively displayed on the 4 display areas, and the positions of the sub-video files displayed on the 4 display areas relative to the virtual canvas when displayed on the virtual canvas are respectively (0,0), (1920,0), (3840,0) and (5760, 0);
or, if the display resolution of the video to be displayed on the virtual canvas is 1920 × 4320, the sub video files of the video to be displayed divided on the virtual canvas are respectively displayed on the 4 display areas, and the positions of the sub video files displayed on the 4 display areas relative to the virtual canvas when displayed on the virtual canvas are (0,0), (0,1080), (0,2160) and (0,3240), respectively.
5. The display method of a video player based on a universal SOC according to claim 1, wherein the dividing the video file to be displayed to obtain a plurality of sub-video files comprises:
and respectively converting, segmenting and synthesizing the video file to be displayed.
6. The display method of a video player based on a universal SOC according to claim 5, wherein the converting, dividing and synthesizing the video files to be displayed respectively comprises:
reading each frame of image in a video file to be displayed, and adding timestamp information into each frame of image;
cutting each frame of image according to the resolution information of the video file to be displayed to obtain a plurality of sub-files, and acquiring offset addresses of the sub-files;
and combining the cut images into a combined video image according to the time stamp information, and adding offset addresses of the sub files and the resolution of the video file to be displayed in the combined video image.
7. The display method of a universal SOC-based video player according to claim 1, wherein the filling the sub-video files into each display area according to the position of each display area and the display image in each display area comprises:
and obtaining the sub-video file according to the offset address of the sub-video file, respectively reading each frame of image of the sub-video file according to the timestamp, and filling each frame of image of the sub-video file into each display area according to the position of each display area and the display image in each display area.
8. A display system of a video player based on a universal SOC, comprising:
the device comprises a segmentation unit, a display unit and a display unit, wherein the segmentation unit is used for receiving a video file to be displayed and segmenting the video file to be displayed to obtain a plurality of sub video files;
the computing unit is used for computing the positions of the plurality of sub-video files in each display area on the physical canvas and the display images in each display area according to a preset coordinate conversion relation, wherein the coordinate conversion relation is a mapping relation between the positions of the images of the video files to be displayed when the video files are displayed on the virtual canvas and the positions of the images on the physical canvas;
and the display unit is used for filling the sub-video files into the display areas according to the positions of the display areas and the display images in the display areas.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the display method of the universal SOC based video player of any of claims 1-7.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the display method of the general-purpose SOC-based video player according to any one of claims 1 to 7.
CN202210306892.2A 2022-03-25 2022-03-25 Display method and system of video player based on universal SOC Pending CN114979761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210306892.2A CN114979761A (en) 2022-03-25 2022-03-25 Display method and system of video player based on universal SOC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210306892.2A CN114979761A (en) 2022-03-25 2022-03-25 Display method and system of video player based on universal SOC

Publications (1)

Publication Number Publication Date
CN114979761A true CN114979761A (en) 2022-08-30

Family

ID=82975771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210306892.2A Pending CN114979761A (en) 2022-03-25 2022-03-25 Display method and system of video player based on universal SOC

Country Status (1)

Country Link
CN (1) CN114979761A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117219003A (en) * 2023-11-09 2023-12-12 深圳市东陆科技有限公司 Content display method and device of LED display module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587431A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 Method for realizing multi-screen playing video
CN104918137A (en) * 2015-06-03 2015-09-16 宁波Gqy视讯股份有限公司 Method enabling spliced screen system to play videos
CN106603564A (en) * 2016-12-30 2017-04-26 上海寰视网络科技有限公司 Unlimited high-resolution image and video playing methods and systems
US20180247672A1 (en) * 2017-02-24 2018-08-30 Entry Point Vr, Inc. Bundling Separate Video Files to Support a Controllable End-User Viewing Experience with Frame-Level Synchronization
CN108989869A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Video pictures playback method, device, equipment and computer readable storage medium
CN111459430A (en) * 2020-03-04 2020-07-28 深圳创维-Rgb电子有限公司 Video image splicing method, storage medium and display device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587431A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 Method for realizing multi-screen playing video
CN104918137A (en) * 2015-06-03 2015-09-16 宁波Gqy视讯股份有限公司 Method enabling spliced screen system to play videos
CN106603564A (en) * 2016-12-30 2017-04-26 上海寰视网络科技有限公司 Unlimited high-resolution image and video playing methods and systems
US20180247672A1 (en) * 2017-02-24 2018-08-30 Entry Point Vr, Inc. Bundling Separate Video Files to Support a Controllable End-User Viewing Experience with Frame-Level Synchronization
CN108989869A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Video pictures playback method, device, equipment and computer readable storage medium
CN111459430A (en) * 2020-03-04 2020-07-28 深圳创维-Rgb电子有限公司 Video image splicing method, storage medium and display device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117219003A (en) * 2023-11-09 2023-12-12 深圳市东陆科技有限公司 Content display method and device of LED display module
CN117219003B (en) * 2023-11-09 2024-03-12 深圳市东陆科技有限公司 Content display method and device of LED display module

Similar Documents

Publication Publication Date Title
US10031712B2 (en) System and method for display mirroring
US8401339B1 (en) Apparatus for partitioning and processing a digital image using two or more defined regions
CN211207311U (en) One-screen multi-display technology based on display
US20170372452A1 (en) Image rotation method and apparatus
CN114979761A (en) Display method and system of video player based on universal SOC
CN112804410A (en) Multi-display-screen synchronous display method and device, video processing equipment and storage medium
CN114710702A (en) Video playing method and device
CN212137804U (en) Point-to-point video splicing system
TWI358044B (en) Image revealing method
CN115955589A (en) Optimized video splicing method, system and storage medium based on MIPI
US9451181B2 (en) Optimized algorithm for construction of composite video from a set of discrete video sources
CN210466363U (en) Image infinite cutting and splicing technology based on display
WO2016184066A1 (en) Multi-media information outputting method, device and storage medium
CN114339139A (en) Pre-monitoring frequency processing method, pre-monitoring frequency processing card and card insertion type video processor
CN202362766U (en) Liquid crystal splicing wall applicable to synchronously displaying multipath image data
CN202205442U (en) Multi-picture LCD control circuit
EP2919227A1 (en) Display connector with 4K image resolution
KR20040082601A (en) Memory access control apparatus
CN105719616B (en) A kind of vertical screen drive system and vertical screen driving method
CN101714072B (en) For the treatment of the method and apparatus of the pixel planes of expression visual information
CN117522879A (en) Method for processing image, video processing device, apparatus and storage medium
CN113281983B (en) Control method and system for picture display of smart watch, smart watch and medium
US11769463B1 (en) Video streaming transmission system and transmitter device
CN114253500A (en) Serial port screen device and method capable of supporting high-definition video playing
CN116320247A (en) Real-time video scaling method and device based on ZYNQ and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220830