CN103414939B - A kind of channel switching method and device - Google Patents

A kind of channel switching method and device Download PDF

Info

Publication number
CN103414939B
CN103414939B CN201310320982.8A CN201310320982A CN103414939B CN 103414939 B CN103414939 B CN 103414939B CN 201310320982 A CN201310320982 A CN 201310320982A CN 103414939 B CN103414939 B CN 103414939B
Authority
CN
China
Prior art keywords
audio
video data
channel
timestamp
current play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310320982.8A
Other languages
Chinese (zh)
Other versions
CN103414939A (en
Inventor
江中央
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201310320982.8A priority Critical patent/CN103414939B/en
Publication of CN103414939A publication Critical patent/CN103414939A/en
Application granted granted Critical
Publication of CN103414939B publication Critical patent/CN103414939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of channel switching method and device, when detecting channel switching instruction, obtain the time stamp of the audio, video data of the currently playing frame of current play channel, and the timestamp for being revised as obtaining by the timestamp of the audio, video data start frame of to be switched channel, so that without the time difference in the middle of the audio, video data of to be switched channel and currently playing audio, video data, can smoothly it connect, and without opening and closing decoder so that the switching of TV channel is more smooth.

Description

A kind of channel switching method and device
Technical field
The present invention relates to technical field of television sets, more particularly to a kind of channel switching method and device.
Background technology
The more and more extensive but current network intelligence TV of the current application of intelligent television in daily life is in switching frequency During road, using below scheme:Television disconnects current channel A network connection, emptied when receiving the instruction of channel switch Current channel A's is data cached, closes current decoder, sets up to be switched channel B network connection, receive and cache channel B audio, video data, reopens decoder, starts audio/video decoding.Open and close due to having during switching channels The process of decoder is closed, the blank screen of television image is easily caused, it is unsmooth during channel switch.
The content of the invention
The main object of the present invention is to provide a kind of channel switching method and device so that TV in switching channels more Smoothly.
The present invention proposes a kind of channel switching method, including:
When detecting channel switching instruction, the time stamp of the audio, video data of the currently playing frame of current play channel is obtained;
Obtain the audio, video data of to be switched channel;
The timestamp that the timestamp of the audio, video data start frame of the to be switched channel of acquisition is revised as obtaining;
Play the audio, video data of the to be switched channel after modification time stamp.
Preferably, the timestamp of the audio, video data start frame of the to be switched channel by acquisition be revised as obtain when Between stab the step of include:
Parse the coded format and file format of the audio, video data of the to be switched channel;
Judge whether the coded format of the audio, video data of the coded format and current play channel parsed is identical;
If the coded format parsed is different from the coded format of the audio, video data of current play channel, to be switched The audio, video data of channel coded format of the encoding and decoding into the audio, video data of current play channel again;
Again the timestamp of the audio, video data start frame after encoding and decoding is revised as to the timestamp with the acquisition.
Preferably, the audio, video data for treating switching channels audio frequency and video number of the encoding and decoding into current play channel again According to coded format the step of after include:
Judge whether the file format of the audio, video data of the file format and current play channel parsed is identical;
If the file format parsed is identical with the file format of the audio, video data of current play channel, it will compile again The timestamp of audio, video data start frame after code is revised as the timestamp of the acquisition.
If the file format parsed is different from the file format of the audio, video data of current play channel, counterweight is newly organized Audio, video data is Resealed after decoding;
The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
Preferably, judge the coded format that parses and the audio, video data of current play channel coded format whether phase Also include after same step:
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, judge to parse File format and current play channel audio, video data file format it is whether identical;
If the file format parsed is identical with the file format of the audio, video data of current play channel, will be to be played The timestamp of the audio, video data start frame of channel is revised as the timestamp of the acquisition;
If the file format parsed is different from the file format of the audio, video data of current play channel, to be played The audio, video data of channel is Resealed;
The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
Preferably, the timestamp of the audio, video data start frame of the to be switched channel by acquisition be revised as obtain when Between stab the step of include:
Parse the coded format and file format of the audio, video data of the to be switched channel;
Judge whether the file format of the audio, video data of the file format and current play channel parsed is identical;
If the file format parsed is different from the file format of the audio, video data of current play channel, to be switched The audio, video data of channel is Resealed;
The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
Preferably, also include after the step of audio, video data for treating switching channels is Resealed:
Judge whether the coded format of the audio, video data of the coded format and current play channel parsed is identical;
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, it will seal again The timestamp of audio, video data start frame after dress is revised as the timestamp with the acquisition.
If the coded format parsed is different from the coded format of the audio, video data of current play channel, it will seal again Audio, video data after dress coded format of the encoding and decoding into the audio, video data of current play channel again;
Again the timestamp of the audio, video data start frame after encoding and decoding is revised as to the timestamp with the acquisition.
Preferably, the file format of the audio, video data of the file format for judging to parse and current play channel is Also include after no identical step:
If the file format parsed is identical with the file format of the audio, video data of current play channel, parsing is judged Whether the coded format and the coded format of the audio, video data of current play channel gone out be identical;
If the coded format parsed is different from the coded format of the audio, video data of current play channel, to be switched The audio, video data of channel coded format of the encoding and decoding into the audio, video data of current play channel again;
Again the timestamp of the audio, video data start frame after encoding and decoding is revised as to the timestamp with the acquisition;
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, will be to be played The timestamp of channel audio, video data start frame is revised as the timestamp of the acquisition.
The present invention also proposes a kind of channel switching mechanism, including:
Acquisition module, for detecting during channel switching instruction, obtains the audio frequency and video number of the present frame of current play channel According to time stamp, and obtain the audio, video data of to be switched channel
Modified module, for the timestamp of the audio, video data start frame of the to be switched channel of acquisition to be revised as into what is obtained Timestamp;
Playing module, the audio, video data for playing the to be switched channel after modification time stamp.
Preferably, the modified module includes:
Resolution unit, the coded format and file format of the audio, video data for parsing the to be switched channel;
Judging unit, for the coded format and the coded format of the audio, video data of current play channel for judging to parse It is whether identical;
Coding unit, if for the coded format and the coded format of the audio, video data of current play channel that parse not Together, then the audio, video datas of switching channels coded format of the encoding and decoding into the audio, video data of current play channel again is treated;
Unit is changed, for being revised as the timestamp of the audio, video data start frame after encoding and decoding again to obtain with described Timestamp.
Preferably, the judging unit is additionally operable to judge the audio frequency and video number of the file format and current play channel parsed According to file format it is whether identical;If the sound that the modification unit is additionally operable to the file format and current play channel parsed is regarded The file format of frequency evidence is identical, then the timestamp of the audio, video data start frame after recompiling is revised as the acquisition Timestamp;Also include encapsulation unit, if for the file format and the file of the audio, video data of current play channel that parse Form is different, then audio, video data is Resealed after the new encoding and decoding of counterweight;The modification unit is additionally operable to Reseal The timestamp of audio, video data start frame afterwards is revised as the timestamp with the acquisition.
Preferably, if the judging unit is additionally operable to the audio, video data of the coded format parsed and current play channel Coded format it is identical, judge the file format that parses and the audio, video data of current play channel file format whether phase Together;If the modification unit is additionally operable to the file format phase of the audio, video data of the file format and current play channel parsed Together, then the timestamp of the audio, video data start frame of channel to be played is revised as to the timestamp of the acquisition.
Channel switching method and device proposed by the present invention, when detecting channel switching instruction, obtain currently playing frequency The time stamp of the audio, video data of the currently playing frame in road, and the timestamp of the audio, video data start frame of to be switched channel is changed For the timestamp of acquisition so that without the time difference in the middle of the audio, video data of to be switched channel and currently playing audio, video data, Can smoothly it connect, and without opening and closing decoder so that the switching of TV channel is more smooth.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of channel switching method preferred embodiment of the present invention;
The first embodiment idiographic flow schematic diagram that Fig. 2 is step S30 in Fig. 1;
The second embodiment idiographic flow schematic diagram that Fig. 3 is step S30 in Fig. 1;
The 3rd embodiment idiographic flow schematic diagram that Fig. 4 is step S30 in Fig. 1;
The fourth embodiment idiographic flow schematic diagram that Fig. 5 is step S30 in Fig. 1;
The 5th embodiment idiographic flow schematic diagram that Fig. 6 is step S30 in Fig. 1;
The sixth embodiment idiographic flow schematic diagram that Fig. 7 is 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 first embodiment in Fig. 8;
Figure 10 is the structural representation of modified module second embodiment in Fig. 8.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment is described further with regard to technical scheme.It should be appreciated that this The specific embodiment of place description is not intended to limit the present invention only to explain the present invention.
Reference picture 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 is proposed, including:
Step S10, when detecting channel switching instruction, obtains the audio, video data of the currently playing frame of current play channel Time stamp;
User sends channel switching instruction, electricity by remote control or other manner when needing switching channels to television Depending on end when receiving channel switching instruction, the timestamp of the audio, video data of currently playing channel is obtained.TV is being played During the audio, video data of some channel, there are the first frame data to start to add timestamp, such as timestamp of the first frame data is 1S, The timestamp that frame is played when being then played to 1min36s is 1min36s.When building time is stabbed, will first it need to add the number of timestamp Summary is formed according to coding, date and time information then is added to the summary.
Step S20, obtains the audio, video data of to be switched channel;
Step S30, the time that the timestamp of the audio, video data start frame of the to be switched channel of acquisition is revised as obtaining Stamp;
When the start frame of the audio, video data of to be switched channel is different from the timestamp of currently playing frame, one can be caused Time difference, such as the timestamp of currently playing frame is 1min36s, and the time of the start frame of the audio, video data of to be switched channel Stab as 1min38s, then 2s time difference occurs, causes television set blank screen occur or rests on the feelings of currently playing frame picture Condition, until can just play the audio, video data of to be switched channel after 2s;If the timestamp of currently playing frame is 1min36s, and is treated The timestamp of the start frame of the audio, video data of switching channels be 1min32s, then play when can by be switched channel 1min36s Data frame is commenced play out, and causes the part audio, video data of to be switched channel not played.
Step S40, plays the audio, video data of the to be switched channel after modification time stamp.
By the audio, video data for playing the to be switched channel after modification time stamp so that the audio frequency and video number of to be switched channel It can be connected according to the audio, video data with current play channel, smooth switching between channel be realized, by be switched channel Audio, video data and the audio, video data of current play channel played as the audio, video data of channel, without restarting Decoder.
The channel switching method that the present embodiment is proposed, when detecting channel switching instruction, obtains current play channel The timestamp of the audio, video data of currently playing frame, and the timestamp of the audio, video data start frame of to be switched channel is revised as The timestamp of acquisition so that, can without the time difference in the middle of the audio, video data of to be switched channel and currently playing audio, video data Smoothly connect, and without opening and closing decoder so that the switching of TV channel is more smooth.
Reference picture 2, the first embodiment idiographic flow schematic diagram that Fig. 2 is step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, step S30 includes:
Step S31, parses the coded format and file format of the audio, video data of the to be switched channel;
Step S32, whether the coded format and the coded format of the audio, video data of current play channel that judgement is parsed It is identical;
Step S33, if the coded format parsed is different from the coded format of the audio, video data of current play channel, Treat the audio, video datas of switching channels coded format of the encoding and decoding into the audio, video data of current play channel again;
Step S34, by the timestamp of the audio, video data start frame after encoding and decoding again be revised as with the acquisition when Between stab.
The timestamp of the audio, video data start frame of to be switched channel is revised as currently playing frame in the present embodiment The purpose of the timestamp of audio, video data is, by the audio, video data of to be switched channel and the audio, video data of current play channel Played out as the data of a channel, if the decoding process and file format of channel to be played and current play channel are not Together, then the audio, video data for treating broadcasting channel is needed to be re-encoded as the coded format of current play channel after being decoded, Treat broadcasting channel audio, video data be re-packaged into current play channel audio, video data file format.
The file format of audio, video data can be found out in the suffix of video data, and coded format refers to video data Compressed encoding form.When the coded format of audio, video data to be played is different, after can the audio, video data first be decoded, then weigh It is newly encoded be coded format corresponding with currently playing audio, video data, so as to play when can use before decoder, no With restarting decoder.
Reference picture 3, the second embodiment idiographic flow schematic diagram that Fig. 3 is step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also include after step S33:
Step S35, whether the file format and the file format of the audio, video data of current play channel that judgement is parsed It is identical;
If the file format parsed is identical with the file format of the audio, video data of current play channel, step will be performed Rapid S34, the timestamp of the audio, video data start frame after recompiling is revised as the timestamp of the acquisition;
Step S36, if the file format parsed is different from the file format of the audio, video data of current play channel, Audio, video data is Resealed after the new encoding and decoding of counterweight;
Step S37, the timestamp of the audio, video data start frame after Resealing is revised as the time with the acquisition Stamp.
The file format of audio, video data refers to the form that the players such as MP3, MP4, AVI are supported, waits to broadcast by changing Put the file format of the audio, video data of channel so that the playing module of television set is by the audio, video data of channel to be played with working as The audio, video data of preceding broadcasting channel is as the audio, video data of a channel, smooth broadcasting.
If the file format of audio, video data to be played and the file format of currently playing audio, video data after decoding Difference, then need that the audio, video data after encoding and decoding is decapsulated and Resealed, and encapsulation refers to encoded compression Good video track and audio track is put into according to certain form in certain file, such as the audio, video data of channel to be played File format is MP4 forms, and the form of the audio, video data of current play channel is AVI format, can be obtained by decapsulating To the video track and audio track of audio, video data, the text of the video track that will be got and audio track according to AVI is then Resealed Part form is placed.The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
Reference picture 4, the 3rd flow idiographic flow schematic diagram implemented that Fig. 4 is step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also include after step S32:
Step S35, if the coded format parsed is identical with the coded format of the audio, video data of current play channel, sentences Whether the file format of the audio, video data of the disconnected file format parsed and current play channel is identical;
Step S38, if the file format parsed is identical with the file format of the audio, video data of current play channel, The timestamp of the audio, video data start frame of channel to be played is revised as to the timestamp of the acquisition;
Step S39, if the file format parsed is different from the file format of the audio, video data of current play channel, The audio, video data for treating broadcasting channel is Resealed;
Step S37, the timestamp of the audio, video data start frame after Resealing is revised as the time with the acquisition Stamp.
When the audio, video data of channel to be played coded format and current play channel audio, video data coding lattice When formula is identical, it can continue to judge the file format of the audio, video data of channel to be played and the audio, video data of current play channel File format it is whether identical, if the different audio, video data that can treat broadcasting channel is Resealed, change the audio, video data Form make it can smooth playing.
Reference picture 5, the 4th flow idiographic flow schematic diagram implemented that Fig. 5 is step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, step S30 includes:
Step S31, parses the coded format and file format of the audio, video data of the to be switched channel;
Step S35, whether the file format and the file format of the audio, video data of current play channel that judgement is parsed It is identical;
If the file format parsed is different from the file format of the audio, video data of current play channel, step is performed S39, the audio, video data for treating switching channels is Resealed;
Step S37, the timestamp of the audio, video data start frame after Resealing is revised as the time with the acquisition Stamp.
In the present embodiment, it can first judge whether the file format of audio, video data to be played is identical, it is right if different Audio, video data to be played is Resealed, and the timestamp of the audio, video data start frame after Resealing is revised as currently broadcasting Put the timestamp of the audio, video data of frame.
Reference picture 6, the idiographic flow schematic diagram for the 5th embodiment that Fig. 6 is step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also include after step S39:
Step S32, whether the coded format and the coded format of the audio, video data of current play channel that judgement is parsed It is identical;
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, step is performed S37, the timestamp of the audio, video data start frame after Resealing is revised as the timestamp with the acquisition;
Step S41, if the coded format parsed is different from the coded format of the audio, video data of current play channel, By the audio, video data after Resealing again encoding and decoding into the audio, video data of current play channel coded format;
Step S34, by the timestamp of the audio, video data start frame after encoding and decoding again be revised as with the acquisition when Between stab.
If the coded format of the audio, video data after Resealing and the coded format phase of currently playing audio, video data Together, then the timestamp of the audio, video data start frame after Resealing is revised as the time of the audio, video data of currently playing frame Stamp.
After the audio, video data for treating broadcasting channel is Resealed, if audio, video data after Resealing Coded format is different from the audio, video data of current play channel, then by the audio, video data after Resealing again encoding and decoding into The coded format of the audio, video data of current play channel, the timestamp of the audio, video data start frame after encoding and decoding again is repaiied It is changed to the timestamp of the audio, video data of currently playing frame.
Reference picture 7, the idiographic flow schematic diagram for the sixth embodiment that Fig. 7 is step S30 in Fig. 1.
In channel switching method preferred embodiment of the present invention, also include after step S35:
Step S32, if the file format parsed is identical with the file format of the audio, video data of current play channel, Judge whether the coded format of the audio, video data of the coded format and current play channel parsed is identical;
Step S33, if the coded format parsed is different from the coded format of the audio, video data of current play channel, Treat the audio, video datas of switching channels coded format of the encoding and decoding into the audio, video data of current play channel again;
Step S34, by the timestamp of the audio, video data start frame after encoding and decoding again be revised as with the acquisition when Between stab;
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, step is performed S38, the timestamp of the audio, video data start frame of channel to be played is revised as the timestamp of the acquisition.
If the tray of the file format of the audio, video data of channel to be played and the audio, video data of current play channel Formula is identical, then continues to judge the volume of the audio, video data of the audio, video data coded format of channel to be played and current play channel Whether code form is identical, if it is different, then recompiling.
Reference picture 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, including:
Acquisition module 10, for detecting during channel switching instruction, obtains the audio frequency and video of the present frame of current play channel The time stamp of data, and obtain the audio, video data of to be switched channel;
User sends channel switching instruction, electricity by remote control or other manner when needing switching channels to television Depending on end when receiving channel switching instruction, the timestamp of the audio, video data of currently playing channel is obtained.TV is being played During the audio, video data of some channel, timestamp is added by the first frame data, such as timestamp of the first frame data is 1S, The timestamp that frame is played when being then played to 1min36s is 1min36s.When adding timestamp, will first it need to add the number of timestamp Summary is formed according to coding, date and time information then is added to the summary.
Modified module 20, for being revised as the timestamp of the audio, video data start frame of the to be switched channel of acquisition to obtain Timestamp;
Playing module 30, the audio, video data for playing the to be switched channel after modification time stamp.
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 currently playing frame When, it can cause a time difference, such as the timestamp of currently playing frame is 1min36s, and the audio, video data of to be switched channel The timestamp of start frame be 1min38s, then 2s time difference occurs, causes television set blank screen occur or rest on current The situation of frame picture is played, until can just play the audio, video data of to be switched channel after 2s;If the timestamp of currently playing frame For 1min36s, and the timestamp of the start frame of the audio, video data of to be switched channel is 1min32s, then can be by be cut when playing The 1min36s data frames for changing channel are commenced play out, and cause the part audio, video data of to be switched channel not played.
By the audio, video data for playing the to be switched channel after modification time stamp so that the audio frequency and video number of to be switched channel It can be connected according to the audio, video data with current play channel, smooth switching between channel be realized, by be switched channel The audio, video data of audio, video data and current broadcasting channel played as the audio, video data of a channel, without restarting Decoder.
The channel switching method that the present embodiment is proposed, when detecting channel switching instruction, obtains current play channel The timestamp of the audio, video data of currently playing frame, and the timestamp of the audio, video data start frame of to be switched channel is revised as The timestamp of acquisition so that, can without the time difference in the middle of the audio, video data of to be switched channel and currently playing audio, video data Smoothly connect, and without opening and closing decoder so that the switching of TV channel is more smooth.
Reference picture 9, Fig. 9 is the structural representation of modified module first embodiment in Fig. 8.
Modified module includes:
Resolution unit 21, the coded format and file format of the audio, video data for parsing the to be switched channel;
Judging unit 22, for the coded format and the coding lattice of the audio, video data of current play channel for judging to parse Whether formula is identical;
Coding unit 23, if for the coded format and the coded format of the audio, video data of current play channel that parse Difference, then treat the audio, video datas of switching channels coding lattice of the encoding and decoding into the audio, video data of current play channel again Formula;
Unit 24 is changed, for being revised as the timestamp of the audio, video data start frame after encoding and decoding again to obtain with described The timestamp taken.
The timestamp of the audio, video data start frame of to be switched channel is revised as currently playing frame in the present embodiment The purpose of the timestamp of audio, video data is, by the audio, video data of to be switched channel and the audio, video data of current play channel Played out as the data of a channel, if the decoding process and file format of channel to be played and current play channel are not Together, then the audio, video data for treating broadcasting channel is needed to be re-encoded as the coded format of current play channel after being decoded, Treat broadcasting channel audio, video data be re-packaged into current play channel audio, video data file format.
The file format of video data can be found out in the suffix of video data, and coded format refers to the pressure of video data Contracting coded format.Can be compiled again again after video data is first decoded by this when the coded format of video data to be played is different Code is coded format corresponding with currently playing video data, so as to the decoder before being used when playing, without restarting Decoder.
Reference picture 10, Figure 10 is the structural representation of modified module second embodiment in Fig. 8.
In the above-described embodiments, the judging unit 22 is additionally operable to file format and the current play channel for judging to parse Audio, video data file format it is whether identical;If the modification unit 24 is additionally operable to the file format parsed with currently broadcasting The file format for putting the audio, video data of channel is identical, then the timestamp modification of the audio, video data start frame after recompiling For the timestamp of the acquisition;Also include encapsulation unit 25, if for the file format and the sound of current play channel that parse The file format of video data is different, then audio, video data is Resealed after the new encoding and decoding of counterweight;The modification unit 24 The timestamp for being additionally operable to the audio, video data start frame after Resealing is revised as timestamp with the acquisition.
The file format of audio, video data refers to the form that the players such as MP3, MP4, AVI are supported, waits to broadcast by changing Put the file format of the audio, video data of channel so that the playing module of television set is by the audio, video data of channel to be played with working as The audio, video data of preceding broadcasting channel is as the audio, video data of a channel, smooth broadcasting.
If the file format of the audio, video data to be played after encoding and decoding and the file of currently playing audio, video data Form is different, then needs after being decapsulated to the audio, video data after encoding and decoding, then Reseals, and encapsulation refers to Encode the video track compressed and audio track is put into according to certain form in certain file, such as the sound of channel to be played is regarded The file format of frequency evidence is MP4 forms, and the form of the audio, video data of current play channel is AVI format, can pass through solution Encapsulation gets the video track and audio track of audio, video data, then Reseal the video track that will be got and audio track according to AVI file format is placed, the timestamp of the audio, video data start frame after Resealing be revised as with the acquisition when Between stab.
In the above-described embodiments, if judging unit 22 is additionally operable to the coded format parsed and the sound of current play channel is regarded The coded format of frequency evidence is identical, judges the file format of the audio, video data of the file format and current play channel parsed It is whether identical;If the modification unit 24 is additionally operable to the text of the audio, video data of the file format and current play channel parsed Part form is identical, then the timestamp of audio, video data start frame is revised as to the timestamp of the acquisition.
When the audio, video data of channel to be played coded format and current play channel audio, video data coding lattice When formula is identical, it can continue to judge the file format of the video/audio wire data of channel to be played and the audio frequency and video number of current play channel According to file format it is whether identical, if the different audio, video data that can treat broadcasting channel is Resealed, changing its form makes it Can smooth playing.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize The equivalent structure transformation that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other related technology necks Domain, is included within the scope of the present invention.

Claims (11)

1. a kind of channel switching method, it is characterised in that including:
When detecting channel switching instruction, the time stamp of the audio, video data of the currently playing frame of current play channel is obtained, wherein, TV adds timestamp successively when playing the audio, video data of some channel by the first frame data;
Obtain the audio, video data of to be switched channel;
The timestamp that the timestamp of the audio, video data start frame of the to be switched channel of acquisition is revised as obtaining;
Play the audio, video data of the to be switched channel after modification time stamp.
2. according to the method described in claim 1, it is characterised in that the audio, video data of the to be switched channel by acquisition rises The step of timestamp of beginning frame is revised as the timestamp obtained includes:
Parse the coded format and file format of the audio, video data of the to be switched channel;
Judge whether the coded format of the audio, video data of the coded format and current play channel parsed is identical;
If the coded format parsed is different from the coded format of the audio, video data of current play channel, switching channels are treated Audio, video data coded format of the encoding and decoding into the audio, video data of current play channel again;
Again the timestamp of the audio, video data start frame after encoding and decoding is revised as to the timestamp with the acquisition.
3. method as claimed in claim 2, it is characterised in that the audio, video data for the treating switching channels encoding and decoding again Into the audio, video data of current play channel coded format the step of after include:
Judge whether the file format of the audio, video data of the file format and current play channel parsed is identical;
If the file format parsed is identical with the file format of the audio, video data of current play channel, after recompiling The timestamp of audio, video data start frame be revised as the timestamp of the acquisition;
If the file format parsed is different from the file format of the audio, video data of current play channel, the new encoding and decoding of counterweight Audio, video data is Resealed afterwards;
The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
4. method according to claim 2, it is characterised in that judge the coded format that parses and current play channel Also include after the whether identical step of the coded format of audio, video data:
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, the text parsed is judged Whether the file format of the audio, video data of part form and current play channel is identical;
If the file format parsed is identical with the file format of the audio, video data of current play channel, by channel to be played The timestamp of audio, video data start frame be revised as the timestamp of the acquisition;
If the file format parsed is different from the file format of the audio, video data of current play channel, broadcasting channel is treated Audio, video data Resealed;
The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
5. according to the method described in claim 1, it is characterised in that the audio, video data of the to be switched channel by acquisition rises The step of timestamp of beginning frame is revised as the timestamp obtained includes:
Parse the coded format and file format of the audio, video data of the to be switched channel;
Judge whether the file format of the audio, video data of the file format and current play channel parsed is identical;
If the file format parsed is different from the file format of the audio, video data of current play channel, switching channels are treated Audio, video data Resealed;
The timestamp of audio, video data start frame after Resealing is revised as the timestamp with the acquisition.
6. method as claimed in claim 5, it is characterised in that the audio, video data for treating switching channels is sealed again Also include after the step of dress:
Judge whether the coded format of the audio, video data of the coded format and current play channel parsed is identical;
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, after Resealing The timestamp of audio, video data start frame be revised as timestamp with the acquisition;
If the coded format parsed is different from the coded format of the audio, video data of current play channel, after Resealing Audio, video data coded format of the encoding and decoding into the audio, video data of current play channel again;
Again the timestamp of the audio, video data start frame after encoding and decoding is revised as to the timestamp with the acquisition.
7. method according to claim 5, it is characterised in that the file format that the judgement is parsed and currently playing frequency Also include after the whether identical step of the file format of the audio, video data in road:
If the file format parsed is identical with the file format of the audio, video data of current play channel, judge what is parsed Whether the coded format of the audio, video data of coded format and current play channel is identical;
If the coded format parsed is different from the coded format of the audio, video data of current play channel, switching channels are treated Audio, video data coded format of the encoding and decoding into the audio, video data of current play channel again;
Again the timestamp of the audio, video data start frame after encoding and decoding is revised as to the timestamp with the acquisition;
If the coded format parsed is identical with the coded format of the audio, video data of current play channel, by channel to be played The timestamp of audio, video data start frame be revised as the timestamp of the acquisition.
8. a kind of channel switching mechanism, it is characterised in that including:
Acquisition module, for detecting during channel switching instruction, obtains the audio, video data of the present frame of current play channel Time stamp, and obtain the audio, video data of to be switched channel, wherein, TV when playing the audio, video data of some channel, by First frame data start to add timestamp successively;
Modified module, for the time for being revised as obtaining by the timestamp of the audio, video data start frame of the to be switched channel of acquisition Stamp;
Playing module, the audio, video data for playing the to be switched channel after modification time stamp.
9. device according to claim 8, it is characterised in that the modified module includes:
Resolution unit, the coded format and file format of the audio, video data for parsing the to be switched channel;
Judging unit, whether the coded format and the coded format of the audio, video data of current play channel parsed for judgement It is identical;
Coding unit, if different from the coded format of the audio, video data of current play channel for the coded format parsed, Then treat the audio, video datas of switching channels coded format of the encoding and decoding into the audio, video data of current play channel again;
Change unit, for by the timestamp of the audio, video data start frame after encoding and decoding again be revised as with the acquisition when Between stab.
10. device according to claim 9, it is characterised in that the judging unit is additionally operable to the file for judging to parse Whether the file format of the audio, video data of form and current play channel is identical;If the modification unit is additionally operable to what is parsed File format is identical with the file format of the audio, video data of current play channel, then acts the audio, video data after recompiling The timestamp of beginning frame is revised as the timestamp of the acquisition;Also include encapsulation unit, if for the file format that parses with working as The file format of the audio, video data of preceding broadcasting channel is different, then audio, video data is Resealed after the new encoding and decoding of counterweight; It is described modification unit be additionally operable to the audio, video data start frame after Resealing timestamp be revised as with the acquisition when Between stab.
11. device according to claim 9, it is characterised in that if the judging unit is additionally operable to the coding lattice parsed Formula is identical with the coded format of the audio, video data of current play channel, judges file format and the current play channel parsed Audio, video data file format it is whether identical;If the modification unit be additionally operable to the file format that parses with it is currently playing The file format of the audio, video data of channel is identical, then the timestamp of channel audio, video data start frame to be played is revised as into institute State the timestamp of acquisition.
CN201310320982.8A 2013-07-29 2013-07-29 A kind of channel switching method and device Active CN103414939B (en)

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 CN103414939A (en) 2013-11-27
CN103414939B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028061B (en) * 2016-06-21 2019-05-24 天脉聚源(北京)传媒科技有限公司 A kind of method and device of Switch Video format in video playing
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3731554B2 (en) * 2002-03-19 2006-01-05 ソニー株式会社 Signal processing apparatus and signal processing method
CN101137043B (en) * 2007-04-13 2010-04-21 华为技术有限公司 Method, system and device for switching stream media channel and altering broadcast media
CN101291338B (en) * 2008-05-23 2012-02-29 中兴通讯股份有限公司 Media processing unit and method
CN101540947B (en) * 2009-04-03 2011-12-07 中兴通讯股份有限公司 Analog live broadcasting method of mobile streaming media and content switching method thereof
JP2010245974A (en) * 2009-04-08 2010-10-28 Panasonic Corp Digital television broadcasting reproduction device and reproduction method therefor
CN102065060B (en) * 2009-11-16 2013-09-11 华为技术有限公司 Media stream switching synchronization method and streaming media server
CN101854533B (en) * 2010-06-10 2012-05-23 华为技术有限公司 Frequency channel switching method, device and system

Also Published As

Publication number Publication date
CN103414939A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN109088887A (en) A kind of decoded method and device of Streaming Media
CN103414939B (en) A kind of channel switching method and device
KR101639358B1 (en) Transmission apparatus and method, and reception apparatus and method for providing 3d service using the content and additional image seperately transmitted with the reference image transmitted in real time
CN103002353B (en) The method that multimedia file is encapsulated and device
CN105657524A (en) Seamless video switching method
CN102648629B (en) Provision of supplemental processing information
CN102724584B (en) The online player method of Internet video, the online playing device of video and intelligent television
CN101621342B (en) Method for realizing network TV program carousel based on real-time transport protocol
CN103093776A (en) Method and system of multi-audio-track content play in network seeing and hearing
CN105049896B (en) A kind of flow media advertisement insertion method and system based on HLS protocol
TW201032597A (en) Method and apparatus for video coding and decoding
CN106878804A (en) Transmitted as a stream through the network of coded video data
CN102170582B (en) Quality of service (QoS)-based audio and video quality of experience evaluation platform and evaluation method
CN103081488B (en) Signaling video samples for trick mode video representations
CN106792154B (en) Frame skipping synchronization system of video player and control method thereof
CN106878808A (en) A kind of video broadcasting method and device
KR20170138994A (en) Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method
CN103067747A (en) Interactive digital TV display mode
KR20170139515A (en) Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method
CN106878290B (en) Audio and video playing method and device
CN108122558A (en) A kind of LATM AAC audio streams turn appearance implementation method and device in real time
CN101729827A (en) Voice service method, system, digital television receiving terminal and front-end device
CN104023260B (en) Hardware decoding realization method, device and player
CN110460889A (en) A kind of video throws screen method, apparatus, system and storage medium
CN103024450B (en) A kind of method and system being realized interactive TV by NFC technique

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