CN102387177B - Method and device for downloading audio-visual files - Google Patents
Method and device for downloading audio-visual files Download PDFInfo
- Publication number
- CN102387177B CN102387177B CN201010272312.XA CN201010272312A CN102387177B CN 102387177 B CN102387177 B CN 102387177B CN 201010272312 A CN201010272312 A CN 201010272312A CN 102387177 B CN102387177 B CN 102387177B
- Authority
- CN
- China
- Prior art keywords
- fragment
- audio
- file
- data stream
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000006243 chemical reaction Methods 0.000 claims abstract description 78
- 238000004458 analytical method Methods 0.000 claims abstract description 24
- 239000012634 fragment Substances 0.000 claims description 170
- 238000000926 separation method Methods 0.000 claims description 6
- 230000004888 barrier function Effects 0.000 abstract 1
- 238000012916 structural analysis Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
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
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 multimedia recreation function, general subscriber equipment both provides audio-video playing function.But because the form of the supported audio/video file of some subscriber equipment is limited, and need to obtain audio/video file from the Internet, and the form of audio/video file on the Internet is of a great variety, often cannot play when being thus directly downloaded on subscriber equipment by the audio/video file on the Internet.
In order to enable audio/video file normal play on a user device, a kind of implementation needs through downloading and format conversion two processes, and when carrying out format conversion, need other download formats crossover tool; Another implementation sets up different user devices prefecture to meet the particular requirement of different user devices to audio-visual format by some the resources of movie & TV websites.
Realizing in process of the present invention, inventor finds that prior art at least exists following shortcoming:
Because general audio-visual format crossover tool is all partially specialized, domestic consumer uses these instruments often to have higher threshold, and thus the first implementation is comparatively complicated; And when meeting the call format of different user devices to audio/video file by website, online movie resources shifting is become to be applicable to the form of special user equipment by the operation cost needing cost higher, and the huge number of subscriber equipment, be difficult to the requirement meeting all subscriber equipmenies.
Summary of the invention
In order to meet the call format of various subscriber equipment to audio/video file, eliminating the form obstacle existed when downloading audio/video file, and simplifying user operation, embodiments providing a kind of method for down loading and device of audio/video file.Described technical scheme is as follows:
On the one hand, provide a kind of method for down loading of audio/video file, described method comprises:
Each fragment of the audio/video file that download user is selected, the file type of audio/video file according to each fragment identification, and according to structure elucidation corresponding to the file type identified each fragment, obtain the structural information of described each fragment, using the structural information of described each fragment as analysis result;
Judge whether described each fragment meets format conversion condition according to analysis result;
The fragment not meeting format conversion condition is carried out buffer memory, until meet format conversion condition;
When described each fragment meets format conversion condition, prompting user selects the unit type of designated equipment, searches according to the unit type that described user selects the transcoding parameter matched with described designated equipment in the parameter database prestored; Or prompting user arranges transcoding parameter, the transcoding parameter that described user is arranged is defined as the transcoding parameter matched with described designated equipment;
Described each fragment is carried out audio/video flow separation, obtain audio data stream and video data stream, to described audio data stream and video data stream decoding, obtain uncompressed audio data stream and uncompressed video data stream, described uncompressed audio data stream and uncompressed video data stream are encoded according to the transcoding parameter matched with described designated equipment, obtain audio compressed data stream and compressed video data stream, described audio compressed data stream and compressed video data stream are merged, obtains the audio/video file that form and described designated equipment match;
Describedly judge whether described each fragment meets format conversion condition, specifically comprises according to analysis result:
Judge whether the file header of described audio/video file and the index data of end-of-file are downloaded successfully according to the structural information of described each fragment, and judge whether described each fragment is current fragment to be converted according to the index data of described file header and end-of-file;
If the file header of described audio/video file and the index data of end-of-file are downloaded successfully, and judge that described each fragment is current fragment to be converted according to the index data of described file header and end-of-file, then judge that described each fragment meets format conversion condition; Otherwise, judge that described each fragment does not meet format conversion condition.
On the other hand, additionally provide a kind of download apparatus of audio/video file, described device comprises:
Download module, for each fragment of the audio/video file that download user is selected;
Analysis module, specifically for the file type of audio/video file according to each fragment identification, and according to structure elucidation corresponding to the file type identified each fragment, obtain the structural information of described each fragment, using the structural information of described each fragment as analysis result;
Judge module, for judging according to the analysis result of described analysis module whether described each fragment meets format conversion condition;
Cache module, during for judging that described each fragment does not meet format conversion condition at described judge module, carries out buffer memory by described each fragment, until meet format conversion condition;
Determination module, during for judging that described each fragment meets format conversion condition at described judge module, prompting user selects the unit type of designated equipment, searches according to the unit type that described user selects the transcoding parameter matched with described designated equipment in the parameter database prestored; Or prompting user arranges transcoding parameter, the transcoding parameter that described user is arranged is defined as the transcoding parameter matched with described designated equipment;
Modular converter, for described each fragment is carried out audio/video flow separation, obtain audio data stream and video data stream, to described audio data stream and video data stream decoding, obtain uncompressed audio data stream and uncompressed video data stream, described uncompressed audio data stream and uncompressed video data stream are encoded according to the transcoding parameter matched with described designated equipment, obtain audio compressed data stream and compressed video data stream, described audio compressed data stream and compressed video data stream are merged, obtain the audio/video file that form and described designated equipment match,
Described judge module, specifically for judging according to the structural information of described each fragment whether the file header of described audio/video file and the index data of end-of-file are downloaded successfully, and judge whether described each fragment is current fragment to be converted according to the index data of described file header and end-of-file; If the file header of described audio/video file is downloaded successfully, and judge that described each fragment is current fragment to be converted according to the index data of described file header and end-of-file, then judge that described each fragment meets format conversion condition; Otherwise, judge that described each fragment does not meet format conversion condition.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
By when downloading audio/video file, format conversion is carried out to it simultaneously, the audio/video file of download is enable to meet the call format of various subscriber equipment to audio/video file, thus eliminate the form obstacle existed when downloading audio/video file, and due to without the need to other download formats crossover tool, thus can user operation be simplified.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method for down loading flow chart of the audio/video file that the embodiment of the present invention one provides;
Fig. 2 is the method for down loading flow chart of the audio/video file that the embodiment of the present invention two provides;
Fig. 3 is that the transcoding parameter that the embodiment of the present invention two provides arranges schematic diagram;
Fig. 4 is the download apparatus structural representation of the audio/video file that the embodiment of the present invention three provides;
Fig. 5 is the download apparatus structural representation of the another kind of audio/video file that the embodiment of the present invention three provides;
Fig. 6 is the download apparatus structural representation of another audio/video file that the embodiment of the present invention three provides;
Fig. 7 is the modular converter structural representation that the embodiment of the present invention three provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
See Fig. 1, present embodiments provide a kind of method for down loading of audio/video file, the method flow process is specific as follows:
101: each fragment of the audio/video file that download user is selected, and structural analysis is carried out to each fragment;
102: judge whether each fragment meets format conversion condition according to analysis result;
103: when each fragment meets format conversion condition, the format conversion of each fragment is become the form matched with designated equipment.
The method that the present embodiment provides, by when downloading audio/video file, format conversion is carried out to it simultaneously, the audio/video file of download is made to meet the call format of various subscriber equipment to audio/video file, thus eliminate the form obstacle existed when downloading audio/video file, and due to without the need to other download formats crossover tool, thus can user operation be simplified.
Embodiment two
Present embodiments provide a kind of method for down loading of audio/video file, the format conversion of each fragment, after each fragment of audio/video file being downloaded, is directly become the form matched with designated equipment by the method, thus eliminates the form obstacle existed when downloading audio/video file.See Fig. 2, the method flow that the present embodiment provides is specific as follows:
201: each fragment of the audio/video file that download user is selected, and structural analysis is carried out to each fragment;
For this step, in order to the audio/video file that download user is expected, the method that the present embodiment provides can be user and provides the entrance searching for audio-visual resource, to be searched by the entrance of the audio-visual resource of this search by user and select the audio/video file wanting to download, starting to download audio/video file after adding downloading task according to the selection of user.The present embodiment does not limit concrete downloading mode, because existing downloading mode generally all adopts P2P (Peer-to-Peer, point-to-point) technology, burst can be carried out to audio/video file during download, such as, with 512KB size for elementary cell carries 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 download file.
After each fragment of audio/video file is downloaded, in order to successfully format conversion can be carried out to it, need to carry out structural analysis to each fragment.When carrying out structural analysis, first can identify the file type of audio/video file according to each fragment, and according to each fragment of the structure elucidation that the file type identified is corresponding, 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, the present embodiment does not do concrete restriction.Specifically can be identified by the file suffixes name of each fragment, file type identification byte.Such as, rmvb type file is character " RMF " in three bytes that file starts.
During fragment each according to the structure elucidation that the file type identified is corresponding, the file structure specification corresponding to the file type of audio/video file can carry out the structure elucidation of fragment.The structure that the audio/video file of different file type is corresponding different.The structure of general audio/video file includes index data (INDX) three parts of audio, video data (DATA) in the descriptor (HEAD) of file header, file and end-of-file.File header describes the overall information of file, includes but not limited to the quantity of audio/video flow in file duration, file, the details etc. of audio/video flow; The index data of end-of-file describes the positional information of file data blocks, the file address etc. that such as N number of fragment is corresponding.The descriptor of file header and the index data of end-of-file are general shorter, such as, and the data end to end of about about the 512KB of RMVB file.By resolving the structure of each fragment, can judge whether the various piece of audio/video file has been downloaded.
202: judge whether each fragment meets format conversion condition according to analysis result, if not, then perform step 203, otherwise, perform step 204;
Particularly, each fragment due to audio/video file downloads in out of order mode, and carry out format conversion need change according to each fragment putting in order in audio/video file, namely need to change from first fragment of audio/video file, even if other fragments have been downloaded complete, if but first fragment is also unsuccessful downloads to this locality, still need to wait for, until first fragment has been downloaded, and after format conversion is carried out to it, format conversion could be carried out successively to other fragments.Therefore, when carrying out format conversion to each fragment, need to ensure that each fragment is current fragment to be converted.
The determination of current fragment to be converted is according to a graded, although each fragment is out of order when downloading, but because file header describes the details etc. of audio/video flow in file duration and file, the index data of end-of-file describes the positional information of file fragment, thus can draw the order of each fragment in audio/video file according to the index data of file header and end-of-file, can judge whether each fragment is current fragment to be converted.
That is, format conversion condition is downloaded successfully except the index data of the file header and end-of-file that require audio/video file, also requires can judge that fragment is current fragment to be converted according to the index data of file header and end-of-file.When then judging whether each fragment meets format conversion condition according to analysis result, first need to judge whether the file header of audio/video file and the index data of end-of-file are downloaded successfully according to the structural information of each fragment, and judge whether each fragment is current fragment to be converted according to the index data of file header and end-of-file; If the index data of the file header of audio/video file and end-of-file is downloaded successfully, and judge that each fragment is current fragment to be converted according to the index data of file header and end-of-file, then judge that each fragment meets format conversion condition; Otherwise, judge that each fragment does not meet format conversion condition.
The 5th fragment being audio/video file for the fragment of current download, if the structural information according to each fragment downloaded judges that the file header of audio/video file and the index data of end-of-file are not also downloaded successfully, namely mean that the order of each fragment of out of order download is not also determined, thus show that all fragments downloaded all do not meet format conversion condition; In addition, even if judge that the file header of audio/video file and the index data of end-of-file are all downloaded successfully, if but current fragment to be converted is the 4th fragment, then still judge that the 5th fragment does not meet format conversion condition; Only when the index data of the file header and end-of-file of judging audio/video file is all downloaded successfully, and the 4th fragment successfully carries out format conversion, and when current fragment to be converted is just the 5th fragment, just can judge to show that the 5th fragment meets format conversion condition.
203: the fragment not meeting format conversion condition is carried out buffer memory, until after meeting format conversion condition, perform step 204;
For this step, if current clip does not meet switch condition, need to be carried out buffer memory, until meet format conversion condition, when namely waiting for current fragment to be converted for this fragment, then continue to carry out format conversion to it, thus continue to perform subsequent step 204.For current fragment to be converted for the 5th fragment in audio/video file, if when the 5th fragment is not downloaded successful, 6th fragment has been downloaded complete, then the 6th fragment is not owing to being current fragment to be converted, thus advanced row cache is needed, until the 5th fragment is downloaded complete, and after successfully carrying out format conversion, the 6th fragment just meets format conversion condition.
204: the format conversion meeting the fragment of format conversion condition is become the form matched with designated equipment.
Particularly, in order to the format conversion of fragment being become the form matched with designated equipment, the method that the present embodiment provides, before carrying out format conversion operation, needs the transcoding parameter determining to match with designated equipment.During specific implementation, transcoding parameter that can be corresponding at the equipment prestoring different model, and after storing with the form of parameter database, prompting user selects the unit type of designated equipment, searches according to the unit type that user selects the transcoding parameter matched with designated equipment in the parameter database prestored.For the selection interface shown in Fig. 3, prompting user selects to wish audio/video file is downloaded on the equipment of what model.According to the unit type of user's input, in parameter database, search corresponding transcoding parameter.Transcoding parameter includes but not limited to file type, video resolution, video frame rate, Video coding type, audio encoding type, video code rate and audio code rate etc. that transcoding exports, and the present embodiment does not limit the particular content of transcoding parameter.Still for the transcoding parameter shown in Fig. 3, the file type in transcoding parameter is MP4, video resolution 640x360, video frame rate 15fps, Video coding type MPEG4, audio encoding type AAC, video code rate 768kbps and audio code rate 64kbps etc.
If do not prestore the transcoding parameter that the equipment of different model is corresponding, then can point out user that transcoding parameter is set, and the transcoding parameter that user is arranged is defined as the transcoding parameter that matches with designated equipment, namely manually be completed the setting of transcoding parameter by user.
Except above-mentioned two kinds determine the mode of transcoding parameter except, can also select alternate manner, the present embodiment does not do concrete restriction to this.After determining the transcoding parameter matched with designated equipment, when the format conversion of each fragment being become the form matched with designated equipment, specifically comprise:
Each fragment is carried out audio/video flow separation, obtains audio data stream and video data stream;
To audio data stream and video data stream decoding, obtain uncompressed audio data stream and uncompressed video data stream;
Uncompressed audio data stream and uncompressed video data stream are encoded according to the transcoding parameter matched with designated equipment, obtains audio compressed data stream and compressed video data stream;
Audio compressed data stream and compressed video data stream are merged, obtains the audio/video file that form and designated equipment match.
Realize all in the prior art because audio/video flow is separated, decodes, encodes and merges, the present embodiment does not do concrete restriction to this, and repeats no more.By compression Video & Audio data stream merging, after obtaining the audio/video file that form and designated equipment match, designated equipment directly can carry out the broadcasting of audio/video file, and without the need to download formats crossover tool in addition again, thus can simplify user operation.
It should be noted that, the method that the present embodiment provides after all fragments of audio/video file all being downloaded, then can carry out format conversion to all fragments successively or simultaneously.But in order to save time, the method that the present embodiment provides can also when often downloading a fragment, respectively format conversion is performed to the successful fragment of download, and format conversion is carried out again after waiting for all fragments downloads by audio/video file, can also take other switching strategies, the present embodiment does not limit concrete switching strategy.
The method that the present embodiment provides, by when downloading audio/video file, format conversion is carried out to it simultaneously, the audio/video file of download is made to meet the call format of various equipment to audio/video file, thus eliminate the form obstacle existed when downloading audio/video file, and due to without the need to other download formats crossover tool, thus can user operation be simplified.
Embodiment three
See Fig. 4, present embodiments provide a kind of download apparatus of audio/video file, this device comprises:
Download module 401, for each fragment of the audio/video file that download user is selected;
Analysis module 402, carries out structural analysis for each fragment downloaded download module 401;
According to the analysis result of analysis module 402, judge module 403, for judging whether each fragment meets format conversion condition;
Modular converter 404, for when judge module 403 judges that each fragment meets format conversion condition, becomes the form matched with designated equipment by the format conversion of each fragment.
Wherein, analysis module 402, specifically for the file type according to each fragment identification audio/video file, and according to each fragment of the structure elucidation that the file type identified is corresponding, obtain the structural information of each fragment, using the structural information of each fragment as analysis result.
According to the index data of file header and end-of-file, judge module 403, specifically 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 are downloaded successfully, and judges 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 each fragment is current fragment to be converted according to the index data of file header and end-of-file, then judge that each fragment meets format conversion condition; Otherwise, judge that each fragment does not meet format conversion condition;
Correspondingly, see Fig. 6, this device also comprises:
Cache module 405, for when judge module 403 judges that each fragment does not meet format conversion condition, carries out buffer memory by the fragment not meeting format conversion condition, until meet format conversion condition.
Further, see Fig. 7, this device also comprises:
Determination module 406, before at modular converter 404 format conversion of each fragment being become the form that matches with designated equipment, determines the transcoding parameter matched with designated equipment;
Correspondingly, modular converter 404, specifically comprises:
Audio/video flow separative element 404a, for each fragment is carried out audio/video flow separation, obtains audio data stream and video data stream;
Decoding unit 404b, for being separated the audio data stream and video data stream decoding that obtain to audio/video flow separative element 404a, obtains uncompressed audio data stream and uncompressed video data stream;
Coding unit 404c, the transcoding parameter matched with designated equipment that the uncompressed audio data stream obtained for being decoded by decoding unit 404b and uncompressed video data stream are determined 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 obtained for being encoded by coding unit 404c and compressed video data stream merge, and obtain the audio/video file that form and designated equipment match.
It should be noted that, in order to save time, format conversion can be carried out to each fragment of audio/video file simultaneously, the device that then the present embodiment provides can comprise multiple modular converter 404, or a modular converter 404 comprises multiple decoding unit 404b and coding unit 404c, or take alternate manner, the present embodiment does not do concrete restriction to this.
Wherein, determination module 406, selects the unit type of designated equipment specifically for prompting user, search according to the unit type that user selects the transcoding parameter matched with designated equipment in the parameter database prestored; Or prompting user arranges transcoding parameter, the transcoding parameter that user is arranged is defined as the transcoding parameter matched with designated equipment.
In sum, the device that the present embodiment provides, by when downloading audio/video file, format conversion is carried out to it simultaneously, the audio/video file of download is made to meet the call format of various equipment to audio/video file, thus eliminate the form obstacle existed when downloading audio/video file, and due to without the need to other download formats crossover tool, thus user operation can be simplified.
It should be noted that: the download apparatus of the audio/video file that above-described embodiment provides is when downloading audio/video file, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the download apparatus of the audio/video file that above-described embodiment provides and the method for down loading embodiment of audio/video file belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
All or part of step in the embodiment of the present invention, can utilize software simulating, and corresponding software program can be stored in the storage medium that can read, as CD or hard disk etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (2)
1. a method for down loading for audio/video file, is characterized in that, described method comprises:
Each fragment of the audio/video file that download user is selected, the file type of audio/video file according to each fragment identification, and according to structure elucidation corresponding to the file type identified each fragment, obtain the structural information of described each fragment, using the structural information of described each fragment as analysis result;
Judge whether described each fragment meets format conversion condition according to analysis result;
The fragment not meeting format conversion condition is carried out buffer memory, until meet format conversion condition;
When described each fragment meets format conversion condition, prompting user selects the unit type of designated equipment, searches according to the unit type that described user selects the transcoding parameter matched with described designated equipment in the parameter database prestored; Or prompting user arranges transcoding parameter, the transcoding parameter that described user is arranged is defined as the transcoding parameter matched with described designated equipment;
Described each fragment is carried out audio/video flow separation, obtain audio data stream and video data stream, to described audio data stream and video data stream decoding, obtain uncompressed audio data stream and uncompressed video data stream, described uncompressed audio data stream and uncompressed video data stream are encoded according to the transcoding parameter matched with described designated equipment, obtain audio compressed data stream and compressed video data stream, described audio compressed data stream and compressed video data stream are merged, obtains the audio/video file that form and described designated equipment match;
Wherein, judge whether described each fragment meets format conversion condition, specifically comprises according to analysis result:
Judge whether the file header of described audio/video file and the index data of end-of-file are downloaded successfully according to the structural information of described each fragment, and judge whether described each fragment is current fragment to be converted according to the index data of described file header and end-of-file;
If the file header of described audio/video file and the index data of end-of-file are downloaded successfully, and judge that described each fragment is current fragment to be converted according to the index data of described file header and end-of-file, then judge that described each fragment meets format conversion condition; Otherwise, judge that described each fragment does not meet format conversion condition.
2. a download apparatus for audio/video file, is characterized in that, described device comprises:
Download module, for each fragment of the audio/video file that download user is selected;
Analysis module, specifically for the file type of audio/video file according to each fragment identification, and according to structure elucidation corresponding to the file type identified each fragment, obtain the structural information of described each fragment, using the structural information of described each fragment as analysis result;
Judge module, for judging according to the analysis result of described analysis module whether described each fragment meets format conversion condition;
Cache module, during for judging that described each fragment does not meet format conversion condition at described judge module, carries out buffer memory by the fragment not meeting format conversion condition, until meet format conversion condition;
Determination module, during for judging that described each fragment meets format conversion condition at described judge module, prompting user selects the unit type of designated equipment, searches according to the unit type that described user selects the transcoding parameter matched with described designated equipment in the parameter database prestored; Or prompting user arranges transcoding parameter, the transcoding parameter that described user is arranged is defined as the transcoding parameter matched with described designated equipment;
Modular converter, for described each fragment is carried out audio/video flow separation, obtain audio data stream and video data stream, to described audio data stream and video data stream decoding, obtain uncompressed audio data stream and uncompressed video data stream, described uncompressed audio data stream and uncompressed video data stream are encoded according to the transcoding parameter matched with described designated equipment, obtain audio compressed data stream and compressed video data stream, described audio compressed data stream and compressed video data stream are merged, obtain the audio/video file that form and described designated equipment match,
Described judge module, specifically for judging according to the structural information of described each fragment whether the file header of described audio/video file and the index data of end-of-file are downloaded successfully, and judge whether described each fragment is current fragment to be converted according to the index data of described file header and end-of-file; If the file header of described audio/video file and the index data of end-of-file are downloaded successfully, and judge that described each fragment is current fragment to be converted according to the index data of described file header and end-of-file, then judge that described each fragment meets format conversion condition; Otherwise, judge that described each fragment does not meet format conversion condition.
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 CN102387177A (en) | 2012-03-21 |
CN102387177B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105573922B (en) * | 2014-11-07 | 2020-07-10 | 中兴通讯股份有限公司 | Method and device for realizing data format conversion |
CN105760376B (en) * | 2014-12-15 | 2019-04-02 | 深圳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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 (4)
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 |
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 |
US9225761B2 (en) * | 2006-08-04 | 2015-12-29 | The Directv Group, Inc. | Distributed media-aggregation systems and methods to operate the same |
CN101299702B (en) * | 2008-06-06 | 2010-10-27 | 厦门时迅信息科技有限公司 | Multimedia information wireless network transmission system and method supporting interaction |
-
2010
- 2010-09-01 CN CN201010272312.XA patent/CN102387177B/en active Active
-
2011
- 2011-08-31 WO PCT/CN2011/079149 patent/WO2012028096A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
WO2012028096A1 (en) | 2012-03-08 |
CN102387177A (en) | 2012-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103414949B (en) | A kind of multimedia edit system based on intelligent television and method | |
US20170111414A1 (en) | Video playing method and device | |
CN100517322C (en) | Apparatus and method for media conversion | |
EP2830322A1 (en) | Method, terminal and server for implementing trickplay | |
CN103165151B (en) | Method for broadcasting multimedia file and device | |
CN104244023B (en) | Video cloud editing system and method | |
CN101164055A (en) | Media timeline sorting | |
CN101501775A (en) | Media timeline processing infrastructure | |
CN106254867A (en) | Based on picture group, video file is carried out the method and system of transcoding | |
CN103491427A (en) | Method and device for processing video | |
CN103716662A (en) | Mixed transmission method and server | |
CN112866730B (en) | Streaming media data transmission method, device, system, electronic equipment and storage medium | |
CN102510519A (en) | Streaming media data processing method, playing method and device | |
CN105992044A (en) | Method and system of transcoding HLS to RTMP live streaming | |
CN106210908A (en) | A kind of advertisement sending method and device | |
CN102387177B (en) | Method and device for downloading audio-visual files | |
CN102203734B (en) | Conditional processing method and apparatus | |
CN103237215B (en) | Player method and playback equipment | |
CN106899881B (en) | Audio and video file playing method and device | |
CN101778287B (en) | Digital television navigation method, system and device | |
US20180020043A1 (en) | Method for playing audio/video and display device | |
CN103501457B (en) | The method and apparatus that a kind of program is play | |
CN1717030A (en) | Be used to store and search for the method and apparatus of broadcasting stream | |
CN104506390A (en) | Log storage method and device of road test system | |
CN102047662A (en) | Encoder |
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 |