CN103414939A - Channel switching method and device - Google Patents
Channel switching method and device Download PDFInfo
- Publication number
- CN103414939A CN103414939A CN2013103209828A CN201310320982A CN103414939A CN 103414939 A CN103414939 A CN 103414939A CN 2013103209828 A CN2013103209828 A CN 2013103209828A CN 201310320982 A CN201310320982 A CN 201310320982A CN 103414939 A CN103414939 A CN 103414939A
- Authority
- CN
- China
- Prior art keywords
- audio
- video data
- channel
- current broadcasting
- timestamp
- 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
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Television Systems (AREA)
Abstract
The invention relates to a channel switching method and device. When a channel switching command is detected, a timestamp of audio and video data of a current playing frame of a current playing channel is obtained, a timestamp of a starting frame of audio and video data of a channel to be switched is amended into the obtained timestamp, no time difference exists between the audio and video data of the channel to be switched and the audio and video data played at present, smooth connection can be achieved, a decoder is not required to be turned on or turned off, and switching of television channels is more smooth.
Description
Technical field
The present invention relates to technical field of television sets, relate in particular to a kind of channel switching method and device.
Background technology
Intelligent television application in daily life at present is more and more extensive, but current network intelligence TV is when switching channels, adopt following flow process: the TV end is when receiving the instruction of channel switching, the network that disconnects current channel A connects, and empties the data cached of current channel A, closes current decoder, the network of setting up to be switched channel B connects, receive the also audio, video data of buffer memory channel B, reopen decoder, start audio/video decoding.Due to the process of opening and closing decoder being arranged in the process of switching channels, easily cause the blank screen of television image, unsmooth during the channel switching.
Summary of the invention
Main purpose of the present invention is to provide a kind of channel switching method and device, makes TV more level and smooth when switching channels.
The present invention proposes a kind of channel switching method, comprising:
While detecting channel switching instruction, obtain the time stamp of audio, video data of the current broadcasting frame of current broadcasting channel;
Obtain the audio, video data of to be switched channel;
The timestamp of the audio, video data start frame of the to be switched channel that obtains is revised as to the timestamp obtained;
Play the audio, video data of the to be switched channel after modification time stabs.
Preferably, the timestamp of the audio, video data start frame of the described to be switched channel that will the obtain step that is revised as the timestamp obtained comprises:
Parse coded format and the file format of the audio, video data of described to be switched channel;
Whether the coded format that judgement parses is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
The timestamp of the audio, video data start frame after encoding and decoding again is revised as and the described timestamp obtained.
Preferably, the described audio, video data for the treatment of switching channels again encoding and decoding after becoming the step of coded format of audio, video data of current broadcasting channel, comprise:
Whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame after recompile is revised as to the described timestamp obtained.
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, after the new encoding and decoding of counterweight, audio, video data carries out Reseal;
The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
Preferably, whether identical step also comprises afterwards the coded format of the coded format that parses of judgement and the audio, video data of current broadcasting channel:
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame of channel to be played is revised as to the described timestamp obtained;
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of broadcasting channel carries out Reseal;
The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
Preferably, the timestamp of the audio, video data start frame of the described to be switched channel that will the obtain step that is revised as the timestamp obtained comprises:
Parse coded format and the file format of the audio, video data of described to be switched channel;
Whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels carries out Reseal;
The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
Preferably, the described audio, video data for the treatment of switching channels carries out also comprising after the step of Reseal:
Whether the coded format that judgement parses is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
If the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data after Reseal encoding and decoding is again become to the coded format of the audio, video data of current broadcasting channel;
The timestamp of the audio, video data start frame after encoding and decoding again is revised as and the described timestamp obtained.
Preferably, whether the file format of the file format that parses of described judgement and the audio, video data of current broadcasting channel also comprises after identical step:
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, judge whether the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
The timestamp of the audio, video data start frame after encoding and decoding again is revised as and the described timestamp obtained;
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, the timestamp of channel audio, video data start frame to be played is revised as to the described timestamp obtained.
The present invention also proposes a kind of channel switching mechanism, comprising:
Acquisition module, when detecting channel switching instruction, obtain the time stamp of audio, video data of the present frame of current broadcasting channel, and the audio, video data that obtains to be switched channel
Modified module, be revised as for the timestamp of the audio, video data start frame of the to be switched channel that will obtain the timestamp obtained;
Playing module, be used to playing the audio, video data of the to be switched channel after modification time stabs.
Preferably, described modified module comprises:
Resolution unit, be used to coded format and the file format of the audio, video data that parses described to be switched channel;
Judging unit, whether the coded format parsed for judgement is identical with the coded format of the audio, video data of current broadcasting channel;
Coding unit, if different from the coded format of the audio, video data of current broadcasting channel for the coded format parsed, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
Revise unit, be revised as and the described timestamp obtained for the timestamp of the audio, video data start frame after encoding and decoding again.
Preferably, whether described judging unit is also identical with the file format of the audio, video data of current broadcasting channel for the file format that judgement parses; If described modification unit is also identical with the file format of the audio, video data of current broadcasting channel for the file format parsed, the timestamp of the audio, video data start frame after recompile is revised as to the described timestamp obtained; Also comprise encapsulation unit, if different from the file format of the audio, video data of current broadcasting channel for the file format parsed, after the new encoding and decoding of counterweight, audio, video data carries out Reseal; Described modification unit also is revised as and the described timestamp obtained for the timestamp of the audio, video data start frame by after Reseal.
Preferably, if described judging unit is also identical with the coded format of the audio, video data of current broadcasting channel for the coded format parsed, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel; If described modification unit is also identical with the file format of the audio, video data of current broadcasting channel for the file format parsed, the timestamp of the audio, video data start frame of channel to be played is revised as to the described timestamp obtained.
Channel switching method and device that the present invention proposes, when detecting channel switching instruction, obtain the time stamp of audio, video data of the current broadcasting frame of current broadcasting channel, and the timestamp of the audio, video data start frame of to be switched channel is revised as to the timestamp obtained, make in the middle of the audio, video data of the audio, video data of to be switched channel and current broadcasting without the time difference, can couple together smoothly, and, without the opening and closing decoder, make the switching of TV channel more smooth and easy.
The accompanying drawing explanation
Fig. 1 is the schematic flow sheet of channel switching method preferred embodiment of the present invention;
Fig. 2 is the first embodiment idiographic flow schematic diagram of step S30 in Fig. 1;
Fig. 3 is the second embodiment idiographic flow schematic diagram of step S30 in Fig. 1;
Fig. 4 is the 3rd embodiment idiographic flow schematic diagram of step S30 in Fig. 1;
Fig. 5 is the 4th embodiment idiographic flow schematic diagram of step S30 in Fig. 1;
Fig. 6 is the 5th embodiment idiographic flow schematic diagram of step S30 in Fig. 1;
Fig. 7 is the 6th embodiment idiographic flow schematic diagram of step S30 in Fig. 1;
Fig. 8 is the structural representation of channel switching mechanism preferred embodiment of the present invention;
Fig. 9 is the structural representation of modified module the first embodiment in Fig. 8;
Figure 10 is the structural representation of modified module the second embodiment in Fig. 8.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Below in conjunction with drawings and the specific embodiments, be described further with regard to technical scheme of the present invention.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of channel switching method preferred embodiment of the present invention.
The channel switching method that the present embodiment proposes comprises:
Step S10, while detecting channel switching instruction, obtain the time stamp of audio, video data of the current broadcasting frame of current broadcasting channel;
The user, when the needs switching channels, sends channel switching instruction by remote controller or alternate manner to the TV end, and the TV end, when receiving channel switching instruction, obtains the timestamp of audio, video data of the channel of current broadcasting.TV, when playing the audio, video data of certain channel, has the first frame data to start to add timestamp, and for example the timestamp of the first frame data is 1S, and the timestamp of playing frame while being played to 1min36s is 1min36s.During the building time stamp, the data encoding that first needs is added to timestamp forms summary, then this summary is added to date and time information.
Step S20, obtain the audio, video data of to be switched channel;
Step S30, be revised as by the timestamp of the audio, video data start frame of the to be switched channel that obtains the timestamp obtained;
When the start frame of the audio, video data of to be switched channel is different from the timestamp of current broadcasting frame, can cause a time difference, for example the timestamp of current broadcasting frame is 1min36s, and the timestamp of the start frame of the audio, video data of to be switched channel is 1min38s, the time difference that there will be 2s, cause television set blank screen to occur or rest on the situation of current broadcasting frame picture, until after 2s, just can play the audio, video data of to be switched channel; If the timestamp of current broadcasting frame is 1min36s, and the timestamp of the start frame of the audio, video data of to be switched channel is 1min32s, while playing, can be started by the 1min36s Frame of to be switched channel to play, cause the part audio, video data of to be switched channel not play.
Step S40, the audio, video data of the to be switched channel after broadcasting modification time stamp.
By playing the audio, video data of the to be switched channel after modification time stabs, make the audio, video data of to be switched channel and the audio, video data of current broadcasting channel to couple together, realize switching level and smooth between channel, the audio, video data of the audio, video data of to be switched channel and current broadcasting channel is regarded to the audio, video data of a channel playing, need not be restarted decoder.
The channel switching method that the present embodiment proposes, when detecting channel switching instruction, obtain the timestamp of audio, video data of the current broadcasting frame of current broadcasting channel, and the timestamp of the audio, video data start frame of to be switched channel is revised as to the timestamp obtained, make in the middle of the audio, video data of the audio, video data of to be switched channel and current broadcasting without the time difference, can couple together smoothly, and, without the opening and closing decoder, make the switching of TV channel more smooth and easy.
With reference to Fig. 2, Fig. 2 is the first embodiment idiographic flow schematic diagram of step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, step S30 comprises:
Step S31, parse coded format and the file format of the audio, video data of described to be switched channel;
Step S32, whether the coded format that judgement parses is identical with the coded format of the audio, video data of current broadcasting channel;
Step S33, if the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
Step S34, be revised as the timestamp of the audio, video data start frame after encoding and decoding again and the described timestamp obtained.
The purpose of timestamp that in the present embodiment timestamp of the audio, video data start frame of to be switched channel is revised as to the audio, video data of current broadcasting frame is, the audio, video data of the audio, video data of to be switched channel and current broadcasting channel is play as the data of a channel, if channel to be played is different from decoding process and the file format of current broadcasting channel, the audio, video data that needs to treat broadcasting channel is re-encoded as the coded format of current broadcasting channel after decoding, the audio, video data Reseal for the treatment of broadcasting channel is the file format of the audio, video data of current broadcasting channel.
The file format of audio, video data can be found out in the suffix of video data, and coded format refers to the compressed encoding form of video data.When the coded format of audio, video data to be played was different, after this audio, video data first can being decoded, then recompile be and the corresponding coded format of current playing audio-video data, so that the decoder before can adopting when broadcasting need not be restarted decoder.
With reference to Fig. 3, Fig. 3 is the second embodiment idiographic flow schematic diagram of step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also comprise after step S33:
Step S35, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, will perform step S34, the timestamp of the audio, video data start frame after recompile is revised as the described timestamp obtained;
Step S36, if the file format parsed is different from the file format of the audio, video data of current broadcasting channel, after the new encoding and decoding of counterweight, audio, video data carries out Reseal;
Step S37, be revised as the timestamp of the audio, video data start frame after Reseal and the described timestamp obtained.
The file format of audio, video data refers to the form that the players such as MP3, MP4, AVI are supported, the file format of the audio, video data by changing channel to be played, make the playing module of television set by the audio, video data of the audio, video data of the audio, video data of channel to be played and current broadcasting channel as a channel, smooth broadcasting.
If after decoding, the file format of audio, video data to be played is different from the file format of the audio, video data of current broadcasting, need the audio, video data after encoding and decoding is carried out to decapsulation Reseal, encapsulation refers to video track and audio track that compression coding is good is put in certain file according to certain form, for example the file format of the audio, video data of channel to be played is the MP4 form, and the form of the audio, video data of current broadcasting channel is the AVI form, can get by decapsulation video track and the audio track of audio, video data, then the Reseal video track that will get and audio track are placed according to the file format of AVI.The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
With reference to Fig. 4, Fig. 4 is the 3rd flow process idiographic flow schematic diagram of implementing of step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also comprise after step S32:
Step S35, if the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
Step S38, if the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, be revised as the described timestamp obtained by the timestamp of the audio, video data start frame of channel to be played;
Step S39, if the file format parsed is different from the file format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of broadcasting channel carries out Reseal;
Step S37, be revised as the timestamp of the audio, video data start frame after Reseal and the described timestamp obtained.
When the coded format of the coded format of the audio, video data of channel to be played and the audio, video data of current broadcasting channel is identical, whether the file format of audio, video data that can continue to judge channel to be played is identical with the file format of the audio, video data of current broadcasting channel, if different, can treat the audio, video data Reseals of broadcasting channel, but the form that changes this audio, video data makes its smooth playing.
With reference to Fig. 5, Fig. 5 is the 4th flow process idiographic flow schematic diagram of implementing of step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, step S30 comprises:
Step S31, parse coded format and the file format of the audio, video data of described to be switched channel;
Step S35, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, perform step S39, the audio, video data for the treatment of switching channels carries out Reseal;
Step S37, be revised as the timestamp of the audio, video data start frame after Reseal and the described timestamp obtained.
In the present embodiment, whether the file format that can first judge audio, video data to be played is identical, if different, to audio, video data Reseal to be played, the timestamp of the audio, video data start frame after Reseal is revised as to the timestamp of the audio, video data of current broadcasting frame.
With reference to Fig. 6, Fig. 6 is the idiographic flow schematic diagram of the 5th embodiment of step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also comprise after step S39:
Step S32, whether the coded format that judgement parses is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, perform step S37, the timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained;
Step S41, if the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, become the audio, video data after Reseal encoding and decoding again the coded format of the audio, video data of current broadcasting channel;
Step S34, be revised as the timestamp of the audio, video data start frame after encoding and decoding again and the described timestamp obtained.
If the coded format of the audio, video data after Reseal is identical with the coded format of the audio, video data of current broadcasting, the timestamp of the audio, video data start frame after Reseal is revised as to the timestamp of the audio, video data of current broadcasting frame.
After the audio, video data for the treatment of broadcasting channel carries out Reseal, if the coded format of the audio, video data after Reseal is different from the audio, video data of current broadcasting channel, the audio, video data after Reseal encoding and decoding is again become to the coded format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame after encoding and decoding again is revised as to the timestamp of the audio, video data of current broadcasting frame.
With reference to Fig. 7, Fig. 7 is the idiographic flow schematic diagram of the 6th embodiment of step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also comprise after step S35:
Step S32, if the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, judge whether the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel;
Step S33, if the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
Step S34, be revised as the timestamp of the audio, video data start frame after encoding and decoding again and the described timestamp obtained;
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, perform step S38, the timestamp of the audio, video data start frame of channel to be played is revised as to the described timestamp obtained.
If the file format of the audio, video data of channel to be played is identical with the file format of the audio, video data of current broadcasting channel, continue to judge whether the audio, video data coded format of channel to be played is identical with the coded format of the audio, video data of current broadcasting channel, if different, recompile.
With reference to Fig. 8, Fig. 8 is the structural representation of channel switching mechanism preferred embodiment of the present invention.
The present embodiment proposes a kind of channel switching mechanism, comprising:
The user, when the needs switching channels, sends channel switching instruction by remote controller or alternate manner to the TV end, and the TV end, when receiving channel switching instruction, obtains the timestamp of audio, video data of the channel of current broadcasting.TV, when playing the audio, video data of certain channel, starts to add timestamp by the first frame data, and for example the timestamp of the first frame data is 1S, and the timestamp of playing frame while being played to 1min36s is 1min36s.While adding timestamp, the data encoding that first needs is added to timestamp forms summary, then this summary is added to date and time information.
Playing module 30, be used to playing the audio, video data of the to be switched channel after modification time stabs.
When if the start frame of the audio, video data of to be switched channel is different from the timestamp of the audio, video data of current broadcasting frame, can cause a time difference, for example the timestamp of current broadcasting frame is 1min36s, and the timestamp of the start frame of the audio, video data of to be switched channel is 1min38s, the time difference that there will be 2s, cause television set blank screen to occur or rest on the situation of current broadcasting frame picture, until after 2s, just can play the audio, video data of to be switched channel; If the timestamp of current broadcasting frame is 1min36s, and the timestamp of the start frame of the audio, video data of to be switched channel is 1min32s, while playing, can be started by the 1min36s Frame of to be switched channel to play, cause the part audio, video data of to be switched channel not play.
By playing the audio, video data of the to be switched channel after modification time stabs, make the audio, video data of to be switched channel and the audio, video data of current broadcasting channel to couple together, realize switching level and smooth between channel, the audio, video data of the audio, video data of to be switched channel and current broadcasting channel is regarded to the audio, video data of a channel playing, need not be restarted decoder.
The channel switching method that the present embodiment proposes, when detecting channel switching instruction, obtain the timestamp of audio, video data of the current broadcasting frame of current broadcasting channel, and the timestamp of the audio, video data start frame of to be switched channel is revised as to the timestamp obtained, make in the middle of the audio, video data of the audio, video data of to be switched channel and current broadcasting without the time difference, can couple together smoothly, and, without the opening and closing decoder, make the switching of TV channel more smooth and easy.
With reference to Fig. 9, Fig. 9 is the structural representation of modified module the first embodiment in Fig. 8.
Modified module comprises:
Judging unit 22, whether the coded format parsed for judgement is identical with the coded format of the audio, video data of current broadcasting channel;
Revise unit 24, be revised as and the described timestamp obtained for the timestamp of the audio, video data start frame after encoding and decoding again.
The purpose of timestamp that in the present embodiment timestamp of the audio, video data start frame of to be switched channel is revised as to the audio, video data of current broadcasting frame is, the audio, video data of the audio, video data of to be switched channel and current broadcasting channel is play as the data of a channel, if channel to be played is different from decoding process and the file format of current broadcasting channel, the audio, video data that needs to treat broadcasting channel is re-encoded as the coded format of current broadcasting channel after decoding, the audio, video data Reseal for the treatment of broadcasting channel is the file format of the audio, video data of current broadcasting channel.
The file format of video data can be found out in the suffix of video data, and coded format refers to the compressed encoding form of video data.When the coded format of video data to be played is different, can be by this after video data is first decoded again recompile for and the corresponding coded format of current playing video data so that the decoder before can adopting when playing need not be restarted decoder.
With reference to Figure 10, Figure 10 is the structural representation of modified module the second embodiment in Fig. 8.
In the above-described embodiments, whether described judging unit 22 is also identical with the file format of the audio, video data of current broadcasting channel for the file format that judgement parses; If described modification unit 24 is also identical with the file format of the audio, video data of current broadcasting channel for the file format parsed, the timestamp of the audio, video data start frame after recompile is revised as to the described timestamp obtained; Also comprise encapsulation unit 25, if different from the file format of the audio, video data of current broadcasting channel for the file format parsed, after the new encoding and decoding of counterweight, audio, video data carries out Reseal; Described modification unit 24 also is revised as and the described timestamp obtained for the timestamp of the audio, video data start frame by after Reseal.
The file format of audio, video data refers to the form that the players such as MP3, MP4, AVI are supported, the file format of the audio, video data by changing channel to be played, make the playing module of television set by the audio, video data of the audio, video data of the audio, video data of channel to be played and current broadcasting channel as a channel, smooth broadcasting.
If the file format of the audio, video data to be played after encoding and decoding is different from the file format of the audio, video data of current broadcasting, after needing the audio, video data after encoding and decoding is carried out to decapsulation, Reseal again, encapsulation refers to video track and audio track that compression coding is good is put in certain file according to certain form, for example the file format of the audio, video data of channel to be played is the MP4 form, and the form of the audio, video data of current broadcasting channel is the AVI form, can get by decapsulation video track and the audio track of audio, video data, then the Reseal video track that will get and audio track are placed according to the file format of AVI, the timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
In the above-described embodiments, if judging unit 22 is also identical with the coded format of the audio, video data of current broadcasting channel for the coded format parsed, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel; If described modification unit 24 is also identical with the file format of the audio, video data of current broadcasting channel for the file format parsed, the timestamp of audio, video data start frame is revised as to the described timestamp obtained.
When the coded format of the coded format of the audio, video data of channel to be played and the audio, video data of current broadcasting channel is identical, whether the file format of video/audio wire data that can continue to judge channel to be played is identical with the file format of the audio, video data of current broadcasting channel, if the different audio, video data Reseals that can treat broadcasting channel, make its smooth playing but change its form.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure transformation that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.
Claims (11)
1. a channel switching method, is characterized in that, comprising:
While detecting channel switching instruction, obtain the time stamp of audio, video data of the current broadcasting frame of current broadcasting channel;
Obtain the audio, video data of to be switched channel;
The timestamp of the audio, video data start frame of the to be switched channel that obtains is revised as to the timestamp obtained;
Play the audio, video data of the to be switched channel after modification time stabs.
2. method according to claim 1, is characterized in that, the step that the timestamp of the audio, video data start frame of the described to be switched channel that will obtain is revised as the timestamp obtained comprises:
Parse coded format and the file format of the audio, video data of described to be switched channel;
Whether the coded format that judgement parses is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
The timestamp of the audio, video data start frame after encoding and decoding again is revised as and the described timestamp obtained.
3. method as claimed in claim 2, is characterized in that, the described audio, video data for the treatment of switching channels encoding and decoding again comprises after becoming the step of coded format of audio, video data of current broadcasting channel:
Whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame after recompile is revised as to the described timestamp obtained.
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, after the new encoding and decoding of counterweight, audio, video data carries out Reseal;
The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
4. method according to claim 2, is characterized in that, whether identical step also comprises afterwards the coded format of the coded format that parses of judgement and the audio, video data of current broadcasting channel:
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame of channel to be played is revised as to the described timestamp obtained;
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of broadcasting channel carries out Reseal;
The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
5. method according to claim 1, is characterized in that, the step that the timestamp of the audio, video data start frame of the described to be switched channel that will obtain is revised as the timestamp obtained comprises:
Parse coded format and the file format of the audio, video data of described to be switched channel;
Whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel;
If the file format parsed is different from the file format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels carries out Reseal;
The timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
6. method as claimed in claim 5, is characterized in that, the step that the described audio, video data for the treatment of switching channels carries out Reseal also comprises afterwards:
Whether the coded format that judgement parses is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame after Reseal is revised as and the described timestamp obtained.
If the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data after Reseal encoding and decoding is again become to the coded format of the audio, video data of current broadcasting channel;
The timestamp of the audio, video data start frame after encoding and decoding again is revised as and the described timestamp obtained.
7. method according to claim 5, is characterized in that, whether the file format of the file format that described judgement parses and the audio, video data of current broadcasting channel also comprises after identical step:
If the file format parsed is identical with the file format of the audio, video data of current broadcasting channel, judge whether the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel;
If the coded format parsed is different from the coded format of the audio, video data of current broadcasting channel, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
The timestamp of the audio, video data start frame after encoding and decoding again is revised as and the described timestamp obtained;
If the coded format parsed is identical with the coded format of the audio, video data of current broadcasting channel, the timestamp of the audio, video data start frame of channel to be played is revised as to the described timestamp obtained.
8. a channel switching mechanism, is characterized in that, comprising:
Acquisition module, when detecting channel switching instruction, obtain the time stamp of audio, video data of the present frame of current broadcasting channel, and the audio, video data that obtains to be switched channel
Modified module, be revised as for the timestamp of the audio, video data start frame of the to be switched channel that will obtain the timestamp obtained;
Playing module, be used to playing the audio, video data of the to be switched channel after modification time stabs.
9. device according to claim 8, is characterized in that, described modified module comprises:
Resolution unit, be used to coded format and the file format of the audio, video data that parses described to be switched channel;
Judging unit, whether the coded format parsed for judgement is identical with the coded format of the audio, video data of current broadcasting channel;
Coding unit, if different from the coded format of the audio, video data of current broadcasting channel for the coded format parsed, the audio, video data for the treatment of switching channels encoding and decoding again becomes the coded format of the audio, video data of current broadcasting channel;
Revise unit, be revised as and the described timestamp obtained for the timestamp of the audio, video data start frame after encoding and decoding again.
10. device according to claim 9, is characterized in that, whether described judging unit is also identical with the file format of the audio, video data of current broadcasting channel for the file format that judgement parses; If described modification unit is also identical with the file format of the audio, video data of current broadcasting channel for the file format parsed, the timestamp of the audio, video data start frame after recompile is revised as to the described timestamp obtained; Also comprise encapsulation unit, if different from the file format of the audio, video data of current broadcasting channel for the file format parsed, after the new encoding and decoding of counterweight, audio, video data carries out Reseal; Described modification unit also is revised as and the described timestamp obtained for the timestamp of the audio, video data start frame by after Reseal.
11. device according to claim 9, it is characterized in that, if described judging unit is also identical with the coded format of the audio, video data of current broadcasting channel for the coded format parsed, whether the file format that judgement parses is identical with the file format of the audio, video data of current broadcasting channel; If described modification unit is also identical with the file format of the audio, video data of current broadcasting channel for the file format parsed, the timestamp of channel audio, video data start frame to be played is revised as to the described timestamp obtained.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310320982.8A CN103414939B (en) | 2013-07-29 | 2013-07-29 | A kind of channel switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310320982.8A CN103414939B (en) | 2013-07-29 | 2013-07-29 | A kind of channel switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103414939A true CN103414939A (en) | 2013-11-27 |
CN103414939B CN103414939B (en) | 2017-09-05 |
Family
ID=49607920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310320982.8A Active CN103414939B (en) | 2013-07-29 | 2013-07-29 | A kind of channel switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103414939B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028061A (en) * | 2016-06-21 | 2016-10-12 | 天脉聚源(北京)传媒科技有限公司 | Method and device for switching video formats in video playing |
CN107690073A (en) * | 2016-08-05 | 2018-02-13 | 阿里巴巴集团控股有限公司 | A kind of net cast method and Living streaming server |
CN111436007A (en) * | 2019-01-11 | 2020-07-21 | 深圳市茁壮网络股份有限公司 | Multimedia program playing method and device and set top box |
WO2023150901A1 (en) * | 2022-02-08 | 2023-08-17 | 深圳Tcl新技术有限公司 | Data processing method and apparatus, and storage medium and computer device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003079676A1 (en) * | 2002-03-19 | 2003-09-25 | Sony Corporation | Signal processing apparatus and signal processing method |
CN101291338A (en) * | 2008-05-23 | 2008-10-22 | 中兴通讯股份有限公司 | Media processing unit and method |
WO2008125054A1 (en) * | 2007-04-13 | 2008-10-23 | Huawei Technologies Co., Ltd. | A method, system and apparatus for switching between channels belonging to multi-media stream |
CN101540947A (en) * | 2009-04-03 | 2009-09-23 | 中兴通讯股份有限公司 | Analog live broadcasting method of mobile streaming media and content switching method thereof |
WO2010116588A1 (en) * | 2009-04-08 | 2010-10-14 | パナソニック株式会社 | Digital television broadcasting reproduction device and reproduction method therefor |
CN102065060A (en) * | 2009-11-16 | 2011-05-18 | 华为技术有限公司 | Media stream switching synchronization method and streaming media server |
EP2509320A1 (en) * | 2010-06-10 | 2012-10-10 | Huawei Technologies Co., Ltd. | Channel switching method, apparatus and system |
-
2013
- 2013-07-29 CN CN201310320982.8A patent/CN103414939B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003079676A1 (en) * | 2002-03-19 | 2003-09-25 | Sony Corporation | Signal processing apparatus and signal processing method |
WO2008125054A1 (en) * | 2007-04-13 | 2008-10-23 | Huawei Technologies Co., Ltd. | A method, system and apparatus for switching between channels belonging to multi-media stream |
CN101291338A (en) * | 2008-05-23 | 2008-10-22 | 中兴通讯股份有限公司 | Media processing unit and method |
CN101540947A (en) * | 2009-04-03 | 2009-09-23 | 中兴通讯股份有限公司 | Analog live broadcasting method of mobile streaming media and content switching method thereof |
WO2010116588A1 (en) * | 2009-04-08 | 2010-10-14 | パナソニック株式会社 | Digital television broadcasting reproduction device and reproduction method therefor |
CN102065060A (en) * | 2009-11-16 | 2011-05-18 | 华为技术有限公司 | Media stream switching synchronization method and streaming media server |
EP2509320A1 (en) * | 2010-06-10 | 2012-10-10 | Huawei Technologies Co., Ltd. | Channel switching method, apparatus and system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028061A (en) * | 2016-06-21 | 2016-10-12 | 天脉聚源(北京)传媒科技有限公司 | Method and device for switching video formats in video playing |
CN106028061B (en) * | 2016-06-21 | 2019-05-24 | 天脉聚源(北京)传媒科技有限公司 | A kind of method and device of Switch Video format in video playing |
CN107690073A (en) * | 2016-08-05 | 2018-02-13 | 阿里巴巴集团控股有限公司 | A kind of net cast method and Living streaming server |
CN107690073B (en) * | 2016-08-05 | 2021-07-16 | 阿里巴巴集团控股有限公司 | Video live broadcast method and video live broadcast server |
CN111436007A (en) * | 2019-01-11 | 2020-07-21 | 深圳市茁壮网络股份有限公司 | Multimedia program playing method and device and set top box |
WO2023150901A1 (en) * | 2022-02-08 | 2023-08-17 | 深圳Tcl新技术有限公司 | Data processing method and apparatus, and storage medium and computer device |
Also Published As
Publication number | Publication date |
---|---|
CN103414939B (en) | 2017-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109088887A (en) | A kind of decoded method and device of Streaming Media | |
CN103338407B (en) | A kind of method of television set and TV set for browsing channel | |
CN102625150A (en) | Media playing system and method | |
CN105721921A (en) | Self-adaptive selection method for multi-window video decoder | |
CN104301767A (en) | Method for achieving synchronous television video playing on mobile phone | |
CN105744346A (en) | Caption switching method and device | |
CN102802075A (en) | Online play buffering system and method | |
CN103533437A (en) | Method and device for switching channels of smart television | |
CN103517131A (en) | Method for playing segmental videos in gapless mode in television set and television set | |
CN103414939A (en) | Channel switching method and device | |
CN101951517A (en) | Method, system and terminal equipment for decoding and playing video | |
WO2021031590A1 (en) | Audio and video pushing method, mobile terminal and display terminal | |
CA2923532C (en) | Transmission device, transmission method, reception device, and reception method | |
CN103067747A (en) | Interactive digital TV display mode | |
CN103024519A (en) | Set-top box for supporting multiple devices to receive different programs and implementation method thereof | |
CN104320701A (en) | Switching method and device for signal source | |
CN104023260A (en) | Hardware decoding implementation method and device, and player | |
CN103929682A (en) | Method and device for setting key frames in video live broadcast system | |
CN1805503A (en) | Method and apparatus of implementing point-to-multipoint wireless network interconnection for digital televisions | |
CN103414936A (en) | Subtitle display method and device | |
CN104185028A (en) | Video playing method and terminal thereof | |
CN103634656A (en) | Method of watching network videos in unbuffered manner by intelligent television box | |
CN101489068B (en) | Background sound and key pressing sound playing method and system based on built-in brower | |
CN105516795A (en) | Television screen sharing method under Android system | |
CN202889543U (en) | System for realizing mobile terminal video display based on digital broadcasting channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |