CN108012176A - A kind of data switching method, device and terminal - Google Patents

A kind of data switching method, device and terminal Download PDF

Info

Publication number
CN108012176A
CN108012176A CN201610967202.2A CN201610967202A CN108012176A CN 108012176 A CN108012176 A CN 108012176A CN 201610967202 A CN201610967202 A CN 201610967202A CN 108012176 A CN108012176 A CN 108012176A
Authority
CN
China
Prior art keywords
video
subdata
correlation
related data
attribute
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.)
Withdrawn
Application number
CN201610967202.2A
Other languages
Chinese (zh)
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.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics 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 ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610967202.2A priority Critical patent/CN108012176A/en
Priority to PCT/CN2017/097711 priority patent/WO2018076899A1/en
Publication of CN108012176A publication Critical patent/CN108012176A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention discloses a kind of data switching method, device and terminal, method includes:Video related data switching command is received, wherein, video correlation switching command is used to current video related data being switched to target video correlation subdata, and target video correlation subdata is the video correlation subdata with the first attribute;Perform video related data switching command, i-th of video correlation subdata is obtained from the head of the queue of default video related data queue, if i-th of video correlation subdata is not the video correlation subdata with the first attribute, i+1 video correlation subdata is then obtained from default video related data queue, and so on, until obtaining the video correlation subdata with the first attribute, and the video correlation subdata with the first attribute is determined as target video correlation subdata;Target video correlator data sending is decoded to decoder, is played with realizing with corresponding video frame synchronization.

Description

A kind of data switching method, device and terminal
Technical field
The present invention relates to field of information processing, more particularly to a kind of data switching method, device and terminal.
Background technology
In order to meet the needs of users, same video file may have multilingual type, for example, Chinese, English etc.;When During media file this using media renderer plays, when user's selection different language type plays out, it will be related to sound The switching of frequency evidence or subtitle.
In existing technology, generally instructed according to Audio conversion, search the audio data frame of track that needs to switch and Synchronous stamp, i.e., go to search corresponding audio data frame and synchronously stab according to the timestamp of video when carrying out track switching, that is, Say, when user needs isochronous audio or subtitle, if video uninterruptedly plays, according to the synchronous sound for stabbing and searching and needing to switch The method of the voice data of rail, may cause the synchronization between video and audio, video and subtitle to take long or synchronous mistake Lose.
As it can be seen that when carrying out video related data switching using the prior art, may cause between video and audio, subtitle Synchronous the problem of taking long or synchronization failure, user experience is poor.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provides a kind of data switching method, device and terminal, The switch speed of the video related data in video display process can be improved, when shortening video related data and audio video synchronization Between, improve user experience.
To reach above-mentioned purpose, what the technical solution of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of data switching method, the described method includes:Receive video dependency number According to switching command, wherein, the video correlation switching command is used to current video related data being switched to target video phase Climax data, the target video correlation subdata are the video correlation subdata with the first attribute;Perform the video phase Data switching command is closed, i-th of video correlation subdata is obtained from the head of the queue of default video related data queue, wherein, institute It is the integer more than or equal to 1 to state i;If i-th of video correlation subdata is not that the video with the first attribute is related Subdata, then obtain i+1 video correlation subdata from the default video related data queue, and so on, directly To video correlation subdata of the acquisition with the first attribute, and the video correlation subdata with the first attribute is determined as Target video correlation subdata;The target video correlator data sending is decoded to decoder, with realize with it is corresponding Video frame synchronization play.
Second aspect, an embodiment of the present invention provides a kind of data switching apparatus, described device includes:Receiving module, is used In reception video related data switching command, wherein, the video correlation switching command is used for current video related data Target video correlation subdata is switched to, the target video correlation subdata is the video correlation subnumber with the first attribute According to;Acquisition module, for performing the video related data switching command, is obtained from the head of the queue of default video related data queue I-th of video correlation subdata is taken, wherein, the i is the integer for being more than or waiting 1;Determining module, if for described i-th Video correlation subdata is not the video correlation subdata with the first attribute, then from the default video related data queue Middle acquisition i+1 video correlation subdata, and so on, until the video correlation subdata with the first attribute is obtained, and The video correlation subdata with the first attribute is determined as target video correlation subdata;Sending module, for by institute State target video correlator data sending to be decoded to decoder, played with realizing with corresponding video frame synchronization.
The third aspect, an embodiment of the present invention provides a kind of terminal, the terminal includes:Touch-screen and processor, wherein, The touch-screen, for receiving video related data switching command, wherein, the video correlation switching command is used for will be current Video related data is switched to target video correlation subdata, and the target video correlation subdata is regarding with the first attribute The related subdata of frequency;The processor, for performing the video related data switching command, from default video related data The head of the queue of queue obtains i-th of video correlation subdata, wherein, the i is the integer for being more than or waiting 1;If described i-th regards The related subdata of frequency is not the video correlation subdata with the first attribute, then from the default video related data queue I+1 video correlation subdata is obtained, and so on, until the video correlation subdata with the first attribute is obtained, and will The video correlation subdata with the first attribute is determined as target video correlation subdata;By the target video correlator Data sending is decoded to decoder, is played with realizing with corresponding video frame synchronization.
The embodiment of the present invention provides a kind of data switching method, device and terminal, first, by receiving video related data Switching command, performs video dependent instruction, and i-th of video correlation subnumber is obtained from the head of the queue of default video related data queue According to related from default video if i-th of video correlation subdata is not the video correlation subdata with the first attribute I+1 video correlation subdata is obtained in data queue, and so on, until obtaining the video correlator with the first attribute Data, and the video correlation subdata with the first attribute is determined as target video correlation subdata, that is to say, that video phase The attribute information of climax data is limited, according to the attribute information of the related subdata of video corresponding to video frame, from video The head of the queue of related data queue obtains target video correlation subdata, improves switch speed, can realize video correlation subnumber According to take over seamlessly, then, target video correlator data sending is decoded to decoder, with realize and corresponding video Frame synchronization plays, and shortens video related data and video synchronous time, improves user experience.
Brief description of the drawings
Fig. 1-1 is the flow diagram of the data switching method in the embodiment of the present invention one;
Fig. 1-2 is the structure diagram of the video related data queue in the embodiment of the present invention one;
Fig. 2 is the flow diagram of the data switching method in the embodiment of the present invention two;
Fig. 3 is the flow diagram of the data switching method in the embodiment of the present invention three;
Fig. 4 is the flow diagram of the data switching method in the embodiment of the present invention four.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Embodiment one:
The embodiment of the present invention provides a kind of data switching method, and the executive agent of the data switching method is data switching dress Put, which can be built-in or be external in a terminal, and in practical applications, above-mentioned terminal can be intelligent hand Mechanical, electrical brain, set-top box etc. have the terminal of media file playing function, and the embodiment of the present invention is not specifically limited.
Fig. 1-1 is the flow diagram of the data switching method in the embodiment of the present invention one, referring to shown in Fig. 1-1, the party Method includes:
S101:Receive video related data switching command;
Here, video correlation switching command is used to current video related data being switched to target video correlation subnumber According to target video correlation subdata is the video correlation subdata with the first attribute.
Here, video related data includes voice data and caption data.
In practical applications, by the video correlation subdata of default video related data queue and default video data The video frame synchronization of queue goes out team and is sent to during respective decoder carries out decoding broadcasting, receive by user's triggering or The video related data switching command of person's systemic presupposition (for example, setting played for Chinese for the 3rd second), the embodiment of the present invention, which is not done, to be had Body limits.It is specifically described exemplified by switching voice data:Assuming that when user is watching the film of Chinese pronunciations, if with Family is want the film being switched to pronunciation of English and continues to watch, then can be used to switch pressing for audio attribute in terminal by clicking on Button or option carry out the switching of video related data.
Here, attribute is used for the language for characterizing video related data, for example, Chinese, English etc.;Or or it is What system was set.
S102:Video related data switching command is performed, is obtained i-th from the head of the queue of default video related data queue Video correlation subdata;
Here, i is the integer more than or equal to 1.Here, video related data queue can be the time according to video frame Stamp and preset order, the queue that the video correlation subdata with different attribute is arranged in order.
In practical applications, video correlation subdata is obtained in default video related data queue namely by video phase Climax data go out team according to the order of first in, first out, when performing video related data switching command, judge that default video is related Data queue whether non-NULL, when default video related data queue not empty, from default video related data queue head of the queue The address that pointer is directed toward obtains i-th of video correlation subdata for being used to team;When default video related data queue is sky When, wait joining the team for the related subdata of video corresponding to video frame.For example, it is assumed that deposited in default video related data queue In video correlation subdata a, b, c, d, e.Front pointer is directed toward video correlation subdata a, and rear pointer is directed toward video correlator Data e or d, then perform video related data switching command, front pointer obtained from default video related data queue The video correlation subdata a for being used to team being directed toward, then deletes a from default video related data queue, and by head of the queue Pointer adds 1;Then there are video correlation subdata b, c, d, e in the video related data queue of current preset.Front pointer is directed toward Video correlation subdata b, rear pointer are directed toward video correlation subdata e or d.
S103:Judge whether i-th of video correlation subdata is the video correlation subdata with the first attribute, wherein, If i-th of video correlation subdata is not the video correlation subdata with the first attribute, S102 is performed, wherein, i=i+1, And so on, until the video correlation subdata with the first attribute is obtained, and by the video correlation subnumber with the first attribute According to being determined as target video correlation subdata;If i-th of video correlation subdata is the video correlator with the first attribute Data, then perform S104;
In practical applications, the attribute of i-th of video correlation subdata is obtained, judges i-th video correlation subdata Whether attribute is consistent with the first attribute;Wherein, will if the attribute of i-th of video correlation subdata is consistent with the first attribute I-th of video correlation subdata is determined as target video correlation subdata;If the attribute and of i-th of video correlation subdata One attribute is inconsistent, then i-th of video correlation subdata is not the video correlation subdata with the first attribute, then discharging is not Video correlation subdata with the first attribute.For example, the attribute for obtaining i-th of video correlation subdata a is Chinese, judge to regard Whether the attribute of the related subdata a of frequency is consistent with the first attribute, when the first attribute is English, then discharges the video correlation subnumber According to a;When the first attribute is Chinese, then video correlation subdata a is determined as target video correlation subdata.
S104:It is sent to decoder to be decoded, is played with realizing with corresponding video frame synchronization.
In practical applications, player calls audio decoder to solve the target audio subdata of above-mentioned acquisition at the same time Code, call subtitle decoder target subtitle subdata is decoded, and according to same timestamp will decode after audio subnumber Broadcast window is output to according to, subtitle subdata and video frame and is allowed to keep synchronous.
In practical applications, it is assumed that video related data queue is queue as shown in Figs. 1-2, it is assumed that the video correlation team The attribute type of row is two kinds, that is to say, that video correlation subdata a in video related data queue1And a2For with the second video The video correlation subdata of the corresponding different attribute of frame, a3、a4For the video phase with different attribute corresponding with the 3rd video frame Climax data, a1、a3With identical attribute.After the second video frame is played, video related data switching command is received, then The related subdata a of corresponding to the 3rd video frame video is taken from the head of the queue of video related data queue3, judge a3Attribute, if a3Attribute be the first attribute, then by a3Decoder is sent to be decoded;If a3Attribute be not the first attribute, then by team Owner pointer adds 1, and video correlation subdata a is taken from video related data queue4If video correlation subdata a4Attribute be First attribute, then by video correlation subdata a4It is determined as target video elder generation climax data, by the target video correlation subdata Decoder is sent to be decoded.Since the attribute of video related data in the video associated queue is two kinds, from video Judge that the number of the related subdata of corresponding to video frame video is limited in related data queue, can realize video related data Take over seamlessly.
Data switching method provided in this embodiment, first, by receiving video related data switching command, performs video Dependent instruction, obtains i-th of video correlation subdata, if i-th of video from the head of the queue of default video related data queue Related subdata is not the video correlation subdata with the first attribute, then the is obtained from default video related data queue I+1 video correlation subdata, and so on, until obtaining the video correlation subdata with the first attribute, and will have the The video correlation subdata of one attribute is determined as target video correlation subdata, that is to say, that the attribute of video correlation subdata Information is limited, according to the attribute information of the related subdata of video corresponding to video frame, from video related data queue Head of the queue obtains target video correlation subdata, improves switch speed, can realize taking over seamlessly for video correlation subdata, so Afterwards, target video correlator data sending is decoded to decoder, is played with realizing with corresponding video frame synchronization, shortened Video related data and video synchronous time, improve user experience.
Embodiment two
Based on previous embodiment, a kind of data switching method is present embodiments provided, as shown in Fig. 2, this method includes:
S201:Receive playback of media files request;
Here, playing request is used to play current media file.
In practical applications, media file is the video data after coding and the text of encoded video related data synthesis Part.
S202:Playback of media files request is responded, obtains media file;
S203:Media file is separated, obtains video data and video related data;
In practical applications, multimedia video handling implement can be used, for example, F.F. dynamic image expert group (FFMPEG, Fast Forward Moving Picture Experts Group) software is separated media file, when So, or other softwares, the present invention implement to be not specifically limited.
S204:Video data is handled, obtains at least one video frame;
S205:According to default segmentation strategy, video related data is split, is obtained corresponding with least one video frame Video correlation subdata;
S206:Timestamp and default order according at least one video frame, will be corresponding from video frame with different The video correlation subdata of attribute is arranged in order, and obtains video related data queue.
Here, default order is the ordering of the attribute of video correlation subdata, and attribute represents video correlation subnumber According to language form, such as:Chinese, English etc., the embodiment of the present invention is not specifically limited.
In practical applications, be pre-created a queue, according at least one video frame timestamp and default have The ordering of the video correlation subdata of different attribute, video correlation subdata is stored according to the order of first in, first out pre- If queue in.For example, it is pre-created a queue, it is assumed that the arrangement of the default video correlation subdata with different attribute Order is that even bit is Chinese, and odd bits are English, then the video with English attribute corresponding to the first video frame is related Subdata first is joined the team, and then enters subdata second related to the corresponding video with Chinese attribute of the first video frame Team, and so on, then obtain video related data queue.
In practical applications, the queue being pre-created can be linked queue, or round-robin queue, the present invention are implemented Example is not specifically limited.The front pointer and rear pointer of the queue self-defined can be set, in order to avoid judging what is obtained Judged by accident when the team of video related data queue is completely and team is empty, when setting the direction address of front pointer and rear pointer, Need one of them direction room, for example, front pointer can be directed toward actual head of the queue, rear pointer is directed toward the next of tail of the queue Room;Front pointer can also be directed toward to the previous room of head of the queue, rear pointer is directed toward actual tail of the queue.
Embodiment three:
Based on previous embodiment, a kind of data switching method is present embodiments provided, as shown in figure 3, this method includes:
S301:Receive playback of media files request;
Here, playing request is used to play current media file.
Here, media file can be video media file or audio media files, and the embodiment of the present invention is not done It is specific to limit.
S302:Playback of media files request is responded, obtains media file;
S303:Media file is separated, obtains video data and video related data;
Here, separation can be that the media file comprising audio, video, subtitle is divided into independent voice data, video Data and caption data.
In practical applications, media file separator can be used to be separated the media file for encapsulating synthesis, obtained Independent video data and video related data.For example, player opens media file, player calls separator by media text Part is separated into single video data and video related data.
S304:Video data is handled, obtains at least one video frame;
S305:According to default segmentation strategy, video related data is split, is obtained corresponding with least one video frame Video correlation subdata;
S306:Obtain the video correlation subdata that data type cannot be read;
S307:The video correlation subdata that data type cannot be read is discharged from video correlation subdata;
S308:Timestamp and default order according at least one video frame, will be corresponding from video frame with different The video correlation subdata of attribute is arranged in order, and obtains video related data queue.
Example IV:
Based on previous embodiment, a kind of data switching method is present embodiments provided, as shown in figure 4, this method includes:
S401:Receive playback of media files request;
Here, playing request is used to play current media file.
S402:Playback of media files request is responded, obtains media file;
S403:Judging video related data queue, whether team expires;Wherein, if video related data queue team expires, hold Row S410;If video related data queue is less than performing S404;
S404:Media file is separated, obtains video data and video related data;
S405:Video data is handled, obtains at least one video frame;
S406:According to default segmentation strategy, video related data is split, is obtained corresponding with least one video frame Video correlation subdata;
S407:Obtain the video correlation subdata that data type cannot be read;
Here, data type includes:Video, audio, subtitle.
S408:The video correlation subdata that data type cannot be read is discharged from video correlation subdata;
S409:Timestamp and default order according at least one video frame, will be corresponding from video frame with different The video correlation subdata of attribute is arranged in order, and obtains video related data queue.
S410:If video related data queue team expires, stopping is separated media file.
Data switching method provided in this embodiment, by before media file is separated, judging video dependency number According to queue, whether team expires, if video related data queue team expires, stopping is separated media file, avoids video phase Close data queue team it is full when, the risk for the video correlation subdata that the covering of the video correlation subdata write afterwards first writes, energy Enough ensure the integrality of video related data.
Embodiment five:
Based on same inventive concept, the present embodiment provides a kind of data switching apparatus, which can apply Terminal in said one or multiple embodiments.
Data switching apparatus 50 in the embodiment of the present invention five, including:Receiving module 51, for receiving video related data Switching command, wherein, video correlation switching command is used to current video related data being switched to target video correlation subnumber According to target video correlation subdata is the video correlation subdata with the first attribute;Acquisition module 52, for performing video phase Data switching command is closed, i-th of video correlation subdata is obtained from the head of the queue of default video related data queue, wherein, i is Be more than or wait 1 integer;Determining module 53, if not being the video with the first attribute for i-th of video correlation subdata Related subdata, then obtain i+1 video correlation subdata from default video related data queue, and so on, directly To video correlation subdata of the acquisition with the first attribute, and the video correlation subdata with the first attribute is determined as target Video correlation subdata;Sending module 54, for target video correlator data sending to be decoded to decoder, to realize Played with corresponding video frame synchronization.
In other embodiments of the present invention, device further includes:Memory module, for receiving playback of media files request, its In, playing request is used to play current media file;Playback of media files request is responded, obtains media file;By media file Separated, obtain video data and video related data;Video data is handled, obtains at least one video frame;Press According to default segmentation strategy, video related data is split, obtains the related subnumber of corresponding at least one video frame video According to;Timestamp and default order according at least one video frame, by the video with different attribute corresponding with video frame Related subdata is arranged in order, and obtains video related data queue.
In other embodiments of the present invention, device further includes:Removing module, cannot be read for obtaining data type Video correlation subdata;The video correlation subdata that data type cannot be read is discharged from video correlation subdata.
In other embodiments of the present invention, device further includes:Judgment module, for whether judging video related data queue Team expires;If video related data queue team expires, stopping is separated media file;If video related data queue is not It is full, then media file is separated.
It need to be noted that be:Apparatus above implements the description of item, is similar with above method description, has same The identical beneficial effect of embodiment of the method, therefore do not repeat.For the ins and outs not disclosed in apparatus of the present invention embodiment, Those skilled in the art refer to the description of the method for the present invention embodiment and understand, to save length, which is not described herein again.
Embodiment six:
Based on same inventive concept, the embodiment of the present invention provides a kind of terminal, the terminal and said one or multiple realities The terminal applied in example is consistent.
The terminal 60, including:Touch-screen 61 and processor 62, wherein, touch-screen 61, cuts for receiving video related data Instruction is changed, wherein, video correlation switching command is used to current video related data being switched to target video correlation subdata, Target video correlation subdata is the video correlation subdata with the first attribute;Processor 62, for performing video dependency number According to switching command, i-th of video correlation subdata is obtained from the head of the queue of default video related data queue, wherein, i be more than Or wait 1 integer;If i-th of video correlation subdata is not the video correlation subdata with the first attribute, from default Video related data queue in obtain i+1 video correlation subdata, and so on, until obtaining has the first attribute Video correlation subdata, and the video correlation subdata with the first attribute is determined as target video correlation subdata;By mesh Mark video correlator data sending is decoded to decoder, is played with realizing with corresponding video frame synchronization.
In other embodiments of the present invention, processor, for receiving playback of media files request, wherein, playing request is used In broadcasting current media file;Playback of media files request is responded, obtains media file;Media file is separated, is obtained Video data and video related data;Video data is handled, obtains at least one video frame;According to default segmentation plan Slightly, video related data is split, obtains the related subdata of corresponding at least one video frame video;According at least one The timestamp of a video frame and default order, by subdata related to the corresponding video with different attribute of video frame successively Arrangement, obtains video related data queue.
In other embodiments of the present invention, processor, the video correlation subnumber that cannot be read for obtaining data type According to;The video correlation subdata that data type cannot be read is discharged from video correlation subdata.
In other embodiments of the present invention, processor, for judging video related data queue, whether team expires;If video Related data queue team expires, then stops being separated media file;If video related data queue is less than by media text Part is separated.
In practical applications, above-mentioned processor can be application-specific IC (ASIC, Application Specific Integrated Circuit), digital signal processor (DSP, Digital Signal Processor), number Word signal processing apparatus (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field Programmable Gate Array), in central processing unit (CPU, Central Processing Unit), controller, microcontroller, microprocessor extremely Few one kind.It is to be appreciated that for different terminals, the electronic device for being used for realization above-mentioned processor function can also be it It, the embodiment of the present invention is not especially limited.
It need to be noted that be:The description of above terminal embodiment, the description with above method embodiment be it is similar, With the similar beneficial effect of same embodiment of the method, therefore do not repeat.For the skill not disclosed in terminal embodiment of the present invention Art details, refer to the description of the method for the present invention embodiment and understands, to save length, therefore repeat no more.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

  1. A kind of 1. data switching method, it is characterised in that the described method includes:
    Video related data switching command is received, wherein, the video correlation switching command is used for current video dependency number According to target video correlation subdata is switched to, the target video correlation subdata is the video correlation subnumber with the first attribute According to;
    The video related data switching command is performed, i-th of video is obtained from the head of the queue of default video related data queue Related subdata, wherein, i is the integer more than or equal to 1;
    If i-th of video correlation subdata is not the video correlation subdata with the first attribute, preset from described Video related data queue in obtain i+1 video correlation subdata, and so on, until obtaining has the first attribute Video correlation subdata, and the video correlation subdata with the first attribute is determined as target video correlation subdata;
    The target video correlator data sending is decoded to decoder, is broadcast with realizing with corresponding video frame synchronization Put.
  2. 2. according to the method described in claim 1, it is characterized in that, it is described reception video related data switching command before, institute The method of stating further includes:
    Playback of media files request is received, wherein, the playing request is used to play current media file;
    The playback of media files request is responded, obtains the media file;
    The media file is separated, obtains video data and video related data;
    The video data is handled, obtains at least one video frame;
    According to default segmentation strategy, the video related data is split, is obtained corresponding with least one video frame Video correlation subdata;
    Timestamp and default order according at least one video frame, corresponding with the video frame will have and not belong to together Property video correlation subdata be arranged in order, obtain video related data queue.
  3. 3. according to the method described in claim 2, it is characterized in that, the timestamp according at least one video frame and Default order, subdata related to the corresponding video with different attribute of the video frame is arranged in order, and obtains video Before related data queue, the method further includes:
    Obtain the video correlation subdata that data type cannot be read;
    The video correlation subdata that the data type cannot be read is discharged from the video correlation subdata.
  4. 4. according to the method described in claim 2, it is characterized in that, the response playback of media files request, obtains matchmaker After body file, the method further includes:
    Judge whether team expires for the video related data queue;
    If the video related data queue team expires, stopping is separated the media file;
    If the video related data queue is less than the media file is separated.
  5. 5. according to the method described in claim 1, it is characterized in that, the video related data includes:Caption data and audio Data.
  6. 6. a kind of data switching apparatus, it is characterised in that described device includes:
    Receiving module, for receiving video related data switching command, wherein, the video correlation switching command is used for will be current Video related data be switched to target video correlation subdata, the target video correlation subdata is with the first attribute Video correlation subdata;
    Acquisition module, for performing the video related data switching command, from the head of the queue of default video related data queue I-th of video correlation subdata is obtained, wherein, the i is the integer for being more than or waiting 1;
    Determining module, if not being the video correlation subdata with the first attribute for i-th of video correlation subdata, I+1 video correlation subdata is then obtained from the default video related data queue, and so on, until being had There is the video correlation subdata of the first attribute, and the video correlation subdata with the first attribute is determined as target video Related subdata;
    Sending module, for the target video correlator data sending to be decoded to decoder, with realize with it is corresponding Video frame synchronization plays.
  7. 7. device according to claim 6, it is characterised in that described device further includes:Memory module, for receiving media File playing request, wherein, the playing request is used to play current media file;The playback of media files request is responded, Obtain the media file;The media file is separated, obtains video data and video related data;To the video Data are handled, and obtain at least one video frame;According to default segmentation strategy, the video related data is split, Obtain the related subdata of corresponding at least one video frame video;According at least one video frame timestamp and Default order, subdata related to the corresponding video with different attribute of the video frame is arranged in order, and obtains video Related data queue.
  8. 8. device according to claim 6, it is characterised in that described device further includes:Removing module, for obtaining data The video correlation subdata that type cannot be read;The data type is discharged from the video correlation subdata to be read The video correlation subdata taken.
  9. 9. device according to claim 6, it is characterised in that described device further includes:Judgment module, it is described for judging Whether team expires for video related data queue;If the video related data queue team expires, stop by the media file into Row separation;If the video related data queue is less than the media file is separated.
  10. 10. a kind of terminal, it is characterised in that the terminal includes:Touch-screen and processor, wherein,
    The touch-screen, for receiving video related data switching command, wherein, the video correlation switching command is used for ought Preceding video related data is switched to target video correlation subdata, and the target video correlation subdata is with the first attribute Video correlation subdata;
    The processor, for performing the video related data switching command, from the team of default video related data queue Head obtains i-th of video correlation subdata, wherein, the i is the integer for being more than or waiting 1;If i-th of video correlator Data are not the video correlation subdatas with the first attribute, then obtain i-th from the default video related data queue+ 1 video correlation subdata, and so on, until obtaining the video correlation subdata with the first attribute, and have by described in The video correlation subdata of first attribute is determined as target video correlation subdata;By the target video correlator data sending Decoded to decoder, played with realizing with corresponding video frame synchronization.
CN201610967202.2A 2016-10-28 2016-10-28 A kind of data switching method, device and terminal Withdrawn CN108012176A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610967202.2A CN108012176A (en) 2016-10-28 2016-10-28 A kind of data switching method, device and terminal
PCT/CN2017/097711 WO2018076899A1 (en) 2016-10-28 2017-08-16 Data switching method, device, terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610967202.2A CN108012176A (en) 2016-10-28 2016-10-28 A kind of data switching method, device and terminal

Publications (1)

Publication Number Publication Date
CN108012176A true CN108012176A (en) 2018-05-08

Family

ID=62024319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610967202.2A Withdrawn CN108012176A (en) 2016-10-28 2016-10-28 A kind of data switching method, device and terminal

Country Status (2)

Country Link
CN (1) CN108012176A (en)
WO (1) WO2018076899A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943796A (en) * 2019-11-19 2020-03-31 深圳市道通智能航空技术有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464829B (en) * 2020-05-14 2022-02-22 广州酷狗计算机科技有限公司 Method, device and equipment for switching media data and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004320322A (en) * 2003-04-15 2004-11-11 Funai Electric Co Ltd Optical disk player
CN105453581A (en) * 2013-04-30 2016-03-30 杜比实验室特许公司 System and method of outputting multi-lingual audio and associated audio from a single container
US20160105707A1 (en) * 2014-10-09 2016-04-14 Disney Enterprises, Inc. Systems and methods for delivering secondary content to viewers
CN105744346A (en) * 2014-12-12 2016-07-06 深圳Tcl数字技术有限公司 Caption switching method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100473133C (en) * 2004-02-10 2009-03-25 Lg电子株式会社 Text subtitle reproducing method and decoding system for text subtitle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004320322A (en) * 2003-04-15 2004-11-11 Funai Electric Co Ltd Optical disk player
CN105453581A (en) * 2013-04-30 2016-03-30 杜比实验室特许公司 System and method of outputting multi-lingual audio and associated audio from a single container
US20160105707A1 (en) * 2014-10-09 2016-04-14 Disney Enterprises, Inc. Systems and methods for delivering secondary content to viewers
CN105744346A (en) * 2014-12-12 2016-07-06 深圳Tcl数字技术有限公司 Caption switching method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943796A (en) * 2019-11-19 2020-03-31 深圳市道通智能航空技术有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment
CN110943796B (en) * 2019-11-19 2022-06-17 深圳市道通智能航空技术股份有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment

Also Published As

Publication number Publication date
WO2018076899A1 (en) 2018-05-03

Similar Documents

Publication Publication Date Title
US11743541B2 (en) Video providing textual content system and method
WO2017063399A1 (en) Video playback method and device
US10129587B2 (en) Fast switching of synchronized media using time-stamp management
KR100579387B1 (en) Efficient transmission and playback of digital information
TWI344300B (en) Computer-readable recording medium and method and apparatus to synchronize av data with text subtitle data
EP2028659A2 (en) System and method for providing metadata at a selected time
US20030035648A1 (en) Navigation for MPEG streams
CN105049920B (en) A kind of method for recording and device of multimedia file
CN103092467B (en) A kind of method and device of video preview
CN102215429A (en) Recording method for mobile TV
TW200836510A (en) Method and system for switching elementary streams on a decoder with zero delay
CN109788212A (en) A kind of processing method of segmenting video, device, terminal and storage medium
WO2021031590A1 (en) Audio and video pushing method, mobile terminal and display terminal
JP3438223B2 (en) Multiplexing device and multiplexing method, and transmission device and transmission method
CN108737874A (en) A kind of video broadcasting method and electronic equipment
CN108040277A (en) For the subtitle switching method and device of the multi-language captions obtained after decoding
CN107864393A (en) The method and device that video is shown with captioning synchronization
CN108012176A (en) A kind of data switching method, device and terminal
EP2039147A2 (en) Systems and methods of generating encapsulated mpeg program streams
US9014547B2 (en) Playback apparatus and method of controlling the playback apparatus
US9729919B2 (en) Remultiplexing bitstreams of encoded video for video playback
CN105847990B (en) The method and apparatus for playing media file
CN107580264A (en) Multimedia resource play handling method and device
CN104506920A (en) Method and device for playing omnimedia data information
CN108282720B (en) Audio data stream transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20180508

WW01 Invention patent application withdrawn after publication