CN107645674A - A kind of video broadcasting method and system - Google Patents
A kind of video broadcasting method and system Download PDFInfo
- Publication number
- CN107645674A CN107645674A CN201710843760.2A CN201710843760A CN107645674A CN 107645674 A CN107645674 A CN 107645674A CN 201710843760 A CN201710843760 A CN 201710843760A CN 107645674 A CN107645674 A CN 107645674A
- Authority
- CN
- China
- Prior art keywords
- video data
- video
- current
- data
- pretreated
- 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
Links
Landscapes
- Television Systems (AREA)
- Television Signal Processing For Recording (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present embodiments relate to a kind of video broadcasting method and system.Wherein, this method includes:According to the video frequency program list acquisition of information current video data pre-set;When not getting current video data, or, when occurring abnormal according to the current video data broadcasting video got, then the pad video data prestored is selected according to the selection mechanism pre-set;Video is played according to pad video data.There is provided by the present embodiment:If do not get current video data, or when playing video and occurring abnormal, the pad video data that prestores is selected to carry out the technical scheme of the broadcasting of video, on the one hand, avoid play in the prior art it is not smooth, influence watch video whole structure technology drawback;On the other hand, realize and viewing video is adjusted in time, improve technique effect of the beholder to the viewing experience of video.
Description
Technical field
The present invention relates to technical field of video stream media, more particularly to a kind of video broadcasting method and system.
Background technology
The level of consumption with people improves constantly with the continuous development of scientific technology, and video stream media gos deep into the day of people
Often life.And with pursuit of the people to quality of the life, to the quality requirement of video also more and more higher.In the prior art, lead to
When crossing the demand broadcasting video of user, if Inspection and analysis finds that the video information is wrong, when can not playing, then cutout is broadcast
The state of putting is continued until that next program single video starts.
During inventor realizes the present invention, at least there is following technical problem in discovery:
1st, broadcasting is not smooth, and video flowing output is unstable, discontinuous;
2nd, the whole structure of viewing video is influenceed, reduces viewing experience of the people to video.
The content of the invention
In order to solve the above technical problems, the embodiments of the invention provide a kind of video broadcasting method and system.
One side according to embodiments of the present invention, the embodiments of the invention provide a kind of video broadcasting method, the side
Method includes:
According to the video frequency program list acquisition of information current video data pre-set;
When not getting the current video data, or, played according to the current video data got
When video occurs abnormal, then the pad video data prestored is selected according to the selection mechanism pre-set;
Video is played according to the pad video data.
There is provided according to the present embodiment:After video frequency program list information is got, according to video frequency program list information to current
Video data is obtained.If current video data is not got, or, although having got current video data,
But to current video corresponding to current video data play out occur it is abnormal when, then according to selection mechanism selection deposit in advance
The pad video data of storage, to play the technical scheme of video according to pad video data, on the one hand, avoid prior art
In, when not getting current video data, the technology drawback that can only continue waiting for;On the other hand, prior art is avoided
In, when to current video corresponding to current video data play out occur it is abnormal when, video cutout situation can be continued for
During to next video content normal play, the technology drawback played could be continued;Another further aspect, realizing ensures video playback
Shi Liuchang is connected, and improves the technique effect of the viewing experience of beholder.
Further, the video frequency program list acquisition of information current video data that the basis is pre-set, is specifically included:
Obtain the video frequency program list information pre-set;
Judge whether there is the current video data in local storage according to the video frequency program list information;
When judged result is sometimes, then the current video data to be obtained from the local storage;
When result be without when, then the current video data is remotely obtained by NAS.
There is provided according to the present embodiment:Preferentially current video data is obtained from local storage, if local
There is no current video data in memory, then the technical scheme of current video data is remotely obtained by NAS, on the one hand, avoid
In the prior art by obtaining current video data online, and when carrying out video playback online, due to reasons such as networks, easily
Cause the technology drawbacks such as video cutout;On the other hand, quick obtaining current video data is realized, furthermore achieved that ensures to regard
Smooth linking when frequency plays, improve the technique effect of the viewing experience of beholder.
Further, it is described before the video frequency program list acquisition of information current video data that the basis is pre-set
Method also includes:
Obtain the video frequency program list information pre-set;
When the video data in the video frequency program list information does not store, then the video data for needing to store is obtained,
And store it in the local storage, the video data after being stored;
Wherein, video data includes:Positive video data and pad video data.
Wherein, current video data is the partial video data in positive video data.
Further, it is described to obtain the video data for needing to store, and store it in local storage, stored
Video data afterwards, is specifically included:
Temporal information corresponding to the video data of each needs storage in the video frequency program list information determines former
Beginning download is lined up;
Download priority according to pre-setting the original download is lined up in multiple needs storage video data
It is adjusted, obtains target download and line up;
Downloaded according to the target and line up to be downloaded each video data for needing to store, obtain multiple video counts
According to;
Multiple video datas are stored in the local storage, the video data after being stored.
Further, described downloaded according to the target lines up to be downloaded each video data for needing to store, and obtains
To multiple video datas, specifically include:
Downloaded according to the target and line up to be downloaded each video data for needing to store, obtain multiple original videos
Data;
Judge whether each original video data is complete;
Video data is determined according to complete original video data, wherein, the corresponding video of an original video data
Data;
If it is judged that being the first initial data and imperfect, then alarm letter is determined according to first initial data
Breath.
Further, the download priority is:
The pad video data is the first priority;
The positive video data is the second priority.
Further, it is described after the video frequency program list acquisition of information current video data that the basis is pre-set
Method also includes:
When playing video according to the current video data, there is no pretreated the when detecting in pretreatment module
During one video data, then the blank time before local video file alignment type broadcasting video is called to be filled, wherein, pretreatment
The first preceding video data is the partial video data in the current video data;
According to the sequencing of multi-frame video data corresponding to the blank time and the current video data, in batches
The current video data is pre-processed, to video plays out corresponding to video data corresponding to present lot when,
The video data of next batch is pre-processed, until completing the broadcasting of current video corresponding to the current video data.
There is provided by the present embodiment:If there is no pretreated first video data in pretreatment module, call
Blank time before local video file alignment type broadcasting video is filled, and is entered in the video data according to corresponding to present lot
During row video playback, the technical scheme that is pre-processed to the video data of next batch, on the one hand, avoid in the prior art
There is exception in transmission link in video data, so as to influence the technology drawback of video playing quality;On the other hand, realize and carry
The reading speed of high video data, smooth linking when ensuring video playback is furthermore achieved that, improve the viewing experience of beholder
Technique effect.
Further, methods described also includes:
According to the current video data play video when, when detect in the pretreatment module have it is pretreated
During the first video data, then determine whether pretreated first video data is expired;
When judged result is no, then the duration information of pretreated first video data is read;
Second video data is obtained in the current video data according to the duration information and the blank time;
Second video data is pre-processed, obtains pretreated second video data, wherein, described second
Video data is the adjacent video data of first video data, and, the second video corresponding to second video data exists
Played out after first video corresponding to first video data;
According to the sequencing of multi-frame video data corresponding to the blank time and the 3rd video data, in batches to institute
The 3rd video data is stated to be pre-processed, to video plays out corresponding to video data corresponding to present lot when, under
A batch of video data is pre-processed, until completing the broadcasting of video corresponding to the 3rd video data;
Wherein, to corresponding to pretreated first video data and pretreated second video data
When video plays out, video data corresponding to the first batch in the 3rd video data is pre-processed;
Wherein, the 3rd video data is to remove first video data and described second in the current video data
Video data outside video data, and, the 3rd video data is adjacent with second video data, and, the described 3rd
The 3rd video plays out after the second video corresponding to second video data corresponding to video data.
Further, when the testing result is expired, then pretreated first video data is abandoned.
Further, the selection mechanism is:Sequential selection mechanism or weight selection mechanism.
Other side according to embodiments of the present invention, it is described the embodiments of the invention provide a kind of audio/video player system
System includes:
Acquisition module:For according to the video frequency program list acquisition of information current video data pre-set;
Selecting module:For when not getting the current video data, or, it is described current according to what is got
When video data broadcasting video occurs abnormal, then the pad video counts prestored are selected according to the selection mechanism pre-set
According to;
Playing module:For playing video according to the pad video data.
Further, the acquisition module is specifically used for:
Obtain the video frequency program list information pre-set;
Judge whether there is the current video data in local storage according to the video frequency program list information;
When judged result is sometimes, then the current video data to be obtained from the local storage;
When result be without when, then the current video data is remotely obtained by NAS.
Further, the acquisition module is additionally operable to:Video frequency program list information is obtained, when in the video frequency program list information
Video data when not storing, then obtain the video data for needing to store, and store it in the local storage, obtain
Video data after to storage;
Wherein, video data includes:Positive video data and pad video data.
Wherein, current video data is the partial video data in positive video data.
Further, the acquisition module is specifically used for:Each need to store in the video frequency program list information
Video data corresponding to temporal information determine that original download is lined up;
Download priority according to pre-setting the original download is lined up in multiple needs storage video data
It is adjusted, obtains target download and line up;
Downloaded according to the target and line up to be downloaded each video data for needing to store, obtain multiple video counts
According to;
Multiple video datas are stored in the local storage, the video data after being stored.
Further, the acquisition module is specifically used for:Downloaded according to the target and line up to need what is stored to regard to each
Frequency obtains multiple original video datas according to being downloaded;
Judge whether each original video data is complete;
Video data is determined according to complete original video data, wherein, the corresponding video of an original video data
Data;
If it is judged that being the first initial data and imperfect, then alarm letter is determined according to first initial data
Breath.
Further, the download priority is:
The pad video data is the first priority;
The positive video data is the second priority.
Further, the system also includes:
Calling module:For when playing video according to the current video data, not having when detecting in pretreatment module
When having pretreated first video data, then the blank time before local video file alignment type broadcasting video is called to be filled out
Fill, wherein, the first video data before pretreatment is the partial video data in the current video data;
Pretreatment module:According to the priority of multi-frame video data corresponding to the blank time and the current video data
Sequentially, the current video data is pre-processed in batches, to video corresponding to video data corresponding to present lot
When playing out, the video data of next batch is pre-processed, until completing current corresponding to the current video data
The broadcasting of video.
Further, the system also includes:
Judge module:For when playing video according to the current video data, when detecting the pretreatment module
In when having pretreated first video data, then determine whether pretreated first video data expired;
Read module:For when judged result is no, then reading the duration of pretreated first video data
Information;
The acquisition module is additionally operable to:According to the duration information and the blank time in the current video data
Obtain the second video data;
The pretreatment module is additionally operable to:Second video data is pre-processed, obtains pretreated second
Video data, wherein, second video data is the adjacent video data of first video data, and, described second regards
Frequency second video corresponding to plays out after the first video corresponding to first video data, according to the blank
The sequencing of multi-frame video data corresponding to time and the 3rd video data, the 3rd video data is carried out in batches pre-
Processing, to video plays out corresponding to video data corresponding to present lot when, the video data of next batch is carried out
Pretreatment, until completing the broadcasting of current video corresponding to the 3rd video data;
Wherein, to corresponding to pretreated first video data and pretreated second video data
When video plays out, video data corresponding to the first batch in the 3rd video data is pre-processed;
Wherein, the 3rd video data is to remove first video data and described second in the current video data
Video data outside video data, and, the 3rd video data is adjacent with second video data, and, the described 3rd
The 3rd video plays out after the second video corresponding to second video data corresponding to video data.
Further, the selection mechanism is:
Sequential selection mechanism or weight selection mechanism.
The beneficial effect of the embodiment of the present invention is, as a result of according to the video frequency program list acquisition of information pre-set
Current video data;When not getting current video data, or, video is played according to the current video data got
When occurring abnormal, then the pad video data prestored is selected according to the selection mechanism pre-set;According to pad video counts
According to play video technical scheme, avoid play in the prior art it is not smooth, influence watch video whole structure technology
Drawback;On the other hand, realize and viewing video is adjusted in time, improve beholder and the technology of the viewing experience of video is imitated
Fruit.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of video broadcasting method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet for video broadcasting method that another embodiment of the present invention provides;
Fig. 3 is a kind of structural representation of audio/video player system provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology it
The detail of class, understand the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specific
The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, circuit and
The detailed description of method, in case unnecessary details hinders description of the invention.
The embodiments of the invention provide a kind of video broadcasting method and system.
One side according to embodiments of the present invention, the embodiments of the invention provide a kind of video broadcasting method.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of video broadcasting method provided in an embodiment of the present invention
As shown in figure 1, this method includes:
Step S100:According to the video frequency program list acquisition of information current video data pre-set;
Step S200:When not getting current video data, or, played according to the current video data got
When video occurs abnormal, then the pad video data prestored is selected according to the selection mechanism pre-set;
Step S300:Video is played according to pad video data.
In the present embodiment, pad video data is set up specific to certain specific channel, i.e. between different channel
Pad video data may be identical, it is also possible to differs.
It is understood that specific channel has a specific content topic.For example, channel A content topic is:Electricity
Shadow.The pad video data for then corresponding to channel A and setting up is:The video data of motion picture feature, or the video counts of film introduction
According to.
When carrying out (feature film content occur abnormal) when video playback occurs abnormal according to current video data, then play and
Video corresponding to the pad video data that the channel subject is consistent, to realize the good viewing experience of beholder.
There is provided according to the present embodiment:After video frequency program list information is got, according to video frequency program list information to current
Video data is obtained.If current video data is not got, or, although having got current video data,
But to current video corresponding to current video data play out occur it is abnormal when, then according to selection mechanism selection deposit in advance
The pad video data of storage, to play the technical scheme of video according to pad video data, on the one hand, avoid prior art
In, when not getting current video data, the technology drawback that can only continue waiting for;On the other hand, prior art is avoided
In, when to current video corresponding to current video data play out occur it is abnormal when, video cutout situation can be continued for
During to next video content normal play, the technology drawback played could be continued;Another further aspect, realizing ensures video playback
Shi Liuchang is connected, and improves the technique effect of the viewing experience of beholder.
Referring to Fig. 2, Fig. 2 is a kind of schematic flow sheet for video broadcasting method that another embodiment of the present invention provides
As shown in Fig. 2 step S100 is specifically included:
Step S110:Obtain the video frequency program list information pre-set;
Step S120:Judge whether there is current video data in local storage according to the video frequency program list information;
Step S130:When judged result is sometimes, then current video data to be obtained from local storage;
Step S140:When result be without when, then current video data is remotely obtained by NAS.
In the present embodiment, to having been carried out in detail according to the video frequency program list acquisition of information current video data pre-set
Elaboration.It is understood that in the prior art, once exception occur in network or NAS storages side, then it can cause in video flowing
Disconnected technology drawback.
So in the present embodiment, by first judging to whether there is current video data in local storage, if so,
Current video data is then preferentially obtained from local storage.If not provided, current video data is remotely just obtained by NAS.
There is provided according to the present embodiment:Preferentially current video data is obtained from local storage, if local
There is no current video data in memory, then the technical scheme of current video data is remotely obtained by NAS, on the one hand, avoid
In the prior art by obtaining current video data online, and when carrying out video playback online, due to reasons such as networks, easily
Cause the technology drawbacks such as video cutout;On the other hand, quick obtaining current video data is realized, furthermore achieved that ensures to regard
Smooth linking when frequency plays, improve the technique effect of the viewing experience of beholder.
More specifically, before being obtained to current video data, this method also includes:Video data is deposited
Storage, wherein, storage is carried out to video data and specifically included:
Obtain the video frequency program list information pre-set;
When the video data in video frequency program list information does not store, then the video data for needing to store is obtained, and will
It is stored in local storage, the video data after being stored;
Wherein, video data includes:Positive video data and pad video data.
Wherein, positive data include current video data.
The technical scheme provided by the present embodiment, realizes quick obtaining current video data, furthermore achieved that really
Smooth linking during video playback is protected, improves the technique effect of the viewing experience of beholder.
More specifically, obtaining the video data for needing to store, and store it in local storage, after being stored
Video data, specifically include:
In video frequency program list information each needs storage video data corresponding to temporal information determine it is original under
List team;
Download priority according to pre-setting original download is lined up in multiple needs storage video data carry out
Adjustment, obtain target download and line up;
Downloaded according to target and line up to be downloaded each video data for needing to store, obtain multiple video datas;
Multiple video datas are stored in local storage, the video data after being stored.
There is provided by the present embodiment:The video data downloaded to needs is lined up, and video data is downloaded so as to realize
Technical scheme, realize quick-downloading video data, and store download complete video data, with realize quickly obtain work as
Preceding video data, smooth linking when ensuring video playback is furthermore achieved that, improve the technique effect of the viewing experience of beholder.
Line up to be downloaded each video data for needing to store more specifically, being downloaded according to target, obtain multiple regard
Frequency evidence, is specifically included:
Downloaded according to target and line up to be downloaded each video data for needing to store, obtain multiple original video numbers
According to;
Judge whether each original video data is complete;
Video data is determined according to complete original video data, wherein, the corresponding video of an original video data
Data;
If it is judged that for the first initial data and imperfect, then warning information is determined according to the first initial data.
There is provided by the present embodiment:If the first initial data is simultaneously imperfect, it is determined that the technical scheme of warning information,
To realize that operation personnel is repaired by warning information, smooth linking when ensuring video playback is furthermore achieved that, improves and sees
The technique effect of the viewing experience for the person of seeing
More specifically, download priority is:
Pad video data is the first priority;
Positive video data is the second priority.
It is understood that there is exception when channel B video contents play, or, channel B programme positive video counts
According to for space-time, pad video data will be preferentially played.It is preferential to ensure that pad video data is pre-stored to local, can be to greatest extent
Ensure that the video flowing of channel output keeps flow.
More specifically, after step sloo, this method also includes:
When playing video according to current video data, there is no pretreated first to regard when detecting in pretreatment module
Frequency according to when, then call local video file alignment type to play the blank time before video and be filled, wherein, before pretreatment
First video data is the partial video data in current video data;
According to the sequencing of multi-frame video data corresponding to blank time and current video data, in batches to working as forward sight
Frequency according to being pre-processed, to video plays out corresponding to video data corresponding to present lot when, to next batch
Video data is pre-processed, until completing the broadcasting of current video corresponding to current video data.
In the present embodiment, there is no pretreated first video data in pretreatment module, then first call local video
Blank time before file alignment type broadcasting video is filled, with the broadcasting blank in the time that fills in the blanks.
When carrying out video playback according to local video file, the preceding N frames video data of current video data is carried out in advance
Processing, wherein, the time pre-processed to preceding N frames video data is equal to blank time;
Due to being first to call the blank time before local video file alignment type broadcasting video to be filled, so, work as root
When completing the broadcasting of blank time according to the local video of calling, then video corresponding to pretreated preceding N frames video data is entered
Row plays.Thus, it is ensured that the smoothness of video playback is without cutout.
Certainly, when being played out to video corresponding to pretreated preceding N frames video data, continue to current video number
N+1 frames to the video data between M frames in is pre-processed, it is to be understood that to N+1 frames to M frames it
Between time for being pre-processed of video data be equal to blank time;
As described above, when the video data to first batch plays out, then the video data of second lot is carried out
Pretreatment.
However, it will be understood that the time of multi-frame video data might not energy corresponding to processing current video data
Divided exactly by blank time, such as:
Current video data corresponds to X frame video datas, should while being played out to A frames to B frame video datas
This is pre-processed to B+1 frames to X frame video data.However, B+1 frames to X frame video data are pre-processed
Time be less than blank time, i.e. the video data of last batch processed time is less than blank time.So directly
Connect and B+1 frames to X frame video data are pre-processed.Completed in video playback corresponding to A frames to B frame video datas
Afterwards, video corresponding to B+1 frames to X frame video data is played out, when corresponding to B+1 frames to X frame video data
Video playback is completed, then is illustrated, video all finishes playing corresponding to current video data.
There is provided by the present embodiment:If there is no pretreated first video data in pretreatment module, call
Blank time before local video file alignment type broadcasting video is filled, and is entered in the video data according to corresponding to present lot
During row video playback, the technical scheme that is pre-processed to the video data of next batch, on the one hand, avoid in the prior art
There is exception in transmission link in video data, so as to influence the technology drawback of video playing quality;On the other hand, by regarding
Frequency, according to the broadcasting that video is carried out by pretreated video data, realizes broadcasting video and not blocked up according to being pre-processed
The technique effect of plug;Another further aspect, the reading speed for improving video data is realized, furthermore achieved that when ensuring video playback
Smoothness linking, improve the technique effect of the viewing experience of beholder.
More specifically, this method also includes:
When playing video according to current video data, there is pretreated first video when detecting in pretreatment module
During data, then determine whether pretreated first video data is expired;
When judged result is no, then the duration information of pretreated first video data is read;
Second video data is obtained in current video data according to duration information and blank time;
Second video data is pre-processed, obtains pretreated second video data, wherein, the second video data
For the adjacent video data of the first video data, and, the second video corresponding to the second video data is corresponding in the first video data
The first video after play out;
According to the sequencing of multi-frame video data corresponding to blank time and the 3rd video data, regarded in batches to the 3rd
Frequency according to being pre-processed, to video plays out corresponding to video data corresponding to present lot when, to next batch
Video data is pre-processed, until completing the broadcasting of video corresponding to the 3rd video data;
Wherein, carried out to video corresponding to pretreated first video data and pretreated second video data
During broadcasting, video data corresponding to the first batch in the 3rd video data is pre-processed;
Wherein, the 3rd video data is regarding in addition to the first video data and the second video data in current video data
Frequency evidence, and, the 3rd video data is adjacent with the second video data, and, the 3rd video is second corresponding to the 3rd video data
Played out after second video corresponding to video data.
In the present embodiment, if the duration information of pretreated first video data shows, first after processing regards
Frequency is 6s according to the time of corresponding pretreatment, and blank time is 10s, then the second video data is pre-processed, and, it is right
The time that second video data is pre-processed is equal to 4s.
Similarly, carried out to video corresponding to video corresponding to pretreated first video data and the second video data
While broadcasting, video data corresponding to the first batch in the 3rd data video is pre-processed, until completing video
Play.
Such as:Carried out to video corresponding to video corresponding to pretreated first video data and the second video data
While broadcasting, Y+1 frames video data to Z frames video data is carried out to pre-process wherein, Y frames video data is the
Last frame video data in two video datas.
It is understood that when handling last batch video data, the time of processing is equally likely to blank
Time, it is also possible to less than blank time.
Pass through the present embodiment provide technical scheme, on the one hand, avoid in the prior art video data in transmission link
It is middle exception occur, so as to influence the technology drawback of video playing quality;On the other hand, by being pre-processed to video data,
According to the broadcasting that video is carried out by pretreated video data, realize and play the nonclogging technique effect of video;Further
Aspect, the reading speed for improving video data is realized, furthermore achieved that smooth linking when ensuring video playback, improve viewing
The technique effect of the viewing experience of person.
More specifically, when testing result is expired, then pretreated first video data is abandoned.
More specifically, selection mechanism is:Sequential selection mechanism or weight selection mechanism.
Wherein, when according to sequential selection mechanism to prestore pad video data when, channel A all pads are regarded
Frequency evidence is ranked up, formation sequence table.According to sequence table, the first bar pad video data in sequence table is played out.
Such as:Three pad video datas, respectively the first pad video data, the second pad video are shared in sequence table
Data, the 3rd pad video data.When triggering the broadcasting of pad video data first, the first pad video data is selected, according to
The first pad video data carries out video playback, and after finishing playing, the first pad video data is suitable in sequence table
Sequence is adjusted to the 3rd pad video data.When triggering the broadcasting of pad video data again, then the second pad video is selected
Data, video playback is carried out according to the second pad video data, and after finishing playing, by the second pad video data in sequence
Order in table is adjusted to the first pad video data.The order in sequence table i.e., now is followed successively by:3rd pad regards
Frequency evidence, the first pad video data, the second pad video data.
Wherein, when according to weight selection mechanism to prestore pad video data when, according to pad video data
Weight information, formation sequence table.
Such as:Three pad video datas are shared, wherein, the first pad video data A weight is 1, and the second pad regards
Frequency is 2 according to B weight, and the 3rd pad video data C weight is 3.
That is, the first pad video data A broadcasting time is 1 time, and the first pad video data B is 2 times, and the first pad regards
Frequency is 3 times according to C.Same video plays that density is as far as possible scattered, and the first pad video data A be arranged in sequence table most before
Face, then A preferentially play.Then, final playing sequence is ACBCBC.
Other side according to embodiments of the present invention, the embodiments of the invention provide a kind of audio/video player system.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of audio/video player system provided in an embodiment of the present invention.
As shown in figure 3, the system includes:
Acquisition module:For according to the video frequency program list acquisition of information current video data pre-set;
Selecting module:For when not getting current video data, or, according to the current video data got
When broadcasting video occurs abnormal, then the pad video data prestored is selected according to the selection mechanism pre-set;
Playing module:For playing video according to pad video data.
More specifically, acquisition module is specifically used for:
Obtain the video frequency program list information pre-set pre-set;
Judge whether there is current video data in local storage according to video frequency program list information;
When judged result is sometimes, then current video data to be obtained from local storage;
When result be without when, then current video data is remotely obtained by NAS.
More specifically, acquisition module is additionally operable to:The video frequency program list information pre-set is obtained, when video frequency program list information
In video data when not storing, then obtain the video data for needing to store, and store it in local storage, obtain
Video data after storage;
Wherein, video data includes:Positive video data and pad video data.
More specifically, acquisition module is specifically used for:The video counts of each needs storage in video frequency program list information
Determine that original download is lined up according to corresponding temporal information;
Download priority according to pre-setting original download is lined up in multiple needs storage video data carry out
Adjustment, obtain target download and line up;
Downloaded according to target and line up to be downloaded each video data for needing to store, obtain multiple video datas;
Multiple video datas are stored in local storage, the video data after being stored.
More specifically, acquisition module is specifically used for:Downloaded according to target and line up to enter each video data for needing to store
Row is downloaded, and obtains multiple original video datas;
Judge whether each original video data is complete;
Video data is determined according to complete original video data, wherein, the corresponding video of an original video data
Data;
If it is judged that for the first initial data and imperfect, then warning information is determined according to the first initial data.
More specifically, download priority is:
Pad video data is the first priority;
Positive video data is the second priority.
More specifically, the system also includes:
Calling module:For when playing video according to current video data, not having in advance when detecting in pretreatment module
During the first video data after processing, then call local video file alignment type to play the blank time before video and be filled,
Wherein, the first video data before pretreatment is the partial video data in current video data;
Pretreatment module:According to the sequencing of multi-frame video data corresponding to blank time and current video data, divide
Batch pre-processes to current video data, to video plays out corresponding to video data corresponding to present lot when,
The video data of next batch is pre-processed, until completing the broadcasting of current video corresponding to current video data.
More specifically, the system also includes:
Judge module:For when playing video according to current video data, having pre- place when detecting in pretreatment module
During the first video data after reason, then determine whether pretreated first video data is expired;
Read module:For when judged result is no, then reading the duration information of pretreated first video data;
Acquisition module is additionally operable to:Second video counts are obtained in current video data according to duration information and blank time
According to;
Pretreatment module is additionally operable to:Second video data is pre-processed, obtains pretreated second video data,
Wherein, the second video data is the adjacent video data of the first video data, and, the second video exists corresponding to the second video data
Play out after first video corresponding to first video data, regarded according to multiframe corresponding to blank time and the 3rd video data
The sequencing of frequency evidence, the 3rd video data is pre-processed in batches, to video data pair corresponding to present lot
When the video answered plays out, the video data of next batch is pre-processed, until completing corresponding to the 3rd video data
The broadcasting of video;
Wherein, carried out to video corresponding to pretreated first video data and pretreated second video data
During broadcasting, video data corresponding to the first batch in the 3rd video data is pre-processed;
Wherein, the 3rd video data is regarding in addition to the first video data and the second video data in current video data
Frequency evidence, and, the 3rd video data is adjacent with the second video data, and, the 3rd video is second corresponding to the 3rd video data
Played out after second video corresponding to video data.
More specifically, selection mechanism is:
Sequential selection mechanism or weight selection mechanism.
The present invention is obtained by the current video solicited message received according to the video frequency program list pre-set works as forward sight
Frequency evidence, when not getting current video data, or, when occurring abnormal according to current video data broadcasting video, then
The technical scheme of the broadcasting of video is carried out according to selection pad video data, on the one hand, avoid to play in the prior art and do not flow
Freely, the technology drawback of the whole structure of viewing video is influenceed;On the other hand, realize and viewing video is adjusted in time, carry
Technique effect of the high beholder to the viewing experience of video.
Reader should be understood that in the description of this specification, reference term " one embodiment ", " some embodiments ", " show
The description of example ", " specific example " or " some examples " etc. mean to combine the specific features of the embodiment or example description, structure,
Material or feature are contained at least one embodiment or example of the present invention.In this manual, above-mentioned term is shown
The statement of meaning property need not be directed to identical embodiment or example.Moreover, specific features, structure, material or the feature of description
It can be combined in an appropriate manner in any one or more embodiments or example.In addition, in the case of not conflicting, this
The technical staff in field can be by the different embodiments or example described in this specification and the spy of different embodiments or example
Sign is combined and combined.
It is apparent to those skilled in the art that for convenience of description and succinctly, the dress of foregoing description
The specific work process with unit is put, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of unit, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit
Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks
On unit.Some or all of unit therein can be selected to realize the mesh of scheme of the embodiment of the present invention according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can
To be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or
Say that the part to be contributed to prior art, or all or part of the technical scheme can be embodied in the form of software product
Out, the computer software product is stored in a storage medium, including some instructions are causing a computer equipment
(can be personal computer, server, or network equipment etc.) performs all or part of each embodiment method of the present invention
Step.And foregoing storage medium includes:It is USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random
Access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
It should also be understood that in various embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to execution sequence
Priority, the execution sequence of each process should determine with its function and internal logic, the implementation without tackling the embodiment of the present invention
Journey forms any restriction.
More than, it is only embodiment of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art the invention discloses technical scope in, various equivalent modifications or substitutions can be readily occurred in,
These modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be wanted with right
The protection domain asked is defined.
Claims (10)
1. a kind of video broadcasting method, it is characterised in that methods described includes:
According to the video frequency program list acquisition of information current video data pre-set;
When not getting the current video data, or, video is played according to the current video data got
When occurring abnormal, then the pad video data prestored is selected according to the selection mechanism pre-set;
Video is played according to the pad video data.
A kind of 2. video broadcasting method according to claim 1, it is characterised in that the video section that the basis is pre-set
Mesh list acquisition of information current video data, is specifically included:
Obtain the video frequency program list information pre-set;
Judge whether there is the current video data in local storage according to the video frequency program list information;
When judged result is sometimes, then the current video data to be obtained from the local storage;
When result be without when, then the current video data is remotely obtained by NAS.
3. a kind of video broadcasting method according to claim 1, it is characterised in that in the video that the basis is pre-set
After programme acquisition of information current video data, methods described also includes:
When playing video according to the current video data, there is no pretreated first to regard when detecting in pretreatment module
Frequency according to when, then call local video file alignment type to play the blank time before video and be filled, wherein, before pretreatment
First video data is the partial video data in the current video data;
According to the sequencing of multi-frame video data corresponding to the blank time and the current video data, in batches to institute
Current video data is stated to be pre-processed, to video plays out corresponding to video data corresponding to present lot when, under
A batch of video data is pre-processed, until completing the broadcasting of current video corresponding to the current video data.
4. a kind of video broadcasting method according to claim 3, it is characterised in that methods described also includes:
When playing video according to the current video data, have pretreated first in the pretreatment module when detecting
During video data, then determine whether pretreated first video data is expired;
When judged result is no, then the duration information of pretreated first video data is read;
Second video data is obtained in the current video data according to the duration information and the blank time;
Second video data is pre-processed, obtains pretreated second video data, wherein, second video
Data are the adjacent video data of first video data, and, the second video is described corresponding to second video data
Played out after first video corresponding to first video data;
According to the sequencing of multi-frame video data corresponding to the blank time and the 3rd video data, in batches to described
Three video datas are pre-processed, to video plays out corresponding to video data corresponding to present lot when, to next group
Secondary video data is pre-processed, until completing the broadcasting of video corresponding to the 3rd video data;
Wherein, to video corresponding to pretreated first video data and pretreated second video data
When playing out, video data corresponding to the first batch in the 3rd video data is pre-processed;
Wherein, the 3rd video data is to remove first video data and second video in the current video data
Video data outside data, and, the 3rd video data is adjacent with second video data, and, the 3rd video
The 3rd video plays out after the second video corresponding to second video data corresponding to data.
A kind of 5. video broadcasting method according to any one of claim 1-4, it is characterised in that the selection mechanism
For:Sequential selection mechanism or weight selection mechanism.
6. a kind of audio/video player system, it is characterised in that the system includes:
Acquisition module:For according to the video frequency program list acquisition of information current video data pre-set;
Selecting module:For when not getting the current video data, or, according to the current video got
When data playback video occurs abnormal, then the pad video data prestored is selected according to the selection mechanism pre-set;
Playing module:For playing video according to the pad video data.
7. a kind of audio/video player system according to claim 6, it is characterised in that the acquisition module is specifically used for:
Obtain the video frequency program list information pre-set;
Judge whether there is the current video data in local storage according to the video frequency program list information;
When judged result is sometimes, then the current video data to be obtained from the local storage;
When result be without when, then the current video data is remotely obtained by NAS.
8. a kind of audio/video player system according to claim 6, it is characterised in that the system also includes:
Calling module:For when playing video according to the current video data, not having in advance when detecting in pretreatment module
During the first video data after processing, then call local video file alignment type to play the blank time before video and be filled,
Wherein, the first video data before pretreatment is the partial video data in the current video data;
Pretreatment module:It is suitable according to the priority of multi-frame video data corresponding to the blank time and the current video data
Sequence, the current video data is pre-processed in batches, entered to video corresponding to video data corresponding to present lot
When row plays, the video data of next batch is pre-processed, until completing to work as forward sight corresponding to the current video data
The broadcasting of frequency.
9. a kind of audio/video player system according to claim 8, it is characterised in that the system also includes:
Judge module:For when playing video according to the current video data, having when detecting in the pretreatment module
During pretreated first video data, then determine whether pretreated first video data is expired;
Read module:For when judged result is no, then taking the duration information of pretreated first video data described in reading;
The acquisition module is additionally operable to:Obtained according to the duration information and the blank time in the current video data
Second video data;
The pretreatment module is additionally operable to:Second video data is pre-processed, obtains pretreated second video
Data, wherein, second video data is the adjacent video data of first video data, and, second video counts
Played out according to corresponding second video after the first video corresponding to first video data, according to the blank time
With the 3rd video data corresponding to multi-frame video data sequencing, the 3rd video data is located in advance in batches
Reason, to video plays out corresponding to video data corresponding to present lot when, the video data of next batch is carried out pre-
Processing, until completing the broadcasting of video corresponding to the 3rd video data;
Wherein, to video corresponding to pretreated first video data and pretreated second video data
When playing out, video data corresponding to the first batch in the 3rd video data is pre-processed;
Wherein, the 3rd video data is to remove first video data and second video in the current video data
Video data outside data, and, the 3rd video data is adjacent with second video data, and, the 3rd video
The 3rd video plays out after the second video corresponding to second video data corresponding to data.
A kind of 10. audio/video player system according to any one of claim 6-9, it is characterised in that the selection mechanism
For:
Sequential selection mechanism or weight selection mechanism.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710843760.2A CN107645674B (en) | 2017-09-15 | 2017-09-15 | Video playing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710843760.2A CN107645674B (en) | 2017-09-15 | 2017-09-15 | Video playing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107645674A true CN107645674A (en) | 2018-01-30 |
CN107645674B CN107645674B (en) | 2020-05-22 |
Family
ID=61111731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710843760.2A Active CN107645674B (en) | 2017-09-15 | 2017-09-15 | Video playing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107645674B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108882002A (en) * | 2018-07-16 | 2018-11-23 | 广州辉群智能科技有限公司 | A kind of audio and video playing control method and system |
WO2023185968A1 (en) * | 2022-03-30 | 2023-10-05 | 北京字跳网络技术有限公司 | Camera function page switching method and apparatus, electronic device, and storage medium |
WO2023217106A1 (en) * | 2022-05-09 | 2023-11-16 | 北京字节跳动网络技术有限公司 | Video playback method and apparatus |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101568022A (en) * | 2008-09-19 | 2009-10-28 | 北京东方英龙科技发展有限公司 | Program-playing method and media player |
CN102710969A (en) * | 2012-05-31 | 2012-10-03 | 北京冠华天视数码科技有限公司 | Method and system for transmitting live broadcast data through wireless network |
CN103747245A (en) * | 2014-01-08 | 2014-04-23 | 上海风格信息技术股份有限公司 | Digital television safe broadcasting one-click switching method |
CN103873893A (en) * | 2014-03-14 | 2014-06-18 | 中央电视台 | Broadcast control method and system |
CN104581393A (en) * | 2015-01-27 | 2015-04-29 | 北京正奇联讯科技有限公司 | Fault judging and switching method and system for television broadcasting signal |
TW201526630A (en) * | 2013-12-27 | 2015-07-01 | Amtran Technology Co Ltd | Method and system for controlling television |
CN105187896A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file playing method and system |
CN105898357A (en) * | 2015-12-22 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video switching method and device |
CN105915492A (en) * | 2015-12-04 | 2016-08-31 | 乐视云计算有限公司 | Network live broadcasting method and device, server and offline control equipment |
CN106791997A (en) * | 2016-12-29 | 2017-05-31 | Tcl集团股份有限公司 | The processing method and system of a kind of stream medium data in receiving terminal, television terminal |
-
2017
- 2017-09-15 CN CN201710843760.2A patent/CN107645674B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101568022A (en) * | 2008-09-19 | 2009-10-28 | 北京东方英龙科技发展有限公司 | Program-playing method and media player |
CN102710969A (en) * | 2012-05-31 | 2012-10-03 | 北京冠华天视数码科技有限公司 | Method and system for transmitting live broadcast data through wireless network |
TW201526630A (en) * | 2013-12-27 | 2015-07-01 | Amtran Technology Co Ltd | Method and system for controlling television |
CN103747245A (en) * | 2014-01-08 | 2014-04-23 | 上海风格信息技术股份有限公司 | Digital television safe broadcasting one-click switching method |
CN103873893A (en) * | 2014-03-14 | 2014-06-18 | 中央电视台 | Broadcast control method and system |
CN104581393A (en) * | 2015-01-27 | 2015-04-29 | 北京正奇联讯科技有限公司 | Fault judging and switching method and system for television broadcasting signal |
CN105187896A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file playing method and system |
CN105915492A (en) * | 2015-12-04 | 2016-08-31 | 乐视云计算有限公司 | Network live broadcasting method and device, server and offline control equipment |
CN105898357A (en) * | 2015-12-22 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video switching method and device |
CN106791997A (en) * | 2016-12-29 | 2017-05-31 | Tcl集团股份有限公司 | The processing method and system of a kind of stream medium data in receiving terminal, television terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108882002A (en) * | 2018-07-16 | 2018-11-23 | 广州辉群智能科技有限公司 | A kind of audio and video playing control method and system |
WO2023185968A1 (en) * | 2022-03-30 | 2023-10-05 | 北京字跳网络技术有限公司 | Camera function page switching method and apparatus, electronic device, and storage medium |
WO2023217106A1 (en) * | 2022-05-09 | 2023-11-16 | 北京字节跳动网络技术有限公司 | Video playback method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107645674B (en) | 2020-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107645674A (en) | A kind of video broadcasting method and system | |
CN106507202A (en) | Control method for playing back and device | |
CN106658133A (en) | Audio and video synchronous playing method and terminal | |
CN105933783A (en) | Bullet screen play method and device and terminal equipment | |
CN106034263A (en) | Calibration method and calibration device for audio/video in media file | |
CN108495120A (en) | A kind of video frame detection, processing method, apparatus and system | |
CN110708588B (en) | Barrage display method and device, terminal and storage medium | |
CN107426629A (en) | A kind of streaming media file processing method and live broadcast system | |
CN103841562B (en) | A kind of time interval resource takes processing method and processing device | |
CN106658188A (en) | Method and device for intelligently monitoring video lag | |
CN104936030B (en) | A kind of boot-strap menu display process, equipment and array terminal system | |
CN106155828A (en) | For play-back application resource control method and equipment | |
CN106375835B (en) | A kind of flow media playing method and equipment | |
CN107135420A (en) | Video broadcasting method and system based on virtual reality technology | |
CN107197362A (en) | A kind of method and device for playing multimedia messages | |
CN108366299A (en) | A kind of media playing method and device | |
CN107025847A (en) | A kind of advertisement broadcast method and system | |
CN107786903A (en) | video interactive method and device | |
US20080018554A1 (en) | Display system and display control method | |
CN106708431A (en) | Data storage method, data storage device, mainframe equipment and storage equipment | |
CN103685388B (en) | Method and device for information management | |
CN105450506B (en) | A kind of real-time information interaction method, apparatus and system | |
CN105975494A (en) | Service information pushing method and apparatus | |
CN106162304A (en) | The player method of a kind of barrage information and system | |
CN104750560B (en) | A kind of information processing method and electronic equipment |
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 |