Display device, video playing method and apparatus

By extending the display time of the last image frame during video switching on a smart TV and storing the image frame of the next video to be played in the storage module, seamless display of video switching on the smart TV is achieved, solving the black screen problem and improving the user experience.

CN116156238BActive Publication Date: 2025-10-28HISENSE VISUAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111386418.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2025-10-28
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

When switching between different videos, smart TVs may experience a black screen due to differences in video format or resolution, affecting the user's viewing experience.

Method used

By extending the display end time of the last image frame of the current video to be played, and setting the display end time of the last image frame of the current video to be played to the moment when the first image frame group of the next video to be played is stored in the storage module, seamless display of image frames is achieved, avoiding black screen phenomena.

Benefits of technology

It achieves seamless display during video switching, improves the user's viewing experience, and solves the black screen problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156238B_ABST
    Figure CN116156238B_ABST
Patent Text Reader

Abstract

This application provides a display device, video playback method, and apparatus, including a controller and a display screen: The controller is configured to, in response to a received playback command, acquire the source file of the video to be played, parse the source file to obtain the video format, decode the source file, and sequentially send the decoded image frame groups to a storage module, wherein each image frame group includes a first preset number of image frames; and sequentially display the image frames in each image frame group according to the video format. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. This invention, by extending the display end time of the last image frame of the current video to be played, achieves seamless display of image frames, solves the problem of black screens when switching videos, and improves the user's viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of video playback technology. More specifically, it relates to a display device, a video playback method, and an apparatus. Background Technology

[0002] With the development of technology, smart TVs have become an indispensable home appliance in every household, adding a lot of fun to people's lives.

[0003] Currently, as smart TVs become increasingly versatile, they can meet users' diverse customized needs for video playback. For example, smart TVs offer users the ability to specify the playback order of videos, allowing them to set a special playback sequence based on their viewing preferences.

[0004] However, when smart TVs play videos in a specified order, black screens may occur during video transitions due to differences in video formats or resolutions, affecting the user's viewing experience. Summary of the Invention

[0005] The exemplary embodiments of this application provide a display device, video playback method, and apparatus, which solve the problem of black screen when the display device switches videos in the related art, and improve the user's viewing experience.

[0006] In a first aspect, embodiments of this application provide a display device, including:

[0007] The controller is configured as follows:

[0008] In response to a received playback command, the source file of the video to be played is obtained, the source file is parsed to obtain the video format, the source file is decoded, and the decoded image frame groups are sequentially sent to the storage module, wherein the image frame group includes a first preset number of image frames;

[0009] According to the video format, the image frames in each image frame group are displayed sequentially. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module.

[0010] A display connected to the controller is used to display image frames of the video to be played.

[0011] In one possible design, the controller is configured as follows:

[0012] After executing the step of sequentially displaying the image frames in each image frame group according to the video format, the source file of the next video to be played is obtained according to the playback instruction, the source file of the next video to be played is parsed to obtain the video format of the next video to be played, the source file of the next video to be played is decoded, and the image frame groups of the decoded next video to be played are sequentially sent to the storage module, wherein the image frame group of the next video to be played includes a first preset number of image frames;

[0013] According to the video format of the next video to be played, the image frames in each image frame group of the next video to be played are displayed sequentially.

[0014] In one possible design, the controller is configured as follows:

[0015] After the decoded image frame groups are sent to the storage module in sequence, all image frames in the storage module are displayed in sequence according to the video format. If the displayed image frame is the last image frame of the video to be played, the display time of the last image frame is set according to the preset delay time period.

[0016] Accordingly, the controller is also configured to:

[0017] After the process of sequentially sending the decoded image frame groups of the next video to be played to the storage module, the display time of all image frames of the next video to be played is modified according to the preset delay time period, and the image frames in each image frame group of the next video to be played are displayed sequentially according to the video format of the next video to be played and the modified display time.

[0018] In one possible design, the controller is configured as follows:

[0019] After parsing the source file to obtain the video format, the display area is determined based on the video format;

[0020] Accordingly, the controller is also configured to:

[0021] After sequentially sending the decoded image frame groups to the storage module, the image frames in each image frame group are sequentially displayed in the display area according to the video format.

[0022] Accordingly, the controller is also configured to:

[0023] After the process of sequentially sending the image frame groups of the decoded next video to be played to the storage module, the image frames of each image frame group of the next video to be played are sequentially displayed in the display area according to the video format of the next video to be played.

[0024] In one possible design, the controller is configured as follows:

[0025] After parsing the source file of the next video to be played to obtain the video format of the next video to be played, if the resolution of the video to be played or the video format of the next video to be played is greater than a preset limit, then the next video to be played is decoded, and the decoded image frame groups are sent to the storage module in sequence, wherein the image frame group includes a second preset number of image frames, and the second preset number of frames is less than the first preset number of frames.

[0026] In one possible design, the controller is configured as follows:

[0027] After executing the response to the received playback command, a playback mode and a playlist are obtained according to the playback command, wherein the playback mode is either continuous playback mode or loop playback mode.

[0028] In one possible design, the controller is configured as follows:

[0029] After executing the step of sequentially displaying the image frames in each image frame group of the next video to be played according to the video format of the next video to be played, if the playback mode is continuous playback mode and the next video is the last video in the playlist, then the memory space occupied by the storage module is released.

[0030] If the playback mode is a loop playback mode, and the next video is the last video in the playlist, then the memory space occupied by the storage module is reserved.

[0031] In one possible design, the video format includes at least one of resolution, frame rate, video format, and rotation angle.

[0032] Secondly, embodiments of this application provide a video playback method, applied to a controller of a display device, comprising:

[0033] In response to a received playback command, the source file of the video to be played is obtained, the source file is parsed to obtain the video format, the source file is decoded, and the decoded image frame groups are sequentially sent to the storage module, wherein the image frame group includes a first preset number of image frames;

[0034] According to the video format, the image frames in each image frame group are displayed sequentially. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module.

[0035] Thirdly, embodiments of this application provide a video playback device, including:

[0036] The acquisition module is used to respond to the received playback command, acquire the source file of the video to be played, parse the source file to obtain the video format, decode the source file, and send the decoded image frame groups to the storage module in sequence, wherein the image frame group includes a first preset number of image frames.

[0037] The display module is used to sequentially display the image frames in each image frame group according to the video format. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module.

[0038] The display device, video playback method, and apparatus provided in this application extend the display end time of the last image frame of the current video to be played, set the display end time of the last image frame of the current video to be played to the moment when the first image frame group of the next video to be played is stored in the storage module, and set the two videos to be played to store the image frames to be displayed in the same storage module, thereby achieving seamless display of image frames, solving the problem of black screen when switching videos due to no displayed image frames, and improving the user's viewing experience. Attached Figure Description

[0039] To more clearly illustrate the implementation methods in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0040] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device according to one or more embodiments of this application;

[0041] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown;

[0042] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown;

[0043] Figure 4 This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of this application;

[0044] Figure 5 This is a schematic diagram showing the icon control interface of an application in a display device 200 according to one or more embodiments of this application;

[0045] Figure 6 This is a schematic diagram of the video playback process on the display device;

[0046] Figure 7 This is a diagram illustrating the black screen effect of a display device.

[0047] Figure 8 A flowchart illustrating the video playback method provided in this embodiment of the invention. Figure 1 ;

[0048] Figure 9 This is a schematic diagram of video playback timing provided in an embodiment of the present invention;

[0049] Figure 10 This is a diagram illustrating the seamless video switching effect on the display device.

[0050] Figure 11 A flowchart illustrating the video playback method provided in this embodiment of the invention. Figure 2 ;

[0051] Figure 12 A flowchart illustrating the video playback method provided in this embodiment of the invention. Figure 3 ;

[0052] Figure 13 This is a schematic diagram of the structure of a video playback device provided in an embodiment of the present invention. Detailed Implementation

[0053] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0054] Based on the exemplary embodiments described in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the appended claims. Furthermore, although the disclosures in this application are presented by way of one or more exemplary examples, it should be understood that each aspect of these disclosures can constitute a complete implementation on its own. It should be noted that the brief descriptions of terminology in this application are merely for the convenience of understanding the embodiments described below, and are not intended to limit the implementation of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0055] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device according to one or more embodiments of this application, such as... Figure 1 As shown, a user can operate the display device 200 via a mobile terminal 300 and a control device 100. The control device 100 can be a remote control, and communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user commands through buttons on the remote control, voice input, control panel input, etc., to control the display device 200. In some embodiments, a mobile terminal, tablet computer, computer, laptop computer, and other smart devices can also be used to control the display device 200.

[0056] In some embodiments, the mobile terminal 300 can install software applications with the display device 200 to achieve connection and communication via network communication protocols, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronous display. The display device 200 also communicates with the server 400 via various communication methods. The display device 200 can communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 can provide various content and interactive features to the display device 200. The display device 200 can be a liquid crystal display, an OLED display, or a projection display device. In addition to providing broadcast television reception functions, the display device 200 can also be equipped with a smart network television function that provides computer support.

[0057] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input commands and convert them into commands that the display device 200 can recognize and respond to, acting as an intermediary for interaction between the user and the display device 200. The communication interface 130 is used for external communication and includes at least one of a Wi-Fi chip, a Bluetooth module, NFC, or a replacement module. The user input / output interface 140 includes at least one of a microphone, a touchpad, a sensor, buttons, or a replacement module.

[0058] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown. For example... Figure 3 The display device 200 shown includes at least one of the following: a tuner / demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to nth interface for input / output. The display 260 can be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and can also be a projection device and a projection screen. The tuner / demodulator 210 receives broadcast television signals via wired or wireless reception and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. The detector 230 is used to collect signals from the external environment or signals interacting with the external environment. The controller 250 and the tuner / demodulator 210 can be located in different separate devices; that is, the tuner / demodulator 210 can also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0059] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200. The user can input user commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, the user can input user commands by inputting specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.

[0060] In some embodiments, a "user interface" is the medium through which an application or operating system interacts and exchanges information with a user, converting information between its internal form and a form acceptable to the user. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include at least one of the following visual interface elements: icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0061] Figure 4 This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of this application, such as... Figure 4 As shown, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Layer"), and the kernel layer. The kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, Wi-Fi driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver.

[0062] Figure 5 This is a schematic diagram showing the icon control interface of an application in a display device 200 according to one or more embodiments of this application, such as... Figure 5 As shown, the application layer contains at least one application whose corresponding icon control can be displayed on the monitor, such as: live TV application icon control, video-on-demand application icon control, media center application icon control, application center icon control, game application icon control, etc. The live TV application can provide live TV from different signal sources. The video-on-demand application can provide video from different storage sources. Unlike the live TV application, video-on-demand provides video display from certain storage sources. The media center application can provide various multimedia content playback applications. The application center can store various applications. The video playback application can provide video display from video sources locally stored on the display device 200, as well as video display from video sources pointed to by network addresses. Users can set video playlists and playback modes through the video playback application, enabling the video playback application to provide the function of continuously displaying multiple videos and looping multiple videos.

[0063] For example, Figure 6 This diagram illustrates the video playback process of a display device. Upon receiving a video playback command, the device's controller obtains the source file of the video to be played based on the address of the video source indicated in the command. A player is created to parse the source file and determine the video format. A decoder is then created based on the video format to decode the video, sequentially obtaining multiple image frame groups. Storage space is allocated in the controller's storage for the decoded image frames, and these image frame groups are sequentially transferred to the storage space for storage. The corresponding display area is determined based on the video format, and a video output module is created accordingly. The video output module then displays each frame sequentially in the display area based on the image frame groups stored in the storage space.

[0064] For example, Figure 7 This is a diagram illustrating the black screen effect on a display device. When the video playback command is to play multiple videos consecutively according to a video playlist, during the switching between two videos, when playing the next video to be played, the display screen does not show image frames because the player, decoder, storage space, display area, and video output module for the next video to be played are being recreated. That is, when the video to be played ends and the next video to be played is switched, the display device will display a black screen, affecting the display effect of continuously playing multiple videos.

[0065] To address the black screen issue that occurs when continuously playing videos in related technologies, this application provides a display device, video playback method, and apparatus. By extending the display end time of the last image frame of the currently playing video, setting the display end time of the last image frame of the currently playing video to the moment when the first image frame group of the next video to be played is stored in the storage module, and setting the two videos to be played to store the image frames to be displayed in the same storage module, seamless display of image frames is achieved. This solves the problem of black screen due to no displayed image frames when switching videos, improves the video playback effect of the display device, and enhances the user's viewing experience.

[0066] The technical solutions of this application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0067] Figure 8 A flowchart illustrating the video playback method provided in this embodiment of the invention. Figure 1 The execution entity in this embodiment can be Figure 3 The controller of the display device in the illustrated embodiment. Figure 8As shown, the method includes:

[0068] S801: After receiving the playback command, the controller responds to the received playback command by obtaining the source file of the video to be played, parsing the source file to obtain the video format, decoding the source file after obtaining the video format, and sequentially sending the decoded image frame groups to the storage module, wherein the image frame group includes a first preset number of image frames.

[0069] For example, a user sets the video playback order and mode through a video playback application, which then generates corresponding playback instructions. Upon receiving the playback instructions, the controller parses them to obtain a playlist containing the video playback order and the video playback mode. For example, the controller obtains the source file of the video to be played based on the video playback order and address set in the playlist, initializes the player, and uses the player to parse the source file to obtain the video format of the video to be played. Specifically, the video format includes the video resolution, frame rate, video format, and rotation angle.

[0070] In this embodiment of the invention, after the player parses the video to be played to obtain the video format, a corresponding decoder is generated according to the video format. A storage module is created to store image frame groups, and a video output module is created to play the video to be played according to the video format. The video output module is used to play the image frames to be played in the specified storage module according to the set video format. By parsing the source file of the video to be played using the decoder, multiple image frame groups are obtained sequentially. Specifically, after obtaining the first image frame group after decoding the source file of the video to be played using the decoder, the first image frame group is stored in the storage module, and the video output module is used to play each image frame in the first image frame sequentially according to the set video format.

[0071] S802: The controller displays the image frames in each image frame group sequentially according to the video format. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module.

[0072] For example, the video output module is used to play each image frame in the first image frame group sequentially according to the set video format. While playing each image frame in the first image frame group, the decoder obtains the second image frame group after decoding the source file of the video to be played, and continues to execute the step of storing the second image frame group to the storage module. The video output module is used to play each image frame in the second image frame group sequentially according to the set video format.

[0073] In this embodiment of the invention, to avoid the problem of a black screen when displaying the last image frame of the last image frame group, the display time of the last image frame can be extended so that the last image frame is displayed when switching between two videos. Figure 9 This is a schematic diagram of video playback timing provided in an embodiment of the present invention, such as... Figure 9 As shown, when the video output module plays the last image frame in the last image frame group according to the video format, the display end time of the last image frame is set to the moment when the first image frame group of the next video to be played is stored in the storage module. That is, when the first image frame group of the next video to be played is sent to the same storage module for storage, the display of the last image frame in the last image frame group of the current video to be played ends. When the display of the last image frame in the last image frame group of the current video to be played ends, the video output module sequentially displays each image frame in the first image frame group of the next video to be played stored in the storage module, thus achieving seamless switching of video playback. For example, Figure 10 This is a diagram illustrating the seamless video switching effect on display devices. (Example) Figure 10 As shown, by extending the display time of the last image frame of the video to be played, the last image frame of the video to be played is displayed during the transition from the video to the next video to be played, thus solving the black screen problem.

[0074] In this embodiment of the invention, by extending the display end time of the last image frame of the current video to be played, setting the display end time of the last image frame of the current video to be played as the time when the first image frame group of the next video to be played is stored in the storage module, and setting the two videos to be played to store the image frames to be displayed in the same storage module, seamless display of image frames is achieved, solving the problem of black screen when switching videos due to no displayed image frames, and improving the user's viewing experience.

[0075] Figure 11 A flowchart illustrating the video playback method provided in this embodiment of the invention. Figure 2 .exist Figure 8 Based on the provided embodiments, another video playback method provided by the present invention includes the following steps:

[0076] S1101: After receiving the playback command, the controller responds to the received playback command by obtaining the source file of the video to be played, parsing the source file to obtain the video format, decoding the source file after obtaining the video format, and sequentially sending the decoded image frame groups to the storage module, wherein the image frame group includes a first preset number of image frames.

[0077] This step and Figure 8 The method and effect implemented by S801 in the embodiment are the same, and will not be described again here.

[0078] S1102: The controller displays all image frames in the storage module sequentially according to the video format. If the displayed image frame is the last image frame of the video to be played, the display time of the last image frame is set according to the preset delay time period.

[0079] For example, by delaying the display of the last image frame of the video to be played, the black screen problem can be avoided during the transition from one video to the next. Specifically, a preset delay period of 30 microseconds can be set, that is, modifying the display time of the last image frame of the video to be played to 30 microseconds to reserve time for displaying the next video to be played.

[0080] S1103: The controller obtains the source file of the next video to be played according to the playback instruction, parses the source file of the next video to be played to obtain the video format of the next video to be played, decodes the source file of the next video to be played, and sends the image frame groups of the decoded next video to be played to the storage module in sequence, wherein the image frame group of the next video to be played includes a first preset number of image frames.

[0081] In this embodiment of the invention, after obtaining the image frame groups of the next video to be played, the image frame groups of the next video to be played are stored sequentially in the storage module corresponding to the video to be played. This allows the video output module to retrieve the image frames to be displayed from the common storage module according to the video format of the next video to be played, and to display all the image frames sequentially according to the time set by the video format of the next video to be played. This saves the time of creating a storage module to store the next video to be played. By using the same storage module to store the image frames to be displayed, the purpose of seamlessly switching between two video image frames is achieved.

[0082] S1104: The controller modifies the display time of all image frames of the next video to be played according to the preset delay time period, and displays the image frames in each image frame group of the next video to be played in sequence according to the video format of the next video to be played and the modified display time.

[0083] In this embodiment of the invention, to avoid the playback effect of the next video being affected by the delayed end of the last image frame of the video to be played, i.e., if the image frames of the next video to be played are played sequentially according to the original display time, the last image frame of the video to be played and the first image frame of the next video to be played may be displayed at the same time. Therefore, it is necessary to modify the display time of all image frames of the next video to be played according to a preset delay period, so that the video output module displays the image frames of the next video to be played sequentially according to the video format of the next video to be played and the modified display time.

[0084] For example, when the video format of the next video to be played contains a rotation angle, when displaying the image frames in each image frame group of the next video to be played according to the video output module corresponding to the current video to be played, it is necessary to process all displayed images according to the rotation angle contained in the video format to avoid playback failure due to the difference between the played video format and the actual video format.

[0085] In this embodiment of the invention, the display time of the last image frame is set according to a preset delay time period, and the image frames to be displayed in the two videos to be played are stored in the same storage module, which realizes the seamless display of image frames, solves the problem of black screen when switching videos due to no image frames being displayed, and improves the user's viewing experience.

[0086] Figure 12 A flowchart illustrating the video playback method provided in this embodiment of the invention. Figure 3 .exist Figure 8 Based on the provided embodiments, another video playback method provided by the present invention includes the following steps:

[0087] S1201: The controller responds to the received playback command, obtains the source file of the video to be played, initializes the player, uses the player to parse the source file to obtain the video format, creates a decoder according to the video format, decodes the source file according to the decoder, and sends the decoded image frame groups to the storage module in sequence.

[0088] This step and Figure 8 The method and effect implemented by S801 in the embodiment are the same, and will not be described again here.

[0089] S1202: The controller determines the display area according to the video format, and displays the image frames in each image frame group in the display area in sequence according to the video format.

[0090] In this embodiment of the invention, the display area of ​​the video to be played on the display screen corresponds to the video format. Therefore, after obtaining the video format of the current video to be played, the display area can be determined, and the video output module can be further configured to sequentially display image frames from the storage module in the display area according to the video format.

[0091] S1203: The controller obtains the source file of the next video to be played according to the playback instruction, initializes the player, and uses the player to parse the source file of the next video to be played to obtain the format of the next video to be played.

[0092] This step and Figure 11 The method and effect performed in S1103 of the embodiment are the same, and will not be described again here.

[0093] S1204: If the controller determines that the resolution of the video format of the video to be played or the next video to be played is greater than a preset limit, a new decoder is created, and the new decoder is used to decode the next video to be played to obtain multiple image frame groups in sequence. Each image frame group includes a second preset number of image frames, and the second preset number of frames is less than the first preset number of frames.

[0094] In this embodiment of the invention, if the controller determines that the resolution of the video format of the video to be played or the next video to be played is greater than a preset limit, that is, when the resolution of the video format of the video to be played or the next video to be played is high, the memory size occupied by the image frame group can be reduced by decreasing the number of image frames in the image frame group of the next video to be played. This avoids storage failure due to insufficient memory when the first image frame group after the next video is decoded is stored in the storage module. For example, the first preset number of frames is 12, and the second preset number of frames is 2, that is, each group of image frames of the video to be played contains 12 image frames, and each group of image frames of the next video to be played contains 2 image frames. In this embodiment of the invention, when the resolution of the video format of the video to be played or the next video to be played is high, when decoding the source file of the next video to be played, the decoding quantity of the decoder is set to 2, that is, 2 image frames are obtained each time, and the 2 image frames are stored as a group in the storage module.

[0095] S1205: The controller will send the decoded image frame groups of the next video to be played to the storage module in sequence, and display the image frames of each image frame group in the storage module in the display area in sequence according to the video format of the next video to be played.

[0096] For example, the next video to be played can be set to be displayed in the display area corresponding to the current video to be played. When playing videos continuously, this avoids screen flickering caused by changes in the display area.

[0097] In this embodiment of the invention, by adjusting the number of image frames in the image frame group of the next video to be played according to the video format of the video to be played or the next video to be played, the problem of storage failure due to insufficient memory when the first image frame group after the next video is decoded is stored in the storage module is avoided.

[0098] For example, the controller obtains the playback mode and playlist based on the playback command, where the playback mode is either continuous playback or loop playback. Specifically, after the next video to be played finishes playing, if the controller determines that the playback mode is continuous playback and the next video is the last video in the playlist, then the memory space occupied by the storage module is released; if the playback mode is loop playback and the next video is the last video in the playlist, then the memory space occupied by the storage module is retained. When the playback mode is loop playback, by retaining the memory resources currently occupied by the storage module, the function of the video output control module corresponding to the storage module is retained. That is, when playing videos in a loop, the same storage space can be reused to store the images to be displayed for all videos to be played, achieving the goal of seamless continuous video playback.

[0099] Figure 13 This is a schematic diagram of the structure of a video playback device provided in an embodiment of the present invention. Figure 13 As shown, the video playback device includes: an acquisition module 1301 and a display module 1302.

[0100] The acquisition module 1301 is used to respond to the received playback command, acquire the source file of the video to be played, parse the source file to obtain the video format, decode the source file, and send the decoded image frame groups to the storage module in sequence, wherein the image frame group includes a first preset number of image frames.

[0101] The display module 1302 is used to sequentially display the image frames in each image frame group according to the video format. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module.

[0102] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.

[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0104] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various different variations of embodiments suitable for specific application considerations.

Claims

1. A display device, characterized in that, include: The controller is configured as follows: In response to a received playback command, the source file of the video to be played is obtained, the source file is parsed to obtain the video format, the source file is decoded, and the decoded image frame groups are sequentially sent to the storage module, wherein the image frame group includes a first preset number of image frames; According to the video format, the image frames in each image frame group are displayed sequentially. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module. A display connected to the controller is used to display image frames of the video to be played; The controller is configured to: After executing the step of sequentially displaying the image frames in each image frame group according to the video format, the source file of the next video to be played is obtained according to the playback instruction, and the source file of the next video to be played is parsed to obtain the video format of the next video to be played. If the resolution of the next video to be played is greater than a preset limit, a new decoder is created, and the new decoder is used to decode the next video to be played. The decoded image frame groups are then sent to the storage module in sequence. The image frame groups include a second preset number of image frames, which is less than the first preset number. The image frame groups of the two videos to be played are stored in the same storage module.

2. The display device according to claim 1, characterized in that, The controller is configured to: After parsing the source file to obtain the video format, the display area is determined based on the video format; Accordingly, the controller is also configured to: After sequentially sending the decoded image frame groups to the storage module, the image frames in each image frame group are sequentially displayed in the display area according to the video format. Accordingly, the controller is also configured to: After the process of sequentially sending the image frame groups of the decoded next video to be played to the storage module, the image frames of the next video to be played are sequentially displayed in the display area according to the video format of the next video to be played.

3. The display device according to claim 1, characterized in that, The controller is configured to: After executing the response to the received playback command, a playback mode and a playlist are obtained according to the playback command, wherein the playback mode is either continuous playback mode or loop playback mode.

4. The display device according to claim 3, characterized in that, The controller is configured to: After executing the step of sequentially displaying the image frames in each image frame group of the next video to be played according to the video format of the next video to be played, if the playback mode is continuous playback mode and the next video to be played is the last video in the playlist, then the memory space occupied by the storage module is released. If the playback mode is a loop playback mode, and the next video to be played is the last video in the playlist, then the memory space occupied by the storage module is reserved.

5. The display device according to any one of claims 1 to 4, characterized in that, The video format includes at least one of resolution, frame rate, video format, and rotation angle.

6. A video playback method, characterized in that, Controllers used in display devices include: In response to a received playback command, the source file of the video to be played is obtained, the source file is parsed to obtain the video format, the source file is decoded, and the decoded image frame groups are sequentially sent to the storage module, wherein the image frame group includes a first preset number of image frames; According to the video format, the image frames in each image frame group are displayed sequentially. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module. After executing the step of sequentially displaying the image frames in each image frame group according to the video format, the source file of the next video to be played is obtained according to the playback instruction, and the source file of the next video to be played is parsed to obtain the video format of the next video to be played. If the resolution of the next video to be played is greater than a preset limit, a new decoder is created, and the new decoder is used to decode the next video to be played. The decoded image frame groups are then sent to the storage module in sequence. The image frame groups include a second preset number of image frames, which is less than the first preset number. The image frame groups of the two videos to be played are stored in the same storage module.

7. A video playback device, characterized in that, include: The acquisition module is used to respond to the received playback command, acquire the source file of the video to be played, parse the source file to obtain the video format, decode the source file, and send the decoded image frame groups to the storage module in sequence, wherein the image frame group includes a first preset number of image frames. The display module is used to sequentially display the image frames in each image frame group according to the video format. If the displayed image frame is the last image frame of the video to be played, the display end time of the last image frame is set to the time when the first image frame group of the next video to be played is stored in the storage module. The first image frame group of the next video to be played is the source file of the next video to be played that is decoded and sent to the storage module. After executing the step of sequentially displaying the image frames in each image frame group according to the video format, the source file of the next video to be played is obtained according to the playback instruction, and the source file of the next video to be played is parsed to obtain the video format of the next video to be played. If the resolution of the next video to be played is greater than a preset limit, a new decoder is created, and the new decoder is used to decode the next video to be played. The decoded image frame groups are then sent to the storage module in sequence. The image frame groups include a second preset number of image frames, which is less than the first preset number. The image frame groups of the two videos to be played are stored in the same storage module.

Citation Information

Patent Citations

  • Seamless video switching method

    CN105657524A

  • Video playing method and device, and set top box

    CN107948716A

  • Video playing method and device, video playing equipment and readable storage medium

    CN112954431A