CN110958490B - Method and device for playing video, storage medium and electronic equipment - Google Patents

Method and device for playing video, storage medium and electronic equipment Download PDF

Info

Publication number
CN110958490B
CN110958490B CN201911185316.1A CN201911185316A CN110958490B CN 110958490 B CN110958490 B CN 110958490B CN 201911185316 A CN201911185316 A CN 201911185316A CN 110958490 B CN110958490 B CN 110958490B
Authority
CN
China
Prior art keywords
refreshing
refresh
time
display
period
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.)
Active
Application number
CN201911185316.1A
Other languages
Chinese (zh)
Other versions
CN110958490A (en
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.)
Beijing Kaishida Technology Co ltd
Original Assignee
Beijing Kaishida 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 Beijing Kaishida Technology Co ltd filed Critical Beijing Kaishida Technology Co ltd
Priority to CN201911185316.1A priority Critical patent/CN110958490B/en
Publication of CN110958490A publication Critical patent/CN110958490A/en
Application granted granted Critical
Publication of CN110958490B publication Critical patent/CN110958490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04N21/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen

Landscapes

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

Abstract

The disclosure relates to a method and apparatus for playing a video, a storage medium, and an electronic device. The video is played by a plurality of displays, each display plays a part of a video picture, and the plurality of displays correspond to the plurality of display cards one to one. The method comprises the following steps: acquiring the actual refreshing time of any one of the plurality of display cards in the current refreshing cycle; acquiring the actual refreshing time of each display card in the plurality of display cards in the next refreshing period; respectively determining the target refreshing time of each display card in the next refreshing period according to the theoretical refreshing period, the actual refreshing time of the current refreshing period and the actual refreshing time of each display card in the next refreshing period; and controlling each display to play the corresponding part of the image frame of the corresponding display card at the target refreshing time of the next refreshing period. In the disclosure, the image frames played by each display are the image frames at the target refreshing time determined according to the theoretical refreshing period, and the playing quality of the spliced image is high.

Description

Method and device for playing video, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of image output technologies, and in particular, to a method and an apparatus for playing a video, a storage medium, and an electronic device.
Background
Currently, people have higher and higher requirements on the playing quality of watched videos, and the higher the frame rate and resolution of the videos, the better the video is. Because the picture displayed on the display is output by the display card, the effect of playing the video is different due to different refreshing frequencies of the display card. For example, if the refresh rate of the display is 60HZ, the interval time between each refresh is 16.6ms, i.e. the time interval between every two displayed frames is 16.6 ms.
However, the refresh interval time is only a theoretical value, and the actual refresh interval of the graphics card is not necessarily 16.6ms each time. In practice, due to the refresh jitter of the graphics card, there is a certain gap between the refresh intervals.
As people demand higher and higher resolution for viewing video, many large-scale applications require higher resolution (e.g., 16K or 32K). If the maximum resolution for a single machine to support decoding is low (e.g., 8K), multiple machines can be combined to form a player cluster to play the video at the same time. Each machine within the cluster is responsible for playing a portion of the video frame. Such a process does address the need to play high resolution video. However, sometimes, the frames played by multiple machines at the same time are not the same frame, which causes the phenomenon of visual asynchrony between the parts of the frames.
Disclosure of Invention
The invention aims to provide an accurate and reliable method and device for playing video, a storage medium and an electronic device.
In order to achieve the above object, the present disclosure provides a method for playing a video, the video being played by a plurality of displays, each display playing a part of a picture of the video, the plurality of displays corresponding to a plurality of display cards one-to-one, the method comprising:
acquiring the actual refreshing time of any one of the plurality of display cards in the current refreshing cycle;
acquiring the actual refreshing time of each of the plurality of display cards in the next refreshing period;
respectively determining the target refreshing time of each display card in the next refreshing period according to the theoretical refreshing period, the actual refreshing time of the current refreshing period and the actual refreshing time of each display card in the next refreshing period;
and controlling each display to play the corresponding part of the image frame of the corresponding display card at the target refreshing time of the next refreshing period.
Optionally, respectively determining the target refresh time of each graphics card in the next refresh cycle according to the theoretical refresh cycle, the actual refresh time of the current refresh cycle, and the actual refresh time of each graphics card in the next refresh cycle, including:
predicting N theoretical refresh moments of N refresh cycles after the current refresh cycle according to the theoretical refresh cycle and the actual refresh moment of the current refresh cycle, wherein N is an integer greater than 1;
and determining the theoretical refresh time which is closest to the actual refresh time of each display card in the next refresh period from the N theoretical refresh times as the target refresh time of each display card in the next refresh period.
Optionally, the theoretical refresh period is calculated according to the following formula:
Figure BDA0002292255780000021
wherein T is the theoretical refresh cycle of any graphics card, and f is the refresh frequency of any graphics card.
Optionally, after the step of controlling each display to play the corresponding portion of the image frame of the corresponding graphics card at the target refresh time of the next refresh cycle, the method further includes:
and returning to the step of obtaining the actual refreshing time of each of the plurality of display cards in the next refreshing period until the video is played.
The present disclosure also provides an apparatus for playing a video, the video being played by a plurality of displays, each display playing a part of the video picture, the plurality of displays corresponding to a plurality of display cards one-to-one, the apparatus comprising:
the first obtaining module is used for obtaining the actual refreshing time of any one of the plurality of display cards in the current refreshing cycle;
the second obtaining module is used for obtaining the actual refreshing time of each display card in the plurality of display cards in the next refreshing period;
the determining module is used for respectively determining the target refreshing time of each display card in the next refreshing period according to the theoretical refreshing period, the actual refreshing time of the current refreshing period and the actual refreshing time of each display card in the next refreshing period;
and the control module is used for controlling each display to play the corresponding part of the image frame of the corresponding display card at the target refreshing time of the next refreshing period.
Optionally, the determining module includes:
the prediction submodule is used for predicting N theoretical refreshing moments of N refreshing cycles after the current refreshing cycle according to the theoretical refreshing cycle and the actual refreshing moment of the current refreshing cycle, wherein N is an integer greater than 1;
and the determining submodule is used for determining the theoretical refreshing time which is closest to the actual refreshing time of each display card in the next refreshing period from the N theoretical refreshing times as the target refreshing time of each display card in the next refreshing period.
Optionally, the theoretical refresh period is calculated according to the following formula:
Figure BDA0002292255780000031
wherein T is the theoretical refresh cycle of any graphics card, and f is the refresh frequency of any graphics card.
Optionally, the apparatus further comprises:
and the returning module is connected with the determining module and used for returning to the step of acquiring the actual refreshing time of each of the plurality of display cards in the next refreshing cycle until the video is played completely.
The present disclosure also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method provided by the present disclosure.
The present disclosure also provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the above-described method provided by the present disclosure.
According to the technical scheme, when the same picture of the video is played in blocks by the plurality of displays, the target refreshing time of each display card in the next refreshing period is respectively determined according to the theoretical refreshing period, the actual refreshing time of the display card of any display in the current refreshing period and the actual refreshing time of each display card in the next refreshing period, and finally each display is controlled to play according to the image frame at the target refreshing time of the next refreshing period. Therefore, the image frames played by each display are not the image frames at the actual refreshing time of the corresponding display card but the image frames at the target refreshing time determined according to the theoretical refreshing period, so that the images played by each display belong to the same image frame, and the playing quality of the spliced images is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram of a method for playing a video provided by an exemplary embodiment;
FIG. 2 is a flow diagram of a method for playing a video provided by another exemplary embodiment;
FIG. 3 is a block diagram of an apparatus for playing video provided by an exemplary embodiment;
FIG. 4 is a block diagram of an electronic device shown in an exemplary embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
As described above, multiple machines can be combined to form a player group to play a video at the same time, and each machine in the player group is responsible for playing a part of the video frame. Such a process does address the need to play high resolution video. However, sometimes, a plurality of machines play at the same time and do not all belong to the same frame of picture, which causes the phenomenon of asynchronous of each part of the picture visually. The inventor thinks that each display can broadcast the image frame according to the theoretical refreshing time instead of the actual refreshing time of the display card, so that when the theoretical refreshing time of each display is the same, the images played by each display belong to the same frame image.
The present disclosure is applicable to a case where a video is played by a plurality of displays, each of which plays a part of a video picture. The multiple displays correspond to the multiple display cards one by one. And the picture played by each display is refreshed by the corresponding display card. The plurality of displays may include, for example, 4, 9, and 16 displays, which collectively output one picture. Fig. 1 is a flow chart of a method for playing a video provided by an exemplary embodiment. As shown in fig. 1, the method may include the steps of:
and step S11, acquiring the actual refresh time of any one of the plurality of display cards in the current refresh period.
One display card can be selected from the multiple display cards, and the image frame to which the picture currently played by the display corresponding to the selected display card belongs is output after the display card is refreshed at the actual refreshing time of the current refreshing period. And acquiring the actual refreshing time of the frame, namely the time timed in the video playing software.
In an embodiment, the current frame played by the display corresponding to any graphics card may be an image frame at the actual refresh time of the graphics card. For example, if the actual refresh time of the graphics card is 118ms, the corresponding display actually plays out the 118ms frame.
Step S12, obtaining an actual refresh time of each of the plurality of graphics cards in a next refresh cycle.
When the display card actually refreshes in the next refreshing period, the actual refreshing time is recorded. Due to the graphics card refresh jitter, the actual refresh time is a random value near the theoretical refresh time.
And step S13, respectively determining the target refresh time of each display card in the next refresh cycle according to the theoretical refresh cycle, the actual refresh time of the current refresh cycle and the actual refresh time of each display card in the next refresh cycle.
In the present disclosure, after the actual refresh time of each graphics card in the next refresh cycle is obtained, the video is not played immediately according to the actual refresh time of the graphics card in the next refresh cycle, that is, the image frame corresponding to the actual refresh time in the video is not output immediately. But is played according to the determined target refresh moment of the next refresh cycle.
The theoretical refresh period of the graphics card can be calculated according to the refresh frequency (i.e., refresh rate) of the graphics card.
The refresh frequency of the graphics card refers to the number of times the electron beam repeatedly scans the image on the screen. The higher the refresh frequency, the better the displayed image (picture) stability. For example, the refresh frequency is 60HZ, and the screen is refreshed 60 times per second.
The theoretical refresh period of the display card refers to the time length required for the display card to refresh the screen once theoretically or averagely at the current refresh frequency. The theoretical refresh period of the graphics card can be calculated according to the following formula:
Figure BDA0002292255780000061
wherein, T is the theoretical refresh cycle of any one of the graphics cards, and f is the refresh frequency of any one of the graphics cards.
When the refresh frequency is 60HZ, the theoretical refresh period is
Figure BDA0002292255780000062
I.e. theoretically refreshing the screen every 16.6 ms. However, in practice, the refresh of the graphics card is jittery, and the refresh is possible at a time of about 16.6 ms. The theoretical refresh period may be pre-calculated and stored.
The target refresh time for the next refresh cycle may be determined by a variety of methods.
And step S14, controlling each display to play the corresponding part of the image frame of the corresponding display card at the target refresh time of the next refresh period.
That is, in each display, the corresponding portion in the image frame corresponding to the target refresh time of the next refresh cycle is played.
In an embodiment, on the basis of fig. 1, the step of respectively determining the target refresh time of each graphics card in the next refresh cycle according to the theoretical refresh cycle, the actual refresh time of the current refresh cycle, and the actual refresh time of each graphics card in the next refresh cycle (step S13) may include the following steps:
predicting N theoretical refresh moments of N refresh cycles after the current refresh cycle according to the theoretical refresh cycle and the actual refresh moment of the current refresh cycle, wherein N is an integer greater than 1;
and determining the theoretical refresh time which is closest to the actual refresh time of each display card in the next refresh period from the N theoretical refresh times as the target refresh time of each display card in the next refresh period.
For example, if the actual refresh time of the current refresh period is 100ms, the theoretical refresh period is 16ms, and N is 3, it can be predicted that 3 theoretical refresh times corresponding to 3 refresh periods after the current refresh period are 116ms, 132ms, and 148ms, respectively. That is, in theory, the display card should refresh the played image frames when the clock reaches 116ms, 132ms, and 148 ms. However, as described above, the graphics card is not necessarily refreshed at the predicted theoretical refresh timing. The predicted theoretical refresh time is only a theoretical or ideal value.
If the obtained actual refresh time of the next refresh cycle is 125ms, and the theoretical refresh time closest to 125ms in the above 3 theoretical refresh times is 132ms, the theoretical refresh time of 132ms may be determined as the target refresh time of the next refresh cycle. That is, the corresponding portion of the image frame in the video that corresponds to the 132ms instant is the next frame in the display that should be played.
In this embodiment, the theoretical refresh time closest to the actual refresh time of the next refresh period among the N theoretical refresh times is determined as the target refresh time of the next refresh period, and the image frames played by each display are not the image frames at the actual refresh time of the display card but the image frames at the target refresh time of the next refresh period. The clock is adjusted according to the theoretical refreshing time, and the clock is corrected. The played video is refreshed according to the corrected clock, and because the corrected clock moves more uniformly and the fluctuation of the clock is smaller, frames can not be lost when each display plays the video, and the playing quality of the spliced played video of a plurality of displays is improved.
In the above embodiment, a part of the video may be played by using the above method, and in another embodiment, the whole video may be played by recycling the above method. Fig. 2 is a flowchart of a method for playing a video according to another exemplary embodiment. As shown in fig. 2, after the step of controlling the respective displays to play the corresponding portions of the image frames of the corresponding graphic cards at the target refresh time of the next refresh period (step S14), the method may further include the step S15 of:
and returning to the step of obtaining the actual refreshing time of each of the plurality of display cards in the next refreshing cycle (step S12) until the video playing is finished.
In this embodiment, after the step S14 is completed, the actual refresh time of the next refresh cycle acquired in the step S12 becomes the actual refresh time of the current refresh cycle acquired in the step S11, and the step S12 may be repeated until the video is played. In the playing of the whole video, each refreshing of the image is executed according to the method in fig. 1, a cyclic scheme is formed, and the playing quality of the whole video is improved.
The video Frame rate (Frame rate) is a measure for measuring the number of display frames. In another embodiment, the frame rate of the video may be equal to the refresh frequency of the selected video card, and the refresh frequency of the other video cards may also be equal to the refresh frequency of the selected video card. For example, the refresh rate of the video card is 60HZ, and the frame rate of the video is 60 FPS. Thus, no frame rate exceeding the refresh rate is wasted, and no refresh rate exceeding the frame rate is wasted.
The above-described aspects of the present disclosure may be implemented by:
1. one machine is selected from the slave group as a master machine, and the other machines are all slave machines.
2. A refresh clock (the actual refresh time of the current refresh cycle) of the host is obtained, and this clock is used as the reference clock. This reference clock is then sent to the slave.
3. And each machine predicts N theoretical refresh moments of N cycles according to the reference clock and the frame refresh interval (theoretical refresh cycle), and determines the theoretical refresh moment closest to the actual refresh moment of each display card in the next refresh cycle from the N theoretical refresh moments as the target refresh moment of each display card in the next refresh cycle.
Since the reference clock and the frame refresh interval are the same for each machine, this will result in the target refresh time of the next refresh cycle being the same. Since the refresh of the video follows the clock, the target refresh time of the next refresh cycle of all machines is consistent, which results in the refreshed video being the same frame.
The present disclosure also provides an apparatus for playing a video. The video is played by a plurality of displays, each display plays a part of a video picture, and the plurality of displays correspond to the plurality of display cards one to one. Fig. 3 is a block diagram of an apparatus for playing video according to an exemplary embodiment. As shown in fig. 3, the apparatus 10 for playing a video may include a first obtaining module 11, a second obtaining module 12, a determining module 13, and a control module 14.
The first obtaining module 11 is configured to obtain an actual refresh time of any one of the plurality of display cards in a current refresh cycle.
The second obtaining module 12 is configured to obtain an actual refresh time of each of the plurality of display cards in a next refresh cycle.
The determining module 13 is configured to determine the target refresh time of each graphics card in the next refresh cycle according to the theoretical refresh cycle, the actual refresh time of the current refresh cycle, and the actual refresh time of each graphics card in the next refresh cycle.
The control module 14 is configured to control each display to play a corresponding portion of the image frame of the corresponding graphics card at the target refresh time of the next refresh period.
Optionally, the determination module 13 may comprise a prediction sub-module.
And the prediction submodule is used for predicting N theoretical refresh moments of N refresh cycles after the current refresh cycle according to the theoretical refresh cycle and the actual refresh moment of the current refresh cycle, wherein N is an integer larger than 1.
And the determining submodule is used for determining the theoretical refreshing time which is closest to the actual refreshing time of each display card in the next refreshing period from the N theoretical refreshing times as the target refreshing time of each display card in the next refreshing period.
Alternatively, the theoretical refresh period is calculated according to the following formula:
Figure BDA0002292255780000101
wherein T is the theoretical refresh period of any graphics card, and f is the refresh frequency of any graphics card.
Optionally, the apparatus further comprises a return module.
And the returning module is connected with the determining module and used for returning to the step of acquiring the actual refreshing time of each of the plurality of display cards in the next refreshing cycle until the video is played completely.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the technical scheme, when the same picture of the video is played in blocks by the plurality of displays, the target refreshing time of each display card in the next refreshing period is respectively determined according to the theoretical refreshing period, the actual refreshing time of the display card of any display in the current refreshing period and the actual refreshing time of each display card in the next refreshing period, and finally each display is controlled to play according to the image frame at the target refreshing time of the next refreshing period. Therefore, the image frames played by each display are not the image frames at the actual refreshing time of the corresponding display card but the image frames at the target refreshing time determined according to the theoretical refreshing period, so that the images played by each display belong to the same image frame, and the playing quality of the spliced images is improved.
The present disclosure also provides an electronic device comprising a memory and a processor.
The memory has a computer program stored thereon; the processor is used to execute the computer program in the memory to implement the steps of the above-described method provided by the present disclosure.
Fig. 4 is a block diagram illustrating an electronic device 400 according to an example embodiment. As shown in fig. 4, the electronic device 400 may include: a processor 401 and a memory 402. The electronic device 400 may also include one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communications component 405.
The processor 401 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the above-mentioned method for playing back a video. The memory 402 is used to store various types of data to support operation at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 403 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 402 or transmitted through the communication component 405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 405 may therefore include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method for playing video.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the above-described method for playing a video is also provided. For example, the computer readable storage medium may be the memory 402 comprising program instructions executable by the processor 401 of the electronic device 400 to perform the method for playing video described above.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A method for playing a video, wherein the video is played by a plurality of displays, each display playing a portion of a picture of the video, the plurality of displays corresponding to a plurality of graphics cards one-to-one, the method comprising:
acquiring the actual refreshing time of any one of the plurality of display cards in the current refreshing cycle;
acquiring the actual refreshing time of each of the plurality of display cards in the next refreshing period;
respectively determining the target refreshing time of each display card in the next refreshing period according to the theoretical refreshing period, the actual refreshing time of the current refreshing period and the actual refreshing time of each display card in the next refreshing period;
controlling each display to play the corresponding part of the image frame of the corresponding display card at the target refreshing time of the next refreshing period;
wherein, according to the theoretical refresh cycle, the actual refresh time of the current refresh cycle, and the actual refresh time of each graphics card in the next refresh cycle, respectively determining the target refresh time of each graphics card in the next refresh cycle, comprises:
predicting N theoretical refresh moments of N refresh cycles after the current refresh cycle according to the theoretical refresh cycle and the actual refresh moment of the current refresh cycle, wherein N is an integer greater than 1;
and determining the theoretical refresh time which is closest to the actual refresh time of each display card in the next refresh period from the N theoretical refresh times as the target refresh time of each display card in the next refresh period.
2. The method of claim 1, wherein the theoretical refresh period is calculated according to the following equation:
Figure FDA0003309258910000011
wherein T is the theoretical refresh cycle of any graphics card, and f is the refresh frequency of any graphics card.
3. The method of claim 1, wherein after the step of controlling each display to play the corresponding portion of the image frame of the corresponding graphics card at the target refresh time of the next refresh cycle, the method further comprises:
and returning to the step of obtaining the actual refreshing time of each of the plurality of display cards in the next refreshing period until the video is played.
4. An apparatus for playing a video, wherein the video is played by a plurality of displays, each display playing a portion of the video, the plurality of displays corresponding to a plurality of graphics cards one-to-one, the apparatus comprising:
the first obtaining module is used for obtaining the actual refreshing time of any one of the plurality of display cards in the current refreshing cycle;
the second obtaining module is used for obtaining the actual refreshing time of each display card in the plurality of display cards in the next refreshing period;
the determining module is used for respectively determining the target refreshing time of each display card in the next refreshing period according to the theoretical refreshing period, the actual refreshing time of the current refreshing period and the actual refreshing time of each display card in the next refreshing period;
the control module is used for controlling each display to play the corresponding part of the image frame of the corresponding display card at the target refreshing time of the next refreshing period;
wherein the determining module comprises:
the prediction submodule is used for predicting N theoretical refreshing moments of N refreshing cycles after the current refreshing cycle according to the theoretical refreshing cycle and the actual refreshing moment of the current refreshing cycle, wherein N is an integer greater than 1;
and the determining submodule is used for determining the theoretical refreshing time which is closest to the actual refreshing time of each display card in the next refreshing period from the N theoretical refreshing times as the target refreshing time of each display card in the next refreshing period.
5. The apparatus of claim 4, wherein the theoretical refresh period is calculated according to the following equation:
Figure FDA0003309258910000031
wherein T is the theoretical refresh cycle of any graphics card, and f is the refresh frequency of any graphics card.
6. The apparatus of claim 4, further comprising:
and the returning module is connected with the determining module and used for returning to the step of acquiring the actual refreshing time of each of the plurality of display cards in the next refreshing cycle until the video is played completely.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
8. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 3.
CN201911185316.1A 2019-11-27 2019-11-27 Method and device for playing video, storage medium and electronic equipment Active CN110958490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911185316.1A CN110958490B (en) 2019-11-27 2019-11-27 Method and device for playing video, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911185316.1A CN110958490B (en) 2019-11-27 2019-11-27 Method and device for playing video, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110958490A CN110958490A (en) 2020-04-03
CN110958490B true CN110958490B (en) 2022-01-11

Family

ID=69978667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911185316.1A Active CN110958490B (en) 2019-11-27 2019-11-27 Method and device for playing video, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110958490B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184081A (en) * 2011-05-10 2011-09-14 广东威创视讯科技股份有限公司 Method, device and system for synchronous output of display cards
CN108710479A (en) * 2018-04-03 2018-10-26 中兴通讯股份有限公司 Synchronous display method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2964235B1 (en) * 2010-08-31 2013-05-24 Canon Kk SYNCHRONIZATION METHOD, SYSTEM AND DEVICE THEREOF
US20150022463A1 (en) * 2013-07-17 2015-01-22 Lenovo (Singapore) Pte. Ltd. Synchronization of input surface data and display screen refresh
KR20150057421A (en) * 2013-11-19 2015-05-28 한국전자통신연구원 Multi-screen display apparatus and synchronication tuning method for the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184081A (en) * 2011-05-10 2011-09-14 广东威创视讯科技股份有限公司 Method, device and system for synchronous output of display cards
CN108710479A (en) * 2018-04-03 2018-10-26 中兴通讯股份有限公司 Synchronous display method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
分布式网络视频显示同步时钟的设计与实现;林赞;《中国优秀硕士学位论文全文数据库信息科技辑》;20160415;全文 *

Also Published As

Publication number Publication date
CN110958490A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN109803175B (en) Video processing method and device, video processing equipment and storage medium
JP6894976B2 (en) Image smoothness improvement method and equipment
US9036084B2 (en) Apparatus and method for synchronous display of video data
CN109275011B (en) Processing method and device for switching motion modes of smart television and user equipment
WO2019153723A1 (en) Video frame display method and device, television and storage medium
CN106782260B (en) Display method and device for virtual reality motion scene
CN100557677C (en) Come the apparatus and method of converting frame rate in the display system without external memory storage
US9875522B2 (en) Display control apparatus
CN106331877A (en) Bullet screen playing method and device
US20210056938A1 (en) Switching method and switching device for display channel, dipslay driving device and display device
US11223749B1 (en) Scaler, display device and associated data processing method
WO2018176876A1 (en) Image display method, mobile terminal, and computer storage medium
US20180102082A1 (en) Apparatus, system, and method for video creation, transmission and display to reduce latency and enhance video quality
CN106973318B (en) Aggregated video operation method and device
WO2017075987A1 (en) Method for improving smoothness of picture, and terminal device
KR102643611B1 (en) Pulse signal-based display methods and apparatus, electronic devices, and media
CN104080006A (en) Video processing device and method
CN108810648A (en) A kind of method and terminal carrying out image procossing
CN105898348A (en) Method and device for reducing CPU temperature of video play terminal
EP3855719A1 (en) Image display method and apparatus, and smart television and readable storage medium
CN110958490B (en) Method and device for playing video, storage medium and electronic equipment
CN104332131A (en) Driving method for display device, display screen updating method and device
US20210035537A1 (en) Full-screen displays
CN110971971B (en) Method and device for playing video, storage medium and electronic equipment
US20170006257A1 (en) Video buffering and frame rate doubling device and method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100089 1408, Building 29, yard 9, anningzhuang West Road, Haidian District, Beijing

Applicant after: Beijing kaishida Technology Co.,Ltd.

Address before: 100089 1408, Building 29, yard 9, anningzhuang West Road, Haidian District, Beijing

Applicant before: BEIJING KYSTAR TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant