CN108156515B - Video playing method, smart television and computer readable storage medium - Google Patents

Video playing method, smart television and computer readable storage medium Download PDF

Info

Publication number
CN108156515B
CN108156515B CN201711455353.0A CN201711455353A CN108156515B CN 108156515 B CN108156515 B CN 108156515B CN 201711455353 A CN201711455353 A CN 201711455353A CN 108156515 B CN108156515 B CN 108156515B
Authority
CN
China
Prior art keywords
frame
video
displayed
picture frame
current
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
CN201711455353.0A
Other languages
Chinese (zh)
Other versions
CN108156515A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201711455353.0A priority Critical patent/CN108156515B/en
Publication of CN108156515A publication Critical patent/CN108156515A/en
Application granted granted Critical
Publication of CN108156515B publication Critical patent/CN108156515B/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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • 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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • 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 discloses a video playing method, an intelligent television and a computer readable storage medium. When the intelligent television requests the current video through a VOD technology, the intelligent television acquires the buffer data of the current video and judges whether the data volume of the buffer data is less than or equal to a preset threshold value or not; and when the data volume of the buffer data is less than or equal to the preset threshold value, recording the screen of the current video to obtain a screen recording file, and playing the screen recording file. According to the invention, when the video cannot be smoothly played, the current video is recorded, so that the video can be smoothly watched by playing the local screen recording video when the VOD technology cannot guarantee the smooth playing of the video, and the technical problem that the video cannot be normally played due to poor network speed environment when the VOD technology is applied to video on-demand broadcasting is solved.

Description

Video playing method, smart television and computer readable storage medium
Technical Field
The invention relates to the field of network televisions, in particular to a video playing method, an intelligent television and a computer readable storage medium.
Background
Currently, a Video On Demand (VOD) technology is mostly used by a smart television used by a user to play a Video, wherein the VOD technology enables the user to select a Video program to play as desired, and a common VOD application scenario, for example, a YouTube application VOD technology of a Video website, provides a browsing service of a Video clip to a netizen.
When a user watches a 4K video through a smart tv to which a VOD technology is applied, since a pixel resolution of the 4K video is high, a certain stable bandwidth needs to be ensured to smoothly watch the video. And when the network speed of the smart television cannot guarantee the stable bandwidth, pausing the playing of the video to buffer the video, and when the obtained video buffer reaches a certain magnitude, for example, when the obtained video buffer reaches 10 seconds, jumping out of the video buffering process and starting to play the content of the video buffer.
However, if the network speed used by the user is low, a stable bandwidth cannot be ensured to smoothly view the video, and a certain level of video buffer cannot be quickly obtained to finally play the video. The buffering time is too long due to the fact that the user is in a low network speed for a long time, and the video buffering is frequently performed, so that the video is always in a pause state or a pause non-playing state for a long time when the user watches the video, and the video cannot be played normally.
Therefore, when the intelligent television is used for video on-demand broadcasting by applying the VOD technology, the technical problem that the video cannot be normally played due to poor network speed environment exists.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a video playing method, a smart television and a computer readable storage medium, and aims to solve the technical problem that when video is played on a video point by applying a VOD (video on demand) technology in the prior art, the video cannot be played normally due to poor network speed environment.
In order to achieve the above object, the present invention provides a video playing method, including the following steps:
when the intelligent television requests a current video through a VOD technology, obtaining buffer data of the current video, and judging whether the data volume of the buffer data is less than or equal to a preset threshold value or not;
and when the data volume of the buffer data is less than or equal to the preset threshold value, recording the screen of the current video to obtain a screen recording file, and playing the screen recording file.
Preferably, when the data amount of the buffer data is less than or equal to the preset threshold, recording a screen of the current video to obtain a screen recording file, and playing the screen recording file, specifically including:
when the data amount of the buffer data is smaller than or equal to the preset threshold value, acquiring the frame rate of the current video;
capturing the current video according to the frame rate to capture a picture frame to be displayed;
saving the picture frame to be displayed and recording a time stamp of the picture frame to be displayed;
and acquiring audio data corresponding to the picture frame to be displayed based on the timestamp, combining the picture frame to be displayed and the audio data to obtain a screen recording file, and playing the screen recording file.
Preferably, the capturing the current video according to the frame rate to capture a frame of a picture to be displayed specifically includes:
responding to a frame rate adjusting instruction input by a user, acquiring preset frame rates of which the frame rates are less than or equal to the frame rate of the current video, and selecting a target frame rate from the preset frame rates according to the frame rate adjusting instruction;
and capturing the current video according to the target frame rate to obtain a picture frame to be displayed.
Preferably, after the capturing the current video according to the frame rate to capture the frame of the picture to be displayed, the video playing method further includes:
checking whether prompt information is displayed in the frame of the picture to be displayed;
and when the prompt information is not displayed in the picture frame to be displayed, executing the steps of storing the picture frame to be displayed and recording the time stamp of the picture frame to be displayed.
Preferably, after checking whether the frame of the picture to be displayed displays the prompt message, the video playing method further includes:
and when the prompt information is displayed in the picture frame to be displayed, discarding the picture frame to be displayed, taking the next frame of the picture frame to be displayed as the picture frame to be displayed, and returning to execute the step of checking whether the prompt information is displayed in the picture frame to be displayed.
Preferably, after the capturing the current video according to the frame rate to capture the frame of the picture to be displayed, the video playing method further includes:
taking the picture frame to be displayed as a current picture frame, and reading a next picture frame of the current picture frame based on a preset time axis;
comparing the current picture frame with the next picture frame;
and when the current picture frame is different from the next picture frame, taking the next picture frame as the picture frame to be displayed, storing the picture frame to be displayed, and recording the time stamp of the picture frame to be displayed.
Preferably, after comparing the current frame to be displayed with the next frame to be displayed, the video playing method further includes:
discarding the next picture frame when the current picture frame is the same as the next picture frame;
and taking the next frame of the next picture frame as a new next picture frame, and returning to execute the step of comparing the current picture frame with the next picture frame.
Preferably, when the data amount of the buffered data is less than or equal to the preset threshold, acquiring the frame rate of the current video specifically includes:
when the data volume of the buffer data is less than or equal to the preset threshold value, recording the current playing progress of the current video;
and modifying the preset starting timestamp of the current video into the timestamp corresponding to the current playing progress, and acquiring the frame rate of the current video.
In addition, to achieve the above object, the present invention further provides a smart tv, including: a memory, a processor and a video playback program stored on the memory and executable on the processor, the video playback program being configured to implement the steps of the video playback method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium having a video playing program stored thereon, which when executed by a processor implements the steps of the video playing method as described above.
According to the invention, when the video cannot be smoothly played, the current video is recorded, so that the video can be smoothly watched by playing the local screen recording video when the VOD technology cannot guarantee the smooth playing of the video, and the technical problem that the video cannot be normally played due to poor network speed environment when the VOD technology is applied to video on-demand broadcasting is solved.
Drawings
Fig. 1 is a schematic diagram of a smart television structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a video playing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a video playing method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a video playing method according to a third embodiment of the present invention;
fig. 5 is a flowchart illustrating a video playing method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent television in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the smart tv may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the smart tv, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a video playback program.
In the smart television shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting peripheral equipment; the smart television calls a video playing program stored in the memory 1005 through the processor 1001, and performs the following operations:
when a current video is requested through a VOD technology, obtaining buffer data of the current video, and judging whether the data volume of the buffer data is less than or equal to a preset threshold value or not;
and when the data volume of the buffer data is less than or equal to the preset threshold value, recording the screen of the current video to obtain a screen recording file, and playing the screen recording file.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
when the data amount of the buffer data is smaller than or equal to the preset threshold value, acquiring the frame rate of the current video;
capturing the current video according to the frame rate to capture a picture frame to be displayed;
saving the picture frame to be displayed and recording a time stamp of the picture frame to be displayed;
and acquiring audio data corresponding to the picture frame to be displayed based on the timestamp, combining the picture frame to be displayed and the audio data to obtain a screen recording file, and playing the screen recording file.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
responding to a frame rate adjusting instruction input by a user, acquiring preset frame rates of which the frame rates are less than or equal to the frame rate of the current video, and selecting a target frame rate from the preset frame rates according to the frame rate adjusting instruction;
and capturing the current video according to the target frame rate to obtain a picture frame to be displayed.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
checking whether prompt information is displayed in the frame of the picture to be displayed;
and when the prompt information is not displayed in the picture frame to be displayed, executing the steps of storing the picture frame to be displayed and recording the time stamp of the picture frame to be displayed.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
and when the prompt information is displayed in the picture frame to be displayed, discarding the picture frame to be displayed, taking the next frame of the picture frame to be displayed as the picture frame to be displayed, and returning to execute the step of checking whether the prompt information is displayed in the picture frame to be displayed.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
taking the picture frame to be displayed as a current picture frame, and reading a next picture frame of the current picture frame based on a preset time axis;
comparing the current picture frame with the next picture frame;
and when the current picture frame is different from the next picture frame, taking the next picture frame as the picture frame to be displayed, storing the picture frame to be displayed, and recording the time stamp of the picture frame to be displayed.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
discarding the next picture frame when the current picture frame is the same as the next picture frame;
and taking the next frame of the next picture frame as a new next picture frame, and returning to execute the step of comparing the current picture frame with the next picture frame.
Further, the processor 1001 may call a video playing program stored in the memory 1005, and further perform the following operations:
when the data volume of the buffer data is less than or equal to the preset threshold value, recording the current playing progress of the current video;
and modifying the preset starting timestamp of the current video into the timestamp corresponding to the current playing progress, and acquiring the frame rate of the current video.
In the embodiment, the current video is recorded when the video cannot be smoothly played, so that the video can be smoothly watched by playing the local screen recording video when the VOD technology cannot guarantee smooth playing of the video, and the technical problem that the video cannot be normally played due to poor network speed environment when the VOD technology is applied to video spot playing is solved.
Based on the hardware structure, the embodiment of the video playing method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a video playing method according to a first embodiment of the present invention.
In a first embodiment, the video playing method includes the following steps:
step S10: when a current video is requested through a VOD technology, obtaining buffer data of the current video, and judging whether the data volume of the buffer data is less than or equal to a preset threshold value or not;
it is understood that the execution subject is a smart tv. When a user plays a video program by using the smart television, because the smart television plays the video by applying the VOD technology, when the network speed is poor, the playing is suspended to buffer the video. However, if the network environment is unstable and the network speed is extremely low, the video is finally played through the video buffering, which causes the video to be in a stuck state all the time, and the switching is quickly performed between the state of "pausing and buffering the video" and the state of "playing the buffered video", which causes the user experience of watching the video to be poor. In view of the above reasons, when the network speed is relatively low, the video to be played is recorded, and the picture of the recorded screen is played to realize the playing of the video. Since the VOD technology is an online viewing mode, the VOD technology cannot provide a local download function, and the VOD technology cannot provide a large storage space, the play of the video is finally realized by a screen recording mode, and the VOD technology can be well integrated.
In a specific implementation, for example, when the smart television plays a video of a program a through a VOD technology, if the minimum network speed for ensuring that the program a can be smoothly played is 500KB/S, and the real-time network speed when the program a is played is 400KB/S, since the real-time network speed is less than the minimum network speed, it may be determined whether the data amount of the buffer data of the program a is less than or equal to the preset threshold. If the data volume of the buffer data of the program a is 2 seconds of video and the preset threshold is 10 seconds of video, it can be determined that the program a cannot be smoothly played because the data volume of the buffer data is less than or equal to the preset threshold.
Step S20: and when the data volume of the buffer data is less than or equal to the preset threshold value, recording the screen of the current video to obtain a screen recording file, and playing the screen recording file.
It should be understood that when the a program cannot be smoothly played, the a program may be recorded, and a local video of the a program is generated through the recording, and a user may view the program by directly opening the local video. Because the VOD technology can not provide the local downloading function, the screen recording operation can be carried out on the intelligent television applying the VOD technology, the normal playing of the video can be well realized, and the situation that the video is frequently buffered and blocked is avoided.
In the embodiment, the current video is recorded when the video cannot be smoothly played, so that the video can be smoothly watched by playing the local screen recording video when the VOD technology cannot guarantee smooth playing of the video, and the technical problem that the video cannot be normally played due to poor network speed environment when the VOD technology is applied to video spot playing is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a video playing method according to a second embodiment of the present invention, and the video playing method according to the second embodiment of the present invention is proposed based on the first embodiment shown in fig. 2.
In the second embodiment, the step S20 specifically includes:
step S201: when the data amount of the buffer data is smaller than or equal to the preset threshold value, acquiring the frame rate of the current video;
it can be understood that, when a current video, that is, an a program, is recorded, it is considered that video information and audio information exist in the a program at the same time, and in order to prevent a situation that a video picture is not synchronized with sound when a finally obtained recording file is played, the recording file can be obtained by aligning timestamps when the recording file is generated, so that synchronization of the video picture and the sound is ensured.
In a specific implementation, when the data amount of the buffer data of the program a is 2 seconds of video, the video that is smaller than the preset threshold value, that is, 10 seconds, will first obtain the play frame rate of the program a.
Step S202: capturing the current video according to the frame rate to capture a picture frame to be displayed;
it can be understood that, when the playing frame rate of the a program is obtained, the a program is grabbed based on the playing frame rate. The frame rate is used for recording the display frame number per second, the video inherent frame rate of the program A is obtained, the program A is grabbed based on the inherent frame rate, the definition of the video data of the obtained screen recording file and the video data of the program A which is not recorded during normal playing can be guaranteed to be the same, if the program A is not grabbed according to the inherent frame rate, the screen recording file is grabbed only by adopting the frame rate smaller than the inherent frame rate, and the finally grabbed screen recording file can be played unsmoothly or with lower definition.
Step S203: saving the picture frame to be displayed and recording a time stamp of the picture frame to be displayed;
step S204: and acquiring audio data corresponding to the picture frame to be displayed based on the timestamp, combining the picture frame to be displayed and the audio data to obtain a screen recording file, and playing the screen recording file.
It should be understood that after the frame rate of the a program is obtained, the timestamp of the currently obtained frame to be displayed may be recorded, and the audio data corresponding to the frame to be displayed is obtained based on the timestamp, so as to ensure that the frame and the audio are synchronous, and a situation that the frame precedes the audio or the audio precedes the frame does not occur when the screen recording file is played.
Further, the step S202 may further include, in response to a frame rate adjustment instruction input by a user, acquiring preset frame rates that are less than or equal to the frame rate of the current video, and selecting a target frame rate from the preset frame rates according to the frame rate adjustment instruction; and capturing the current video according to the target frame rate to obtain a picture frame to be displayed.
It will be appreciated that the screen recording may be taken into account when the network speed is poor or unstable so that the user may eventually watch the program a smoothly. However, when the network speed is slow but the frame rate of the program a is too high, if the frame of the picture to be displayed is still captured according to the larger frame rate of the program a, the time for finally acquiring the complete screen recording file may be long. Therefore, in consideration of the difference of the network speed, the user can freely select the frame rate of the captured frame to determine the definition and the time consumption of the acquired screen recording file, because the larger the frame rate of the captured video is, the higher the definition of the finally acquired screen recording file is, but the network speed requirement is higher and the time consumption is longer.
In a specific implementation, when the inherent frame rate of the acquired program a is 100, a plurality of selectable frame rates from 0 to 100 may be displayed on an operation interface of the smart television for the user to select. If the user selects the target frame rate by clicking a physical key or a virtual key of the smart television or a remote controller matched with the smart television, for example, the target frame rate can be selected to be 50 from a plurality of selectable frame rates from 0 to 100, the program a can be captured according to the target frame rate 50, and compared with the capture of the program a through the inherent frame rate 100, if the network speed is kept unchanged, the screen recording file captured according to the target frame rate 50 has lower definition but shorter time consumption.
In this embodiment, the corresponding audio is determined based on the timestamp of the picture frame, so that when the screen recording file obtained by finally combining the picture frame and the audio is played, the picture and the sound are not synchronized. In addition, the definition of the screen recording file can be well ensured by capturing the picture frame based on the frame rate of the current video.
Referring to fig. 4, fig. 4 is a flowchart illustrating a video playing method according to a third embodiment of the present invention, and the video playing method according to the third embodiment of the present invention is proposed based on the second embodiment shown in fig. 3.
In a third embodiment, after the step S202, the video playing method further includes:
step S202': checking whether prompt information is displayed in the frame of the picture to be displayed;
it can be understood that, during the process of capturing and saving a frame, an invalid frame may be captured, and specifically, there may be prompt information in the captured frame, for example, there are prompt words "capturing in the middle of the frame, please wait slightly" buffering "and so on in the center of the frame, so as to represent that the frame cannot be captured normally due to a slow network or a player. However, if the screen in which the cue word exists is also recorded into the finally generated screen recording file during the screen recording process, the screen including the cue word does not exist in the video screen of the program a, and the recording of the screen recording file also affects the normal watching of the program a by the user, so the screen including the cue word can be not recorded into the screen recording file.
In a specific implementation, after a to-be-displayed picture frame of a program a is captured, whether prompt information exists in the to-be-displayed picture frame is detected, and if the prompt information does not exist, the to-be-displayed picture frame is stored.
And executing step S203 when the prompt information is not displayed in the frame of the picture to be displayed.
Further, after the step S202', the video playing method further includes:
and executing step S203' when the prompt information is displayed in the frame of the picture to be displayed.
Step S203': discarding the picture frame to be displayed, and taking the next frame of the picture frame to be displayed as the picture frame to be displayed;
it can be understood that, if it is detected that the frame to be displayed has the prompt information, the frame to be displayed is not stored, and the frame to be displayed can be discarded, so that the situation that the user normally watches the program a in the screen recording file is influenced by storing the frame to be displayed in the screen recording file is avoided. And after discarding the frame to be displayed, reading the frame of the next frame to detect the prompt information again, so as to ensure that the finally obtained screen recording file does not include the frame displaying the prompt information.
After step S203', the process returns to the step S202'.
In this embodiment, the picture frame including the prompt information is discarded, so as to ensure that the recording file that can be finally viewed by the user does not include an invalid prompt picture, so that the user can smoothly view the video content.
Referring to fig. 5, fig. 5 is a flowchart illustrating a video playing method according to a fourth embodiment of the present invention, and the video playing method according to the fourth embodiment of the present invention is proposed based on the second embodiment shown in fig. 3.
In a fourth embodiment, after the step S202, the video playing method further includes:
step S2021: taking the picture frame to be displayed as a current picture frame, and reading a next picture frame of the current picture frame based on a preset time axis;
it can be understood that, in view of repeated capturing caused by the problems of video blocking or unstable network during screen recording when capturing the picture frames, for example, when a user views a finally generated screen recording file, the user may feel that video playing is blocked or the video is paused for a short time, thereby affecting the viewing experience of the user. Therefore, when capturing the frame, the previous frame can be compared with the continuous next frame to find the repeatedly captured frame, thereby avoiding the above-mentioned problem of repeated capture.
Step S2022: comparing the current picture frame with the next picture frame;
in a specific implementation, when capturing frame frames for the program a, if two consecutive frames on the time axis are captured as a "current frame" and a "next frame", respectively, the "current frame" and the "next frame" may be compared to determine whether a repeated capture condition occurs.
Further, when the current frame is different from the next frame, step S2023 is performed.
Step S2023: taking the next picture frame as the picture frame to be displayed;
it can be understood that if the current frame is different from the next frame, it indicates that no repeated capture occurs, and the frame can be normally saved to generate a screen recording file.
After step S2023, step S203 is executed.
Further, when the current picture frame is the same as the next picture frame, step S20231 is performed.
Step S20231: discarding the next picture frame;
it should be understood that if the current frame is the same as the next frame, indicating that a video jam may occur due to a network problem, the same frame is continuously captured during screen recording, and if the same current frame and the next frame are both stored in the screen recording file, the user may also have a video jam while viewing the screen recording file. In order to avoid the video pause, the next frame may be discarded, and only the current frame is saved, and the same frame is not needed to be saved.
Step S20232: taking a next frame of the next picture frame as a new next picture frame;
after step S20232, step S2022 is performed.
In a specific implementation, in order to ensure that video blocking can be avoided in subsequent frame capture, for example, the "current frame" is frame 1, and the "next frame" is frame 2, since the two frames are the same, frame 1 can be retained and frame 2 can be discarded, and the next frame of the next frame can be read as the next frame, that is, "next frame" is frame 3, and the action of comparing frame 1, which is the current frame, and frame 3, which is the next frame, is executed again, so as to ensure that video blocking can be avoided in subsequent frame capture.
Further, the step S201 may further include: when the data volume of the buffer data is less than or equal to the preset threshold value, recording the current playing progress of the current video; and modifying the preset starting timestamp of the current video into the timestamp corresponding to the current playing progress, and acquiring the frame rate of the current video.
It is to be understood that, in order to speed up the time for the user to acquire the screen recording file, in view of the implementation scenario of the present embodiment, when the current video is requested by the VOD technology, the screen recording operation is taken due to too little buffer data to ensure that the user can watch the video smoothly, indicating that the user may have watched a part of the long video. For example, if the program a requested by the user is a video with a duration of 120 minutes, and the current playing progress of the program a is recorded to be 50 minutes, which indicates that the user has watched the video content of the first 50 minutes, considering that the network environment is poor and the user wants to watch the program faster, the video of the last 70 minutes can be directly recorded, so as to reduce the time consumed by recording the screen. Therefore, the preset starting timestamp of the program a can be modified from the 0 th minute time to the 50 th minute time, so that for the subsequent screen recording operation, the screen recording object is a video from the 50 th minute time to the 120 th minute time instead of the video from the 0 th minute time to the 120 th minute time, and the speed of acquiring the screen recording file can be increased.
In the embodiment, the current picture frame is compared with the next picture frame to avoid repeated frame numbers, so that the situation that the video is blocked can be avoided in the capturing process of the picture frames.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a video playing program is stored on the computer-readable storage medium, and when executed by a processor, the video playing program implements the following operations:
when a current video is requested through a VOD technology, obtaining buffer data of the current video, and judging whether the data volume of the buffer data is less than or equal to a preset threshold value or not;
and when the data volume of the buffer data is less than or equal to the preset threshold value, recording the screen of the current video to obtain a screen recording file, and playing the screen recording file.
Further, the video playing program, when executed by the processor, further implements the following operations:
when the data amount of the buffer data is smaller than or equal to the preset threshold value, acquiring the frame rate of the current video;
capturing the current video according to the frame rate to capture a picture frame to be displayed;
saving the picture frame to be displayed and recording a time stamp of the picture frame to be displayed;
and acquiring audio data corresponding to the picture frame to be displayed based on the timestamp, combining the picture frame to be displayed and the audio data to obtain a screen recording file, and playing the screen recording file.
Further, the video playing program, when executed by the processor, further implements the following operations:
responding to a frame rate adjusting instruction input by a user, acquiring preset frame rates of which the frame rates are less than or equal to the frame rate of the current video, and selecting a target frame rate from the preset frame rates according to the frame rate adjusting instruction;
and capturing the current video according to the target frame rate to obtain a picture frame to be displayed.
Further, the video playing program, when executed by the processor, further implements the following operations:
checking whether prompt information is displayed in the frame of the picture to be displayed;
and when the prompt information is not displayed in the picture frame to be displayed, executing the steps of storing the picture frame to be displayed and recording the time stamp of the picture frame to be displayed.
Further, the video playing program, when executed by the processor, further implements the following operations:
and when the prompt information is displayed in the picture frame to be displayed, discarding the picture frame to be displayed, taking the next frame of the picture frame to be displayed as the picture frame to be displayed, and returning to execute the step of checking whether the prompt information is displayed in the picture frame to be displayed.
Further, the video playing program, when executed by the processor, further implements the following operations:
taking the picture frame to be displayed as a current picture frame, and reading a next picture frame of the current picture frame based on a preset time axis;
comparing the current picture frame with the next picture frame;
and when the current picture frame is different from the next picture frame, taking the next picture frame as the picture frame to be displayed, storing the picture frame to be displayed, and recording the time stamp of the picture frame to be displayed.
Further, the video playing program, when executed by the processor, further implements the following operations:
discarding the next picture frame when the current picture frame is the same as the next picture frame;
and taking the next frame of the next picture frame as a new next picture frame, and returning to execute the step of comparing the current picture frame with the next picture frame.
In the embodiment, the current video is recorded when the video cannot be smoothly played, so that the video can be smoothly watched by playing the local screen recording video when the VOD technology cannot guarantee smooth playing of the video, and the technical problem that the video cannot be normally played due to poor network speed environment when the VOD technology is applied to video spot playing is solved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A video playing method is characterized by comprising the following steps:
when the intelligent television requests a current video through a VOD technology, obtaining buffer data of the current video, and judging whether the data volume of the buffer data is less than or equal to a preset threshold value or not;
when the data volume of the buffer data is less than or equal to the preset threshold value, recording a screen of the current video to obtain a screen recording file, and playing the screen recording file;
when the data volume of the buffer data is less than or equal to the preset threshold, recording a screen of the current video to obtain a screen recording file, and playing the screen recording file, which specifically includes:
when the data amount of the buffer data is smaller than or equal to the preset threshold value, acquiring the frame rate of the current video;
capturing the current video according to the frame rate to capture a picture frame to be displayed;
saving the picture frame to be displayed and recording a time stamp of the picture frame to be displayed;
acquiring audio data corresponding to the picture frame to be displayed based on the timestamp, combining the picture frame to be displayed and the audio data to obtain a screen recording file, and playing the screen recording file;
the capturing the current video according to the frame rate to capture a frame of a picture to be displayed specifically includes:
responding to a frame rate adjusting instruction input by a user, acquiring preset frame rates of which the frame rates are less than or equal to the frame rate of the current video, and selecting a target frame rate from the preset frame rates according to the frame rate adjusting instruction;
and capturing the current video according to the target frame rate to obtain a picture frame to be displayed.
2. The video playing method according to claim 1, wherein the capturing the current video according to the frame rate to capture a frame of a picture to be displayed, the video playing method further comprises:
checking whether prompt information is displayed in the frame of the picture to be displayed;
and when the prompt information is not displayed in the picture frame to be displayed, executing the steps of storing the picture frame to be displayed and recording the time stamp of the picture frame to be displayed.
3. The video playing method according to claim 2, wherein after checking whether the frame to be displayed displays the prompt message, the video playing method further comprises:
and when the prompt information is displayed in the picture frame to be displayed, discarding the picture frame to be displayed, taking the next frame of the picture frame to be displayed as the picture frame to be displayed, and returning to execute the step of checking whether the prompt information is displayed in the picture frame to be displayed.
4. The video playing method according to claim 1, wherein the capturing the current video according to the frame rate to capture a frame of a picture to be displayed, the video playing method further comprises:
taking the picture frame to be displayed as a current picture frame, and reading a next picture frame of the current picture frame based on a preset time axis;
comparing the current picture frame with the next picture frame;
and when the current picture frame is different from the next picture frame, taking the next picture frame as the picture frame to be displayed, storing the picture frame to be displayed, and recording the time stamp of the picture frame to be displayed.
5. The video playing method according to claim 4, wherein after comparing the current frame with the next frame, the video playing method further comprises:
discarding the next picture frame when the current picture frame is the same as the next picture frame;
and taking the next frame of the next picture frame as a new next picture frame, and returning to execute the step of comparing the current picture frame with the next picture frame.
6. The video playing method according to any one of claims 1 to 5, wherein the obtaining the frame rate of the current video when the data amount of the buffered data is less than or equal to the preset threshold specifically includes:
when the data volume of the buffer data is less than or equal to the preset threshold value, recording the current playing progress of the current video;
and modifying the preset starting timestamp of the current video into the timestamp corresponding to the current playing progress, and acquiring the frame rate of the current video.
7. An intelligent television, characterized in that the intelligent television comprises: memory, processor and a video playback program stored on the memory and executable on the processor, the video playback program, when executed by the processor, implementing the steps of the video playback method as claimed in any one of claims 1 to 6.
8. A computer-readable storage medium, having a video playback program stored thereon, which when executed by a processor implements the steps of the video playback method according to any one of claims 1 to 6.
CN201711455353.0A 2017-12-27 2017-12-27 Video playing method, smart television and computer readable storage medium Active CN108156515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711455353.0A CN108156515B (en) 2017-12-27 2017-12-27 Video playing method, smart television and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711455353.0A CN108156515B (en) 2017-12-27 2017-12-27 Video playing method, smart television and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108156515A CN108156515A (en) 2018-06-12
CN108156515B true CN108156515B (en) 2021-04-16

Family

ID=62463770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711455353.0A Active CN108156515B (en) 2017-12-27 2017-12-27 Video playing method, smart television and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108156515B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113066478A (en) * 2020-12-07 2021-07-02 泰州市朗嘉馨网络科技有限公司 Dialect recognition system based on model training

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110102442A1 (en) * 2009-11-04 2011-05-05 Ahmed Rafeek Bin Ahmad Ibrahim Recording Contents of Display Screens
CN104092920A (en) * 2014-07-16 2014-10-08 浙江航天长峰科技发展有限公司 Audio and video synchronizing method
CN105657498B (en) * 2016-02-17 2018-11-06 腾讯科技(深圳)有限公司 The video recording method and device of mobile terminal
CN105916058B (en) * 2016-05-05 2019-09-20 青岛海信宽带多媒体技术有限公司 A kind of streaming media buffer playback method, device and display equipment
CN107371064B (en) * 2017-07-03 2020-02-07 奇酷互联网络科技(深圳)有限公司 Mobile terminal and audio and video playing method and device thereof
CN107451066A (en) * 2017-08-22 2017-12-08 网易(杭州)网络有限公司 Interim card treating method and apparatus, storage medium, terminal

Also Published As

Publication number Publication date
CN108156515A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
US9519416B2 (en) System and method to display a progress bar
WO2015062435A1 (en) Method and device for adjusting video playback interface
US20090310933A1 (en) Concurrently Displaying Multiple Trick Streams for Video
US11089070B2 (en) Adaptive bitrate optimization upon video streaming initialization
US20160316274A1 (en) Method and system for switching video playback resolution
US11368749B2 (en) Substituting alternative media for presentation during variable speed operation
US20060161854A1 (en) Method and apparatus for controlling operation of screen saver during reproduction of content
CN112788268B (en) Information pushing method based on video recording, intelligent television and storage medium
CN104080006A (en) Video processing device and method
CN107690093B (en) Video playing method and device
CN107333147B (en) Video buffer control method, terminal and storage device
US10462531B2 (en) Methods, systems, and media for presenting an advertisement while buffering a video
CN111698261B (en) Video playing method, device, equipment and storage medium based on streaming media
CN108156515B (en) Video playing method, smart television and computer readable storage medium
CN109922366B (en) Equipment parameter adjusting method, device, equipment and medium
CN109348280B (en) Network television program switching method, intelligent television and computer readable storage medium
US9721615B2 (en) Non-linear video review buffer navigation
CN114268830A (en) Cloud director synchronization method, device, equipment and storage medium
CN107682733B (en) Control method and system for improving user experience of watching video
CN113271499B (en) Play control method, device, computer program product and storage medium
TWI524767B (en) Receiving device, screen frame transmission system and method
EP2568701A1 (en) Method and apparatus for storing a broadcast
CN112752150A (en) Video decoding method and device, electronic equipment and storage medium
CN113596594A (en) Time-shift playing method and device for television, television and storage medium
CN114610261A (en) Terminal screen projection method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant