CN102387177A - Method and device for downloading audio-visual files - Google Patents

Method and device for downloading audio-visual files Download PDF

Info

Publication number
CN102387177A
CN102387177A CN201010272312XA CN201010272312A CN102387177A CN 102387177 A CN102387177 A CN 102387177A CN 201010272312X A CN201010272312X A CN 201010272312XA CN 201010272312 A CN201010272312 A CN 201010272312A CN 102387177 A CN102387177 A CN 102387177A
Authority
CN
China
Prior art keywords
fragment
audio
file
data stream
format conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201010272312XA
Other languages
Chinese (zh)
Other versions
CN102387177B (en
Inventor
刘俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201010272312.XA priority Critical patent/CN102387177B/en
Priority to PCT/CN2011/079149 priority patent/WO2012028096A1/en
Publication of CN102387177A publication Critical patent/CN102387177A/en
Application granted granted Critical
Publication of CN102387177B publication Critical patent/CN102387177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The invention discloses a method and a device for downloading audio-visual files, which belong to the data processing field. The method comprises the following steps that: all segments of an audio-visual file selected by a user are downloaded, and the structure of each segment is analyzed; each segment is judged whether to satisfy a format conversion condition according to the analysis result; and the format of each segment is converted to a format to be matched with a designated device when the segment satisfies the format conversion condition. The format of the audio-visual file is simultaneously converted when the audio-visual file is downloaded, so the downloaded audio-visual file can satisfy the requirements of different devices on the format of the audio-visual file, and the existed format barrier when downloading the audio-visual file can be further eliminated; and moreover, since no format conversion tool is additionally downloaded, the operation of the user can be simplified.

Description

The method for down loading of audio/video file and device
Technical field
The present invention relates to data processing field, particularly a kind of method for down loading of audio/video file and device.
Background technology
Perfect gradually along with the multimedia recreation function, general subscriber equipment all provides audio-video playing function.But because the form of the supported audio/video file of some subscriber equipment is limited; And need obtain audio/video file from the Internet; And the form of the audio/video file on the Internet is of a great variety, thereby often can't play when being directly downloaded to the audio/video file on the Internet on the subscriber equipment.
For make audio/video file can be on subscriber equipment normal play, a kind of implementation is to need through downloading and two processes of format conversion, and when carrying out format conversion, needs other download formats crossover tool; A kind of in addition implementation is to set up the different user devices prefecture to satisfy the particular requirement of different user devices to audio-visual form through some video display resource websites.
In realizing process of the present invention, the inventor finds that there is following shortcoming at least in prior art:
Because general audio-visual format conversion instrument is all specialized partially, domestic consumer uses these instruments that higher threshold is often arranged, thereby first kind of implementation is comparatively complicated; And when satisfying different user devices to the call format of audio/video file through the website; Need the higher operation cost of cost the online movie resource to be converted to the form that is fit to special user equipment; And the kind of subscriber equipment is numerous, is difficult to satisfy the requirement of all subscriber equipmenies.
Summary of the invention
In order to satisfy the call format of various subscriber equipmenies to audio/video file, to eliminate the form obstacle that exists when downloading audio/video file, and simplify user's operation, the embodiment of the invention provides a kind of method for down loading and device of audio/video file.Said technical scheme is following:
On the one hand, a kind of method for down loading of audio/video file is provided, said method comprises:
Each fragment of the audio/video file that download user is selected, and each fragment carried out structural analysis;
Judge according to analysis result whether said each fragment satisfies the format conversion condition;
When said each fragment satisfies the format conversion condition, with the form that format conversion becomes and designated equipment is complementary of said each fragment.
Wherein, said each fragment is carried out structural analysis, specifically comprises:
Discern the file type of said audio/video file according to each fragment, and structure elucidation said each fragment corresponding, obtain the structural information of said each fragment according to the file type that identifies, with the structural information of said each fragment as analysis result.
Saidly judge that according to analysis result whether said each fragment satisfies the format conversion condition, specifically comprises:
Judge according to the structural information of said each fragment whether the file header of said audio/video file and the index data of end-of-file download success, and judge according to the index data of said file header and end-of-file whether said each fragment is current fragment to be converted;
If the index data of the file header of said audio/video file and end-of-file is downloaded successfully, and judge that according to the index data of said file header and end-of-file said each fragment is current fragment to be converted, judge that then said each fragment satisfies the format conversion condition; Otherwise, judge said each fragment unmet format conversion condition;
Correspondingly, judge after said each fragment unmet format conversion condition, also comprise:
The fragment of unmet format conversion condition is carried out buffer memory, until satisfying the format conversion condition.
Said format conversion with said each fragment becomes before the form that is complementary with designated equipment, also comprises:
Definite transcoding parameter that is complementary with said designated equipment;
Correspondingly, said format conversion with said each fragment becomes the form that is complementary with designated equipment, specifically comprises:
Said each fragment is carried out audio/video flow separate, obtain audio data stream and video data stream;
To said audio data stream and video data stream decoding, obtain not audio compressed data stream and uncompressed video data stream;
Said not audio compressed data stream and uncompressed video data stream are encoded according to the transcoding parameter that is complementary with said designated equipment, obtain audio compressed data stream and compressed video data stream;
Said audio compressed data stream and compressed video data stream are merged, obtain the audio/video file that form and said designated equipment are complementary.
Said definite transcoding parameter that is complementary with said designated equipment specifically comprises:
The prompting user selects the unit type of designated equipment, is searching the transcoding parameter that is complementary with said designated equipment in the stored parameters database in advance according to the unit type that said user selects;
Or the prompting user is provided with the transcoding parameter, and the transcoding parameter that said user is provided with is confirmed as the transcoding parameter that is complementary with said designated equipment.
On the other hand, a kind of download apparatus of audio/video file is provided also, said device comprises:
Download module is used for each fragment of the audio/video file that download user selects;
Analysis module is used for each fragment that said download module is downloaded is carried out structural analysis;
Judge module is used for judging according to the analysis result of said analysis module whether said each fragment satisfies the format conversion condition;
Modular converter is used for when said judge module judges that said each fragment satisfies the format conversion condition, with the form that format conversion becomes and designated equipment is complementary of said each fragment.
Wherein, Said analysis module specifically is used for discerning according to each fragment the file type of said audio/video file, and structure elucidation said each fragment corresponding according to the file type that identifies; Obtain the structural information of said each fragment, with the structural information of said each fragment as analysis result.
Said judge module; Specifically be used for judging according to the structural information of said each fragment whether the file header of said audio/video file and the index data of end-of-file download success, and judge according to the index data of said file header and end-of-file whether said each fragment is current fragment to be converted; If the file header of said audio/video file is downloaded successfully, and judge that according to the index data of said file header and end-of-file said each fragment is current fragment to be converted, judge that then said each fragment satisfies the format conversion condition; Otherwise, judge said each fragment unmet format conversion condition;
Correspondingly, said device also comprises:
Cache module is used for when said judge module is judged said each fragment and do not satisfied the format conversion condition, said each fragment being carried out buffer memory, until satisfying the format conversion condition.
Further, said device also comprises:
Determination module is used for before format conversion become and designated equipment be complementary the form of said modular converter with said each fragment, confirming the transcoding parameter that is complementary with said designated equipment;
Correspondingly, said modular converter specifically comprises:
The audio/video flow separative element is used for that said each fragment is carried out audio/video flow and separates, and obtains audio data stream and video data stream;
Decoding unit is used for said audio/video flow separative element is separated audio data stream and the video data stream decoding that obtains, and obtains not audio compressed data stream and uncompressed video data stream;
Coding unit; The transcoding parameter that is complementary with said designated equipment that not audio compressed data stream that is used for said decoding unit decodes is obtained and uncompressed video data stream are confirmed according to said determination module is encoded, and obtains audio compressed data stream and compressed video data stream;
The audio/video flow merge cells is used for audio compressed data stream and compressed video data stream that said coding unit coding obtains are merged, and obtains the audio/video file that form and said designated equipment are complementary.
Said determination module specifically is used to point out the user to select the unit type of designated equipment, is searching the transcoding parameter that is complementary with said designated equipment in the stored parameters database in advance according to the unit type that said user selects; Or the prompting user is provided with the transcoding parameter, and the transcoding parameter that said user is provided with is confirmed as the transcoding parameter that is complementary with said designated equipment.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
Through when downloading audio/video file; Simultaneously it is carried out format conversion; Make the audio/video file of download can satisfy the call format of various subscriber equipmenies to audio/video file; Thereby eliminated the form obstacle that exists when downloading audio/video file, and owing to need not other download formats crossover tool, thereby can simplify user's operation.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method for down loading flow chart of the audio/video file that provides of the embodiment of the invention one;
Fig. 2 is the method for down loading flow chart of the audio/video file that provides of the embodiment of the invention two;
Fig. 3 is that the transcoding parameter that the embodiment of the invention two provides is provided with sketch map;
Fig. 4 is the download apparatus structural representation of the audio/video file that provides of the embodiment of the invention three;
Fig. 5 is the download apparatus structural representation of the another kind of audio/video file that provides of the embodiment of the invention three;
Fig. 6 is the download apparatus structural representation of another audio/video file of providing of the embodiment of the invention three;
Fig. 7 is the modular converter structural representation that the embodiment of the invention three provides.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment one
Referring to Fig. 1, present embodiment provides a kind of method for down loading of audio/video file, and this method flow is specific as follows:
101: each fragment of the audio/video file that download user is selected, and each fragment carried out structural analysis;
102: judge according to analysis result whether each fragment satisfies the format conversion condition;
103: when each fragment satisfies the format conversion condition, with the form that format conversion becomes and designated equipment is complementary of each fragment.
The method that present embodiment provides; Through when downloading audio/video file; Simultaneously it is carried out format conversion, make the audio/video file of download satisfy the call format of various subscriber equipmenies, thereby eliminated the form obstacle that exists when downloading audio/video file audio/video file; And owing to need not other download formats crossover tool, thereby can simplify user's operation.
Embodiment two
Present embodiment provides a kind of method for down loading of audio/video file, and this method is after downloading each fragment of audio/video file, and directly the format conversion with each fragment becomes the form that is complementary with designated equipment, thereby eliminates the form obstacle that exists when downloading audio/video file.Referring to Fig. 2, the method flow that present embodiment provides is specific as follows:
201: each fragment of the audio/video file that download user is selected, and each fragment carried out structural analysis;
To this step; Audio/video file for the download user expectation; The method that present embodiment provides can be the inlet that the user provides the audio-visual resource of search; Audio/video file by the user searches and selects to want to download through this inlet of searching for audio-visual resource begins to download audio/video file after adding downloading task according to user's selection.Present embodiment does not limit concrete downloading mode; Because existing downloading mode generally all adopts P2P (Peer-to-Peer, point-to-point) technology, can carry out burst to audio/video file during download; For example; With the 512KB size is that elementary cell is carried out cutting to audio/video file, and can not download in strict accordance with document order, but with each fragment of out of order mode file in download.
After each fragment of audio/video file is downloaded,, need carry out structural analysis to each fragment in order successfully to carry out format conversion to it.When carrying out structural analysis, can identify the file type of audio/video file earlier according to each fragment, and structure elucidation each fragment corresponding according to the file type that identifies, obtain the structural information of each fragment, the structural information of each fragment is analysis result.
About how according to the file type of each fragment identification audio/video file, present embodiment is not done concrete qualification.Specifically can discern through file suffixes name, the file type identification byte of each fragment.For example, the rmvb type file is character " RMF " in three bytes of file beginning.
During according to corresponding each fragment of structure elucidation of the file type that identifies, can carry out the structure elucidation of fragment according to the pairing file structure standard of the file type of audio/video file.The corresponding various structure of the audio/video file of different file types.The structure of general audio/video file includes three parts of index data (INDX) of descriptor (HEAD), the audio, video data (DATA) in the file and the end-of-file of file header.File header has been described the overall information of file, includes but not limited to the quantity of audio/video flow in file duration, the file, the details of audio/video flow etc.; The index data of end-of-file has been described the positional information of file data blocks, such as N fragment corresponding file address etc.The descriptor of file header and the index data of end-of-file are generally shorter, for example, and the data end to end about the about 512KB of RMVB file.Structure through to each fragment is resolved, and can judge the various piece of audio/video file and whether download completion.
202: judge according to analysis result whether each fragment satisfies the format conversion condition, if not, then execution in step 203, otherwise, execution in step 204;
Particularly; Because each fragment of audio/video file is to download with out of order mode, need change according to each fragment putting in order in audio/video file and carry out format conversion, promptly need begin conversion from first fragment of audio/video file; Even having downloaded, other fragments finish; If but first fragment does not also successfully download to this locality, still need to wait for, download until first fragment and accomplish; And it is carried out could carrying out format conversion successively to other fragments after the format conversion.Therefore, when each fragment is carried out format conversion, need to guarantee that each fragment is current fragment to be converted.
Confirming of current fragment to be converted according to a graded; Though each fragment is out of order when downloading; But because file header has been described the details of audio/video flow in file duration and the file etc.; The index data of end-of-file has been described the positional information of file fragment, thereby can draw the order of each fragment in audio/video file according to the index data of file header and end-of-file, and whether can judge each fragment is current fragment to be converted.
That is to say that the format conversion condition is downloaded successfully except the file header that requires audio/video file and the index data of end-of-file, also requiring can judge fragment according to the index data of file header and end-of-file is current fragment to be converted.When then judging according to analysis result whether each fragment satisfies the format conversion condition; At first need judge whether the file header of audio/video file and the index data of end-of-file download success, and judge according to the index data of file header and end-of-file whether each fragment is current fragment to be converted according to the structural information of each fragment; If the index data of the file header of audio/video file and end-of-file is downloaded successfully, and judge that according to the index data of file header and end-of-file each fragment is current fragment to be converted, judge that then each fragment satisfies the format conversion condition; Otherwise, judge each fragment unmet format conversion condition.
With the fragment of current download is that the 5th fragment of audio/video file is an example; If judge the file header of audio/video file and the index data of end-of-file is not also downloaded successfully according to the structural information of each fragment of downloading; The order that promptly means each fragment of out of order download is not also confirmed, thereby is drawn all unmet format conversion conditions of all fragments of having downloaded; In addition, even judge the file header of audio/video file and the index data of end-of-file is all downloaded success, if but current fragment to be converted is the 4th fragment, judge still that then the 5th fragment does not satisfy the format conversion condition; Only ought judge the file header of audio/video file and the index data of end-of-file and all download success, and the 4th fragment successfully carries out format conversion, and current fragment to be converted can judge that just drawing the 5th fragment satisfies the format conversion condition when just being the 5th fragment.
203: the fragment that will not satisfy the format conversion condition is carried out buffer memory, after satisfying the format conversion condition, and execution in step 204;
To this step, if current fragment does not satisfy switch condition, need it be carried out buffer memory, until satisfying the format conversion condition, when promptly waiting for current fragment to be converted, continue again it is carried out format conversion, thereby continue to carry out subsequent step 204 for this fragment.With current fragment to be converted is that the 5th fragment in the audio/video file is an example; If do not download when successful in the 5th fragment, the 6th fragment has been downloaded and has been finished, and then the 6th fragment is owing to be not current fragment to be converted; Thereby the advanced row cache of needs; Finish until the download of the 5th fragment, and successfully carry out after the format conversion, the 6th fragment just satisfies the format conversion condition.
204: the format conversion that will satisfy the fragment of format conversion condition becomes the form that is complementary with designated equipment.
Particularly, for the format conversion with fragment becomes the form that is complementary with designated equipment, the method that present embodiment provides needed definite transcoding parameter that is complementary with designated equipment before carrying out the format conversion operation.During concrete the realization; Can be in the corresponding transcoding parameter of the equipment of storing different model in advance; And after storing with the form of parameter database; The prompting user selects the unit type of designated equipment, is searching the transcoding parameter that is complementary with designated equipment in the stored parameters database in advance according to the unit type that the user selects.With selection interface shown in Figure 3 is example, and the prompting user selects to hope to download to audio/video file on the equipment of what model.According to the unit type of user's input, in parameter database, search corresponding transcoding parameter.The transcoding parameter includes but not limited to file type, video resolution, video frame rate, video coding type, audio coding type, video code rate and the audio code rate etc. of transcoding output, and present embodiment does not limit the particular content of transcoding parameter.Be example with transcoding parameter shown in Figure 3 still, the file type in the transcoding parameter is MP4, video resolution 640x360, video frame rate 15fps, video coding type MPEG4, audio coding type AAC, video code rate 768kbps and audio code rate 64kbps etc.
If do not store the corresponding transcoding parameter of equipment of different model in advance, then can point out the user that the transcoding parameter is set, and the transcoding parameter that the user is provided with is confirmed as the transcoding parameter that is complementary with designated equipment, promptly manually accomplish the setting of transcoding parameter by the user.
Except that the mode of above-mentioned two kinds of definite transcoding parameters, can also select alternate manner, present embodiment is not done concrete qualification to this.After the transcoding parameter of confirming to be complementary, when the format conversion of each fragment is become the form that is complementary with designated equipment, specifically comprise with designated equipment:
Each fragment is carried out audio/video flow separate, obtain audio data stream and video data stream;
To audio data stream and video data stream decoding, obtain not audio compressed data stream and uncompressed video data stream;
The stream of audio compressed data not and uncompressed video data stream are encoded according to the transcoding parameter that is complementary with designated equipment, obtain audio compressed data stream and compressed video data stream;
Audio compressed data stream and compressed video data stream are merged, obtain the audio/video file that form and designated equipment are complementary.
Because separating, decode, encode and merge all, audio/video flow realizes that in the prior art present embodiment is not done concrete qualification to this, and repeats no more.Merge will compressing audio and video data streams, obtain after the audio/video file that form and designated equipment be complementary, designated equipment can directly carry out the broadcast of audio/video file, and need not download formats crossover tool in addition again, thereby can simplify the user and operate.
Need to prove that the method that present embodiment provides can be carried out format conversion to all fragments more successively or simultaneously after all fragments of audio/video file are all downloaded.But in order to save time; The method that present embodiment provides can also be when fragment of every download; Carry out format conversion respectively to downloading successful fragment; And carry out format conversion again after need not to wait for all fragments downloads with audio/video file, and can also take other switching strategies, present embodiment does not limit concrete switching strategy.
The method that present embodiment provides; Through when downloading audio/video file; Simultaneously it is carried out format conversion, make the audio/video file of download satisfy the call format of various device, thereby eliminated the form obstacle that exists when downloading audio/video file audio/video file; And owing to need not other download formats crossover tool, thereby can simplify user's operation.
Embodiment three
Referring to Fig. 4, present embodiment provides a kind of download apparatus of audio/video file, and this device comprises:
Download module 401 is used for each fragment of the audio/video file that download user selects;
Analysis module 402 is used for each fragment that download module 401 is downloaded is carried out structural analysis;
Judge module 403 is used for judging according to the analysis result of analysis module 402 whether each fragment satisfies the format conversion condition;
Modular converter 404 is used for when judge module 403 judges that each fragment satisfies the format conversion condition, with the form that format conversion becomes and designated equipment is complementary of each fragment.
Wherein, Analysis module 402 specifically is used for the file type according to each fragment identification audio/video file, and structure elucidation each fragment corresponding according to the file type that identifies; Obtain the structural information of each fragment, with the structural information of each fragment as analysis result.
Judge module 403 specifically is used for judging according to the structural information of each fragment whether the file header of audio/video file and the index data of end-of-file download success, and judges according to the index data of file header and end-of-file whether each fragment is current fragment to be converted; If the index data of the file header of audio/video file and end-of-file is downloaded successfully, and judge that according to the index data of file header and end-of-file each fragment is current fragment to be converted, judge that then each fragment satisfies the format conversion condition; Otherwise, judge each fragment unmet format conversion condition;
Correspondingly, referring to Fig. 6, this device also comprises:
Cache module 405 is used for when judge module 403 is judged each fragment and do not satisfied the format conversion condition, the fragment of unmet format conversion condition being carried out buffer memory, until satisfying the format conversion condition.
Further, referring to Fig. 7, this device also comprises:
Determination module 406 is used for before format conversion become and designated equipment be complementary the form of modular converter 404 with each fragment, confirming the transcoding parameter that is complementary with designated equipment;
Correspondingly, modular converter 404 specifically comprises:
Audio/video flow separative element 404a is used for that each fragment is carried out audio/video flow and separates, and obtains audio data stream and video data stream;
Decoding unit 404b is used for audio/video flow separative element 404a is separated audio data stream and the video data stream decoding that obtains, and obtains not audio compressed data stream and uncompressed video data stream;
Coding unit 404c; The transcoding parameter that is complementary with designated equipment that not audio compressed data stream that is used for decoding unit 404b decoding is obtained and uncompressed video data stream are confirmed according to determination module is encoded, and obtains audio compressed data stream and compressed video data stream;
Audio/video flow merge cells 404d, the audio compressed data stream and the compressed video data stream that are used for coding unit 404c coding is obtained merge, and obtain the audio/video file that form and designated equipment are complementary.
Need to prove; In order to save time; Can carry out format conversion simultaneously to each fragment of audio/video file, then the device that provides of present embodiment can comprise a plurality of modular converters 404, or comprises a plurality of decoding unit 404b and coding unit 404c in a modular converter 404; Or take alternate manner, present embodiment is not done concrete qualification to this.
Wherein, determination module 406 specifically is used to point out the user to select the unit type of designated equipment, is searching the transcoding parameter that is complementary with designated equipment in the stored parameters database in advance according to the unit type that the user selects; Or the prompting user is provided with the transcoding parameter, and the transcoding parameter that the user is provided with is confirmed as the transcoding parameter that is complementary with designated equipment.
In sum; The device that present embodiment provides through when downloading audio/video file, carries out format conversion to it simultaneously; Make the audio/video file of download satisfy the call format of various device to audio/video file; Thereby eliminated the form obstacle that exists when downloading audio/video file, and owing to need not other download formats crossover tool, thereby can simplify user's operation.
Need to prove: the download apparatus of the audio/video file that the foregoing description provides is when downloading audio/video file; Only the division with above-mentioned each functional module is illustrated; In the practical application; Can as required above-mentioned functions be distributed by the different functional completion, the internal structure that is about to device is divided into different functional, to accomplish all or part of function of above description.In addition, the method for down loading embodiment of the download apparatus of the audio/video file that the foregoing description provides and audio/video file belongs to same design, and its concrete implementation procedure sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
All or part of step in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, like CD or hard disk etc.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for down loading of an audio/video file is characterized in that, said method comprises:
Each fragment of the audio/video file that download user is selected, and each fragment carried out structural analysis;
Judge according to analysis result whether said each fragment satisfies the format conversion condition;
When said each fragment satisfies the format conversion condition, with the form that format conversion becomes and designated equipment is complementary of said each fragment.
2. method according to claim 1 is characterized in that, said each fragment is carried out structural analysis, specifically comprises:
Discern the file type of said audio/video file according to each fragment, and structure elucidation said each fragment corresponding, obtain the structural information of said each fragment according to the file type that identifies, with the structural information of said each fragment as analysis result.
3. method according to claim 2 is characterized in that, saidly judges that according to analysis result whether said each fragment satisfies the format conversion condition, specifically comprises:
Judge according to the structural information of said each fragment whether the file header of said audio/video file and the index data of end-of-file download success, and judge according to the index data of said file header and end-of-file whether said each fragment is current fragment to be converted;
If the index data of the file header of said audio/video file and end-of-file is downloaded successfully, and judge that according to the index data of said file header and end-of-file said each fragment is current fragment to be converted, judge that then said each fragment satisfies the format conversion condition; Otherwise, judge said each fragment unmet format conversion condition;
Correspondingly, judge after said each fragment unmet format conversion condition, also comprise:
The fragment of unmet format conversion condition is carried out buffer memory, until satisfying the format conversion condition.
4. method according to claim 1 is characterized in that, said format conversion with said each fragment becomes before the form that is complementary with designated equipment, also comprises:
Definite transcoding parameter that is complementary with said designated equipment;
Correspondingly, said format conversion with said each fragment becomes the form that is complementary with designated equipment, specifically comprises:
Said each fragment is carried out audio/video flow separate, obtain audio data stream and video data stream;
To said audio data stream and video data stream decoding, obtain not audio compressed data stream and uncompressed video data stream;
Said not audio compressed data stream and uncompressed video data stream are encoded according to the transcoding parameter that is complementary with said designated equipment, obtain audio compressed data stream and compressed video data stream;
Said audio compressed data stream and compressed video data stream are merged, obtain the audio/video file that form and said designated equipment are complementary.
5. method according to claim 4 is characterized in that, said definite transcoding parameter that is complementary with said designated equipment specifically comprises:
The prompting user selects the unit type of designated equipment, is searching the transcoding parameter that is complementary with said designated equipment in the stored parameters database in advance according to the unit type that said user selects;
Or the prompting user is provided with the transcoding parameter, and the transcoding parameter that said user is provided with is confirmed as the transcoding parameter that is complementary with said designated equipment.
6. the download apparatus of an audio/video file is characterized in that, said device comprises:
Download module is used for each fragment of the audio/video file that download user selects;
Analysis module is used for each fragment that said download module is downloaded is carried out structural analysis;
Judge module is used for judging according to the analysis result of said analysis module whether said each fragment satisfies the format conversion condition;
Modular converter is used for when said judge module judges that said each fragment satisfies the format conversion condition, with the form that format conversion becomes and designated equipment is complementary of said each fragment.
7. device according to claim 6; It is characterized in that; Said analysis module specifically is used for discerning according to each fragment the file type of said audio/video file, and structure elucidation said each fragment corresponding according to the file type that identifies; Obtain the structural information of said each fragment, with the structural information of said each fragment as analysis result.
8. device according to claim 7; It is characterized in that; Said judge module; Specifically be used for judging according to the structural information of said each fragment whether the file header of said audio/video file and the index data of end-of-file download success, and judge according to the index data of said file header and end-of-file whether said each fragment is current fragment to be converted; If the index data of the file header of said audio/video file and end-of-file is downloaded successfully, and judge that according to the index data of said file header and end-of-file said each fragment is current fragment to be converted, judge that then said each fragment satisfies the format conversion condition; Otherwise, judge said each fragment unmet format conversion condition;
Correspondingly, said device also comprises:
Cache module is used for when said judge module is judged said each fragment unmet format conversion condition, the fragment of unmet format conversion condition being carried out buffer memory, until satisfying the format conversion condition.
9. device according to claim 6 is characterized in that, said device also comprises:
Determination module is used for before format conversion become and designated equipment be complementary the form of said modular converter with said each fragment, confirming the transcoding parameter that is complementary with said designated equipment;
Correspondingly, said modular converter specifically comprises:
The audio/video flow separative element is used for that said each fragment is carried out audio/video flow and separates, and obtains audio data stream and video data stream;
Decoding unit is used for said audio/video flow separative element is separated audio data stream and the video data stream decoding that obtains, and obtains not audio compressed data stream and uncompressed video data stream;
Coding unit; The transcoding parameter that is complementary with said designated equipment that not audio compressed data stream that is used for said decoding unit decodes is obtained and uncompressed video data stream are confirmed according to said determination module is encoded, and obtains audio compressed data stream and compressed video data stream;
The audio/video flow merge cells is used for audio compressed data stream and compressed video data stream that said coding unit coding obtains are merged, and obtains the audio/video file that form and said designated equipment are complementary.
10. device according to claim 9; It is characterized in that; Said determination module specifically is used to point out the user to select the unit type of designated equipment, is searching the transcoding parameter that is complementary with said designated equipment in the stored parameters database in advance according to the unit type that said user selects; Or the prompting user is provided with the transcoding parameter, and the transcoding parameter that said user is provided with is confirmed as the transcoding parameter that is complementary with said designated equipment.
CN201010272312.XA 2010-09-01 2010-09-01 Method and device for downloading audio-visual files Active CN102387177B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010272312.XA CN102387177B (en) 2010-09-01 2010-09-01 Method and device for downloading audio-visual files
PCT/CN2011/079149 WO2012028096A1 (en) 2010-09-01 2011-08-31 Method and apparatus for downloading audio-video file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010272312.XA CN102387177B (en) 2010-09-01 2010-09-01 Method and device for downloading audio-visual files

Publications (2)

Publication Number Publication Date
CN102387177A true CN102387177A (en) 2012-03-21
CN102387177B CN102387177B (en) 2015-05-06

Family

ID=45772166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010272312.XA Active CN102387177B (en) 2010-09-01 2010-09-01 Method and device for downloading audio-visual files

Country Status (2)

Country Link
CN (1) CN102387177B (en)
WO (1) WO2012028096A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573922A (en) * 2014-11-07 2016-05-11 中兴通讯股份有限公司 Method and device for realizing data format conversion
WO2016095166A1 (en) * 2014-12-15 2016-06-23 深圳Tcl数字技术有限公司 Method and device for extracting meta information of multimedia file
CN106686443A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Media playback method, media playback terminal and media playback system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023081A1 (en) * 2000-08-15 2002-02-21 Bazan Silvia L. System and method for providing medical information via the internet without the need for broadband connectivity
US20080034276A1 (en) * 2006-08-04 2008-02-07 The Directv Group, Inc. Distributed media-aggregation systems and methods to operate the same
CN101447994A (en) * 2008-12-30 2009-06-03 深圳市迅雷网络技术有限公司 Method for downloading and playing multimedia file and equipment thereof
CN101741730A (en) * 2009-12-02 2010-06-16 成都市华为赛门铁克科技有限公司 Method and equipment for downloading file and method and system for providing file downloading service

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179153A1 (en) * 2004-03-22 2006-08-10 Nam-Yul Lee Streaming based contents distribution network system and methods for splitting, merging and retrieving files
CN101299702B (en) * 2008-06-06 2010-10-27 厦门时迅信息科技有限公司 Multimedia information wireless network transmission system and method supporting interaction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023081A1 (en) * 2000-08-15 2002-02-21 Bazan Silvia L. System and method for providing medical information via the internet without the need for broadband connectivity
US20080034276A1 (en) * 2006-08-04 2008-02-07 The Directv Group, Inc. Distributed media-aggregation systems and methods to operate the same
CN101447994A (en) * 2008-12-30 2009-06-03 深圳市迅雷网络技术有限公司 Method for downloading and playing multimedia file and equipment thereof
CN101741730A (en) * 2009-12-02 2010-06-16 成都市华为赛门铁克科技有限公司 Method and equipment for downloading file and method and system for providing file downloading service

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573922A (en) * 2014-11-07 2016-05-11 中兴通讯股份有限公司 Method and device for realizing data format conversion
CN105573922B (en) * 2014-11-07 2020-07-10 中兴通讯股份有限公司 Method and device for realizing data format conversion
WO2016095166A1 (en) * 2014-12-15 2016-06-23 深圳Tcl数字技术有限公司 Method and device for extracting meta information of multimedia file
CN106686443A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Media playback method, media playback terminal and media playback system
WO2017080427A1 (en) * 2015-11-10 2017-05-18 中兴通讯股份有限公司 Media playing method, terminal, system and computer storage medium

Also Published As

Publication number Publication date
WO2012028096A1 (en) 2012-03-08
CN102387177B (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
CN101841692B (en) Method for fast forwarding and fast rewinding video stream
US20170111414A1 (en) Video playing method and device
CN104244023B (en) Video cloud editing system and method
CN103165151B (en) Method for broadcasting multimedia file and device
CN102074257A (en) Software and hardware-decoding general multi-media playing equipment and playing method thereof
CN101501775A (en) Media timeline processing infrastructure
CN104967862A (en) Video storage method and device, and video searching method and device
CN103716662A (en) Mixed transmission method and server
US20090007208A1 (en) Program, data processing method, and system of same
CN102098553A (en) Video transmission method and system as well as video server
US20090045987A1 (en) Method and apparatus for encoding/decoding metadata
CN102510519A (en) Streaming media data processing method, playing method and device
CN106358047A (en) Method and device for playing streaming media video
CN102118539A (en) Multimedia playing terminal as well as playing method and device for dragging multimedia files
CN102387177B (en) Method and device for downloading audio-visual files
KR101517959B1 (en) Method for Adaptive Streaming
CN105224308B (en) The method and apparatus for establishing playlist for MTP equipment
CN106899881B (en) Audio and video file playing method and device
CN103430558A (en) A method for optimizing a video stream
CN103501457B (en) The method and apparatus that a kind of program is play
CN110569417A (en) cultural cloud platform resource pushing method
US9070403B2 (en) Processing of scalable compressed video data formats for nonlinear video editing systems
CN102780878A (en) Method and system for acquiring media files
CN104333765A (en) Processing method and device of video live streams

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant