CN104661086A - Encoding method and device of media stream - Google Patents

Encoding method and device of media stream Download PDF

Info

Publication number
CN104661086A
CN104661086A CN201310603822.4A CN201310603822A CN104661086A CN 104661086 A CN104661086 A CN 104661086A CN 201310603822 A CN201310603822 A CN 201310603822A CN 104661086 A CN104661086 A CN 104661086A
Authority
CN
China
Prior art keywords
media stream
file
frame
stream file
frame 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
Application number
CN201310603822.4A
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310603822.4A priority Critical patent/CN104661086A/en
Publication of CN104661086A publication Critical patent/CN104661086A/en
Pending 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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • 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/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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

Abstract

The embodiment of the invention provides an encoding method and device of a media stream. The method and device are used for realizing the purpose that files on the side of a server are coded into media stream files with a uniform format, and solving the problem that when terminals download the media stream files from the server, because the terminals do not support the media format of the downloaded media stream files, the terminals cannot normally play the downloaded media stream files. The method comprises the following steps: the server obtains the data of each frame and description files containing the description information of the data of each frame by analyzing original media stream files, and the description files and the data files containing the data of each frame are coded into the media stream files with the uniform format.

Description

A kind of coding method of Media Stream and device
Technical field
The present invention relates to technical field of liquid crystal display, particularly relate to a kind of coding method and device of Media Stream.
Background technology
Media Stream refers to that the data such as video, sound take RTP as carrying, and transmits to destination from source with the form of Continuous Flow, just can carry out the multimedia application of playing at destination after receiving the data of certain buffer memory.Media streaming techniques is applied on wireless network and mobile terminal, be then referred to as mobile media stream.
Along with wireless network was drive on boldly to the 3G epoch, the technology of fast wireless network and application thereof are more and more dissolved in the life of people, amusement and work, the application prospect of fast wireless network is very good, and the application of mobile media stream also obtains very large application thereupon.
At present, mobile media stream realizing content-on-demand, live time, mainly adopt in the following method: managing portal realizes uploading, audit and issuing content, audio frequency and video door realizes program request, the representing of live content, and user selects the media content of program request to play by mobile terminal.
At present, the media formats that mobile media stream is conventional has:
3gp/3gp2 media formats, this media formats is 3GPP/3GPP2(3rd Generation PartnershipProject, third generation partner program) the standard mobile media stream format organized to set up, support that the terminal of this media formats is maximum;
WMV(Windows Media Video, windows media video) media formats, this media formats has a small amount of terminal to support this media formats;
RM(Real Media, audio frequency and video compression specification) media formats, this media formats is built-in with the terminal support of RealPlay player, and 3gp/3gp2 media formats supported by RealPlay player simultaneously.
Along with the variation of mobile terminal and the variation of media stream content form, the mobile terminal support media stream format of different model is different.If the content that mobile terminal device can not be decoded is sent to mobile terminal device, mobile terminal device can not the content of normal decoder media stream.
Summary of the invention
Embodiments provide a kind of coding method and device of Media Stream, the media stream file of consolidation form is encoded into for realizing server side, solve terminal when from server downloads of media stream file, this terminal not supporting the media formats of media stream file downloaded to cause due to terminal can not the problem of media stream file downloaded of normal play.
Embodiments provide a kind of coding method of Media Stream, described method comprises: server is by parsing source media stream file, obtain each frame data, and comprising the description document of descriptor of each frame data, described description document and the encoded data file comprising each frame data are become the media stream file of consolidation form by server.
By server, media stream file is resolved, obtain each frame data of source Media Stream and the descriptor of each frame data, and generate the description document of the data file comprising each frame data and the descriptor comprising each frame data, then described description document is become the media stream file of consolidation form with encoded data file, make to support that the terminal of any one or media form is after the media stream file obtaining this consolidation form, corresponding frame data can be obtained according to the descriptor of each frame data in description document, and play, thus solve because of media formats cause can not the problem of content of normal play Media Stream.
Preferably, server by parsing source media stream file, obtains each frame data, and comprises the description document of descriptor of each frame data, comprising:
Server, by parsing source media stream file, obtains the source media stream file after resolving, extracts the data in each frame, to generate the data file comprising frame data in the source media stream file analytically;
Server analytically after source media stream file in frame data in each frame of filtering, generate the description document comprising the guidance code of each frame, wherein, described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file, by this step, to generate the description document of the data file comprising frame data and the descriptor comprising each frame number data; Further, according to frame number and the size of each frame data in described description document, be convenient to find out corresponding frame data from described data file.
Preferably, each frame data in described data file place successively according to frame number order from small to large; Frame data are placed according to its frame number, is convenient to terminal and searches corresponding frame data according to the descriptor of each frame.In addition, the frame data in described data file also can be placed according to frame number order from big to small successively, can reach equally and be convenient to terminal searches corresponding frame data object according to the descriptor of each frame.
Preferably, described server, by parsing source media stream file, obtains the source media stream file after resolving, comprising:
The decoder identification information of carrying is read from the media stream file of source; According to described decoder identification information, utilize corresponding decoder to decode to source file, obtain the source media stream file after resolving.
Preferably, described decoder identification information is the filename that decoding drives; According to described decoder identification information, utilize corresponding decoder to decode to source file, comprising:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture; Described decoder is utilized to decode to source file.
Embodiments provide a kind of code device, described code device comprises:
Parsing module, for resolving source media stream file, obtains each frame data, and comprises the description document of descriptor of each frame data;
Coding module, for the raw media stream file described description document being become consolidation form with the encoded data file comprising each frame data.
By described parsing module, media stream file is resolved, obtain each frame data of source Media Stream and the descriptor of each frame data, described coding module generates the description document of the data file comprising each frame data and the descriptor comprising each frame data according to the source media stream file after parsing, then described description document is become the media stream file of consolidation form with encoded data file, make to support that the node of any one or media form is after the media stream file obtaining described consolidation form, corresponding frame data can be obtained according to the descriptor of each frame data in description document to play, thus effectively solve the problem that the media stream file that causes because of media formats can not normally broadcast.
Preferably, parsing module specifically for:
By resolving source media stream file, obtaining the source media stream file after resolving, in the source media stream file analytically, extracting each frame data;
Frame data in source media stream file analytically in each frame of filtering, generate the description document comprising the guidance code of each frame, wherein, described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file; Comprise the data file of frame data by this CMOS macro cell and comprise the description document of descriptor of each frame number data; Further, make terminal according to the frame number of each frame data in described description document and size, be convenient to find out corresponding frame data from data file.
Preferably, be arranged in order according to frame number order from small to large in described data file; Frame data are placed according to its frame number, is convenient to terminal and searches corresponding frame data according to the descriptor of each frame.In addition, the frame data in described data file also can be placed according to frame number order from big to small successively, can reach equally and be convenient to terminal searches corresponding frame data object according to the descriptor of each frame.
Preferably, parsing module passes through parsing source media stream file, when obtaining the source media stream file after resolving, specifically for:
The decoder identification information of carrying is read from the media stream file of source; According to described decoder identification information, utilize corresponding decoder to decode to source file, obtain the source media stream file after resolving.
Preferably, described decoder identification information is the filename that decoding drives; Parsing module according to described decoder identification information, when utilizing corresponding decoder to decode to source file, specifically for:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture; Described decoder is utilized to decode to source file.By obtaining the decoder for resolving source media stream file from this locality or network, realizing the parsing to source media stream file, obtaining the source media stream file after resolving.
Accompanying drawing explanation
The schematic flow sheet of the coding method of the Media Stream that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the coding/decoding method of the Media Stream that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of the code device of the Media Stream that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the decoding device of the Media Stream that Fig. 4 provides for the embodiment of the present invention four.
Embodiment
Embodiments provide a kind of coding method and device of Media Stream, the media stream file of consolidation form is encoded into for realizing server side, solve terminal when from server downloads of media stream file, this terminal not supporting the media formats of media stream file downloaded to cause due to terminal can not the problem of media stream file downloaded of normal play.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of coding method of Media Stream, described method comprises: server is by parsing source media stream file, obtain each frame data, and comprising the description document of descriptor of each frame data, described description document and the encoded data file comprising each frame data are become the media stream file of consolidation form by server.
By server, media stream file is resolved, obtain the source media stream file after the parsing of the descriptor comprising each frame data and each frame data, and the description document of the data file comprising each frame data and the descriptor comprising each frame data is generated according to the source media stream file after described parsing, then described description document is become the media stream file of consolidation form with encoded data file, make to support that the terminal of any one or media form is after the media stream file obtaining this consolidation form, corresponding frame data can be obtained according to the descriptor of each frame data in description document to play.
Preferably, server by parsing source media stream file, obtains each frame data, and comprises the description document of descriptor of each frame data, comprising:
Server, by parsing source media stream file, obtains the source media stream file after resolving, extracts the data in each frame in the source media stream file analytically;
Server analytically after source media stream file in frame data in each frame of filtering, generate the description document comprising the guidance code of each frame, wherein, described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file.By this step, to generate the description document of the data file comprising frame data and the descriptor comprising each frame number data; Further, according to frame number and the size of each frame data in described description document, be convenient to find out corresponding frame data from data file.
Preferably, each frame data in described data file place successively according to frame number order from small to large.Frame data are placed successively according to its frame number order from small to large, is convenient to terminal and searches corresponding frame data according to the descriptor of each frame.In addition, the frame data in described data file also can be placed according to frame number order from big to small successively, can reach equally and be convenient to terminal searches corresponding frame data object according to the descriptor of each frame.
Preferably, described server, by parsing source media stream file, obtains the source media stream file after resolving, comprising:
The decoder identification information of carrying is read from the media stream file of source; According to described decoder identification information, utilize corresponding decoder to decode to source file, obtain the source media stream file after resolving.
Preferably, described decoder identification information is the filename that decoding drives;
According to described decoder identification information, utilize corresponding decoder to decode to source file, comprising:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture, utilize described decoder to decode to source media stream file.
For embodiments of the invention will be decoded technical problem, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Embodiments of the invention propose a kind of coding method of Media Stream, by resolving and recompile source file, be encoded into the Media Stream of consolidation form, can both normal play in the terminal that the media stream file of described consolidation form is play at any one support media stream file, solve in prior art by media formats cause cannot the problem of normal play.
The schematic flow sheet of the coding method of the Media Stream provided for the embodiment of the present invention one see Fig. 1, Fig. 1; Described coding method specifically comprises:
Step 11, media stream server reads the decoder identification information of carrying from the media stream file of source, according to described decoder identification information, determines corresponding decoder;
Wherein, described decoder identification information is the filename that decoding drives;
Further, described according to described decoder identification information, determine corresponding decoder, comprising:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture.
Because described decoder obtains according to the form of source media stream file, therefore, the form of described source media stream file is the form of the media stream file that described decoder is supported.
Step 12, the decoder determined described in server by utilizing, resolves source media stream file, generates the source media stream file after resolving.
Step 13, server analytically after source media stream file in frame data in each frame of filtering, obtain the description document of the descriptor comprising each frame, wherein, described descriptor is the guidance code of each frame, and described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file.
Step 14, server extracts each frame data from the source media stream file after described parsing, obtains the data file comprising each frame data.
Step 15, described description document is become the media stream file of consolidation form by server with encoded data file.
By above-mentioned steps, the Media Stream that the embodiment of the present invention provides described consolidation form can be generated.The media stream file of described consolidation form comprises description document and data file, wherein, described description document comprises the descriptor of each frame data, described data file comprises each frame data, make the terminal of the media stream file obtaining this consolidation form, each frame data that will play can be obtained from data file according to the descriptor of each frame data in described description document, realize normal broadcasting to the media stream file of consolidation form, effectively solve because of media formats cause can not the problem of content of normal play Media Stream.
It is to be noted, the order of above-mentioned steps 13 and step 14 can be exchanged, namely first analytically after source media stream file in extract each frame data, obtain the data file comprising each frame data, and then filtering resolve after source media stream file each frame in frame data, obtain the description document of the descriptor comprising each frame, wherein, described descriptor is the guidance code of each frame, and described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file.
The embodiment of the present invention two provides a kind of coding/decoding method of Media Stream, realizes the decoding to the media stream file of described consolidation form and broadcasting; The schematic flow sheet of the coding/decoding method of the Media Stream provided for the embodiment of the present invention two see Fig. 2, Fig. 2; Described coding/decoding method specifically comprises:
Step 21, terminal detects the request whether having the media stream file obtaining consolidation form, and when the request of the media stream file obtaining consolidation form being detected, end side sends the request of the media stream file obtaining consolidation form to media stream server; Wherein, the media stream file of described consolidation form comprises data file and description document, and described data file comprises each frame data of Media Stream, and described description document comprises the descriptor of each frame data described;
Described descriptor comprises the guidance code of each frame data, and described guidance code comprises the frame type of these frame data, the size for the frame number and each frame data of determining these frame data position in the data file; Be convenient to end side and from data file, obtain corresponding frame data according to the frame number of each frame and the size of these frame data.
Step 22, media stream server, in response to the request of the media stream file of the acquisition consolidation form from end side, sends the media stream file of corresponding consolidation form to end side.
Step 23, the media stream file of the consolidation form that terminal receiving media streaming server sends, and therefrom obtain description document and data file, and be stored in end side.
Step 24, terminal is according to the request of playing, and from description document, search the descriptor of the frame data required for broadcasting, according to the descriptor of these data, end side reads corresponding frame data from described data file, and plays.
Pass through above-mentioned steps, the decoding of the media stream file to consolidation form can be completed, the media stream file of the consolidation form that described terminal obtains comprises description document and data file, wherein, described description document comprises the descriptor of each frame data, described data file comprises each frame data, make the terminal of the media stream file obtaining this consolidation form, can obtain according to the descriptor of each frame data in described description document each frame data that will play from data file, realize the normal broadcasting of the media stream file to consolidation form.
The embodiment of the present invention three provides a kind of code device, the structural representation of the code device of the Media Stream provided for the embodiment of the present invention two see Fig. 3, Fig. 3; As can be seen from Figure 3, described code device comprises: parsing module 31, coding module 32 and sending module 33, concrete:
Described parsing module 31, for resolving source media stream file at server side, obtains each frame data, and comprises the description document of descriptor of each frame data;
Further, described parsing module 31 specifically for:
By resolving source media stream file, obtain the source media stream file after resolving, frame data in each frame of source media stream file filtering analytically, obtain the description document of the descriptor comprising each frame, wherein, described descriptor is guidance code, and described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file; Described coding module 32 analytically after source media stream file in extract each frame data, obtain the data file comprising each frame data.
Described parsing module 31 passes through parsing source media stream file, when obtaining the source media stream file after resolving, specifically for: from the media stream file of source, read the decoder identification information of carrying; According to described decoder identification information, utilize corresponding decoder to decode to source file, obtain the source media stream file after resolving.
Further, described decoder identification information is the filename that decoding drives; Parsing module 31 according to described decoder identification information, when utilizing corresponding decoder to decode to source file, specifically for:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture; Utilize the decoder of described acquisition, source media stream file is resolved, generate the source media stream file after resolving;
Because described decoder obtains according to the media formats of source Media Stream, therefore, the form of described source media stream file is the media formats that described decoder is supported.
Described coding module 32, for becoming the media stream file of a consolidation form with the encoded data file comprising each frame data by described description document;
Described sending module 33, for responding the request of the media stream file of the acquisition consolidation form from node, sends to node by the media stream file of the consolidation form be encoded into.
Utilize above-mentioned code device, by parsing module, source media stream file is resolved, generate the source media stream file after resolving, be encoded into the media stream file of the consolidation form comprising description document and data file according to the source media stream file after parsing by described coding module, wherein, the descriptor of each frame data is comprised in described description document, data file comprises each frame data in source file, make terminal or the node of the media stream file obtaining this consolidation form, each frame data that will play can be obtained from data file according to the descriptor of each frame data in described description document, realize the normal broadcasting to the media stream file of consolidation form, effectively solve because of media formats cause can not the problem of content of normal play Media Stream.
The embodiment of the present invention four provides a kind of decoding device of Media Stream of consolidation form, see Fig. 4; As can be seen from Figure 4, described decoding device comprises: acquisition module 41, memory module 42 and playing module 43; Concrete:
Described acquisition module 41, for receiving the media stream file of consolidation form, and data therefrom file and description document, wherein said data file comprises each frame data of Media Stream, and described description document comprises the descriptor of each frame data described;
Concrete, the descriptor of each frame data described comprises the guidance code of these frame data, and described guidance code comprises the frame type of each frame, the size for the frame number and frame data of determining frame position; Decoding device, according to the size of the frame number of each frame and frame data corresponding to this frame number, reads corresponding frame data from data file.
Described memory module 42, for storing the media stream file of the consolidation form received, and according to the descriptor of each frame data in described description document, each frame data got from data file;
Described playing module 43, for playing each frame data read.
Above-mentioned decoding device is by obtaining the media stream file of consolidation form, and data therefrom file and description document, wherein said data file comprises each frame data of Media Stream, and described description document comprises the descriptor of each frame data described; Described decoding device, according to the descriptor of each frame number read from description document, reads corresponding frame data and plays from described data file.
The embodiment of the present invention five additionally provides a kind of media stream transportation system, and described transmission system comprises above-mentioned encoding apparatus and decoding apparatus; Concrete:
Described code device, for by parsing source media stream file, obtain each frame data, and comprise the description document of descriptor of each frame data, and by server, description document and the data file comprising each frame data are formed the media stream file of consolidation form, and send to terminal;
Wherein, the process utilizing described code device to carry out encoding comprises:
From the media stream file of source, read the decoder identification information of carrying, according to described decoder identification information, determine corresponding decoder;
Utilize the described decoder determined, source media stream file is resolved, generate the source media stream file after resolving;
The frame data of filtering wherein in each frame in source media stream file analytically, obtain the description document of the descriptor comprising each frame, wherein, described descriptor is the guidance code of each frame, and described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file;
From the source media stream file after described parsing, extract each frame data, obtain the data file comprising each frame data;
Described description document is become the media stream file of consolidation form with encoded data file.
Described decoding device, for the media stream file of the consolidation form that reception server sends, and data therefrom file and description document; Utilize each frame data in this description document acquisition data file, and play.Concrete, the decoding device that described decoding device and the embodiment of the present invention four provide.
Wherein, the process utilizing described decoding device to carry out decoding comprises:
Detect the request whether having the media stream file obtaining consolidation form, when the request of the media stream file obtaining consolidation form being detected, end side sends the request of the media stream file obtaining consolidation form to media stream server, obtain media stream file from server side;
The media stream file of the consolidation form that receiving media streaming server sends, and therefrom obtain description document and data file, be stored in end side;
According to the request of playing, from description document, search the descriptor of the frame data required for broadcasting, according to the descriptor of these data, end side reads corresponding frame data from described data file, and plays.
To sum up, a kind of coding method and device of Media Stream is embodiments provided; The coding method of described Media Stream comprises: resolve source media stream file and obtain the source media stream file after resolving, the media stream file of the consolidation form comprising description document and data file is encoded into according to the source media stream file after described parsing, wherein, described data file comprises each frame data in the media stream file of source, and described description document comprises the description document of each frame data; Make the terminal of the Media Stream obtaining described consolidation form can obtain corresponding data according to the descriptor of each frame data in described description document to play, effectively solve because of media formats cause can not the problem of normal play media stream file.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a coding method for Media Stream, is characterized in that, described method comprises:
Server by parsing source media stream file, obtains each frame data, and comprises the description document of descriptor of each frame data;
Described description document and the encoded data file comprising each frame data are become the media stream file of consolidation form by server.
2. the method for claim 1, is characterized in that, server by parsing source media stream file, obtains each frame data, and comprises the description document of descriptor of each frame data, comprising:
Server, by parsing source media stream file, obtains the source media stream file after resolving, extracts each frame data in the source media stream file analytically;
Server analytically after source media stream file in frame data in each frame of filtering, generate the description document comprising the guidance code of each frame, wherein, described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file.
3. method as claimed in claim 2, it is characterized in that, each frame data in described data file are arranged in order according to frame number order from small to large.
4. method as claimed in claim 2 or claim 3, is characterized in that, described server, by parsing source media stream file, obtains the source media stream file after resolving, comprising:
The decoder identification information of carrying is read from the media stream file of source; According to described decoder identification information, utilize corresponding decoder to decode to source file, obtain the source media stream file after resolving.
5. method as claimed in claim 4, is characterized in that, described decoder identification information is the filename that decoding drives;
According to described decoder identification information, utilize corresponding decoder to decode to source file, comprising:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture; Described decoder is utilized to decode to source file.
6. a code device, is characterized in that, described code device comprises:
Parsing module, for resolving source media stream file, obtains each frame data, and comprises the description document of descriptor of each frame data;
Coding module, for becoming the media stream file of consolidation form with the encoded data file comprising each frame data by described description document.
7. code device as claimed in claim 6, is characterized in that, parsing module specifically for:
By resolving source media stream file, obtaining the source media stream file after resolving, in the source media stream file analytically, extracting each frame data;
Frame data in source media stream file analytically in each frame of filtering, generate the description document comprising the guidance code of each frame, wherein, described guidance code comprises the frame type of each frame, the size for the frame number and each frame data of determining the position of each frame data in described data file.
8. code device as claimed in claim 7, it is characterized in that, each frame data in described data file are arranged in order according to frame number order from small to large.
9. code device as claimed in claim 7 or 8, is characterized in that, parsing module passes through parsing source media stream file, when obtaining the source media stream file after resolving, specifically for:
The decoder identification information of carrying is read from the media stream file of source; According to described decoder identification information, utilize corresponding decoder to decode to source file, obtain the source media stream file after resolving.
10. code device as claimed in claim 9, is characterized in that, described decoder identification information is the filename that decoding drives;
Parsing module according to described decoder identification information, when utilizing corresponding decoder to decode to source file, specifically for:
According to the filename that described decoding drives, from local memory space, search for the corresponding decoder preserved in advance; Or, according to the filename that described decoding drives, by the corresponding decoder of Network Capture; Described decoder is utilized to decode to source file.
CN201310603822.4A 2013-11-25 2013-11-25 Encoding method and device of media stream Pending CN104661086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310603822.4A CN104661086A (en) 2013-11-25 2013-11-25 Encoding method and device of media stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310603822.4A CN104661086A (en) 2013-11-25 2013-11-25 Encoding method and device of media stream

Publications (1)

Publication Number Publication Date
CN104661086A true CN104661086A (en) 2015-05-27

Family

ID=53251698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310603822.4A Pending CN104661086A (en) 2013-11-25 2013-11-25 Encoding method and device of media stream

Country Status (1)

Country Link
CN (1) CN104661086A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380165A (en) * 2020-11-09 2021-02-19 北京电子工程总体研究所 Method for searching recorded data file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859299A (en) * 2006-01-05 2006-11-08 华为技术有限公司 Stream medium server and stream medium transmitting and storaging method
CN1949876A (en) * 2006-11-21 2007-04-18 华为技术有限公司 Method and system for supporting media data of multi-coding formats
CN101859585A (en) * 2010-07-01 2010-10-13 福建省三奥信息科技有限公司 System and method for frame-accuracy cutting of video material
CN102131106A (en) * 2010-12-22 2011-07-20 华为技术有限公司 Method, device and system for playing streaming media contents
CN102164276A (en) * 2011-01-26 2011-08-24 广东志成冠军集团有限公司 Method and system for processing streaming media
CN102510519A (en) * 2011-10-11 2012-06-20 成都市华为赛门铁克科技有限公司 Streaming media data processing method, playing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859299A (en) * 2006-01-05 2006-11-08 华为技术有限公司 Stream medium server and stream medium transmitting and storaging method
CN1949876A (en) * 2006-11-21 2007-04-18 华为技术有限公司 Method and system for supporting media data of multi-coding formats
CN101859585A (en) * 2010-07-01 2010-10-13 福建省三奥信息科技有限公司 System and method for frame-accuracy cutting of video material
CN102131106A (en) * 2010-12-22 2011-07-20 华为技术有限公司 Method, device and system for playing streaming media contents
CN102164276A (en) * 2011-01-26 2011-08-24 广东志成冠军集团有限公司 Method and system for processing streaming media
CN102510519A (en) * 2011-10-11 2012-06-20 成都市华为赛门铁克科技有限公司 Streaming media data processing method, playing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380165A (en) * 2020-11-09 2021-02-19 北京电子工程总体研究所 Method for searching recorded data file

Similar Documents

Publication Publication Date Title
CN105025319B (en) A kind of video pushing method and device
CN102055717B (en) Quick playing method, terminal and server
CN105376612A (en) Video playing method, media equipment, playing equipment and multimedia system
US10965969B2 (en) Method and apparatus for playing online television program
CN112653700B (en) Website video communication method based on WEBRTC
CN103039087A (en) Signaling random access points for streaming video data
CN103165151B (en) Method for broadcasting multimedia file and device
CN105049903A (en) Method and system for cross-device synchronization of media files and media playing device
CN104244079A (en) Video download method and device
CN101646076A (en) Video transmission method in wireless network
CN102740125B (en) System and method for playing streaming media
CN104284238A (en) Video playing method and device based on two-dimension code
CN105812895A (en) Video on-demand data processing method and system
US9832493B2 (en) Method and apparatus for processing audio/video file
CN102510519A (en) Streaming media data processing method, playing method and device
CN110740386B (en) Live broadcast switching method and device and storage medium
CN103945259A (en) Online video playing method and device
CN104602105A (en) Video file playing method and user equipment
TWI536817B (en) Method for recording data based on network interaction protocol and apparatus thereof
CN102196268B (en) Method, device and system for processing multimedia data
CN103841451A (en) Multimedia playing method, device and terminal
JP2010537269A5 (en)
CN101802803B (en) Method and apparatus for generating and reproducing media object-based metadata
CN104661086A (en) Encoding method and device of media stream
CN104994406A (en) Video editing method and apparatus based on silverlight plug-in

Legal Events

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

Application publication date: 20150527