CN106303587A - A kind of method and device downloading audio, video data - Google Patents

A kind of method and device downloading audio, video data Download PDF

Info

Publication number
CN106303587A
CN106303587A CN201610688926.3A CN201610688926A CN106303587A CN 106303587 A CN106303587 A CN 106303587A CN 201610688926 A CN201610688926 A CN 201610688926A CN 106303587 A CN106303587 A CN 106303587A
Authority
CN
China
Prior art keywords
file
thread
downloaded
download
video data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610688926.3A
Other languages
Chinese (zh)
Inventor
陈斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201610688926.3A priority Critical patent/CN106303587A/en
Publication of CN106303587A publication Critical patent/CN106303587A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • 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/81Monomedia components thereof
    • H04N21/8106Monomedia components thereof involving special audio data, e.g. different tracks for different languages
    • 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 kind of method and device downloading audio, video data, in order to realize quickly and conveniently downloading the purpose of audio, video data.Described method includes: receives the request downloading audio, video data, obtains the download address of one or more TS files of audio, video data to be downloaded;Adjust task management module, described task management module the one or more TS file has been distributed at least one thread, at least one thread described download the one or more TS file according to the download address of the one or more TS file.

Description

A kind of method and device downloading audio, video data
Technical field
The present invention relates to technical field of internet application, particularly to a kind of method and device downloading audio, video data.
Background technology
Along with the development of technology, broadcasting service and mobile service start gradually to merge, different content of multimedia and business In different transmission over networks, user wishes to utilize different terminal units (such as smart mobile phone, panel computer etc.) not These services can be enjoyed when accessing any network in the same time.
In correlation technique, Http stream (Streaming) transmission technology is used to realize the transmission of multi-medium data, i.e. audio frequency Or audio/video is input in the media encoders of server by video input device, the audio/video of input is entered by media encoders Row coding, generation TS file exports after carrying out segmentation to flow point section apparatus, is sent to dispensing device, and generates the rope of this TS file Quotation part, is distributed to client by HTTP.But, current scheme only supports single-threaded download, needs this technology of solution badly Problem.
Summary of the invention
The present invention provides a kind of method and device downloading audio, video data, regards in order to realize quickly and conveniently downloading sound The purpose of frequency evidence.
The present invention provides a kind of method downloading audio, video data, including:
Receive the request downloading audio, video data, obtain the download of one or more TS files of audio, video data to be downloaded Address;
Adjust task management module, described task management module the one or more TS file is distributed at least one Individual thread, is downloaded the one or more by least one thread described according to the download address of the one or more TS file TS file.
In an embodiment of the present invention, described task management module the one or more TS file is distributed at least One thread, is downloaded one or many by least one thread described according to the download address of the one or more TS file Individual TS file, including:
Multiple segmentations of first TS file in the one or more TS file are obtained by described task management module Respective download address, and create the array for recording the event of download;
At least one thread is given by multiple segment assignments of described first TS file, by institute by described task management module State at least one thread and download the plurality of segmentation according to the respective download address of multiple segmentations of described first TS file;Often After any thread at least one thread described has downloaded corresponding segmentation, remember in the described array created Record;
After determining that according to the record of described array described first TS file download completes, obtain the one or more The respective download address of multiple segmentations of second TS file in TS file, and empty the record of described array;
At least one thread is given by multiple segment assignments of described second TS file, by institute by described task management module State at least one thread and download the plurality of segmentation according to the respective download address of multiple segmentations of described second TS file;Often After any thread at least one thread described has downloaded corresponding segmentation, the described array after emptying is remembered Record, by that analogy, until having downloaded the one or more TS file.
In an embodiment of the present invention, described task management module the one or more TS file is distributed at least One thread, is downloaded one or many by least one thread described according to the download address of the one or more TS file Individual TS file, including:
The multiple segmentations being obtained each TS file in the one or more TS file by described task management module are each From download address, and for described each TS document creation for recording the array of the event of download;
By described task management module, described each TS file is distributed at least one thread, by least one line described Journey downloads the plurality of segmentation according to the respective download address of multiple segmentations of described each TS file;Whenever described at least one After any thread in thread has downloaded corresponding segmentation, in the described array created, carry out record;
After determining that according to the record of described array described each TS file download completes, described each TS file is sent To client player, to play described each TS file.
In an embodiment of the present invention, described request carries one or more TS of described audio, video data to be downloaded The download address of file, obtains the download address of one or more TS files of audio, video data to be downloaded, including:
The download address of one or more TS files of audio, video data to be downloaded is parsed from described request.
In an embodiment of the present invention, obtain the download address of one or more TS files of audio, video data to be downloaded, Including:
Obtain the ground of the source server of first agent's service, second agent's service and the audio, video data to be downloaded preset Location;
Utilize described first agent service and the address of described source server, obtain described audio, video data to be downloaded M3u8 file, and by described first agent service, described m3u8 file is resolved, obtain described audio, video data to be downloaded The download address of one or more TS files.
The present invention also provides for a kind of device downloading audio, video data, including:
Acquisition module, for receiving the request downloading audio, video data, obtains of audio, video data to be downloaded or many The download address of individual TS file;
Download module, for having adjusted task management module, by described task management module by the one or more TS literary composition Part distributes at least one thread, at least one thread described download according to the download address of the one or more TS file The one or more TS file.
In an embodiment of the present invention, described download module is additionally operable to:
Multiple segmentations of first TS file in the one or more TS file are obtained by described task management module Respective download address, and create the array for recording the event of download;
At least one thread is given by multiple segment assignments of described first TS file, by institute by described task management module State at least one thread and download the plurality of segmentation according to the respective download address of multiple segmentations of described first TS file;Often After any thread at least one thread described has downloaded corresponding segmentation, remember in the described array created Record;
After determining that according to the record of described array described first TS file download completes, obtain the one or more The respective download address of multiple segmentations of second TS file in TS file, and empty the record of described array;
At least one thread is given by multiple segment assignments of described second TS file, by institute by described task management module State at least one thread and download the plurality of segmentation according to the respective download address of multiple segmentations of described second TS file;Often After any thread at least one thread described has downloaded corresponding segmentation, the described array after emptying is remembered Record, by that analogy, until having downloaded the one or more TS file.
In an embodiment of the present invention, described download module is additionally operable to:
The multiple segmentations being obtained each TS file in the one or more TS file by described task management module are each From download address, and for described each TS document creation for recording the array of the event of download;
By described task management module, described each TS file is distributed at least one thread, by least one line described Journey downloads the plurality of segmentation according to the respective download address of multiple segmentations of described each TS file;Whenever described at least one After any thread in thread has downloaded corresponding segmentation, in the described array created, carry out record;
After determining that according to the record of described array described each TS file download completes, described each TS file is sent To client player, to play described each TS file.
In an embodiment of the present invention, described request carries one or more TS of described audio, video data to be downloaded The download address of file, described acquisition module is additionally operable to:
The download address of one or more TS files of audio, video data to be downloaded is parsed from described request.
In an embodiment of the present invention, described acquisition module is additionally operable to:
Obtain the ground of the source server of first agent's service, second agent's service and the audio, video data to be downloaded preset Location;
Utilize described first agent service and the address of described source server, obtain described audio, video data to be downloaded M3u8 file, and by described first agent service, described m3u8 file is resolved, obtain described audio, video data to be downloaded The download address of one or more TS files.
In embodiments of the present invention, receive the request downloading audio, video data, obtain one of audio, video data to be downloaded Or the download address of multiple TS file;Subsequently, adjust task management module, by task management module by one or more TS files Distribute at least one thread, at least one thread download one or more according to the download address of one or more TS files TS file.As can be seen here, the embodiment of the present invention utilizes at least one thread to download TS file, it is achieved quickly and conveniently download sound The purpose of video data.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from description Obtain it is clear that or understand by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Structure specifically noted in book, claims and accompanying drawing realizes and obtains.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with the reality of the present invention Execute example together for explaining the present invention, be not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 show in one embodiment of the invention the flow chart of the method downloading audio, video data;And
Fig. 2 show in one embodiment of the invention the structural representation of the device downloading audio, video data.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred reality described herein Execute example be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Being illustrated in figure 1 in one embodiment of the invention the flow chart of the method downloading audio, video data, the method can be wrapped Include following steps S11-S12.
Step S11, receives the request downloading audio, video data, obtains one or more TS literary composition of audio, video data to be downloaded The download address of part.
In this step, TS file refers to audio-video frequency content file, and its form is TS form.As introduced above, adopt at present The transmission of multi-medium data, i.e. audio or video input equipment is realized by sound/regard by Http stream (Streaming) transmission technology Frequency is input in the media encoders of server, and the audio/video of input is encoded by media encoders, generates the output of TS file After carrying out segmentation to flow point section apparatus, it is sent to dispensing device, and generates the index file of this TS file, be distributed to by HTTP Client.
When the download address of the one or more TS files carrying audio, video data to be downloaded in request, then from this request In parse the download address of one or more TS files of audio, video data to be downloaded.
Step S12, has adjusted task management module, task management module one or more TS files are distributed at least one Individual thread, is downloaded one or more TS files by least one thread according to the download address of one or more TS files.
In embodiments of the present invention, receive the request downloading audio, video data, obtain one of audio, video data to be downloaded Or the download address of multiple TS file;Subsequently, adjust task management module, by task management module by one or more TS files Distribute at least one thread, at least one thread download one or more according to the download address of one or more TS files TS file.As can be seen here, the embodiment of the present invention utilizes at least one thread to download TS file, it is achieved quickly and conveniently download sound The purpose of video data.
HTTP live Streaming (HLS) be Apple realize based on HTTP (Hypertext transfer Protocol, HTML (Hypertext Markup Language)) Streaming transfer protocol, it is possible to achieve the broadcasting of Streaming Media.HLS is based on http protocol Realizing, data stream is stored as continuous print, media file the longest at server end by HLS protocol, and transferring content includes two Part, one be m3u8 file (be that a kind of of regulation in Apple's HLS protocol describes file, by text mode to media file It is described, is made up of a series of labels);Two is MPEG-TS (Moving Pictures Experts Group/Motion Pictures Experts Group-Transport Stream, dynamic image Experts Group-Transport Stream) media file of form. M3u8 file is the index file of the media file establishment for these MPEG-TS forms.Client is constantly downloaded and plays this A little media files, are achieved that the broadcasting of Streaming Media.
Above step S11 obtains the download address of one or more TS files of audio, video data to be downloaded, the present invention Embodiment provides a kind of optional scheme, comprises the following steps A1-A2.
Step A1, obtains the source clothes of first agent's service, second agent's service and the audio, video data to be downloaded preset The address of business device.
In this step, the embodiment of the present invention pre-defines a class (comprising set method), and such inherits audio frequency and video number According to the function (or method) of player, and this apoplexy due to endogenous wind also add the function for downloading audio, video data, described use Include that first agent services in the function downloading audio, video data to service with second agent;First agent's clothes are obtained from this apoplexy due to endogenous wind Business and second agent service.
Step A2, utilizes first agent to service the address with source server, obtains the m3u8 literary composition of audio, video data to be downloaded Part, and by first agent's service, m3u8 file is resolved, obtain one or more TS files of audio, video data to be downloaded Download address.
In this step, the address of source server is sent to first agent's service by set method, and set method call is play The function of device, sends the request message of the m3u8 file obtaining audio, video data to be downloaded, wherein, carries in this request message The address of first agent's service, is serviced according to the request message received and the address of source server by first agent, takes from source The m3u8 file of audio, video data to be downloaded is obtained at business device.Specifically, first agent services the address according to source server, to Source server sends the request of the m3u8 file obtaining audio, video data to be downloaded;First agent services reception source server and returns The m3u8 file of audio, video data to be downloaded.First agent's service obtains audio, video data to be downloaded at source server After m3u8 file, m3u8 file is resolved, obtain the download of one or more TS files of audio, video data to be downloaded Address.
Substantially belong to text transfer protocol due to http protocol, be not appropriate for real-time streaming media.Therefore, in order to Facilitate implementation direct playing and playback (for time-shift service) and function that download limit, limit is seen, generally by programme content physically or logically It is divided into the subsection of many.Client is every according to program indexing (Media Presentation Description, MPD) information One or more segmentations of secondary downloads of media file play out, and wherein, the index etc. including partitioning in MPD information is believed Breath, then plays the decoding data downloaded.Client progressive download also plays the segmental file of described TS file.
Such as, client can first obtain the index information of this TS file, it is also possible to obtain when this TS file play by needs Take MPD (Media Presentation Description, the program indexing) information of this TS file, wherein, index information and MPD message file can be in same file, it is also possible to be positioned in different file, and, in order to not change original TS file Form, the description information (including key frame index information and/or MPD information) of TS file can be deposited in another file In.The file of the index information of record TS file is referred to as the index file of TS file.
In above step S12, task management module one or more TS files are distributed at least one thread, by extremely A few thread downloads one or more TS files according to the download address of one or more TS files, and the embodiment of the present invention provides A kind of optional scheme, the program comprises the following steps B1-B4.
Step B1, task management module the multiple segmentations obtaining first TS file in one or more TS file are each From download address, and create for recording the array of the event of download.
Multiple segment assignments of first TS file are given at least one thread by task management module, by extremely by step B2 A few thread downloads multiple segmentations according to the respective download address of multiple segmentations of first TS file;Whenever at least one line After any thread in journey has downloaded corresponding segmentation, in the array created, carry out record.
Step B3, after determining that according to the record of array first TS file download completes, obtains one or more TS literary composition The respective download address of multiple segmentations of second TS file in part, and empty the record of array.
Multiple segment assignments of second TS file are given at least one thread by task management module, by extremely by step B4 A few thread downloads multiple segmentations according to the respective download address of multiple segmentations of second TS file;Whenever at least one line After any thread in journey has downloaded corresponding segmentation, the array after emptying carries out record, by that analogy, until downloading Complete one or more TS file.
In the above-described embodiments, when client player (player) asks a TS file, task management module creates One array.After task management module is known that all threads are downloaded and terminated, and TS file download completes, player asks one again TS file, task management module empties former array, more again counts.
In above step S12, task management module one or more TS files are distributed at least one thread, by extremely A few thread downloads one or more TS files according to the download address of one or more TS files, and the embodiment of the present invention also carries Having supplied a kind of optional scheme, the program comprises the following steps C1-C3.
Step C1, is obtained multiple segmentations of each TS file in one or more TS file each by task management module Download address, and for each TS document creation for recording the array of the event of download.
Step C2, is distributed at least one thread by task management module by each TS file, by least one thread root Multiple segmentations are downloaded according to the respective download address of multiple segmentations of each TS file;Any thread at least one thread After download completes corresponding segmentation, in the array created, carry out record.
Step C3, after determining that according to the record of array each TS file download completes, is sent to visitor by each TS file Family end player, to play each TS file.
In the above-described embodiments, task management module sets up an array for each TS file, can have multiple array. When there being the thread free time, say, that current TS file download is enough completed by remaining thread, task management module is actively to clothes The next TS file of business device request, continues to download.Such as, a m3u8 file includes the download address of 3 TS files, so appointing Business management module is it is known that the download address of next TS file, can actively send out request.When player sends request Time, task management module need not send request to server again, but feed back directly to player.Or, when there being thread idle Time, task management module notes that player completes, player send request to server, triggers task management module and continues Distribution task.
It should be noted that in actual applications, above-mentioned all optional embodiments can be any in the way of using combination Combination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
Corresponding to the method downloading audio, video data in above-described embodiment, the present invention also provides for a kind of download audio frequency and video number According to device.It is illustrated in figure 2 in one embodiment of the invention the structural representation of the device downloading audio, video data, including:
Acquisition module 21, for receiving the request downloading audio, video data, obtain one of audio, video data to be downloaded or The download address of multiple TS files;
Download module 22, for having adjusted task management module, by described task management module by the one or more TS At least one thread distributed to by file, by under at least one the thread described download address according to the one or more TS file Carry the one or more TS file.
In an embodiment of the present invention, described download module 22 is additionally operable to:
Multiple segmentations of first TS file in the one or more TS file are obtained by described task management module Respective download address, and create the array for recording the event of download;
At least one thread is given by multiple segment assignments of described first TS file, by institute by described task management module State at least one thread and download the plurality of segmentation according to the respective download address of multiple segmentations of described first TS file;Often After any thread at least one thread described has downloaded corresponding segmentation, remember in the described array created Record;
After determining that according to the record of described array described first TS file download completes, obtain the one or more The respective download address of multiple segmentations of second TS file in TS file, and empty the record of described array;
At least one thread is given by multiple segment assignments of described second TS file, by institute by described task management module State at least one thread and download the plurality of segmentation according to the respective download address of multiple segmentations of described second TS file;Often After any thread at least one thread described has downloaded corresponding segmentation, the described array after emptying is remembered Record, by that analogy, until having downloaded the one or more TS file.
In an embodiment of the present invention, described download module 22 is additionally operable to:
The multiple segmentations being obtained each TS file in the one or more TS file by described task management module are each From download address, and for described each TS document creation for recording the array of the event of download;
By described task management module, described each TS file is distributed at least one thread, by least one line described Journey downloads the plurality of segmentation according to the respective download address of multiple segmentations of described each TS file;Whenever described at least one After any thread in thread has downloaded corresponding segmentation, in the described array created, carry out record;
After determining that according to the record of described array described each TS file download completes, described each TS file is sent To client player, to play described each TS file.
In an embodiment of the present invention, described request carries one or more TS of described audio, video data to be downloaded The download address of file, described acquisition module 21 is additionally operable to:
The download address of one or more TS files of audio, video data to be downloaded is parsed from described request.
In an embodiment of the present invention, described acquisition module 21 is additionally operable to:
Obtain the ground of the source server of first agent's service, second agent's service and the audio, video data to be downloaded preset Location;
Utilize described first agent service and the address of described source server, obtain described audio, video data to be downloaded M3u8 file, and by described first agent service, described m3u8 file is resolved, obtain described audio, video data to be downloaded The download address of one or more TS files.
The said apparatus of the embodiment of the present invention: receive the request downloading audio, video data, obtain audio, video data to be downloaded The download address of one or more TS files;Subsequently, adjust task management module, by task management module by one or more At least one thread distributed to by TS file, at least one thread download one according to the download address of one or more TS files Or multiple TS file.As can be seen here, the embodiment of the present invention utilizes at least one thread to download TS file, it is achieved quickly and conveniently Download the purpose of audio, video data.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code The shape of the upper computer program implemented of usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method downloading audio, video data, it is characterised in that including:
Receive the request downloading audio, video data, obtain the download ground of one or more TS files of audio, video data to be downloaded Location;
Adjust task management module, described task management module the one or more TS file is distributed at least one line Journey, is downloaded the one or more TS literary composition by least one thread described according to the download address of the one or more TS file Part.
Method the most according to claim 1, it is characterised in that by described task management module by the one or more TS At least one thread distributed to by file, by under at least one the thread described download address according to the one or more TS file Carry the one or more TS file, including:
Multiple segmentations of first TS file in the one or more TS file are obtained each by described task management module Download address, and create for recording the array of the event of download;
By described task management module by multiple segment assignments of described first TS file give at least one thread, by described extremely A few thread downloads the plurality of segmentation according to the respective download address of multiple segmentations of described first TS file;Whenever institute State after any thread at least one thread downloaded corresponding segmentation, in the described array created, carry out record;
After determining that according to the record of described array described first TS file download completes, obtain the one or more TS literary composition The respective download address of multiple segmentations of second TS file in part, and empty the record of described array;
By described task management module by multiple segment assignments of described second TS file give at least one thread, by described extremely A few thread downloads the plurality of segmentation according to the respective download address of multiple segmentations of described second TS file;Whenever institute State after any thread at least one thread downloaded corresponding segmentation, the described array after emptying carry out record, By that analogy, until having downloaded the one or more TS file.
Method the most according to claim 1, it is characterised in that by described task management module by the one or more TS At least one thread distributed to by file, by under at least one the thread described download address according to the one or more TS file Carry the one or more TS file, including:
The multiple segmentations being obtained each TS file in the one or more TS file by described task management module are respective Download address, and for described each TS document creation for recording the array of the event of download;
By described task management module, described each TS file is distributed at least one thread, by least one thread root described The plurality of segmentation is downloaded according to the respective download address of multiple segmentations of described each TS file;Whenever at least one thread described In any thread downloaded corresponding segmentation after, create described array in carry out record;
After determining that according to the record of described array described each TS file download completes, described each TS file is sent to visitor Family end player, to play described each TS file.
4. according to the method according to any one of claim 1-3, it is characterised in that described request carries described to be downloaded The download address of one or more TS files of audio, video data, obtains one or more TS files of audio, video data to be downloaded Download address, including:
The download address of one or more TS files of audio, video data to be downloaded is parsed from described request.
5. according to the method according to any one of claim 1-3, it is characterised in that obtain one of audio, video data to be downloaded Or the download address of multiple TS file, including:
Obtain the address of the source server of first agent's service, second agent's service and the audio, video data to be downloaded preset;
Utilize described first agent service and the address of described source server, obtain the m3u8 literary composition of described audio, video data to be downloaded Part, and by described first agent service, described m3u8 file is resolved, obtain of described audio, video data to be downloaded Or the download address of multiple TS file.
6. the device downloading audio, video data, it is characterised in that including:
Acquisition module, for receiving the request downloading audio, video data, obtains one or more TS of audio, video data to be downloaded The download address of file;
Download module, for having adjusted task management module, is divided the one or more TS file by described task management module At least one thread of dispensing, is downloaded described by least one thread described according to the download address of the one or more TS file One or more TS files.
Device the most according to claim 6, it is characterised in that described download module is additionally operable to:
Multiple segmentations of first TS file in the one or more TS file are obtained each by described task management module Download address, and create for recording the array of the event of download;
By described task management module by multiple segment assignments of described first TS file give at least one thread, by described extremely A few thread downloads the plurality of segmentation according to the respective download address of multiple segmentations of described first TS file;Whenever institute State after any thread at least one thread downloaded corresponding segmentation, in the described array created, carry out record;
After determining that according to the record of described array described first TS file download completes, obtain the one or more TS literary composition The respective download address of multiple segmentations of second TS file in part, and empty the record of described array;
By described task management module by multiple segment assignments of described second TS file give at least one thread, by described extremely A few thread downloads the plurality of segmentation according to the respective download address of multiple segmentations of described second TS file;Whenever institute State after any thread at least one thread downloaded corresponding segmentation, the described array after emptying carry out record, By that analogy, until having downloaded the one or more TS file.
Device the most according to claim 6, it is characterised in that described download module is additionally operable to:
The multiple segmentations being obtained each TS file in the one or more TS file by described task management module are respective Download address, and for described each TS document creation for recording the array of the event of download;
By described task management module, described each TS file is distributed at least one thread, by least one thread root described The plurality of segmentation is downloaded according to the respective download address of multiple segmentations of described each TS file;Whenever at least one thread described In any thread downloaded corresponding segmentation after, create described array in carry out record;
After determining that according to the record of described array described each TS file download completes, described each TS file is sent to visitor Family end player, to play described each TS file.
9. according to the device according to any one of claim 6-8, it is characterised in that described request carries described to be downloaded The download address of one or more TS files of audio, video data, described acquisition module is additionally operable to:
The download address of one or more TS files of audio, video data to be downloaded is parsed from described request.
10. according to the device according to any one of claim 6-8, it is characterised in that described acquisition module is additionally operable to:
Obtain the address of the source server of first agent's service, second agent's service and the audio, video data to be downloaded preset;
Utilize described first agent service and the address of described source server, obtain the m3u8 literary composition of described audio, video data to be downloaded Part, and by described first agent service, described m3u8 file is resolved, obtain of described audio, video data to be downloaded Or the download address of multiple TS file.
CN201610688926.3A 2016-08-18 2016-08-18 A kind of method and device downloading audio, video data Pending CN106303587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610688926.3A CN106303587A (en) 2016-08-18 2016-08-18 A kind of method and device downloading audio, video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610688926.3A CN106303587A (en) 2016-08-18 2016-08-18 A kind of method and device downloading audio, video data

Publications (1)

Publication Number Publication Date
CN106303587A true CN106303587A (en) 2017-01-04

Family

ID=57660627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610688926.3A Pending CN106303587A (en) 2016-08-18 2016-08-18 A kind of method and device downloading audio, video data

Country Status (1)

Country Link
CN (1) CN106303587A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484040A (en) * 2017-08-29 2017-12-15 四川长虹电器股份有限公司 A kind of method for realizing network acceleration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7460126B2 (en) * 2004-08-24 2008-12-02 Silicon Graphics, Inc. Scalable method and system for streaming high-resolution media
CN103391454A (en) * 2013-07-12 2013-11-13 三星电子(中国)研发中心 Multithreading downloading method and device
CN102857797B (en) * 2012-04-12 2014-03-19 天脉聚源(北京)传媒科技有限公司 Background control method and system for video playing
CN103716719A (en) * 2013-12-02 2014-04-09 乐视网信息技术(北京)股份有限公司 Multimedia file downloading method and user terminal
CN103929427A (en) * 2014-04-23 2014-07-16 无锡天脉聚源传媒科技有限公司 Dynamic multi-thread downloading device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7460126B2 (en) * 2004-08-24 2008-12-02 Silicon Graphics, Inc. Scalable method and system for streaming high-resolution media
CN102857797B (en) * 2012-04-12 2014-03-19 天脉聚源(北京)传媒科技有限公司 Background control method and system for video playing
CN103391454A (en) * 2013-07-12 2013-11-13 三星电子(中国)研发中心 Multithreading downloading method and device
CN103716719A (en) * 2013-12-02 2014-04-09 乐视网信息技术(北京)股份有限公司 Multimedia file downloading method and user terminal
CN103929427A (en) * 2014-04-23 2014-07-16 无锡天脉聚源传媒科技有限公司 Dynamic multi-thread downloading device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484040A (en) * 2017-08-29 2017-12-15 四川长虹电器股份有限公司 A kind of method for realizing network acceleration

Similar Documents

Publication Publication Date Title
US20230289329A1 (en) Low latency and low defect media file transcoding using optimized storage, retrieval, partitioning, and delivery techniques
CN103002274B (en) A kind of mobile multimedia real-time transcoding Play System and method of downloading based on off-line
CN102474504B (en) Various collections and the system and method for ways of distribution support are provided for content distributing network
CN109286820B (en) Stream media ordering method and system based on distributed memory system
WO2016058411A1 (en) Splicing method and splicing system for http live streaming media fragmentation
CN103813185B (en) A kind of method that segment programs are quickly distributed, server and client
CA2840106A1 (en) Offline download method, multimedia file download method and system thereof
CN107743708A (en) The system and method based on catalogue limitation for storage media section
US20220303328A1 (en) Systems and methods for cloud storage direct streaming
CN110099134A (en) Video file method for down loading, device, electronic equipment and storage medium
CN102845072A (en) Media content improved playback quality
CN101977218A (en) Internet playing file transcoding method and system
CN108200444B (en) Video live broadcast method, device and system
US10856017B2 (en) Systems and methods for securely generating live previews
CN104219286A (en) Method and device for processing stream media, client, CDN (content delivery network) node server and terminal
CN103024491B (en) The video broadcasting method of mobile terminal and system
WO2018233539A1 (en) Video processing method, computer storage medium, and device
CN106686083A (en) Video file downloading method and device
CN104837033A (en) Information processing method and server
CN108668145A (en) A kind of content distribution method and device
CN106254548A (en) A kind of method and device downloading stream medium data
CN109347967A (en) A kind of method and device obtaining audio, video data
JP6597604B2 (en) Reception device, transmission device, data communication method, and data processing method
CN106303587A (en) A kind of method and device downloading audio, video data
CN106302465B (en) A kind of method and device of playing audio-video data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication