CN113259739B - Video display method, video display device, computer equipment and readable storage medium - Google Patents

Video display method, video display device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN113259739B
CN113259739B CN202110525514.9A CN202110525514A CN113259739B CN 113259739 B CN113259739 B CN 113259739B CN 202110525514 A CN202110525514 A CN 202110525514A CN 113259739 B CN113259739 B CN 113259739B
Authority
CN
China
Prior art keywords
current
video
tributary
time
display time
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
CN202110525514.9A
Other languages
Chinese (zh)
Other versions
CN113259739A (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.)
Sichuan Changhong Xinwang Technology Co ltd
Original Assignee
Sichuan Changhong Network 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 Sichuan Changhong Network Technology Co Ltd filed Critical Sichuan Changhong Network Technology Co Ltd
Priority to CN202110525514.9A priority Critical patent/CN113259739B/en
Publication of CN113259739A publication Critical patent/CN113259739A/en
Application granted granted Critical
Publication of CN113259739B publication Critical patent/CN113259739B/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/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
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4344Remultiplexing of multiplex streams, e.g. by modifying time stamps or remapping the packet identifiers
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention provides a video display method, a video display device, computer equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a current tributary video and a previous tributary accumulated time length of a played video; acquiring an image time stamp of a start frame video image in the current tributary video; acquiring the current frame video display time of the current frame video image according to the image time stamp; if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time; the invention solves the problem that the display time of the playing progress is not synchronous with the actually played image due to the discontinuous video frame time in the prior art, and provides smooth video playing experience for users.

Description

Video display method, video display device, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of video processing, in particular to a video display method, a video display device, computer equipment and a readable storage medium.
Background
In the IPTV system, a terminal needs to realize the streaming media playing of various protocols, including the playing requirements of various media formats such as live broadcast, multicast, VOD, on-demand, Catch-up TV, network time shifting and the like; after the Catch-up TV enters the application, a user can select recorded and broadcast programs with different dates to watch, in the process of watching the Catch-up TV, the user can execute playing operations such as pause, fast rewind, fast forward and the like, the Catch-up TV program is a program recorded in a certain time period by a server through a network, and then the recorded code stream is played back at a certain time later; when the streaming media is played, after a terminal requests the server for the streaming media, the streaming media is analyzed through a network packet, analyzed through a TS packet and locally decoded to realize playing, a user initiates a playing progress viewing request when watching a program to be played, the server initiates a playing progress feedback requirement on the playing terminal, the player acquires playing time according to the type of the currently played program and feeds the current playing time back to the server, the server calls a display module to display time information on a progress bar, and the normal playing can be realized only when the display time of the progress bar is synchronous with the picture reflection.
However, at present, the video frame time is usually discontinuous, so that the display of the playing progress is actually not synchronous with the actually played image.
Disclosure of Invention
Aiming at the defects in the prior art, the video display method, the video display device, the computer equipment and the readable storage medium provided by the invention solve the problem that the display time of the playing progress is not synchronous with the actually played image due to the discontinuous video frame time in the prior art, and provide smooth video playing experience for users.
In a first aspect, the present invention provides a video display method applied to a terminal, where the method includes: acquiring a current tributary video and a previous tributary accumulated time length of a playing video; acquiring an image time stamp of a start frame video image in the current tributary video; acquiring the current frame video display time of the current frame video image according to the image time stamp; and if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time.
Optionally, the method further comprises: if the display time of the current frame video is less than the display time of the previous frame video, taking the previous frame video image as a current tributary video breakpoint, and taking the current frame video image as a starting frame video image of the next tributary video; acquiring the current tributary duration of the current tributary video according to the current tributary video breakpoint; updating the previous tributary accumulated time length according to the current tributary time length to obtain an updated value of the tributary accumulated time length; and taking the updated value of the tributary accumulated time length as the progress display time of the current frame video image and the previous tributary accumulated time length of the next tributary video.
Optionally, obtaining a current tributary duration of the current tributary video according to the current tributary video breakpoint includes: acquiring a current playing multiple; acquiring the time span under the current playing multiple according to the current playing multiple and the current video frame rate; and acquiring the current tributary duration according to the time span and the current tributary video breakpoint.
Optionally, obtaining the current tributary duration according to the time span and the current tributary video breakpoint includes: when the time span is larger than the current frame video display time, acquiring a difference value between the time span and the current frame video display time; and acquiring the sum of the difference value and the display time of the previous frame of video to obtain the current tributary duration.
Optionally, obtaining the current tributary duration according to the time span and the current tributary video breakpoint, further comprising: and when the time span is less than the display time of the current frame video, the current tributary duration is equal to the display time of the last frame video.
Optionally, when the time length of each tributary is equal, obtaining the accumulated time length of the previous tributaries includes: acquiring the accumulated number of current breakpoints according to the current playing multiple; and the previous tributary accumulated time length is equal to the accumulated quantity of the current breakpoint multiplied by the time length of each tributary.
Optionally, obtaining the cumulative number of current breakpoints according to the current playing multiple includes: if the current playing multiple is normal playing or fast forward playing and the current frame video display time is less than the previous frame video display time, the current breakpoint cumulative number is the previous breakpoint cumulative number by 1; and if the current playing multiple is fast-backward playing and the current frame video display time is greater than the previous frame video display time, the current breakpoint cumulative number is the cumulative number of the previous breakpoint decreased by 1.
In a second aspect, the present invention provides a video display apparatus for a terminal, the apparatus comprising: the video acquisition module is used for acquiring the current tributary video and the accumulated time length of the previous tributary of the played video; the time stamp obtaining module is used for obtaining an image time stamp of a start frame video image in the current tributary video; the display time acquisition module is used for acquiring the current frame video display time of the current frame video image according to the image time stamp; and the progress time acquisition module is used for obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the display time of the current frame video if the display time of the current frame video is greater than the display time of the previous frame video.
In a third aspect, the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a current tributary video and a previous tributary accumulated time length of a playing video; acquiring an image time stamp of a start frame video image in the current tributary video; acquiring the current frame video display time of the current frame video image according to the image time stamp; and if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time.
In a fourth aspect, the present invention provides a readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring a current tributary video and a previous tributary accumulated time length of a playing video; acquiring an image time stamp of a start frame video image in the current tributary video; acquiring the current frame video display time of the current frame video image according to the image time stamp; and if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time.
Compared with the prior art, the invention has the beneficial effects that:
the video display method calculates the display time of each frame of video image by the image time stamp of each frame of video image in the playing video, obtains whether the current playing is at the breakpoint according to the display time of two adjacent frames of video images, and carries out the calculation method of different progress display times according to the judgment condition of whether the current playing is at the breakpoint, so that the display time of the playing video frame is consistent with the display time of the progress bar, the problem that the display time of the playing progress is not synchronous with the actually played image due to the discontinuous video frame time in the prior art is solved, and smooth video playing experience is provided for users.
Drawings
Fig. 1 is a schematic flow chart illustrating a video display method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating discontinuous video frame playback;
fig. 3 is a schematic flow chart illustrating another video display method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a video display method according to another embodiment of the present invention;
fig. 5 is a block diagram of a video display device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart illustrating a video display method according to an embodiment of the present invention; as shown in fig. 1, when applied to a terminal, the video display method specifically includes the following steps:
step S101, acquiring the current tributary video and the previous tributary accumulated time length of the playing video.
It should be noted that, when the server performs long-time network recording on a program at a time T0, as shown in fig. 2, the code stream recorded by the network records a video segment with a time length of P0 for a long time, the time length of the recorded code stream is N × P0+ M, the recording time is greater than T0, that is, N T0+ M (M >0, N >0), and the total recording time is recorded as the total time length of the recorded program. When the terminal plays back the program recorded by the network, the program playing address and the total time length can be obtained. The playing progress of the terminal display is converted into the display time in seconds according to the time unit of a specific system by analyzing the PTS (presentation time) in the network downloading video frames. The playback related operation is normal in the time of T0, but the playing progress always stays in the time period of T0, and the discontinuous time of the video frames needs to be processed continuously in order to make the whole video segment played back normally. The method is that the player determines the playing position of the current media through Vpts (video display time stamp) in the TS packet, and feeds back the current playing time according to the Vpts. The player plays the on-demand program, the network time-shifting program and the Catch-up TV program, and the total time Td of playing the program is obtained from the server; the player analyzes the Vpts from the network packet to calculate the playing time, and feeds back the current playing time according to the requirement of the server, the playing time can display the playing progress in a progress bar mode, and the normal playing can be realized only when the picture performance and the progress bar display are synchronous. The method can well solve the problem that the Vpts is discontinuous in the total time Td of playing the program. The case where Vpts is continuous means that Vpts is continuously increased for the total period Td. The case where Vpts is discontinuous refers to a case where Vpts increases from 0 to the maximum value PO and returns to 0 a plurality of times within the total period Td, and is not continuously incremented. Similarly, the tributaries with the total duration Tx form a stream with the total duration Td after being subjected to head-to-tail compounding for a plurality of times, and Vpts of TS packets is not subjected to continuous compounding processing in the compounding process.
In this embodiment, the currently played video played at the terminal includes a plurality of tributary videos, where timestamps of each frame of video image in the tributary videos are continuously increased, a breakpoint occurs between each tributary video, video frame images before and after the breakpoint are discontinuous, and an image timestamp of a start frame image of the current tributary video is smaller than an image timestamp of a last frame image of a previous tributary video; the terminal analyzes the network packet, the TS packet and the local decoding of the video stream embryo sent by the server to obtain the current tributary video, and the terminal can also calculate the accumulated duration of all the current tributary videos.
Step S102, obtaining an image time stamp of a start frame video image in the current tributary video.
In this embodiment, the image timestamp of the start frame video image is an image timestamp on the first frame video image in the current tributary video.
And step S103, acquiring the current frame video display time of the current frame video image according to the image time stamp.
In this embodiment, the current frame video display time of the current frame video image is equal to the difference between the image time stamp of the current frame video image and the image time stamp of the start frame video image divided by 90000 and in milliseconds; the image timestamp of the current frame video image is a timestamp set when the server transmits the current frame video image to the terminal, the current frame video display time of the current frame video image is the time when the current frame video image appears in the current tributary video, and the video display time of the initial frame video image in the current tributary video is set to be 0.
And step S104, if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the previous tributary accumulated duration and the current frame video display time.
It should be noted that, when the current frame video display time of the current frame video image is calculated to be greater than the display time of the previous frame video image, it indicates that the currently played video frame is continuous, so the progress display time of the current frame video image is the sum of the previous tributary accumulated duration and the current frame video display time.
Fig. 3 is a schematic flow chart illustrating another video display method according to an embodiment of the present invention; as shown in fig. 3, the video display method further includes the steps of:
step S201, if the display time of the current frame video is less than the display time of the previous frame video, taking the previous frame video image as a current tributary video breakpoint, and taking the current frame video image as a start frame video image of the next tributary video;
step S202, acquiring the current tributary duration of the current tributary video according to the current tributary video breakpoint;
step S203, updating the previous tributary accumulated time length according to the current tributary time length to obtain an updated value of the tributary accumulated time length;
and step S204, taking the updated value of the tributary accumulated time length as the progress display time of the current frame video image and the previous tributary accumulated time length of the next tributary video.
In this embodiment, if the current frame video display time is less than the previous frame video display time, it indicates that a video breakpoint occurs, and the video breakpoint causes discontinuity between the current tributary video and the next tributary video, so that the previous frame video image is used as the current tributary video breakpoint, the current frame video image is used as the start frame video image of the next tributary video, the video display time of the previous frame video image is used as the current tributary duration of the current tributary video, and the sum of the current tributary duration and the previous tributary accumulated duration is used as the progress display time of the current frame video image and the previous tributary accumulated duration of the next tributary video.
Compared with the prior art, the invention has the beneficial effects that:
the video display method calculates the display time of each frame of video image by the image time stamp of each frame of video image in the playing video, obtains whether the current playing is at the breakpoint according to the display time of two adjacent frames of video images, and carries out the calculation method of different progress display times according to the judgment condition of whether the current playing is at the breakpoint, so that the display time of the playing video frame is consistent with the display time of the progress bar, the problem that the display time of the playing progress is not synchronous with the actually played image due to the discontinuous video frame time in the prior art is solved, and smooth video playing experience is provided for users.
In another embodiment of the present invention, obtaining the current tributary duration of the current tributary video according to the current tributary video breakpoint includes: acquiring a current playing multiple; acquiring the time span under the current playing multiple according to the current playing multiple and the current video frame rate; and acquiring the current tributary duration according to the time span and the current tributary video breakpoint.
In this embodiment, obtaining the current tributary duration according to the time span and the current tributary video breakpoint includes: when the time span is larger than the current frame video display time, acquiring a difference value between the time span and the current frame video display time; and acquiring the sum of the difference value and the display time of the previous frame of video to obtain the current tributary duration.
In this embodiment, obtaining the current tributary duration according to the time span and the current tributary video breakpoint, further includes: and when the time span is less than the display time of the current frame video, the current tributary duration is equal to the display time of the last frame video.
It should be noted that the current play multiple includes normal play, fast forward play, and fast reverse play; the terminal can realize fast forward and fast backward according to the practical scheme, the fast forward unit defines the time span as Istep, namely spanning 1 video I frame, then Prate speed multiplying speed spans Prate I frames. If the video frame rate is Y, the time span across the Prate frame is Prate/Y seconds. The relation between the fast-forward speed and the actual time span is Tstep ═ Prate × 1000/Y milliseconds, namely the quotient unit of the fast-forward speed multiplied by 1000 and divided by the frame rate is milliseconds; if the time span corresponding to the current playing multiple is larger than the current obtaining display time, the tributary time length is equal to the sum of the difference value obtained by subtracting the current frame video display time from the time span and adding one frame video display time, and if the time span corresponding to the current playing multiple is smaller than the current obtaining display time, the tributary time length is equal to the previous frame video display time.
In another embodiment of the present invention, when the time length of each tributary is equal, acquiring the accumulated time length of the previous tributaries includes: acquiring the accumulated number of current breakpoints according to the current playing multiple; and the previous tributary accumulated time length is equal to the accumulated quantity of the current break points multiplied by the time length of each tributary.
Further, obtaining the cumulative number of current breakpoints according to the current playing multiple includes: if the current playing multiple is normal playing or fast forward playing and the current frame video display time is less than the previous frame video display time, the current breakpoint cumulative number is the previous breakpoint cumulative number by 1; and if the current playing multiple is fast-backward playing and the current frame video display time is greater than the previous frame video display time, the current breakpoint cumulative number is the cumulative number of the previous breakpoint decreased by 1.
It should be noted that, under the normal play and fast forward conditions, if the display time of the video acquired this time is less than the last display time, it is detected that a discontinuity point occurs under the normal play and fast forward conditions. Recording the number of discontinuous points and accumulating 1; adding the product of the number of discontinuous points such as the display time of the progress bar and the tributary duration to the video display time obtained at this time; under the condition of fast backward, if the display time of the video acquired this time is longer than the last display time, detecting a discontinuous point under the condition of fast backward, and decreasing the number of discontinuous points by 1; the display time of the progress bar is equal to the difference value obtained by subtracting 1 from the number of discontinuous points, multiplied by the tributary duration and added with the video display time acquired this time.
Fig. 4 is a schematic flowchart illustrating a video display method according to another embodiment of the present invention; as shown in fig. 4, the video display method further includes the steps of:
step S301, acquiring the total duration from a server, acquiring a first video timestamp, and acquiring a current playing multiple;
step S302, detecting a first discontinuous point, and if the discontinuous point is not detected, calculating display time according to the information of the video;
step S303, if a first discontinuous point is detected and the current position does not reach the end of the file, calculating the total display duration of the first section of video according to the current playing multiple information;
step S304, detecting the ith discontinuous point, calculating the total display time length of the ith segment, and calculating the total display time length according to the information such as the current playing multiple and the like.
It should be noted that, the terminal plays the code stream after acquiring the playing address, and analyzes and acquires a first time stamp Vpts0 of the video frame of the code stream; and processing and searching the discontinuous point of the first video frame according to the situation of the current playing mode in modes of fast forward, fast backward or normal speed multiplication and the like. And displaying synchronous playing at a time point within the SEEK time-up period (T0, N P0+ M) before the first discontinuous point is not found. According to the requirement of playing time continuity, a first discontinuous point firstly appears in the event of fast forward or normal double speed playing; the two events are classified into a time increment playing mode, and only the playing times are different.
The display time is the time stamp difference multiplied by the unit time and then converted to seconds for display. The unit time of the system refers to the corresponding conversion relation between the clock period of the crystal oscillator of the system and the milliseconds, namely how many milliseconds one clock period corresponds to. Let the current playback speed be Prate, the timestamp of the first played video frame be Vstc0, the timestamp of the current played video frame be Vstcj, and the timestamp of the previous video frame be Vstci. If Vstcj is greater than Vstci, no discontinuity is found, and the display time is Vstcj minus Vstc0 multiplied by the system unit time and converted to a second display.
If Vstcj is less than Vstci, it means that the first video frame timestamp discontinuity is found in this operation. In this case, the video continuous-time period P0 is estimated in cooperation with the Prate value. Vstcj minus Vstc0 to obtain a difference Vtdif, P0 equals Tstep plus Vstci minus Vstcj if time span Tstep corresponding to Prate is greater than Vtdif; otherwise P0 is equal to the difference of Vstci minus Vstc 0. And after the video continuous time duration P0 is obtained, calculating the actual display time according to the fast forward and fast backward conditions.
Under the conditions of normal playing and fast forward, recording as a discontinuous point occurrence when Vstci is smaller than Vstcj, namely the number L of occurrences of the discontinuous point is accumulated to 1, and displaying the difference value of the sum of the product of L × P0 and the sum of Vstcj minus Vstc0 by the progress bar; in the fast backward case, when Vstci is greater than Vstcj, it is recorded as a discontinuity occurrence, i.e., the number of occurrences L minus 1, and the time displayed by the bar is the product of L × P0 plus the difference between Vstcj minus Vstc 0.
In this embodiment, the set-top box in the IPTV system can provide good playing experience by being used as a playing terminal device to normally decode audio and video frames downloaded by a network, and simultaneously cooperating with an interface to control and display a playing progress. The set-top box can normally play the recorded and played code stream with discontinuous video frame time stamps by using the method. The method comprises the steps of detecting the occurrence point of a discontinuous time stamp of a first video frame, estimating the continuous duration of the time stamp of the video frame, and calculating the continuous display time value of fast forward and fast backward by recording the discontinuous point and the continuous duration.
Further, recording a first video frame timestamp, detecting a first video frame discontinuous timestamp occurrence point by calculating a difference value of the previous and next video frame timestamps in a time-increment playing mode, wherein the occurrence of the discontinuous timestamp shows that the next timestamp is smaller than the previous timestamp. And calculating the continuous time length according to the current playing multiple in the time increment playing mode. The difference value of each time stamp minus the first time stamp of the video starting playing is multiplied by the unit time of the system to obtain the corresponding playing relative time of the current video frame.
Further, when the detection of the first video frame discontinuous time stamp occurrence point is that the first discontinuous point is detected, the relationship between the current playing relative time and the playing multiple is compared, and if the current playing multiple is greater than the current playing relative time, the continuous time duration Tx is the difference between the previous playing relative time and the current playing relative time plus the playing multiple speed. Otherwise, the continuous duration Tx is the previous playing relative time.
And the continuous display time during the estimation of fast forward is L of the number of the discontinuous points of synchronous recording. When a discontinuity L plus 1 is encountered, the display time is the relative playing time converted by the product of L multiplied by Tx plus the current time stamp.
Further, the estimated continuous display time during fast backward is the number of the discontinuous points of the synchronous record. A fast-back discontinuity is manifested by a current timestamp that is greater than a previous timestamp. When a discontinuous point is encountered, the discontinuous point count L is reduced by 1; the display time is the relative time of playing converted from the product of L multiplied by Tx and the current time stamp.
Fig. 5 is a block diagram of a video display device according to an embodiment of the present invention; as shown in fig. 5, the video display apparatus, when applied to a terminal, includes:
a video obtaining module 110, configured to obtain a current tributary video and a previous tributary accumulated time length of a playing video
A timestamp obtaining module 120, configured to obtain an image timestamp of a start frame video image in the current tributary video;
a display time obtaining module 130, configured to obtain, according to the image timestamp, a current frame video display time of the current frame video image;
the progress time obtaining module 140 is configured to, if the current frame video display time is greater than the previous frame video display time, obtain a progress display time of the current frame video image according to the previous tributary accumulated duration and the current frame video display time.
In another embodiment of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a current tributary video and a previous tributary accumulated time length of a playing video; acquiring an image time stamp of a start frame video image in the current tributary video; acquiring the current frame video display time of the current frame video image according to the image time stamp; and if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time.
In a further embodiment of the invention, a readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, realizes the following steps: acquiring a current tributary video and a previous tributary accumulated time length of a playing video; acquiring an image time stamp of a start frame video image in the current tributary video; acquiring the current frame video display time of the current frame video image according to the image time stamp; and if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A video display method is applied to a terminal, and the method comprises the following steps:
acquiring a current tributary video and a previous tributary accumulated time length of a playing video;
acquiring an image time stamp of a start frame video image in the current tributary video;
acquiring the current frame video display time of the current frame video image according to the image time stamp;
if the current frame video display time is longer than the previous frame video display time, obtaining the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the current frame video display time;
if the display time of the current frame video is less than the display time of the previous frame video, taking the previous frame video image as a current tributary video breakpoint, and taking the current frame video image as a starting frame video image of the next tributary video;
acquiring the current tributary duration of the current tributary video according to the current tributary video breakpoint;
updating the accumulated time length of the previous tributary according to the current tributary time length to obtain an updated value of the accumulated time length of the tributary;
and taking the updated value of the tributary accumulated time length as the progress display time of the current frame video image and the previous tributary accumulated time length of the next tributary video.
2. The video display method of claim 1, wherein obtaining a current tributary duration of the current tributary video according to the current tributary video breakpoint comprises:
acquiring a current playing multiple;
acquiring the time span under the current playing multiple according to the current playing multiple and the current video frame rate;
and acquiring the current tributary duration according to the time span and the current tributary video breakpoint.
3. The video display method of claim 2, wherein obtaining the current tributary duration based on the time span and the current tributary video breakpoint comprises:
when the time span is larger than the display time of the current frame video, acquiring a difference value between the time span and the display time of the current frame video;
and acquiring the sum of the difference value and the display time of the previous frame of video to obtain the current tributary duration.
4. The video display method of claim 2, wherein obtaining the current tributary duration based on the time span and the current tributary video breakpoint, further comprises:
and when the time span is less than the display time of the current frame video, the current tributary duration is equal to the display time of the last frame video.
5. The video display method of claim 2, wherein obtaining the accumulated time duration of the previous tributaries when the time duration of each tributary is equal comprises:
acquiring the accumulated number of current breakpoints according to the current playing multiple;
and the previous tributary accumulated time length is equal to the accumulated quantity of the current breakpoint multiplied by the time length of each tributary.
6. The video display method of claim 5, wherein obtaining the cumulative number of current breakpoints according to the current playing multiple comprises:
if the current playing multiple is normal playing or fast forward playing and the current frame video display time is less than the previous frame video display time, the current breakpoint cumulative number is the previous breakpoint cumulative number by 1;
and if the current playing multiple is fast-backward playing and the current frame video display time is greater than the previous frame video display time, the current breakpoint cumulative number is the cumulative number of the previous breakpoint decreased by 1.
7. A video display apparatus, applied to a terminal, the apparatus comprising:
the video acquisition module is used for acquiring the current tributary video and the previous tributary accumulated time length of the played video;
the time stamp obtaining module is used for obtaining an image time stamp of a start frame video image in the current tributary video;
the display time acquisition module is used for acquiring the current frame video display time of the current frame video image according to the image time stamp;
the progress time acquisition module is used for acquiring the progress display time of the current frame video image according to the accumulated time of the previous tributaries and the display time of the current frame video if the display time of the current frame video is greater than the display time of the previous frame video; the video processing device is also used for taking the previous frame video image as a current tributary video breakpoint and taking the current frame video image as a starting frame video image of the next tributary video if the display time of the current frame video is less than the display time of the previous frame video; acquiring the current tributary duration of the current tributary video according to the current tributary video breakpoint; updating the previous tributary accumulated time length according to the current tributary time length to obtain an updated value of the tributary accumulated time length; and taking the updated value of the tributary accumulated time length as the progress display time of the current frame video image and the previous tributary accumulated time length of the next tributary video.
8. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when executing the computer program.
9. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110525514.9A 2021-05-13 2021-05-13 Video display method, video display device, computer equipment and readable storage medium Active CN113259739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110525514.9A CN113259739B (en) 2021-05-13 2021-05-13 Video display method, video display device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110525514.9A CN113259739B (en) 2021-05-13 2021-05-13 Video display method, video display device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113259739A CN113259739A (en) 2021-08-13
CN113259739B true CN113259739B (en) 2022-06-03

Family

ID=77181854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110525514.9A Active CN113259739B (en) 2021-05-13 2021-05-13 Video display method, video display device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113259739B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156477A (en) * 2018-01-05 2018-06-12 上海小蚁科技有限公司 Video data acquiring method, order method and device, storage medium, camera terminal, user terminal
CN109275046A (en) * 2018-08-21 2019-01-25 华中师范大学 A kind of teaching data mask method based on double video acquisitions
CN111131874A (en) * 2018-11-01 2020-05-08 珠海格力电器股份有限公司 Method and equipment for solving problem of H.256 code stream random access point playing jam

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5196635B2 (en) * 2007-08-28 2013-05-15 日本放送協会 Video content playback terminal and video content playback program
CN103731716B (en) * 2014-01-08 2017-01-18 珠海全志科技股份有限公司 Method for synchronizing audio and video in TS stream playing
US9942622B2 (en) * 2014-01-24 2018-04-10 Hiperwall, Inc. Methods and systems for synchronizing media stream presentations
CN103873804B (en) * 2014-03-31 2017-03-22 武汉烽火众智数字技术有限责任公司 Video replay time axis and content synchronous control method for embedded NVR
WO2015159128A1 (en) * 2014-04-16 2015-10-22 Telefonaktiebolaget L M Ericsson (Publ) System and method of providing direct access to specific timestamp points of streamed video content during consumption on a limited interaction capability device
KR20170026040A (en) * 2015-08-26 2017-03-08 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105933800A (en) * 2016-04-29 2016-09-07 联发科技(新加坡)私人有限公司 Video play method and control terminal
CN107801100A (en) * 2017-09-27 2018-03-13 北京潘达互娱科技有限公司 A kind of video location player method and device
CN108540861A (en) * 2018-04-20 2018-09-14 北京邮电大学 A kind of method and device of synchronous driving video and wheelpath
CN111432283B (en) * 2019-11-27 2022-04-05 杭州海康威视数字技术股份有限公司 Video playback time determination method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156477A (en) * 2018-01-05 2018-06-12 上海小蚁科技有限公司 Video data acquiring method, order method and device, storage medium, camera terminal, user terminal
CN109275046A (en) * 2018-08-21 2019-01-25 华中师范大学 A kind of teaching data mask method based on double video acquisitions
CN111131874A (en) * 2018-11-01 2020-05-08 珠海格力电器股份有限公司 Method and equipment for solving problem of H.256 code stream random access point playing jam

Also Published As

Publication number Publication date
CN113259739A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN110999311B (en) Method, computing system and readable medium for media content processing
CN110248204B (en) Processing method, device, equipment and storage medium for live broadcast cache
US10182261B2 (en) Systems and method for analyzing advertisement pods
JP7313445B2 (en) Dynamic shortening in replacement content playback to help align the end of replacement content with the end of replaced content
WO2017067489A1 (en) Set-top box audio-visual synchronization method, device and storage medium
CN108540819B (en) Live broadcast data processing method and device, computer equipment and storage medium
KR101533174B1 (en) Method of processing a sequence of coded video frames
CN112822503B (en) Method, device and equipment for playing live video stream and storage medium
CN109714622B (en) Video data processing method and device and electronic equipment
US20120109726A1 (en) Methods and Systems for Trigger-Based Updating of an Index File Associated with a Captured Media Content Instance
KR102311314B1 (en) Advance preparation for content modification based on expected latency in obtaining new content
CN112601127A (en) Video display method and device, electronic equipment and computer readable storage medium
CN106331871B (en) Method and device for realizing fast forward or fast backward of video stream
CN113507617B (en) SEI frame playback data synchronization method, system, device and medium based on live video stream
CN112866755B (en) Video playing method and device, electronic equipment and storage medium
CN115002505A (en) Time shift control method and device for interrupting reconnected live stream
CN113259739B (en) Video display method, video display device, computer equipment and readable storage medium
CN110072123B (en) Video recovery playing method, video playing terminal and server
CN113766261A (en) Method and device for determining pre-pulling duration, electronic equipment and storage medium
JP4900246B2 (en) Broadcast receiving device that prioritizes broadcast that should be provided immediately when viewing time-shift
WO2017006156A1 (en) Enhanced restart tv
EP3151549A1 (en) A digital video recorder and a method for dynamic management of advertising content on a digital video recorder
CN115119009A (en) Video alignment method, video encoding device and storage medium
JP2009290768A (en) Video processing apparatus and video processing method
US11109080B2 (en) Method and device for delivering a content

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240105

Address after: Room 528, Building 2, Innovation Center, Science and Technology City New Area, Mianyang City, Sichuan Province, 621000

Patentee after: Sichuan Changhong Xinwang Technology Co.,Ltd.

Address before: 621000 room 529, building 2, innovation center, science and innovation District, Mianyang City, Sichuan Province

Patentee before: SICHUAN CHANGHONG NETWORK TECHNOLOGY Co.,Ltd.