CN109218815A - A kind of video switching method and system - Google Patents
A kind of video switching method and system Download PDFInfo
- Publication number
- CN109218815A CN109218815A CN201811050233.7A CN201811050233A CN109218815A CN 109218815 A CN109218815 A CN 109218815A CN 201811050233 A CN201811050233 A CN 201811050233A CN 109218815 A CN109218815 A CN 109218815A
- Authority
- CN
- China
- Prior art keywords
- video
- advertisement
- audio
- positive
- switching
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/439—Processing of audio elementary streams
- H04N21/4394—Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/44008—Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/4402—Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/812—Monomedia components thereof involving advertisement data
Abstract
The invention discloses a kind of video switching method and its systems, the described method comprises the following steps: advertisement obtains: parsing advertising address simultaneously obtains advertisement;Key frame obtains: obtaining the key frame of positive;First switching: it is live that key frame is saved when playing positive to the key frame or before, and using a certain key frame as the first switching point;The positive switches to the advertisement in first switching point, first audio-video label is set before the positive is played to first switching point or when first switching point, and the first audio-video label is used to identify the audio-video source type of positive and advertisement before and after switching point;Handover operation is carried out according to the first audio-video label between positive and advertisement.The system comprises advertisement parsing module, key frame identification module, the first switching module and the first label models.By the technical program, it can be realized video switching, improve the usability and feasibility of switching.
Description
Technical field
The present invention relates to ntelligent television technolog field more particularly to a kind of video switching methods, further, are related to realizing
The system of the switching method.
Background technique
Online Video plays on TV at present, such as intelligent television field, and more specifically for example Android intelligent television is led
Domain, type mainly include live streaming and program request.And in the process of live streaming and program request, especially during program request, broadcast
The demand that network operator between positive has commercial breaks is put, i.e., when playing positive, can be broadcast sometime putting to suspend
Film releasing source, and be transferred to and play one section of advertisement, the node that film source is suspended before playing advertisement and then plugging into back continues to start
Play the film source.
But the method for commercial breaks in the prior art, the technology of use have apparent sound when breaking for commercialsy
Sound Caton, so that picture is not smooth;It when some, or even there is also picture blank screen, or switch back positive and can also
The case where replay, i.e. picture, cannot achieve switching, these can all seriously affect the user experience in online playing process.
Summary of the invention
For overcome the deficiencies in the prior art, technical problem solved by the invention is to provide a kind of realization video switching side
Method;Further, a kind of system being able to achieve above-mentioned switching method is provided.
In order to solve the first technical problem mentioned above, the technical solution adopted in the present invention content is specific as follows:
A kind of video switching method, the described method comprises the following steps:
Advertisement obtains: parsing advertising address simultaneously obtains advertisement;
Key frame obtains: obtaining the key frame of positive;
First switching: it is live that key frame is saved when playing positive to the key frame or before, and with a certain pass
Key frame is as the first switching point;The positive switches to the advertisement in first switching point, when the positive is played to
First audio-video label is set before first switching point or when first switching point, and the first audio-video label is for marking
Know the audio-video source type of switching point front and back positive and advertisement;Handover operation is according to first audio-video between positive and advertisement
Label carries out.
For the effective switching for realizing video, inventor in the technical scheme, obtains the relevant information of advertisement first, and
Obtain the key frame of positive.The advertisement refers to that the advertising items for needing to intercut, positive refer to that original player is mainly broadcast
The film source put, such as TV play, film, sports cast.
In the first switch step, by setting the first switching point for a certain key frame, when positive is cut described first
The advertisement is switched to when changing, to realize the switching between positive and advertisement.Further, inventor is also in this programme
In be provided with the first audio-video label, for identifying the audio-video source type of positive and advertisement before and after switching point, positive and advertisement
Between handover operation carried out according to the first audio-video label, to ensure that the realization switched in varied situations, improve
The feasibility and applicability of positive and advertisement switching.
It should be noted that when the effect for saving key frame field process is in order to switch back later, switching
It is returned to the consistency for guaranteeing that advertisement plays switching front and back positive herein.
It should be noted that this video switching method can be adapted for a variety of occasions, such as smart machine, including Android
Equipment etc..
Preferably, after first switch step further include:
Second switching: using the frame at the end of advertisement as the second switching point;The advertisement is cut in second switching point
The positive is shifted to, the second audio-video is set before the advertisement is played to second switching point or when second switching point
Label, the second audio-video label are used to identify the audio-video source type of advertisement and positive before and after switching point;Advertisement and positive
Between handover operation carried out according to the second audio-video label.
It should be noted that it is similar with the first switching point, it is also provided with the second switching point in the technical scheme, uses
It is switched over from second switching point to positive in advertisement, the second switching point is preferably the frame that advertisement terminates, in this way when advertisement is broadcast
It can directly switch at the end of putting to positive.The difference of second switching point and the first switching point is only that the second switching point is
Positive is switched to for advertisement, and switches to advertisement from positive when the first switching point, remaining set-up mode and preferred embodiment
Similar, details are not described herein.Correspondingly, the second audio-video label and the first audio-video label are similarly.
Preferably, the method for parsing advertising address includes that encrypted advertising address is decrypted.
It should be noted that advertising address is possible to be encrypted in advance under some scenes, therefore as a kind of preferred
Embodiment, this programme further includes the steps that encrypted advertising address is decrypted, with improve switching feasibility and
Applicability.
Preferably, handover operation carries out or described according to the first audio-video label between the positive and advertisement
Handover operation includes: to obtain positive audio according to the specific method that the second audio-video label carries out between advertisement and positive
Source, advertisement audio-source, positive video source and advertisement video source;
Carry out audio-source judgement and video source judgement;The audio-source be judged as judge the audio-source of the positive with it is described
Whether the audio-source of advertisement belongs to same coding form;The video source is judged as the video source for judging the positive and described wide
Whether the video source of announcement belongs to same coding form;
If the result of the audio-source judgement and the result of video source judgement are very, not do any operation;
If the non-result that the result and the video source of the audio-source judgement judge is very, to execute decoder judgement
Instruction.
It should be noted that being switched over according to the first audio-video label or the second audio-video label specific
Method is to obtain positive audio-source, advertisement audio-source, positive video source and advertisement video source.To guarantee that positive and advertisement switch
Smoothness and smoothly, use obtain positive audio-source, advertisement audio-source, positive video source and advertisement in the technical scheme
The method that video source is judged carries out, and whether the audio-source for more specifically judging the positive and the audio-source of the advertisement belong to
In same coding form, and judge whether the video source of the positive and the video source of the advertisement belong to same coding shape
Formula.
When the audio-source of positive and the audio-source of the advertisement belong to video source and the institute of same coding form and positive
When stating the video source of advertisement and belonging to same coding form, then the switching before illustrating positive and advertisement is generally smooth switching, no
It needs to carry out other operations.
And when the video source of the audio-source of positive and the video source and the advertisement of the audio-source of the advertisement or positive
Comparison in, there is one of them to be not belonging to same coding form, it is likely that occur switching slack situation, further need
It executes decoder decision instruction to be determined further, and carries out the operation of next step according to the result, preferably to protect
It demonstrate,proves the fluency of handoff procedure and smoothly spends.
It is highly preferred that the decoder includes audio decoder and Video Decoder;The decoder decision instruction is as follows:
If the result of the audio-source judgement is vacation, audio decoder is restarted;
If the result of the video source judgement is vacation, video decoding judgement is executed.
It should be noted that if the result of the audio-source judgement is vacation, i.e., when the audio-source of positive and the advertisement
It when audio-source is not belonging to same coding form, then carries out restarting audio decoder, to realize audio between positive and advertisement
Switching.By these reaction steps, the audio between positive and advertisement can realize smooth switching in varied situations.
If the result of the video source judgement is vacation, the video source of positive and the video source of the advertisement are not belonging to same volume
When code form, then needs to carry out to execute video decoding and judge to meet cutting for video between positive and advertisement to take different operations
It changes.
Further, video decoding judgement includes:
Judge whether the Video Decoder is supported adaptively, if so, not doing any operation;If it is not, then restarting video
Decoder simultaneously uses render video image.
It should be noted that, then without being operated, different video is compiled when the Video Decoder of system supports adaptive
Video switching between the advertisement and positive of code form also may be implemented smoothly to switch;When the Video Decoder of system is not supported certainly
When adaptation, then need to restart Video Decoder and use render video image, with realize the advertisement of different video coding form with
The smooth switching of video between positive.By these reaction steps, the video between positive and advertisement can be realized smoothly in varied situations
Switching.
It in some embodiments, is the rendering mode of hardware used by the render video image.To solve
Above-mentioned second technical problem, the technical solution adopted in the present invention content are specific as follows:
A kind of video switching system comprising advertisement parsing module, key frame identification module, the first switching module and first
Label model;
The advertisement parsing module is for parsing advertising address and obtaining advertisement;
The key frame identification module is used to obtain the key frame of positive;
First switching module is used for using a certain key frame as the first switching point;The positive is described first
The advertisement is switched to when switching point;
First label model is used to be played to before first switching point when the positive or first switching point
When the first audio-video label is set, the first audio-video label is used to identify the audio-video source of positive and advertisement before and after switching point
Type;Handover operation is carried out according to the first audio-video label between positive and advertisement.
Preferably, the system also includes the second switching modules;
Second switching module is used for using the frame at the end of advertisement as the second switching point;The advertisement is described second
The positive is switched to when switching point, before the advertisement is played to second switching point or setting when second switching point
Second audio-video label, the second audio-video label are used to identify the audio-video source type of advertisement and positive before and after switching point;
Handover operation is carried out according to the second audio-video label between advertisement and positive.
Preferably, the advertisement parsing module includes deciphering module, and the deciphering module is for encrypted advertisement
Location is decrypted.
Compared with prior art, the beneficial effects of the present invention are:
1, video switching method of the invention, by setting the first switching point for a certain key frame, when positive is described
The advertisement is switched to when the first switching point, to realize the switching between positive and advertisement;Further, the first sound is set
Video tab, for identifying the audio-video source type of switching point front and back positive and advertisement, handover operation root between positive and advertisement
It is carried out according to the first audio-video label, to ensure that the realization switched in varied situations, improves positive and cut with advertisement
The feasibility and applicability changed;
2, video switching method of the invention, it is also preferable to include encrypted advertising address is decrypted, with
Improve the feasibility and applicability of switching;
3, video switching method of the invention, including audio-source judgement and video source judgement are carried out, according to different situations
Different handover operations is carried out, is further ensured that positive and advertisement switch smooth and smooth;
4, video switching system of the invention can accordingly implement above-mentioned video switching method, the video is effectively ensured
The feasibility and operability of switching method.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the invention can
It is clearer and more comprehensible, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
Fig. 1 is the flow diagram of the first preferred embodiment of video switching method of the invention;
Fig. 2 is the flow diagram of second of preferred embodiment of video switching method of the invention.
Specific embodiment
It is of the invention to reach the technical means and efficacy that predetermined goal of the invention is taken further to illustrate, below in conjunction with
Attached drawing and preferred embodiment, to specific embodiment, structure, feature and its effect according to the present invention, detailed description are as follows:
Embodiment 1
It is a kind of flow diagram of preferred embodiment of video switching method of the present invention, the method packet as shown in Figure 1
Include following steps:
S1: advertisement obtains: parsing advertising address simultaneously obtains advertisement;
S2: key frame obtains: obtaining the key frame of positive;
S3: the first switching: it is live that key frame is saved when playing positive to the key frame or before, and with a certain described
Key frame is as the first switching point;The positive switches to the advertisement in first switching point, when the positive plays
First audio-video label is set before to first switching point or when first switching point, and the first audio-video label is used for
Identify the audio-video source type of switching point front and back positive and advertisement;Handover operation is regarded according to first sound between positive and advertisement
Frequency marking label carry out.
For the effective switching for realizing video, this method obtains the relevant information of advertisement first, and obtains the key of positive
Frame.The advertisement refers to that the advertising items for needing to intercut, positive refer to the film source that original player mainly plays, such as TV
Play, film, sports cast etc..
In the first switch step, by setting the first switching point for a certain key frame, when positive is cut described first
The advertisement is switched to when changing, to realize the switching between positive and advertisement.Further, inventor is also in this programme
In be provided with the first audio-video label, for identifying the audio-video source type of positive and advertisement before and after switching point, positive and advertisement
Between handover operation carried out according to the first audio-video label, to ensure that the realization switched in varied situations, improve
The feasibility and applicability of positive and advertisement switching.
Embodiment 2
The present embodiment is another preferred embodiment on the basis of above-described embodiment 1, the present embodiment 2 with it is above-mentioned
The difference of embodiment 1 is, as shown in Fig. 2, in the present embodiment after first switch step further include:
S4: the second switching: using the frame at the end of advertisement as the second switching point;The advertisement is in second switching point
The positive is switched to, the second sound view is set before the advertisement is played to second switching point or when second switching point
Frequency marking label, the second audio-video label are used to identify the audio-video source type of advertisement and positive before and after switching point;Advertisement with just
Handover operation is carried out according to the second audio-video label between piece.
It is similar with the first switching point, be also provided with the second switching point in the technical scheme, for advertisement from this
Two switching points are switched over to positive, and the second switching point is preferably that frame at the end of advertisement, i.e., after advertisement broadcasting i.e.
Switch back immediately to positive part.The difference of second switching point and the first switching point is only that the second switching point is switched for advertisement
To positive, and advertisement is switched to from positive when the first switching point, remaining set-up mode and preferred embodiment are similar, herein not
It repeats again.Correspondingly, the second audio-video label and the first audio-video label are similarly.
As a preferred embodiment, the method for parsing advertising address includes solving to encrypted advertising address
It is close.Under some scenes, advertising address is possible to be encrypted in advance, therefore as a preferred embodiment, this programme
Further include the steps that encrypted advertising address is decrypted, to improve the feasibility and applicability of switching.
Remaining preferred embodiment of the present embodiment is identical as above-described embodiment 1, and details are not described herein.
Embodiment 3
The present embodiment is another preferred embodiment on the basis of above-described embodiment 2, the present embodiment 3 with it is above-mentioned
The difference of embodiment 2 is that handover operation is carried out according to the first audio-video label between the positive and advertisement, Huo Zhesuo
It includes: to obtain positive audio that handover operation, which is stated between advertisement and positive, according to the specific method that the second audio-video label carries out
Source, advertisement audio-source, positive video source and advertisement video source;
Carry out audio-source judgement and video source judgement;The audio-source be judged as judge the audio-source of the positive with it is described
Whether the audio-source of advertisement belongs to same coding form;The video source is judged as the video source for judging the positive and described wide
Whether the video source of announcement belongs to same coding form;
If the result of the audio-source judgement and the result of video source judgement are very, not do any operation;
If the non-result that the result and the video source of the audio-source judgement judge is very, to execute decoder judgement
Instruction.
It is to obtain just according to the specific method that the first audio-video label or the second audio-video label switch over
Piece audio-source, advertisement audio-source, positive video source and advertisement video source.To guarantee smoothness that positive and advertisement switch and suitable
Benefit uses obtain positive audio-source, advertisement audio-source, positive video source and the progress of advertisement video source in the technical scheme
The method of judgement carries out, and whether the audio-source of the audio-source and the advertisement that more specifically judge the positive belongs to same coding
Form, and judge whether the video source of the positive and the video source of the advertisement belong to same coding form.
When the audio-source of positive and the audio-source of the advertisement belong to video source and the institute of same coding form and positive
When stating the video source of advertisement and belonging to same coding form, then the switching before illustrating positive and advertisement is generally smooth switching, no
It needs to carry out other operations.
And when the video source of the audio-source of positive and the video source and the advertisement of the audio-source of the advertisement or positive
Comparison in, there is one of them to be not belonging to same coding form, it is likely that occur switching slack situation, further need
It executes decoder decision instruction to be determined further, and carries out the operation of next step according to the result, preferably to protect
It demonstrate,proves the fluency of handoff procedure and smoothly spends.
The decoder includes audio decoder and Video Decoder;The decoder decision instruction is as follows:
If the result of the audio-source judgement is vacation, audio decoder is restarted;
If the result of the video source judgement is vacation, video decoding judgement is executed.
If the result of the audio-source judgement is vacation, i.e., when the audio-source of positive and the audio-source of the advertisement are not belonging to together
It when one coding form, then carries out restarting audio decoder, to realize the switching of audio between positive and advertisement.By these reaction steps,
Audio between positive and advertisement can realize smooth switching in varied situations.
If the result of the video source judgement is vacation, the video source of positive and the video source of the advertisement are not belonging to same volume
When code form, then needs to carry out to execute video decoding and judge to meet cutting for video between positive and advertisement to take different operations
It changes.
The video decoding judges
Judge whether the Video Decoder is supported adaptively, if so, not doing any operation;If it is not, then restarting video
Decoder simultaneously uses render video image.
When the Video Decoder of system supports adaptive, then without being operated, the advertisement of different video coding form
Video switching between positive also may be implemented smoothly to switch;When the Video Decoder of system does not support adaptive, then need
Restart Video Decoder and uses render video image, the view between advertisement and positive to realize different video coding form
The smooth switching of frequency.By these reaction steps, the video between positive and advertisement can realize smooth switching in varied situations.
A kind of embodiment more preferably is the rendering side of hardware used by the render video image
Formula.
Embodiment 4
A kind of preferred embodiment of a kind of video switching system provided by the invention comprising advertisement parsing module closes
Key frame identification module, the first switching module and the first label model;
The advertisement parsing module is for parsing advertising address and obtaining advertisement;
The key frame identification module is used to obtain the key frame of positive;
First switching module is used for using a certain key frame as the first switching point;The positive is described first
The advertisement is switched to when switching point;
First label model is used to be played to before first switching point when the positive or first switching point
When the first audio-video label is set, the first audio-video label is used to identify the audio-video source of positive and advertisement before and after switching point
Type;Handover operation is carried out according to the first audio-video label between positive and advertisement.
In other more specific embodiments, the system also includes the second switching modules;
Second switching module is used for using the frame at the end of advertisement as the second switching point;The advertisement is described second
The positive is switched to when switching point, before the advertisement is played to second switching point or setting when second switching point
Second audio-video label, the second audio-video label are used to identify the audio-video source type of advertisement and positive before and after switching point;
Handover operation is carried out according to the second audio-video label between advertisement and positive.
In conjunction with above embodiment, in other some preferred embodiments, the advertisement parsing module includes solution
Close module, the deciphering module is for being decrypted encrypted advertising address.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.
Claims (10)
1. a kind of video switching method, which is characterized in that the described method comprises the following steps:
Advertisement obtains: parsing advertising address simultaneously obtains advertisement;
Key frame obtains: obtaining the key frame of positive;
First switching: it is live that key frame is saved when playing positive to the key frame or before, and with a certain key frame
As the first switching point;The positive switches to the advertisement in first switching point, when the positive be played to it is described
First audio-video label is set before the first switching point or when first switching point, and the first audio-video label is cut for identifying
Change an audio-video source type for front and back positive and advertisement;Handover operation is according to the first audio-video label between positive and advertisement
It carries out.
2. video switching method as described in claim 1, which is characterized in that after first switch step further include:
Second switching: using the frame at the end of advertisement as the second switching point;The advertisement is switched in second switching point
The second audio-video mark is arranged before the advertisement is played to second switching point or when second switching point in the positive
Label, the second audio-video label are used to identify the audio-video source type of advertisement and positive before and after switching point;Advertisement and positive it
Between handover operation carried out according to the second audio-video label.
3. video switching method as described in claim 1, which is characterized in that the method for parsing advertising address includes to encrypted
Advertising address be decrypted.
4. video switching method as described in claim 1, which is characterized in that between the positive and advertisement handover operation according to
The first audio-video label carry out or the advertisement and positive between handover operation according to the second audio-video label into
Capable specific method includes: to obtain positive audio-source, advertisement audio-source, positive video source and advertisement video source;
Carry out audio-source judgement and video source judgement;The audio-source is judged as the audio-source and the advertisement for judging the positive
Audio-source whether belong to same coding form;The video source is judged as the video source and the advertisement for judging the positive
Whether video source belongs to same coding form;
If the result of the audio-source judgement and the result of video source judgement are very, not do any operation;
If the non-result that the result and the video source of the audio-source judgement judge is very, to execute decoder judgement and refer to
It enables.
5. video switching method as claimed in claim 4, which is characterized in that the decoder includes audio decoder and video
Decoder;The decoder decision instruction is as follows:
If the result of the audio-source judgement is vacation, audio decoder is restarted;
If the result of the video source judgement is vacation, video decoding judgement is executed.
6. video switching method as claimed in claim 5, which is characterized in that the video decodes judgement and includes:
Judge whether the Video Decoder is supported adaptively, if so, not doing any operation;If it is not, then restarting video decoding
Device simultaneously uses render video image.
7. video switching method as claimed in claim 6, which is characterized in that be used by the render video image
The rendering mode of hardware.
8. a kind of video switching system, which is characterized in that it includes advertisement parsing module, key frame identification module, the first switching
Module and the first label model;
The advertisement parsing module is for parsing advertising address and obtaining advertisement;
The key frame identification module is used to obtain the key frame of positive;
First switching module is used for using a certain key frame as the first switching point;The positive is in first switching
The advertisement is switched to when point;
First label model before the positive is played to first switching point or when first switching point for setting
The first audio-video label is set, the first audio-video label is used to identify the audio-video source class of positive and advertisement before and after switching point
Type;Handover operation is carried out according to the first audio-video label between positive and advertisement.
9. video switching system as claimed in claim 8, which is characterized in that the system also includes the second switching modules;
Second switching module is used for using the frame at the end of advertisement as the second switching point;The advertisement is in second switching
The positive is switched to when point, is arranged second before the advertisement is played to second switching point or when second switching point
Audio-video label, the second audio-video label are used to identify the audio-video source type of advertisement and positive before and after switching point;Advertisement
Handover operation is carried out according to the second audio-video label between positive.
10. video switching system as claimed in claim 8, which is characterized in that the advertisement parsing module includes deciphering module,
The deciphering module is for being decrypted encrypted advertising address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811050233.7A CN109218815B (en) | 2018-09-10 | 2018-09-10 | Video switching method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811050233.7A CN109218815B (en) | 2018-09-10 | 2018-09-10 | Video switching method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109218815A true CN109218815A (en) | 2019-01-15 |
CN109218815B CN109218815B (en) | 2021-10-22 |
Family
ID=64987950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811050233.7A Active CN109218815B (en) | 2018-09-10 | 2018-09-10 | Video switching method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109218815B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677689A (en) * | 2019-09-29 | 2020-01-10 | 杭州当虹科技股份有限公司 | VR video advertisement seamless insertion method based on user view angle |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020067730A1 (en) * | 2000-12-05 | 2002-06-06 | Starguide Digital Networks, Inc. | Method and apparatus for IP multicast content distribution system having national and regional demographically targeted advertisement insertion |
CN101184248A (en) * | 2006-12-30 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Method and device for generating video content with advertisement |
CN101287114A (en) * | 2008-05-27 | 2008-10-15 | 中兴通讯股份有限公司 | Method for dynamically switching in video data stream |
US20090138604A1 (en) * | 2007-11-23 | 2009-05-28 | Jean-Luc Collet | System and method for delivering digital content |
CN101982974A (en) * | 2010-11-22 | 2011-03-02 | 天柏宽带网络科技(北京)有限公司 | Advertisement insertion method and device in video-on-demand system |
CN105657524A (en) * | 2016-01-13 | 2016-06-08 | 上海视云网络科技有限公司 | Seamless video switching method |
CN105959743A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Video advertisement playing method and device and server |
CN106060628A (en) * | 2016-06-28 | 2016-10-26 | 暴风集团股份有限公司 | DirectShow-based method and system supporting variable coding |
-
2018
- 2018-09-10 CN CN201811050233.7A patent/CN109218815B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020067730A1 (en) * | 2000-12-05 | 2002-06-06 | Starguide Digital Networks, Inc. | Method and apparatus for IP multicast content distribution system having national and regional demographically targeted advertisement insertion |
CN101184248A (en) * | 2006-12-30 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Method and device for generating video content with advertisement |
US20090138604A1 (en) * | 2007-11-23 | 2009-05-28 | Jean-Luc Collet | System and method for delivering digital content |
CN101287114A (en) * | 2008-05-27 | 2008-10-15 | 中兴通讯股份有限公司 | Method for dynamically switching in video data stream |
CN101982974A (en) * | 2010-11-22 | 2011-03-02 | 天柏宽带网络科技(北京)有限公司 | Advertisement insertion method and device in video-on-demand system |
CN105657524A (en) * | 2016-01-13 | 2016-06-08 | 上海视云网络科技有限公司 | Seamless video switching method |
CN105959743A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Video advertisement playing method and device and server |
CN106060628A (en) * | 2016-06-28 | 2016-10-26 | 暴风集团股份有限公司 | DirectShow-based method and system supporting variable coding |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677689A (en) * | 2019-09-29 | 2020-01-10 | 杭州当虹科技股份有限公司 | VR video advertisement seamless insertion method based on user view angle |
Also Published As
Publication number | Publication date |
---|---|
CN109218815B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109168078B (en) | Video definition switching method and device | |
US11503244B2 (en) | Systems and methods to position and play content | |
US9118950B2 (en) | Broadcast receiving apparatus, playback apparatus, broadcast communication system, broadcast receiving method, playback method, and program | |
CN105721921A (en) | Self-adaptive selection method for multi-window video decoder | |
TWI716018B (en) | Dynamic reduction in playout of replacement content to help align end of replacement content with end of replaced content | |
CN107071502B (en) | Video playing method and device | |
CN105872768A (en) | Display terminal information source switching method and device | |
CN105979375B (en) | A kind of starting method and device of smart television | |
WO2011033730A1 (en) | Information processing device, data management method, and program | |
CN106162332A (en) | One is televised control method and device | |
CN105025344A (en) | Inter-cut method and device | |
CN105635811A (en) | Advertisement playing method and device based on broadcast and TV wireless live broadcast signal | |
CN109218815A (en) | A kind of video switching method and system | |
CN104066011A (en) | Control method of interface switching of intelligent TV and control device thereof | |
CN108156487A (en) | A kind of video broadcasting method and device | |
TW201008269A (en) | Reproducing device, reproducing method, program, and data structure | |
CN105245941B (en) | A kind of encrypted television program switching method and device | |
CN108600785A (en) | The synchronous method and computer readable storage medium of video streaming sub-routine | |
CN110809179A (en) | Method and system for switching live broadcast time-shifting time axis under HLS protocol | |
CN106412714B (en) | A kind of method and system for realizing videophone | |
CN106507194B (en) | A kind of Android intelligent television scene management method | |
CN109218828B (en) | Method, terminal and storage medium for playing streaming media | |
CN103997694B (en) | A kind of video moves back broadcasting method and system | |
CN108243356A (en) | A kind of continuous playing method and device | |
CN111385634B (en) | Method and system for embedding advertisement in video |
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 |