CN108156515A - Video broadcasting method, smart television and computer readable storage medium - Google Patents

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

Info

Publication number
CN108156515A
CN108156515A CN201711455353.0A CN201711455353A CN108156515A CN 108156515 A CN108156515 A CN 108156515A CN 201711455353 A CN201711455353 A CN 201711455353A CN 108156515 A CN108156515 A CN 108156515A
Authority
CN
China
Prior art keywords
video
image frame
frame
presented
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.)
Granted
Application number
CN201711455353.0A
Other languages
Chinese (zh)
Other versions
CN108156515B (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

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 video broadcasting method, smart television and computer readable storage mediums.Smart television obtains the buffered data of the current video when by VOD technology program request current videos in the present invention, and judges whether the data volume of the buffered data is less than or equal to predetermined threshold value;When the data volume of the buffered data is less than or equal to the predetermined threshold value, record screen is carried out to the current video, obtains record screen file, and the record screen file is played out.In the present invention by video can not smooth playing when, record screen is carried out to current video, it is achieved thereby that video is watched glibly by playing local record screen video when VOD technologies can not ensure the smooth playing of video, also it just overcomes when application VOD technologies carry out video on demand, there is technical issues that network speed environment is poor and causes video can not.

Description

Video broadcasting method, smart television and computer readable storage medium
Technical field
The present invention relates to network television field more particularly to video broadcasting method, smart television and computer-readable storages Medium.
Background technology
The smart television that active user uses mostly is regarded using video on demand techniques (Video On Demand, VOD) to play Frequently, wherein, the VOD technologies cause user video frequency program can be selected to play out by personal inclination, common VOD applied fields Scape, for example, video website YouTube application VOD technologies provide the browsing service of video clip to netizen.
When user is by applying the smart television of VOD technologies come when watching 4K videos, since the pixel of 4K videos is differentiated Rate is higher, needs to ensure that certain stabilization bandwidth could swimmingly watch video.And when the network speed of smart television can not ensure this When stablizing bandwidth, by the broadcasting for suspending video to carry out the buffering of video, when the video buffer got reaches a certain amount grade When, for example, when the video buffer got has reached 10 seconds, the buffering course of video is will jump out, starts to play the video buffer Content.
But if network speed used by a user is poor, it can not both ensure to stablize bandwidth swimmingly to watch video, also can not The video buffer for getting certain magnitude quickly carrys out the final broadcasting for carrying out video.May low net be in due to user for a long time Speed, and cause buffer time long, and continually carrying out video buffer so that user's video when watching video is constantly in Interim card state suspends non-broadcast state for a long time, can not normal play video.
So smart television application VOD technologies carry out video on demand when, it is poor there are network speed environment and cause video without The technical issues of method normal play.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
It is a primary object of the present invention to provide video broadcasting method, smart television and computer readable storage medium, purport It is solving in the prior art when application VOD technologies carry out video on demand, it is poor there are network speed environment and cause video can not be just The technical issues of often playing.
To achieve the above object, the present invention provides a kind of video broadcasting method, and the video broadcasting method includes following step Suddenly:
Smart television obtains the buffered data of the current video, and judge when by VOD technology program request current videos Whether the data volume of the buffered data is less than or equal to predetermined threshold value;
When the data volume of the buffered data is less than or equal to the predetermined threshold value, record screen is carried out to the current video, Record screen file is obtained, and the record screen file is played out.
Preferably, when the data volume in the buffered data is less than or equal to the predetermined threshold value, work as forward sight to described Frequency carries out record screen, obtains record screen file, and the record screen file is played out, specifically includes:
When the data volume of the buffered data is less than or equal to the predetermined threshold value, the frame per second of the current video is obtained;
The current video is captured according to the frame per second, to grab image frame to be presented;
The image frame to be presented is preserved, and records the timestamp of the image frame to be presented;
Audio data corresponding with the image frame to be presented is obtained based on the timestamp, by the image frame to be presented It is merged with the audio data, records screen file to obtain, and the record screen file is played out.
Preferably, it is described that the current video is captured according to the frame per second, to grab image frame to be presented, tool Body includes:
It is instructed in response to frame rate adjustment input by user, obtains each default frame of the frame per second less than or equal to the current video Rate chooses target frame rate according to frame rate adjustment instruction from each preset frame rate;
The current video is captured according to the target frame rate, obtains image frame to be presented.
Preferably, it is described that the current video is captured according to the frame per second, with grab image frame to be presented it Afterwards, the video broadcasting method further includes:
Check in the image frame to be presented whether display reminding information;
When not showing the prompt message in the image frame to be presented, the preservation picture to be presented is performed Frame, and the step of record the timestamp of the image frame to be presented.
Preferably, it is described to check in the image frame to be presented whether after display reminding information, the video playing side Method further includes:
When showing the prompt message in the image frame to be presented, the image frame to be presented is abandoned, is treated described The next frame of image frame is shown as the image frame to be presented, return perform it is described check in the image frame to be presented whether The step of display reminding information.
Preferably, it is described that the current video is captured according to the frame per second, with grab image frame to be presented it Afterwards, the video broadcasting method further includes:
Using the image frame to be presented as current picture frame, and the current picture frame is read based on preset time axis Next image frame;
The current picture frame is compared with next image frame;
When the current picture frame and next image frame differ, next image frame is waited to open up as described in The step of showing image frame, performing the preservation image frame to be presented, and record the timestamp of the image frame to be presented.
Preferably, it is described the current image frame to be presented is compared with next image frame to be presented after, The video broadcasting method further includes:
When the current picture frame is identical with the next image frame, next image frame is abandoned;
Using the next frame of next image frame as new next image frame, it is described by the current picture to return to execution The step of frame is compared with next image frame.
Preferably, it when the data volume in the buffered data is less than or equal to the predetermined threshold value, obtains described current The frame per second of video, specifically includes:
When the data volume of the buffered data is less than or equal to the predetermined threshold value, records the current of the current video and broadcast Degree of putting into;
The default initial time stamp of the current video is revised as the corresponding timestamp of the currently playing progress, and obtain Take the frame per second of the current video.
In addition, to achieve the above object, the present invention also provides a kind of smart television, the smart television includes:Memory, Processor and the video reproduction program that can be run on the memory and on the processor is stored in, the video playing journey Sequence is arranged for carrying out the step of video broadcasting method as described above.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Video reproduction program is stored on storage medium, regarding as described above is realized when the video reproduction program is executed by processor The step of frequency playback method.
In the present invention by video can not smooth playing when, record screen is carried out to current video, it is achieved thereby that in VOD skills Art can not ensure to watch video glibly by playing local record screen video during the smooth playing of video, also just overcome When carrying out video on demand using VOD technologies, there is technical issues that network speed environment is poor and causes video can not.
Description of the drawings
Fig. 1 is the smart television structure diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of video broadcasting method first embodiment of the present invention;
Fig. 3 is the flow diagram of video broadcasting method second embodiment of the present invention;
Fig. 4 is the flow diagram of video broadcasting method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of video broadcasting method fourth embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the smart television structure diagram of hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the smart television can include:Processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to implement the connection communication between these components. User interface 1003 can include display screen (Display), optional user interface 1003 can also include standard wireline interface, Wireless interface, the wireline interface for user interface 1003 can be USB interface in the present invention.Network interface 1004 optionally may be used To include standard wireline interface and wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, also may be used To be stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be Independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the structure shown in Fig. 1 does not form the restriction to smart television, can wrap It includes and either combines certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as operation can be included in a kind of memory 1005 of computer computer readable storage medium System, network communication module, Subscriber Interface Module SIM and video reproduction program.
In smart television shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is taken with the backstage Device be engaged in into row data communication;User interface 1003 is mainly used for connecting peripheral hardware;The smart television is called by processor 1001 The video reproduction program stored in memory 1005, and perform following operate:
When by VOD technology program request current videos, the buffered data of the current video is obtained, and judge the buffering Whether the data volume of data is less than or equal to predetermined threshold value;
When the data volume of the buffered data is less than or equal to the predetermined threshold value, record screen is carried out to the current video, Record screen file is obtained, and the record screen file is played out.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
When the data volume of the buffered data is less than or equal to the predetermined threshold value, the frame per second of the current video is obtained;
The current video is captured according to the frame per second, to grab image frame to be presented;
The image frame to be presented is preserved, and records the timestamp of the image frame to be presented;
Audio data corresponding with the image frame to be presented is obtained based on the timestamp, by the image frame to be presented It is merged with the audio data, records screen file to obtain, and the record screen file is played out.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
It is instructed in response to frame rate adjustment input by user, obtains each default frame of the frame per second less than or equal to the current video Rate chooses target frame rate according to frame rate adjustment instruction from each preset frame rate;
The current video is captured according to the target frame rate, obtains image frame to be presented.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
Check in the image frame to be presented whether display reminding information;
When not showing the prompt message in the image frame to be presented, the preservation picture to be presented is performed Frame, and the step of record the timestamp of the image frame to be presented.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
When showing the prompt message in the image frame to be presented, the image frame to be presented is abandoned, is treated described The next frame of image frame is shown as the image frame to be presented, return perform it is described check in the image frame to be presented whether The step of display reminding information.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
Using the image frame to be presented as current picture frame, and the current picture frame is read based on preset time axis Next image frame;
The current picture frame is compared with next image frame;
When the current picture frame and next image frame differ, next image frame is waited to open up as described in The step of showing image frame, performing the preservation image frame to be presented, and record the timestamp of the image frame to be presented.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
When the current picture frame is identical with the next image frame, next image frame is abandoned;
Using the next frame of next image frame as new next image frame, it is described by the current picture to return to execution The step of frame is compared with next image frame.
Further, processor 1001 can call the video reproduction program stored in memory 1005, also perform following Operation:
When the data volume of the buffered data is less than or equal to the predetermined threshold value, records the current of the current video and broadcast Degree of putting into;
The default initial time stamp of the current video is revised as the corresponding timestamp of the currently playing progress, and obtain Take the frame per second of the current video.
In the present embodiment by video can not smooth playing when, record screen is carried out to current video, it is achieved thereby that in VOD Technology can not ensure to watch video glibly by playing local record screen video during the smooth playing of video, also just overcome When application VOD technologies carry out video on demand, there is technical issues that network speed environment is poor and causes video can not.
Based on above-mentioned hardware configuration, the embodiment of video broadcasting method of the present invention is proposed.
With reference to Fig. 2, Fig. 2 is the flow diagram of video broadcasting method first embodiment of the present invention.
In the first embodiment, the video broadcasting method includes the following steps:
Step S10:When by VOD technology program request current videos, the buffered data of the current video is obtained, and judge Whether the data volume of the buffered data is less than or equal to predetermined threshold value;
It is understood that executive agent is smart television.When user is when using smart television displaying video programs, by The broadcasting of video is carried out in smart television application VOD technologies, when network speed is poor, broadcasting will be suspended to carry out the buffering of video. But if network environment is not only unstable but also network speed is extremely low, the broadcasting of video is finally carried out by video buffer, video can be caused Interim card state is constantly in, is soon carried out in the state of " pause video playing go forward side by side row buffering " with " play buffering video " Switching causes the experience that user watches video poor.It, can be when network speed be poor, to video to be played in view of above-mentioned reason Record screen is carried out, and plays the picture of record screen to realize the broadcasting of video.Because VOD technologies are the mode watched online, VOD skills Art can not provide the function being locally-downloaded, also, VOD technologies can not also provide the memory space of larger capacity, so, pass through record The mode of screen carrys out the final broadcasting for realizing video, can well combine into VOD technologies.
In the concrete realization, for example, when smart television is in the video that A programs are played by VOD technologies, if ensureing A sections Mesh can be using the minimum network speed of smooth playing as 500KB/S, and when real-time network speed when playing A programs is 400KB/S, due to real-time Network speed is less than the minimum network speed, then can judge whether the data volume of the buffered data of A programs is less than or equal to predetermined threshold value again.Its In, if the data volume of the buffered data of A programs is the video of 2 seconds, and the video that predetermined threshold value is 10 seconds, due to buffered data Data volume is less than or equal to predetermined threshold value, can assert that A programs can not smooth playing.
Step S20:The buffered data data volume be less than or equal to the predetermined threshold value when, to the current video into Row record screen obtains record screen file, and the record screen file is played out.
It should be understood that when A programs can not smooth playing when, record screen can be carried out to A programs, by recording screen to generate A The local video of program, user can watch program by directly opening the local video.Since VOD technologies can not provide local The function of download, so, record screen operation can be carried out to the smart television for applying VOD technologies, video can be well realized Normal play avoids video from frequently buffering and occurs with the situation of interim card.
In the present embodiment by video can not smooth playing when, record screen is carried out to current video, it is achieved thereby that in VOD Technology can not ensure to watch video glibly by playing local record screen video during the smooth playing of video, also just overcome When application VOD technologies carry out video on demand, there is technical issues that network speed environment is poor and causes video can not.
With reference to Fig. 3, Fig. 3 is the flow diagram of video broadcasting method second embodiment of the present invention, based on shown in above-mentioned Fig. 2 First embodiment, propose the second embodiment of video broadcasting method of the present invention.
In a second embodiment, the step S20, specifically includes:
Step S201:When the data volume of the buffered data is less than or equal to the predetermined threshold value, work as forward sight described in acquisition The frame per second of frequency;
It is understood that when carrying out record screen to current video, that is, A programs, it is contemplated that A programs exist simultaneously video letter Breath and audio-frequency information, also, it is different from sound to there are video pictures when playing for the record screen file finally got in order to prevent The situation of step can obtain record screen file, so as to ensure that video is drawn when screen file is recorded in generation by the way of timestamp is directed at Face is synchronous with sound.
In the concrete realization, when the data volume of the buffered data of A programs is the video of 2 seconds, less than predetermined threshold value i.e. 10 The video of second will first obtain the play frame rate of A programs.
Step S202:The current video is captured according to the frame per second, to grab image frame to be presented;
It is understood that in the play frame rate for getting A programs, A programs are captured based on the play frame rate.Its In, frame per second is for recording display frame number per second, the intrinsic frame per second of the video by obtaining A programs, and based on the intrinsic frame per second come Capture A programs, it is ensured that is got records the clear of video data when shielding file with without record screen A program normal plays Spend it is identical, if not capturing A programs according to the intrinsic frame per second, and use frame per second more smaller than the intrinsic frame per second just capture record shield it is literary Part, it is relatively low that the record screen file finally grabbed can play not smooth or clarity.
Step S203:The image frame to be presented is preserved, and records the timestamp of the image frame to be presented;
Step S204:Audio data corresponding with the image frame to be presented is obtained based on the timestamp, is treated described Displaying image frame is merged with the audio data, records screen file to obtain, and the record screen file is played out.
It should be understood that after the frame per second based on A programs gets the image frame to be presented of A programs, can record current The timestamp of image frame to be presented got, and audio number corresponding with the image frame to be presented is obtained based on the timestamp According to ensure that image frame and audio are synchronous, it is first prior to audio or audio will not to there is picture when playing and recording screen file In the situation of picture.
Further, the step S202, can also include:It instructs, obtains small in response to frame rate adjustment input by user In each preset frame rate of the frame per second equal to the current video, mesh is chosen from each preset frame rate according to frame rate adjustment instruction Mark frame per second;The current video is captured according to the target frame rate, obtains image frame to be presented.
It is understood that in view of poor or when network speed is more unstable in network speed, the mode that record is shielded can be taken to make Program A can finally be watched glibly by obtaining user.But when network speed is excessive compared with slow but program A frame per second, if still according to program A Larger frame per second capture image frame to be presented, the time for finally getting complete record screen file may be caused longer.So In view of the difference of network speed, user can freely choose the frame per second of crawl image frame to determine the clarity of record screen file got With taking, because the frame per second for capturing video is bigger, the clarity of record screen file finally got is also higher, but network speed It is it is required that more costly and time consuming longer.
It in the concrete realization, can be in the operation interface of smart television when the intrinsic frame per second for getting program A is 100 Multiple optional frame per second of the display from 0 to 100 are for selection by the user.If user by click smart television or with smart television The physical button of the remote controler matched or virtual key choose target frame rate, for example, multiple optional frames that can be from 0 to 100 It is 50 that target frame rate is chosen in rate, then can capture program A according to target frame rate 50, is captured and saved by intrinsic frame per second 100 than it Mesh A is lower but time-consuming shorter according to the record screen file clarity that target frame rate 50 grabs if network speed remains unchanged.
Corresponding audio is determined in the present embodiment based on the timestamp of image frame so that final to merge image frame and audio The record screen file got is not in picture and the nonsynchronous situation of sound when playing.In addition, by being based on current video Frame per second capture image frame, can ensure the clarity of record screen file well.
With reference to Fig. 4, Fig. 4 is the flow diagram of video broadcasting method 3rd embodiment of the present invention, based on shown in above-mentioned Fig. 3 Second embodiment, propose the 3rd embodiment of video broadcasting method of the present invention.
In the third embodiment, after the step S202, the video broadcasting method further includes:
Step S202':Check in the image frame to be presented whether display reminding information;
It is understood that in crawl image frame and during preserving image frame, invalid image frame may be grabbed, Specifically, there may be prompt message in the picture grabbed, " to be captured for example, there are prompt words for the center of picture In, just a moment,please " prompt messages such as " buffering ", with characterization because network is relatively slow or player reason and occur can not be normal The problem of capturing image frame.But if during recording and shielding, there will be the picture of above-mentioned prompt word, also typing ultimately generates In record screen file, because the above-mentioned picture including prompt word is not present in itself in the video pictures of program A, typing record screen file Also it affects user and normally watches program A, so, file is shielded in the picture not typing record that this can be included to prompt word.
In the concrete realization, it after the image frame to be presented for grabbing program A, first detects the image frame to be presented and whether there is Prompt message if there is no prompt messages, preserves the image frame to be presented.
When not showing the prompt message in the image frame to be presented, step S203 is performed.
Further, after the step S202', the video broadcasting method further includes:
When showing the prompt message in the image frame to be presented, step S203' is performed.
Step S203':The image frame to be presented is abandoned, the next frame of the image frame to be presented is waited to open up as described in Show image frame;
If it is understood that detect the image frame to be presented there are during prompt message, not preserving the image frame to be presented, The image frame to be presented is can drop, avoids preserving the image frame to be presented to recording in screen file, influences user and normally watch record Shield the program A in file.Also, after the image frame to be presented is abandoned, the image frame that next frame can be read re-starts prompting The detection of information, to ensure not including the image frame of display reminding information in the record screen file finally obtained.
After step S203', return and perform the step S202'.
Include the image frame of prompt message by abandoning in the present embodiment, to ensure record screen file that user finally may be viewed by In not include invalid hint image so that user can swimmingly watch video content.
With reference to Fig. 5, Fig. 5 is the flow diagram of video broadcasting method fourth embodiment of the present invention, based on shown in above-mentioned Fig. 3 Second embodiment, propose the fourth embodiment of video broadcasting method of the present invention.
In the fourth embodiment, after the step S202, the video broadcasting method further includes:
Step S2021:Using the image frame to be presented as current picture frame, and described work as, is read based on preset time axis Next image frame of preceding image frame;
It is understood that in view of when capturing image frame, in fact it could happen that because of network when video cardton or record screen It repeats to capture caused by the problems such as unstable, for example, a same image frame has carried out multiple crawl, when user is final in viewing During the record screen file of generation, pause of the video playing compared with card or video there are the short time can be felt, so as to affect user's Viewing experience.So previous can be compared with continuous latter when capturing image frame, to find to repeat crawl Image frame, so as to avoid the problem that above-mentioned repetition captures.
Step S2022:The current picture frame is compared with next image frame;
In the concrete realization, when capturing image frame to program A, it is respectively if grabbing continuous two frame on time shaft " current picture frame " and " next image frame ", " current picture frame " can be compared with " next image frame ", to judge whether There is a situation where repeat to capture.
Further, when the current picture frame and next image frame differ, step S2023 is performed.
Step S2023:Using next image frame as the image frame to be presented;
It is understood that if current picture frame is differed with next image frame, show the feelings for not occurring to repeat to capture Condition can normally preserve image frame, and screen file is recorded with generation.
After step S2023, step S203 is performed.
Further, when the current picture frame is identical with the next image frame, step S20231 is performed.
Step S20231:Abandon next image frame;
It should be understood that when if current picture frame is identical with next image frame, show that the feelings of repetition crawl have occurred Condition, it may be possible to which video cardton caused by because of network problem continuously grabs the same image frame, if by phase when recording and shielding Same current picture frame is saved into record screen file with next image frame, and in viewing record screen file video can also occur for user The situation of interim card.Occur in order to avoid the situation of above-mentioned video cardton, can drop next image frame, only preserve current picture frame, Without preserving the same image frame.
Step S20232:Using the next frame of next image frame as new next image frame;
After step S20232, step S2022 is performed.
In the concrete realization, in order to ensure the situation of video cardton can all be avoided to occur in subsequent image frame crawl, than Such as, " current picture frame " be frame 1, " next image frame " be frame 2, since the two is identical, can retention frame 1 abandon frame 2, and read under The next frame of one image frame is frame 3 as next image frame, i.e. " next image frame ", is re-executed current picture frame i.e. frame 1 The action being compared with next image frame, that is, frame 3, to ensure all avoid the feelings of video cardton in subsequent image frame crawl Condition occurs.
Further, the step S201, can also include:It is less than or equal in the data volume of the buffered data described pre- If during threshold value, record the currently playing progress of the current video;The default initial time stamp of the current video is revised as The corresponding timestamp of the currently playing progress, and obtain the frame per second of the current video.
It is understood that in order to accelerate the time that user gets record screen file, in view of the realization scene of the present embodiment It is to operate to ensure that user can be glibly record to be taken to shield since buffered data is very few when by VOD technology program request current videos Video is watched, shows that user may have been viewed by the video of a part of duration.For example, if the program A of user's program request is duration The video of 120 minutes, the currently playing progress of record program A is 50 minutes, shows that user has been viewed by regarding for first 50 minutes Frequency content, it is contemplated that network environment is poor and user wants to quickly watch program, video that can directly to latter 70 minutes Record screen is carried out, to reduce the time for recording screen consumption.It so can be by the default initial time stamp of program A from the 0th minute time adjustment For the 50th minute moment, so, it is from the 50th minute moment to the by the object for carrying out record screen for subsequently recording screen operation The video at 120 minute moment, and the video not from the 0th minute moment to the 120th minute moment, can accelerate to get record screen The speed of file.
By the way that current picture frame is compared with next image frame in the present embodiment, to avoid the frame number duplicated, So as to ensure that the situation that video cardton can be avoided during the crawl of image frame occurs.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with video reproduction program, following operation is realized when the video reproduction program is executed by processor:
When by VOD technology program request current videos, the buffered data of the current video is obtained, and judge the buffering Whether the data volume of data is less than or equal to predetermined threshold value;
When the data volume of the buffered data is less than or equal to the predetermined threshold value, record screen is carried out to the current video, Record screen file is obtained, and the record screen file is played out.
Further, following operation is also realized when the video reproduction program is executed by processor:
When the data volume of the buffered data is less than or equal to the predetermined threshold value, the frame per second of the current video is obtained;
The current video is captured according to the frame per second, to grab image frame to be presented;
The image frame to be presented is preserved, and records the timestamp of the image frame to be presented;
Audio data corresponding with the image frame to be presented is obtained based on the timestamp, by the image frame to be presented It is merged with the audio data, records screen file to obtain, and the record screen file is played out.
Further, following operation is also realized when the video reproduction program is executed by processor:
It is instructed in response to frame rate adjustment input by user, obtains each default frame of the frame per second less than or equal to the current video Rate chooses target frame rate according to frame rate adjustment instruction from each preset frame rate;
The current video is captured according to the target frame rate, obtains image frame to be presented.
Further, following operation is also realized when the video reproduction program is executed by processor:
Check in the image frame to be presented whether display reminding information;
When not showing the prompt message in the image frame to be presented, the preservation picture to be presented is performed Frame, and the step of record the timestamp of the image frame to be presented.
Further, following operation is also realized when the video reproduction program is executed by processor:
When showing the prompt message in the image frame to be presented, the image frame to be presented is abandoned, is treated described The next frame of image frame is shown as the image frame to be presented, return perform it is described check in the image frame to be presented whether The step of display reminding information.
Further, following operation is also realized when the video reproduction program is executed by processor:
Using the image frame to be presented as current picture frame, and the current picture frame is read based on preset time axis Next image frame;
The current picture frame is compared with next image frame;
When the current picture frame and next image frame differ, next image frame is waited to open up as described in The step of showing image frame, performing the preservation image frame to be presented, and record the timestamp of the image frame to be presented.
Further, following operation is also realized when the video reproduction program is executed by processor:
When the current picture frame is identical with the next image frame, next image frame is abandoned;
Using the next frame of next image frame as new next image frame, it is described by the current picture to return to execution The step of frame is compared with next image frame.
In the present embodiment by video can not smooth playing when, record screen is carried out to current video, it is achieved thereby that in VOD Technology can not ensure to watch video glibly by playing local record screen video during the smooth playing of video, also just overcome When application VOD technologies carry out video on demand, there is technical issues that network speed environment is poor and causes video can not.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or system institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.Word first, second, with And the use of third etc. does not indicate that any sequence, can be title by these word explanations.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of video broadcasting method, which is characterized in that the video broadcasting method includes the following steps:
Smart television obtains the buffered data of the current video, and described in judgement when by VOD technology program request current videos Whether the data volume of buffered data is less than or equal to predetermined threshold value;
When the data volume of the buffered data is less than or equal to the predetermined threshold value, record screen is carried out to the current video, is obtained Record screen file, and the record screen file is played out.
2. video broadcasting method as described in claim 1, which is characterized in that the data volume in the buffered data is less than During equal to the predetermined threshold value, record screen is carried out to the current video, obtains record screen file, and the record screen file is broadcast It puts, specifically includes:
When the data volume of the buffered data is less than or equal to the predetermined threshold value, the frame per second of the current video is obtained;
The current video is captured according to the frame per second, to grab image frame to be presented;
The image frame to be presented is preserved, and records the timestamp of the image frame to be presented;
Audio data corresponding with the image frame to be presented is obtained based on the timestamp, by the image frame to be presented and institute It states audio data to merge, records screen file to obtain, and the record screen file is played out.
3. video broadcasting method as claimed in claim 2, which is characterized in that it is described according to the frame per second to the current video It is captured, to grab image frame to be presented, is specifically included:
It is instructed in response to frame rate adjustment input by user, obtains each preset frame rate of the frame per second less than or equal to the current video, Target frame rate is chosen from each preset frame rate according to frame rate adjustment instruction;
The current video is captured according to the target frame rate, obtains image frame to be presented.
4. video broadcasting method as claimed in claim 2, which is characterized in that it is described according to the frame per second to the current video It is captured, after grabbing image frame to be presented, the video broadcasting method further includes:
Check in the image frame to be presented whether display reminding information;
When not showing the prompt message in the image frame to be presented, the preservation image frame to be presented is performed, and The step of recording the timestamp of the image frame to be presented.
5. video broadcasting method as claimed in claim 4, which is characterized in that it is described check in the image frame to be presented whether After display reminding information, the video broadcasting method further includes:
When showing the prompt message in the image frame to be presented, the image frame to be presented is abandoned, it will be described to be presented Whether the next frame of image frame returns and is shown in the execution inspection image frame to be presented as the image frame to be presented The step of prompt message.
6. video broadcasting method as claimed in claim 2, which is characterized in that it is described according to the frame per second to the current video It is captured, after grabbing image frame to be presented, the video broadcasting method further includes:
Using the image frame to be presented as current picture frame, and the next of the current picture frame is read based on preset time axis Image frame;
The current picture frame is compared with next image frame;
When the current picture frame and next image frame differ, using next image frame as the picture to be presented Face frame performs and described preserves the image frame to be presented, and the step of record the timestamp of the image frame to be presented.
7. video broadcasting method as claimed in claim 6, which is characterized in that described by the current image frame to be presented and institute It states after next image frame to be presented is compared, the video broadcasting method further includes:
When the current picture frame is identical with the next image frame, next image frame is abandoned;
Using the next frame of next image frame as new next image frame, return perform it is described by the current picture frame with The step of next image frame is compared.
8. the video broadcasting method as described in any one of claim 2 to 7, which is characterized in that described in the buffered data Data volume be less than or equal to the predetermined threshold value when, obtain the frame per second of the current video, specifically include:
The buffered data data volume be less than or equal to the predetermined threshold value when, record the current video it is currently playing into Degree;
The default initial time stamp of the current video is revised as the corresponding timestamp of the currently playing progress, and obtain institute State the frame per second of current video.
9. a kind of smart television, which is characterized in that the smart television includes:Memory, processor and it is stored in the storage It is real when the video reproduction program is performed by the processor on device and the video reproduction program that can run on the processor Now such as the step of video broadcasting method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with video on the computer readable storage medium and broadcast Program is put, such as video playing described in any item of the claim 1 to 8 is realized when the video reproduction program is executed by processor The step of method.
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 true CN108156515A (en) 2018-06-12
CN108156515B 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)

Cited By (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

Citations (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
CN105657498A (en) * 2016-02-17 2016-06-08 腾讯科技(深圳)有限公司 Video recording method and device of mobile terminal
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN107371064A (en) * 2017-07-03 2017-11-21 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its audio and video playing method and apparatus
CN107451066A (en) * 2017-08-22 2017-12-08 网易(杭州)网络有限公司 Interim card treating method and apparatus, storage medium, terminal

Patent Citations (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
CN105657498A (en) * 2016-02-17 2016-06-08 腾讯科技(深圳)有限公司 Video recording method and device of mobile terminal
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN107371064A (en) * 2017-07-03 2017-11-21 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its audio and video playing method and apparatus
CN107451066A (en) * 2017-08-22 2017-12-08 网易(杭州)网络有限公司 Interim card treating method and apparatus, storage medium, terminal

Cited By (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

Also Published As

Publication number Publication date
CN108156515B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US9519416B2 (en) System and method to display a progress bar
US20210211476A1 (en) Methods, systems, and media for recommending content based on network conditions
CA2738430C (en) Delete viewed portions of recorded programs
US8472779B2 (en) Concurrently displaying multiple trick streams for video
US6977667B1 (en) Method and apparatus for generating a programme
CN106385619A (en) Replay method and device for live broadcast video stream
CN107547940A (en) Video playback processing method, equipment and computer-readable recording medium
US10148993B2 (en) Method and system for programmable loop recording
CN106791958A (en) Position marker information generation method and device
US11729433B2 (en) Methods, systems and media for selectively presenting broadcast content based on user interests
WO2020033612A1 (en) Event recording system and method
US20140188983A1 (en) Content providing system, content providing device, client device, control method and storage medium
US20140119710A1 (en) Scene control system and method and recording medium thereof
CN108156515A (en) Video broadcasting method, smart television and computer readable storage medium
CN106921886B (en) Multimedia data playing method and device of terminal
CN115237314B (en) Information recommendation method and device and electronic equipment
KR101918395B1 (en) Apparatus and method for displaying movement trace of contents object
CN108024147A (en) Scene playback method, smart television and computer-readable recording medium
US11895176B2 (en) Methods, systems, and media for selecting video formats for adaptive video streaming
US20220394323A1 (en) Supplmental audio generation system in an audio-only mode
US20230300396A1 (en) Methods and systems to increase interest in and viewership of content before, during and after a live event
JP6415206B2 (en) Movie processing apparatus, movie processing method, and movie processing program
US20130057773A1 (en) Method and apparatus for storing a broadcast
CN113259746A (en) Method for simultaneously playing video content and advertisement on video page

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