CN105959777A - Data processing method and apparatus - Google Patents
Data processing method and apparatus Download PDFInfo
- Publication number
- CN105959777A CN105959777A CN201610264992.8A CN201610264992A CN105959777A CN 105959777 A CN105959777 A CN 105959777A CN 201610264992 A CN201610264992 A CN 201610264992A CN 105959777 A CN105959777 A CN 105959777A
- Authority
- CN
- China
- Prior art keywords
- data
- video
- audio
- frame
- video data
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000006243 chemical reaction Methods 0.000 claims abstract description 32
- 230000000875 corresponding effect Effects 0.000 description 107
- 230000008569 process Effects 0.000 description 24
- 238000002224 dissection Methods 0.000 description 10
- 230000011218 segmentation Effects 0.000 description 10
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 9
- 238000004590 computer program Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/434—Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
- H04N21/4341—Demultiplexing of audio and video streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4385—Multiplex stream processing, e.g. multiplex stream decrypting
- H04N21/43853—Multiplex stream processing, e.g. multiplex stream decrypting involving multiplex stream decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4398—Processing of audio elementary streams involving reformatting operations of audio signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4408—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/85406—Content authoring involving a specific file format, e.g. MP4 format
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
An embodiment of the present invention provides a data processing method and an apparatus with the method comprising the following steps: acquiring data of a transport stream in TS format, dividing the data in TS format into a plurality of sub-data segments; analyzing each sub-data segment to obtain the audio data and the video data in the current sub-data segment; converting the audio data and the video data into audio data and video data into audio data and video data in a preset format respectively; and generating the streaming media data from the converted audio data and the video data. Thus, the conversion of data in TS format can be completed so that browsers of different kernels can play audio and video files in certain format such as TS format.
Description
Technical field
The present invention relates to audio frequency and video treatment technology, particularly relate to a kind of data processing method and device.
Background technology
Along with being continually changing of Internet video broadcast format, by rmvb, wmv in early days finally
Flv, mp4, f4v, browser end is also embedding by windows player plug-in unit in early days for the broadcasting of video
Enter the transformation that flash player player plug-in unit finally embeds.And h5 is by video label
The m3u8 normative document play and mp4 file.Development and m3u8 along with audio frequency and video technology
The popularization of standard, currently the majority Internet video media data has turned to the TS of m3u8 standard
Format media data.
Constantly improving and updating now with interface, partial view device has gradually passed through extension and has connect
Mouth realizes the broadcasting of video data content.The different browsers support journey to audio-video document form
Degree difference, the file format that the most present safari browser latest edition 8.0 is supported includes
TS (Transport Stream, transmission stream), mp4;The file format of chrome browser support is
Mp4 and webm.Between different browsers, the difference of audio-video document form because being supported, goes out often
The browser of certain kernel existing compatible cannot play the audio-video document that the browser of other kernel is play
Situation.
Therefore, those skilled in the art need badly and solve the problem in that: provide a kind of data process side
Method and device, to solve in prior art between the browser of different kernels some form such as TS form
The problem that can not play of audio-video document.
Summary of the invention
The purpose of the disclosure is to provide a kind of data processing method and device, to solve prior art
Between the browser of middle different kernel, audio-video document to some form such as TS form can not be play
Problem.
According to an aspect of the present invention, it is provided that a kind of data processing method, including:
Obtain the data of transport stream TS form, the data of described TS form are divided into multiple subnumber
According to section;Each subdata section is resolved, obtains the voice data in current sub-data section and regard
Frequency evidence;Respectively described voice data and video data are converted to the audio frequency number of corresponding preset form
According to and video data;Stream medium data is generated according to the described voice data after conversion and video data.
Preferably, before the data of described acquisition transport stream TS form, also include: create sound
Frequently example and instance of video;Wherein, described audio example is used for storing voice data;And, institute
State instance of video for storing video data.
Preferably, described, each subdata section is resolved, obtain in current sub-data section
After voice data and video data, also include: by audio frequency number corresponding for described each subdata section
According to storage to audio example;And, video data corresponding for described each subdata section is stored
Instance of video.
Preferably, the described data by described TS form are divided into multiple subdata section, including:
The data of described TS form are divided into multiple subdata section according to presetting length, and are each subnumber
Make corresponding mark according to section to process;Wherein, the mark that each described subdata section is corresponding includes: son
Order label, audio-frequency information and the video information of data segment.
Preferably, described respectively described voice data and video data are converted to corresponding preset form
Voice data and video data, comprise determining that in described audio example the voice data pair of storage
At least one audio data frame answered, and, in described instance of video, the video data of storage is corresponding
At least one video data frame;First sound is obtained from least one audio data frame described in determining
Frequently Frame, the audio data frame that will obtain according to the data-bias value that first audio data frame is corresponding
Be converted to the audio data frame of preset form;And, at least one video data described in determine
Frame obtains first audio data frame, the data-bias value corresponding according to first video data frame and pass
Video data frame is converted to the video data frame of preset form by key frame information.
Preferably, described method also comprise determining that obtain TS form data corresponding parameter letter
Breath, wherein, described parameter information includes: the section that duration information corresponding to data, data are corresponding
The start time information that information is corresponding with data;Described according to conversion after described voice data and regard
Frequently data genaration stream medium data, including: according to the parameter information that the data of described TS form are corresponding
Described audio data frame after conversion and video data frame are packaged into stream medium data, and revise stream
The parameter information that media data is corresponding.
Preferably, described method also includes: streaming media data carry out binary coding, and will compile
Stream medium data after Ma is sent to player and plays out.
According to a further aspect in the invention, it is provided that a kind of data processing equipment, including:
Dividing processing module, for obtaining the data of transport stream TS form, by described TS form
Data are divided into multiple subdata section;
Parsing module, for resolving each subdata section, obtains in current sub-data section
Voice data and video data;
Modular converter, for being converted to corresponding preset lattice respectively by described voice data and video data
The voice data of formula and video data;
Generation module, for generating Streaming Media according to the described voice data after conversion and video data
Data.
Preferably, described device also includes: creation module, is used for creating audio example and video is real
Example;Wherein, described audio example is used for storing voice data;And, described instance of video is used for
Storage video data.
Preferably, described device also includes: audio example module, for by described each subdata
The voice data of section correspondence stores audio example;And, instance of video module, for by described
Video data corresponding to each subdata section stores instance of video.
Preferably, described dividing processing module, it is used for the data of described TS form according to preset
Length is divided into multiple subdata section, and is that each subdata section makees corresponding mark process;Wherein,
Mark corresponding to each described subdata section includes: the order label of subdata section, audio-frequency information and
Video information.
Preferably, described modular converter, comprise determining that submodule, be used for determining that described audio frequency is real
At least one audio data frame that in example, the voice data of storage is corresponding, and, in described instance of video
At least one video data frame corresponding to video data of storage;Audio frequency transform subblock, for from
At least one audio data frame described determined obtains first audio data frame, according to first audio frequency
The audio data frame of acquisition is converted to the audio frequency number of preset form by the data-bias value that Frame is corresponding
According to frame;And, video conversion submodule, at least one video data frame described in determine
The first audio data frame of middle acquisition, the data-bias value corresponding according to first video data frame and key
Video data frame is converted to the video data frame of preset form by frame information.
Preferably, described device also includes: parameter determination module, is used for determining acquisition TS form
Parameter information corresponding to data, wherein, described parameter information includes: the time long letter that data are corresponding
The start time information that breath, slice information corresponding to data are corresponding with data;Described generation module,
Described voice data after the parameter information that the data according to described TS form are corresponding will be changed
Frame and video data frame are packaged into stream medium data, and revise the parameter information that stream medium data is corresponding.
Preferably, described device also includes: coding module, carries out two for streaming media data and enters
System coding, and the stream medium data after coding is sent to player plays out.
Disclosure embodiment, by the data of the defeated stream TS form got are carried out dividing processing, obtains
To corresponding multiple subdata sections;Again each subdata section is carried out dissection process, determine respectively
Voice data corresponding in each word data stage and video data;The voice data conversion that will obtain again
For the voice data of corresponding preset form, and the video data obtained is converted to corresponding preset lattice
The video data of formula;Stream medium data is generated finally according to the voice data after conversion and video data,
Thus, the form completing the data to TS form is changed, it is achieved between the browser of different kernels such as
The audio-video document of some form such as TS form can be played out by chrome browser.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of a kind of data processing method of one embodiment of the disclosure;
Fig. 2 is the flow chart of steps of a kind of data processing method of another embodiment of the disclosure;
Fig. 3 is the structured flowchart of a kind of data processing equipment of one embodiment of the disclosure;
Fig. 4 is the structured flowchart of a kind of data processing equipment of another embodiment of the disclosure;
Fig. 5 is the structured flowchart of a kind of data processing terminal of one embodiment of the disclosure.
Detailed description of the invention
For making the purpose of disclosure embodiment, technical scheme and advantage clearer, below in conjunction with
Accompanying drawing in disclosure embodiment, carries out clear, complete to the technical scheme in disclosure embodiment
Ground describes, it is clear that described embodiment is a part of embodiment of the disclosure rather than whole
Embodiment.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creation
Property work premise under the every other embodiment that obtained, broadly fall into the scope of disclosure protection.
Embodiment one
With reference to Fig. 1, it is shown that the step stream of a kind of data processing method of one embodiment of the disclosure
Cheng Tu, specifically may include steps of:
The data of TS form are divided into many by step 102, the data of acquisition transport stream TS form
Individual sub-data segment.
When user uses browser to watch video online, owing to sound supported by the browser of different kernels
The form of video file is different, and the browser that often there will be certain kernel existing compatible cannot play certain
Plant the audio-video document of form, as the audio-video document of TS form do not supported by chrome browser.
The embodiment of the present invention is by carrying out form conversion by the audio-video document of certain form, so that turning
Audio-video document after changing can be by the player plays in browser.The TS that acquisition will be play
The data of TS form are split by the data of (Transport Stream, transmission stream) form,
It is divided into multiple word data stage.
Wherein it is possible to use preset divider mode that the data of TS form are split;Preset divider side
Formula can include splitting the data of TS form with byte, as using 188 bytes as cut-point
Enter segmentation.
Step 104, each subdata section is resolved, obtain the audio frequency in current sub-data section
Data and video data.
After the data of TS form complete segmentation, each subdata section after segmentation can be carried out
Pretreatment, as being ranked up each subdata section, make correspondence markings etc.;The most successively to each word
Data segment carries out dissection process, and concrete dissection process can include determining that each subdata section is corresponding
Voice data and video data;I.e. obtain voice data corresponding in group data segment and video counts
According to.
Step 106, respectively voice data and video data are converted to the audio frequency of corresponding preset form
Data and video data.
Corresponding storage voice data and the reality of video data can be pre-set in embodiments of the present invention
Example, is converted to the voice data of corresponding preset form by voice data according to preset conversion regime, with
And, video data is converted to according to preset conversion regime the video data of corresponding form;As by TS
The voice data of form and/or video data are converted to voice data and/or the video counts of MP4 form
According to.
Step 108, according to conversion after voice data and video data generate stream medium data.
It is combined generating stream medium data by the voice data after conversion and video data, owing to turning
The data of the TS form before changing are different with the form of the stream medium data after conversion, accordingly, it would be desirable to root
The parameter information corresponding according to the parameter information streaming media data of the data of TS form is modified, with
Make stream medium data can in the player of browser normal play.
Disclosure embodiment is passed through the data of the defeated stream TS form got are carried out dividing processing,
Obtain multiple subdata sections of correspondence;Again each subdata section is carried out dissection process, determine respectively
Go out voice data corresponding in each word data stage and video data;Again the voice data obtained is turned
It is changed to the voice data of corresponding preset form, and the video data obtained is converted to corresponding preset
The video data of form;Streaming Media number is generated finally according to the voice data after conversion and video data
According to, thus, the form completing the data to TS form is changed, it is achieved between the browser of different kernels
The audio-video document of some form such as TS form can be played out by chrome browser.
Embodiment two
With reference to Fig. 2, it is shown that the step of a kind of data processing method of another embodiment of the disclosure
Flow chart, specifically may include steps of:
Step 202, establishment audio example and instance of video.
The data processing method of the embodiment of the present invention, before processing audio, video data, creates audio frequency
Example and instance of video;Wherein, audio example is used for storing voice data;And, instance of video
For storing video data.
Step 204, the data of acquisition transport stream TS form.
Step 206, determine parameter information corresponding to data obtaining TS form.
Browser is connected the data file of the network TS form to playing and is entered by preset interface
Row is downloaded, and the most preset interface can include midiasource interface, obtains transport stream TS form
Data;And the data of the TS form obtained are analyzed, determine the data obtaining TS form
Corresponding parameter information;Wherein, parameter information includes: duration information corresponding to data, data pair
The start time information that the slice information answered is corresponding with data.
Step 208, the data of TS form are divided into multiple subdata section according to presetting length, and
Make corresponding mark for each subdata section to process.
The data of TS form are split according to presetting length, obtains multiple subdata section, wherein,
Presetting length can set, such as 188 bytes;Again each subdata section after segmentation is identified
Process;Wherein, the mark that each subdata section is corresponding includes: the order label of subdata section, sound
Frequently information and video information;Order such as first subdata section is numbered H1.
Step 210, each subdata section is resolved, obtain the audio frequency in current sub-data section
Data and video data.
Step 212, voice data corresponding for each subdata section is stored audio example.
Step 214, video data corresponding for each subdata section is stored instance of video.
According to the mark of each sub-video segmentation, each sub-video segmentation is carried out dissection process, determine
Voice data that each sub-video segmentation is corresponding and video data;And each subdata section is corresponding
Voice data store create audio example in by video data corresponding for each subdata section
Store in the instance of video created.
It should be noted that above-mentioned steps 212 and 214 is not limited to perform with above-mentioned order,
In actual application, it is also possible to first carry out step 214 and perform step 212 again, it is also possible to the two walks
Rapid executed in parallel.
Step 216, determine in audio example at least one audio frequency number that the voice data of storage is corresponding
According to frame, and, at least one video data frame that in instance of video, the video data of storage is corresponding.
Store voice data in audio example, wherein, voice data includes at least one audio frequency
Frame, video data includes at least one video data frame.
Step 218, from least one audio data frame determined, obtain first audio data frame,
According to the data-bias value that first audio data frame is corresponding, the audio data frame of acquisition is converted to preset
The audio data frame of form.
Searching audio example, determine at least one audio data frame that voice data is corresponding is first
Audio data frame;Determine the data-bias value that first audio data frame is corresponding again, and according to correspondence
Data-bias value first audio data frame and one or more audio data frames afterwards are converted to
The audio data frame of preset form.
Step 220, from least one video data frame determined, obtain first audio data frame,
Video data frame is changed by the data-bias value corresponding according to first video data frame and key frame information
Video data frame for preset form.
Searching instance of video, determine at least one video data frame that video data is corresponding is first
Video data frame;Determine data-bias value and key frame information that first video data frame is corresponding again,
And according to corresponding data-bias value and key frame information by first video data frame and afterwards one
Individual or multiple video data frames are converted to the video data frame of preset form.
It should be noted that above-mentioned steps 218 and 220 is not limited to perform with above-mentioned order,
In actual application, it is also possible to first carry out step 220 and perform step 218 again, it is also possible to the two walks
Rapid executed in parallel.
Step 222, according to parameter information corresponding to the data of TS form by the voice data after conversion
Frame and video data frame are packaged into stream medium data, and revise the parameter information that stream medium data is corresponding.
The data of the TS form that the embodiment of the present invention receives include its corresponding parameter information, such as data pair
Initial time of duration, slice information or data playback answered etc.;Data pair according to TS form
Audio data frame after conversion and video data frame are sealed by the parameter information answered according to preset form
Dress, obtains stream medium data;Owing to the data of stream medium data and TS form are two kinds of different-formats
Data, it is therefore desirable to the parameter information corresponding according to the data of TS form revises Streaming Media pair accordingly
The parameter information answered;As stream medium data includes the data of FMP4 form, revise FMP4 form
Data in the information of box, and for example size, the type value in amendment box.
Step 224, streaming media data carry out binary coding, and by the Streaming Media number after coding
Play out according to being sent to player.
After stream medium data after being encapsulated, stream medium data is carried out binary coding;Will
Stream medium data after coding plays out;Wherein the stream medium data after encapsulation may be used for Mac
Play with the chrome browser under Windows, the browser under Android.
Such as, first creating package example, arrange the parameter of correspondence, package example includes being respectively used to
Storage voice data and the object of video data;Import the data of TS form, and determine TS form
The relevant description information of data;The data of TS form are split with 188 bytes for cut-point,
And each byte fragment is made port ID labelling;According to different port ID values to each chunk
Duan Jinhang dissection process, is respectively put into storage voice data by corresponding voice data and video data
With in the object of video data;And regard voice data according to FregmentMP4 data format requirement
Frequency is according to assembling;In the description information being correlated with according to the data of TS form to completing FMP4
The amendment of the box information of data.
The embodiment of the present invention obtains the data of TS form by interface, and enters the data of TS form
Row segmentation mark processes, and obtains multiple subdata section;Again each subdata section is carried out dissection process,
Voice data in each subdata section is stored in the audio example being pre-created, and will be every
Video data in individual sub-data segment stores in the instance of video being pre-created;Determine audio frequency again
First video data frame corresponding in first audio data frame corresponding in data and video data.With
First audio data frame and video data frame carry out form conversion to voice data and video data, raw
Become the stream medium data of preset form, and streaming media data carry out parameter modification;Streaming media again
Data carry out binary coding, and the stream medium data after coding is passed through player plays.Thus,
The form completing the data to TS form is changed, it is achieved between the browser of different kernels, chrome is clear
The audio-video document of some form such as TS form can be played out by device of looking at.
Embodiment three
With reference to Fig. 3, it is shown that the structured flowchart of one a kind of data processing equipment of embodiment of the disclosure;
Specifically can include such as lower module:
Dividing processing module 302, for obtaining the data of transport stream TS form, by TS form
Data are divided into multiple subdata section;
Parsing module 304, for resolving each subdata section, obtains current sub-data section
In voice data and video data;
Modular converter 306, for being converted to corresponding preset lattice respectively by voice data and video data
The voice data of formula and video data;
Generation module 308, for generating Streaming Media according to the voice data after conversion and video data
Data.
Disclosure embodiment, by the data of the defeated stream TS form got are carried out dividing processing, obtains
To corresponding multiple subdata sections;Again each subdata section is carried out dissection process, determine respectively
Voice data corresponding in each word data stage and video data;The voice data conversion that will obtain again
For the voice data of corresponding preset form, and the video data obtained is converted to corresponding preset lattice
The video data of formula;Stream medium data is generated finally according to the voice data after conversion and video data,
Thus, the form completing the data to TS form is changed, it is achieved between the browser of different kernels
The audio-video document of some form such as TS form can be played out by chrome browser.
Embodiment four
With reference to Fig. 4, it is shown that the structural frames of a kind of data processing equipment of another embodiment of the disclosure
Figure, specifically can include such as lower module:
Creation module 310, is used for creating audio example and instance of video;Wherein, audio example is used
In storage voice data;And, instance of video is used for storing video data.
Audio example module 312, for storing sound by voice data corresponding for each subdata section
Frequently example;And,
Instance of video module 314, regards for being stored by video data corresponding for each subdata section
Frequently example.
Dividing processing module 302, for obtaining the data of transport stream TS form, by TS form
Data are divided into multiple subdata section according to presetting length, and are that each subdata section makees corresponding mark
Knowledge processes;
Wherein, the mark that each subdata section is corresponding includes: the order label of subdata section, audio frequency
Information and video information.
Parsing module 304, for resolving each subdata section, obtains current sub-data section
In voice data and video data.
Modular converter 306, including:
Determine submodule 3062, for determining that in audio example, the voice data of storage is corresponding at least
One audio data frame, and, at least one video that in instance of video, the video data of storage is corresponding
Frame;
Audio frequency transform subblock 3064, for obtaining head from least one audio data frame determined
Individual audio data frame, the audio frequency number that will obtain according to the data-bias value that first audio data frame is corresponding
The audio data frame of preset form is converted to according to frame;And,
Video conversion submodule 3066, for obtaining head from least one video data frame determined
Individual audio data frame, the data-bias value corresponding according to first video data frame and key frame information will
Video data frame is converted to the video data frame of preset form.
Parameter determination module 316, for determining the parameter information that the data obtaining TS form are corresponding,
Wherein, parameter information includes: the slice information sum that duration information corresponding to data, data are corresponding
According to corresponding start time information;
Generation module 308, the parameter information corresponding for the data according to defeated stream TS form will conversion
After audio data frame and video data frame be packaged into stream medium data, and revise stream medium data pair
The parameter information answered.
Coding module 318, carries out binary coding for streaming media data, and by after coding
Stream medium data is sent to player and plays out.
The embodiment of the present invention obtains the data of TS form by interface, and enters the data of TS form
Row segmentation mark processes, and obtains multiple subdata section;Again each subdata section is carried out dissection process,
Voice data in each subdata section is stored in the audio example being pre-created, and will be every
Video data in individual sub-data segment stores in the instance of video being pre-created;Determine audio frequency again
First video data frame corresponding in first audio data frame corresponding in data and video data.With
First audio data frame and video data frame carry out form conversion to voice data and video data, raw
Become the stream medium data of preset form, and streaming media data carry out parameter modification;Streaming media again
Data carry out binary coding, and the stream medium data after coding is passed through player plays.Thus,
The form completing the data to TS form is changed, it is achieved between the browser of different kernels, chrome is clear
The audio-video document of some form such as TS form can be played out by device of looking at.
Embodiment five
Disclosure embodiment additionally provides a kind of data processing terminal 500, its hardware architecture diagram
As shown in Figure 5.
Terminal includes processor 502, memorizer 504, transceiver 506 and bus 508.Wherein,
Processor 502, memorizer 504, transceiver 506 are communicated by bus 508.
The data of TS form, for obtaining the data of transport stream TS form, are divided by processor 502
It is segmented into multiple subdata section;
Each subdata section is resolved, obtains the voice data in current sub-data section and video
Data;
Respectively voice data and video data are converted to voice data and the video of corresponding preset form
Data;
Stream medium data is generated according to the voice data after conversion and video data.
In the optional embodiment of one, processor 502 is additionally operable to create audio example and video
Example;Wherein, audio example is used for storing voice data;And, instance of video regards for storage
Frequency evidence.
In the optional embodiment of one, memorizer 504 is for by corresponding for each subdata section
Voice data stores audio example;And, by video data storage corresponding for each subdata section
To instance of video.
In the optional embodiment of one, processor 502 be additionally operable to by the data of TS form according to
Presetting length is divided into multiple subdata section, and is that each subdata section makees corresponding mark process;
Wherein, the mark that each subdata section is corresponding includes: the order label of subdata section, audio-frequency information
And video information.
In the optional embodiment of one, processor 502 is additionally operable to determine in audio example storage
At least one audio data frame corresponding to voice data, and, the video counts of storage in instance of video
According at least one corresponding video data frame;Head is obtained from least one audio data frame determined
Individual audio data frame, the audio frequency number that will obtain according to the data-bias value that first audio data frame is corresponding
The audio data frame of preset form is converted to according to frame;And, from least one video data determined
Frame obtains first audio data frame, the data-bias value corresponding according to first video data frame and pass
Video data frame is converted to the video data frame of preset form by key frame information.
In the optional embodiment of one, processor 502 is additionally operable to determine the number obtaining TS form
According to corresponding parameter information, wherein, parameter information includes: duration information corresponding to data, data
The start time information that corresponding slice information is corresponding with data;Data pair according to defeated stream TS form
Audio data frame after conversion and video data frame are packaged into stream medium data by the parameter information answered,
And revise the parameter information that stream medium data is corresponding.
In the optional embodiment of one, processor 502 is additionally operable to streaming media data and carries out two
Scale coding, and the stream medium data after coding is sent to player plays out.
Should be understood that the terminal 500 provided according to embodiments of the present invention can realize in Fig. 1 to Fig. 2
The corresponding flow process of each method, for sake of simplicity, do not repeat them here, in said method embodiment
Associated description is also applied for the present embodiment.
The embodiment of the present invention obtains the data of TS form by interface, and enters the data of TS form
Row segmentation mark processes, and obtains multiple subdata section;Again each subdata section is carried out dissection process,
Voice data in each subdata section is stored in the audio example being pre-created, and will be every
Video data in individual sub-data segment stores in the instance of video being pre-created;Determine audio frequency again
First video data frame corresponding in first audio data frame corresponding in data and video data.With
First audio data frame and video data frame carry out form conversion to voice data and video data, raw
Become the stream medium data of preset form, and streaming media data carry out parameter modification;Streaming media again
Data carry out binary coding, and the stream medium data after coding is passed through player plays.Thus,
The form completing the data to TS form is changed, it is achieved between the browser of different kernels, chrome is clear
The audio-video document of some form such as TS form can be played out by device of looking at.
Additionally, the embodiment of the present invention additionally provides a kind of computer program, this computer program includes
Computer-readable code, when this computer-readable code runs in terminal, causes terminal to perform
A kind of data processing method of any one in aforesaid plurality of embodiment of the method.
Further, the embodiment of the present invention additionally provides a kind of computer-readable medium, wherein stores
The computer program stated.
It may be noted that according to the needs implemented, all parts/step described in this application can be torn open
It is divided into more components/steps, it is possible to by two or more components/steps or the part of components/steps
The components/steps that operational group synthesis is new, to realize the purpose of the present invention.
Above-mentioned the method according to the invention can realize in hardware, firmware, or is implemented as depositing
Store up the software in record medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk)
Or computer code, or be implemented through original storage that network downloads at remotely record medium or
In nonvolatile machine readable media and the computer code in local recording medium will be stored in, from
And method described here can be stored in use general purpose computer, application specific processor or able to programme
Or the such software processes on the record medium of specialized hardware (such as ASIC or FPGA).Can
To understand, computer, processor, microprocessor controller or programmable hardware include storing or
Receive software or the storage assembly (such as, RAM, ROM, flash memory etc.) of computer code, when
When described software or computer code are by computer, processor or hardware access and execution, it is achieved
This processing method described.Additionally, when general purpose computer accesses for realizing the process being shown in which
Code time, general purpose computer is converted to for performing the process being shown in which by the execution of code
Special-purpose computer.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not
Be confined to this, any those familiar with the art in the technical scope that the invention discloses,
Change can be readily occurred in or replace, all should contain within protection scope of the present invention.Therefore, originally
The protection domain of invention should be as the criterion with described scope of the claims.
Claims (14)
1. a data processing method, including:
Obtain the data of transport stream TS form, the data of described TS form are divided into multiple subnumber
According to section;
Each subdata section is resolved, obtains the voice data in current sub-data section and video
Data;
Respectively described voice data and video data are converted to corresponding preset form voice data and
Video data;
Stream medium data is generated according to the described voice data after conversion and video data.
Method the most according to claim 1, wherein, at described acquisition transport stream TS form
Data before, also include:
Create audio example and instance of video;
Wherein, described audio example is used for storing voice data;And, described instance of video is used for
Storage video data.
Method the most according to claim 2, wherein, is carried out each subdata section described
Resolve, after obtaining the voice data in current sub-data section and video data, also include:
Voice data corresponding for described each subdata section is stored audio example;And,
Video data corresponding for described each subdata section is stored instance of video.
Method the most according to claim 1, wherein, the described data by described TS form
It is divided into multiple subdata section, including:
The data of described TS form are divided into multiple subdata section according to presetting length, and are every
Individual sub-data segment is made corresponding mark and is processed;
Wherein, the mark that each described subdata section is corresponding includes: the order label of subdata section,
Audio-frequency information and video information.
5. according to the method described in claim 3 or 4, wherein, described respectively by described audio frequency number
According to being converted to voice data and the video data of corresponding preset form with video data, including:
Determine at least one audio data frame that in described audio example, the voice data of storage is corresponding,
With, at least one video data frame that in described instance of video, the video data of storage is corresponding;
First audio data frame is obtained, according to head from least one audio data frame described in determining
The audio data frame of acquisition is converted to preset form by the data-bias value that individual audio data frame is corresponding
Audio data frame;And,
First audio data frame is obtained, according to head from least one video data frame described in determining
Video data frame is converted to preset by data-bias value and key frame information that individual video data frame is corresponding
The video data frame of form.
Method the most according to claim 5, wherein, described method also includes:
Determine the parameter information that the data of acquisition TS form are corresponding, wherein, described parameter information bag
Include: the initial time that slice information corresponding to duration information corresponding to data, data is corresponding with data
Information;
Described according to conversion after described voice data and video data generate stream medium data, including:
Parameter information corresponding to data according to described TS form is by the described voice data after conversion
Frame and video data frame are packaged into stream medium data, and revise the parameter information that stream medium data is corresponding.
Method the most according to claim 6, wherein, described method also includes:
Streaming media data carry out binary coding, and are sent to broadcast by the stream medium data after coding
Put device to play out.
8. a data processing equipment, including:
Dividing processing module, for obtaining the data of transport stream TS form, by described TS form
Data are divided into multiple subdata section;
Parsing module, for resolving each subdata section, obtains in current sub-data section
Voice data and video data;
Modular converter, for being converted to corresponding preset lattice respectively by described voice data and video data
The voice data of formula and video data;
Generation module, for generating Streaming Media according to the described voice data after conversion and video data
Data.
Device the most according to claim 8, wherein, described device also includes:
Creation module, is used for creating audio example and instance of video;
Wherein, described audio example is used for storing voice data;And, described instance of video is used for
Storage video data.
Device the most according to claim 9, wherein, described device also includes:
Audio example module, for storing sound by voice data corresponding for described each subdata section
Frequently example;And,
Instance of video module, regards for being stored by video data corresponding for described each subdata section
Frequently example.
11. devices according to claim 8, wherein,
Described dividing processing module, for splitting the data of described TS form according to presetting length
For multiple subdata sections, and it is that each subdata section is made corresponding mark and processed;
Wherein, the mark that each described subdata section is corresponding includes: the order label of subdata section,
Audio-frequency information and video information.
12. according to the device described in claim 9 or 10, wherein, and described modular converter, including:
Determine submodule, for determining that in described audio example, the voice data of storage is corresponding at least
One audio data frame, and, at least one that in described instance of video, the video data of storage is corresponding
Video data frame;
Audio frequency transform subblock, for obtaining head from least one audio data frame described in determining
Individual audio data frame, the audio frequency number that will obtain according to the data-bias value that first audio data frame is corresponding
The audio data frame of preset form is converted to according to frame;And,
Video conversion submodule, for obtaining head from least one video data frame described in determining
Individual audio data frame, the data-bias value corresponding according to first video data frame and key frame information will
Video data frame is converted to the video data frame of preset form.
13. devices according to claim 12, wherein, described device also includes:
Parameter determination module, for determining the parameter information that the data obtaining TS form are corresponding, its
In, described parameter information includes: slice information that duration information corresponding to data, data are corresponding and
The start time information that data are corresponding;
Described generation module, the parameter information corresponding for the data according to described TS form will turn
Described audio data frame and video data frame after changing are packaged into stream medium data, and revise Streaming Media
The parameter information that data are corresponding.
14. devices according to claim 13, wherein, described device also includes:
Coding module, carries out binary coding for streaming media data, and by the stream matchmaker after coding
Volume data is sent to player and plays out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610264992.8A CN105959777A (en) | 2016-04-25 | 2016-04-25 | Data processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610264992.8A CN105959777A (en) | 2016-04-25 | 2016-04-25 | Data processing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105959777A true CN105959777A (en) | 2016-09-21 |
Family
ID=56915904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610264992.8A Pending CN105959777A (en) | 2016-04-25 | 2016-04-25 | Data processing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105959777A (en) |
-
2016
- 2016-04-25 CN CN201610264992.8A patent/CN105959777A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2023090754A (en) | Regeneration method and regeneration device | |
CN103024603B (en) | A kind of for solving playing network video time the device and method that pauses in short-term | |
CN104244023B (en) | Video cloud editing system and method | |
CN103905834B (en) | The method and device of audio data coding form conversion | |
CN104602138A (en) | Method and device for supporting HLS protocol by streaming media server | |
CN105376612A (en) | Video playing method, media equipment, playing equipment and multimedia system | |
CN104620235A (en) | System and method for segment demarcation and identification in adaptive streaming | |
US10446188B2 (en) | Method and apparatus for low latency non-linear media editing using file-based inserts into finalized digital multimedia files | |
CN108885874A (en) | Information processing unit and method | |
CN106358047A (en) | Method and device for playing streaming media video | |
JP2021510047A (en) | Synchronous playback method of media files, equipment and storage media | |
CN104410901A (en) | Play method and play device of M3U8 format live stream | |
JP2017500773A5 (en) | ||
CN105409235A (en) | File generation device and method, and content reproduction device and method | |
CN103165151A (en) | Method and device for playing multi-media file | |
CN104093084B (en) | A kind of method and device for playing video | |
CN105898551A (en) | Network video playing method and device | |
US10284529B2 (en) | Information processing apparatus and information processing method | |
CN108476346A (en) | Information processing unit and information processing method | |
US9911460B2 (en) | Fast and smart video trimming at frame accuracy on generic platform | |
CN104768052A (en) | Method and device for extracting voice frequency and subtitles according to language | |
CN104994378A (en) | Electronic program guide (EPG) video record checking method and device | |
CN105959777A (en) | Data processing method and apparatus | |
WO2017061299A1 (en) | Information processing apparatus and information processing method | |
CN101980238B (en) | Method for encrypting RM/RMVB file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160921 |
|
WD01 | Invention patent application deemed withdrawn after publication |