CN109995743A - A kind of processing method and terminal of multimedia file - Google Patents

A kind of processing method and terminal of multimedia file Download PDF

Info

Publication number
CN109995743A
CN109995743A CN201810002941.7A CN201810002941A CN109995743A CN 109995743 A CN109995743 A CN 109995743A CN 201810002941 A CN201810002941 A CN 201810002941A CN 109995743 A CN109995743 A CN 109995743A
Authority
CN
China
Prior art keywords
address
multimedia
terminal
original
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810002941.7A
Other languages
Chinese (zh)
Other versions
CN109995743B (en
Inventor
翁名为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810002941.7A priority Critical patent/CN109995743B/en
Publication of CN109995743A publication Critical patent/CN109995743A/en
Application granted granted Critical
Publication of CN109995743B publication Critical patent/CN109995743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention discloses a kind of processing method of multimedia file and terminal, the multimedia file that can cannot be identified to player for terminal is played out.The embodiment of the present invention provides a kind of processing method of multimedia file, comprising: obtains and plays source information, plays source packet and include: at least one primary index address;Mapping processing is carried out at least one primary index address according to the local address of terminal, obtains at least one original broadcast address;Inverse mapping processing is carried out to the first broadcast address of player requests, obtains the first index address, the first broadcast address is the broadcast address at least one original broadcast address;Obtain the corresponding first multimedia slicing file of the first index address;First multimedia slicing file is carried out turning encapsulation process, obtains the first fragment package file;Pass through player plays the first fragment package file.

Description

A kind of processing method and terminal of multimedia file
Technical field
The present invention relates to field of computer technology more particularly to the processing methods and terminal of a kind of multimedia file.
Background technique
Mobile terminal realizes operation by operating system (Operating System, OS), such as can be on mobile terminal The system version of iOS (English name: iPhone OS) 11 is installed, the video player based on the iOS11 system version can also be with Referred to as iOS11 player, iOS11 player are mainly used for the audio-video service of the terminal of iOS system, and iOS11 player uses Video flowing is played based on high-performance video coding (High Efficiency Video Coding, HEVC) agreement.
Currently, iOS11 player can not play HEVC coding except hvc1 and fMP4 (English name: fragmented Mp4) the video flowing of other formats encapsulation other than format.And in practical applications, since it is desired that considering compatible Android (Android) etc. the terminal of operating systems, there is also there are many encapsulation of different extended formattings, examples for the terminal based on HEVC agreement Such as hev1 and dynamic image expert group-transmission code stream (Moving Picture Experts Group-Transport Stream, MPEG-TS) etc., cause iOS11 player that can not play these video flowings.
In order to enable iOS11 player supports the video code flow of a variety of coded formats, it is main using as follows in the prior art Technical solution: video server end produces the video format for meeting iOS11 player requirement in advance, and then video server stores Video code flow after format transformation, terminal is sent to when terminal plays out request.
The scheme of the prior art at least has the following technical problems: video server may be needed to a large amount of video code flow Processing is formatted, this needs to occupy a large amount of process resources of video server, and the video code flow after format transformation It also needs to be stored on video server, this can also occupy the memory space of video server, if it exists multiple standards video lattice Formula, then video server also needs the video file of the same non-standard video format carrying out multiple conversions processing, in this way The load of video server can be further exacerbated by.
Summary of the invention
The embodiment of the invention provides a kind of processing method of multimedia file and terminals, can be to player for terminal The multimedia file that cannot be identified plays out.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
In a first aspect, the embodiment of the present invention provides a kind of processing method of multimedia file, comprising:
Terminal, which obtains, plays source information, and the broadcasting source packet includes: at least one primary index address;
The terminal carries out mapping processing at least one described primary index address according to the local address of terminal, obtains At least one original broadcast address;
The terminal carries out inverse mapping processing to the first broadcast address of player requests, obtains the first index address, institute Stating the first broadcast address is the broadcast address at least one described original broadcast address;
The terminal obtains the corresponding first multimedia slicing file of first index address;
The terminal carries out turning encapsulation process to the first multimedia slicing file, obtains the first fragment package file;
The terminal passes through the first fragment package file described in the player plays.
Second aspect, the embodiment of the present invention also provide a kind of terminal, comprising:
Broadcast source obtains module, plays source information for obtaining, the broadcasting source packet includes: at least one primary index Address;
Mapping block, for being carried out at mapping according to the local address of terminal at least one described primary index address Reason, obtains at least one original broadcast address;
Inverse mapping module carries out inverse mapping processing for the first broadcast address to player requests, obtains the first index Address, first broadcast address are the broadcast address at least one described original broadcast address;
Slicing files obtain module, for obtaining the corresponding first multimedia slicing file of first index address;
Turn package module, for carrying out turning encapsulation process to the first multimedia slicing file, obtains the first fragment envelope Fill file;
Playing module, for passing through the first fragment package file described in the player plays.
The third aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Instruction is stored in medium, when run on a computer, so that computer executes method described in above-mentioned various aspects.
Fourth aspect, the embodiment of the invention provides a kind of computer program products comprising instruction, when it is in computer When upper operation, so that computer executes method described in above-mentioned various aspects.
5th aspect, the embodiment of the present invention also provides a kind of communication device, the communication device may include terminal device or The entities such as person's chip, the communication device include: processor, memory;The memory is for storing instruction;The processor For executing the described instruction in the memory, so that the communication device is executed as described in any one of aforementioned aspects Method.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In embodiments of the present invention, it obtains after playing source information, it can be according to the local address of terminal at least one Primary index address carries out mapping processing, obtains at least one original broadcast address, next broadcasts to the first of player requests It puts address progress inverse mapping to handle to obtain the first index address, obtains the corresponding first multimedia slicing text of the first index address Part carries out turning encapsulation process obtaining the first fragment package file, can finally pass through player to the first multimedia slicing file Play the first fragment package file.Due to that can be original broadcast address by primary index address of cache in the embodiment of the present invention, The original broadcast address is related with the local address of terminal, what player was played needed for being requested based on original broadcast address Slicing files, such as player can request the first broadcast address, so that terminal can download to the first multimedia slicing file, into Row can play the first fragment package file after turning encapsulation process, therefore terminal can be to the multimedia text that player cannot identify Part plays out, and multimedia server is avoided to carry out the conversion of file format, can also store to avoid multimedia server various Multimedia slicing file after format transformation, reduces the load of multimedia server.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of system architecture signal applied by the processing method of multimedia file provided in an embodiment of the present invention Figure;
Fig. 2 is the signal of another kind system architecture applied by the processing method of multimedia file provided in an embodiment of the present invention Figure;
Fig. 3 is a kind of process blocks schematic diagram of the processing method of multimedia file provided in an embodiment of the present invention;
Fig. 4 is that the Agent components in terminal provided in an embodiment of the present invention turn package module with video server, transcoding, broadcast Put the attachment structure schematic diagram between device;
Fig. 5-a is a kind of composed structure schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 5-b is a kind of composed structure schematic diagram of mapping block provided in an embodiment of the present invention;
Fig. 5-c is a kind of composed structure schematic diagram of broadcast address generation module provided in an embodiment of the present invention;
Fig. 5-d is the composed structure schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 5-e is the composed structure schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 6 is that the processing method of multimedia file provided in an embodiment of the present invention is applied to the composed structure signal of terminal Figure.
Specific embodiment
The embodiment of the invention provides a kind of processing method of multimedia file and terminals, can be to player for terminal The multimedia file that cannot be identified plays out.
To enable feature, advantage of the invention more obvious and understandable, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that the embodiments described below Only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art Every other embodiment obtained, shall fall within the protection scope of the present invention.
Term " includes " in description and claims of this specification and above-mentioned attached drawing and " having " and they Any deformation, it is intended that covering non-exclusive includes so as to a series of process, method comprising units, system, product or to set It is standby to be not necessarily limited to those units, but be not clearly listed or these process, methods, product or equipment are consolidated The other units having.
It is described in detail separately below.
As shown in Figure 1, being a kind of system tray applied by the processing method of multimedia file provided in an embodiment of the present invention Structure schematic diagram.It may include terminal and multimedia server in the system architecture, which can be stream Media server is also possible to video server.Multimedia server is stored with multimedia file, which specifically may be used To be audio file or video file.The multimedia file stored in multimedia server specifically can be a variety of differences File format, the file format of stored multimedia file is specifically selected according to application scenarios by multimedia server, this Kind file format may be the file format that certain players can identify, be also possible to the file that certain players cannot identify Format, herein without limitation.Specifically, the multimedia file of multimedia server storage can be multiple multimedia slicing texts Part, multiple media slicing file can be the file format of standard, be also possible to off-gauge file format, Plays File format can be determined flexibly in different application scenarios.By taking multimedia server is specially video server as an example, depending on The video code flow using the encapsulation of hvc1 and fMP4 format of frequency server storage is the file format of standard, and for using hev1 With the file format of the video code flow criteria of right and wrong of MPEG-TS format encapsulation.
In terminal shown in Fig. 1, which may include: Agent components, turns package module and player, wherein generation Reason component is properly termed as local agent component, Agent components can respectively and turn package module, player is attached, terminal and Interaction between multimedia server can be realized by the interaction between the Agent components and multimedia server.In terminal Agent components can execute the processing method of multimedia file provided in an embodiment of the present invention.As shown in Fig. 2, real for the present invention Another kind system architecture schematic diagram applied by the processing method of the multimedia file of example offer is applied, which may include: this Ground proxy server, turns package module and player at local agent client, wherein local proxy server can respectively and Turn package module, player, local client to be attached, the interaction between terminal and multimedia server can pass through this Interaction between ground agent client and multimedia server is realized.Local proxy server and local agent visitor in terminal Family end can execute the processing method of multimedia file provided in an embodiment of the present invention.
One embodiment of the processing method of multimedia file of the present invention specifically can be applied to terminal and be broadcast using player It puts in the scene of multimedia file, the player of terminal can support the broadcasting of off-gauge multimedia file, broadcast for player The demand for putting other non-standard audio-video formats provides scalability.In the embodiment of the present invention multimedia server do not need into Part of composing a piece of writing is converted, and the load to multimedia server is mitigated.
It please refers to shown in Fig. 3, the processing method of multimedia file provided by one embodiment of the present invention may include as follows Step:
301, terminal, which obtains, plays source information, plays source packet and includes: at least one primary index address.
In embodiments of the present invention, terminal gets broadcasting source information, such as user in the display interface of player first Upper triggering video playing order, terminal can detecte the broadcasting source information of broadcasting required for the player, wherein the broadcast source Information includes: at least one primary index address.Wherein, primary index address is the multimedia server storage original text of multimedia The storage address of part.For example, the primary index address can be the index file of multimedia original document, such as the index File can be M3U file, and wherein M3U file is not substantially multimedia file, it is the listing file of multimedia file, be Text-only file.It is opened after terminal downloads to the M3U file, player is not the broadcasting M3U file, but according to this The record of M3U file finds network address and is played online.M3U file only stores multimedia play list, provides one The index of a multimedia file for being directed toward other positions can check address and the file of pointed file by the M3U file Attribute, play multimedia file to select suitable player.
In some embodiments of the invention, after step 301 terminal obtains broadcasting source information, the embodiment of the present invention is provided The processing method of multimedia file can also include the following steps:
Request whether the slicing files format of broadcasting can be played device and correctly identify in terminal detection primary index address;
When primary index address, which requests the slicing files format played that can not be played device, correctly to be identified, triggering is executed Following steps 302: terminal carries out mapping processing at least one primary index address according to the local address of terminal, obtains at least One original broadcast address.
Wherein, after terminal gets primary index address, terminal can detecte primary index address and request broadcasting Video information detection instrument can be used to complete the format detection of slicing files in slicing files format, such as terminal, the video Infomation detection tool can be mediainfo, ffprobe etc., not limit, and multimedia file can also be arranged in the terminal Format detection module can also complete the format detection to slicing files by the multimedia file format detection module.Terminal Next judge that the primary index address is requested the slicing files format played whether can be played device and correctly identified, In, correct identification refers to that the player in terminal can be correctly decoded slicing files and play success, if player can not identify Slicing files format then indicates player recognition failures.For example, the slicing files format that player can be identified correctly It is defined as Standard File Format, if it is Standard File Format that the slicing files format played is requested in primary index address, is broadcast The requested slicing files in primary index address can be played by putting device.When the slicing files played are requested in primary index address When format can not be played device and correctly identify, step 302 execution can be triggered, otherwise directly from multimedia server downloading slicing File.
302, terminal carries out mapping processing at least one primary index address according to the local address of terminal, obtains at least One original broadcast address.
In embodiments of the present invention, after terminal gets at least one primary index address, terminal can be according to the end The local address at end carries out mapping processing at least one primary index address, i.e. terminal carries out address to the primary index address Conversion, address conversion is realized according to the local address of terminal, can be obtained by the address of cache to primary index address To at least one original broadcast address.It can be original broadcast address by primary index address conversion by step 302, this is original Broadcast address is to carry out mapping completion, therefore at least one original rope obtained in step 301 by the local address of terminal At least one original broadcast address can be mapped as by drawing address.The multimedia file format corresponding to primary index address is not When can be identified by the player of terminal, if the player of terminal is sent using the primary index file to multimedia server When request, multimedia server can be responded according to the request, and multimedia server returns to more matchmakers to the player of terminal Body file fragment, but the player can not be parsed or be decoded, and lead to not play.That is, multimedia file It can be downloaded, but broadcasting cannot be identified.But through the embodiment of the present invention in primary index address according to terminal Local address is mapped, and original broadcast address generated can be used for player requests and play multimedia file.
In some embodiments of the invention, step 102 terminal is according to the local address of terminal at least one original rope Draw address and carry out mapping processing, obtains at least one original broadcast address, comprising:
The local address of terminal is revised as in the base address of at least one primary index address by terminal, obtains base address modification Primary index address afterwards;
Terminal gets multimedia original slice address according to primary index address;
The file format that terminal can be identified according to player carries out mapping processing to multimedia original slice address, obtains Multimedia original slice address after mapping;
Terminal generates extremely according to the multimedia original slice address behind the modified primary index address in base address and mapping A few original broadcast address.
Wherein, when the base address of primary index address refers to that multimedia server stores multiple multimedia original slice files Identical address field in each storage address, for example, some primary index address is http://v.xx.com/play.m3u8, Wherein, the base address of the primary index address can be v.xx.com.Assuming that the local address of terminal is 127.0.0.1, then may be used 127.0.0.1 is revised as in the base address of primary index address, the modified primary index address in base address be can be at this time http://127.0.0.1/play.m3u8。
After terminal modifies to the base address of primary index address, terminal gets more matchmakers according to primary index address Body original slice address, wherein multimedia original slice address is multimedia server storage multimedia original slice file Storage address.Terminal can send Address requests to multimedia server according to primary index address, and multimedia server can be with Multimedia original slice address is returned to terminal.For example, the multimedia original slice address that terminal is got may is that # EXTINF:10,0.ts;#EXTINF:10,1.ts;#EXTINF:10,2.ts, wherein 0.ts, 1.ts, 2.ts refer to more than three The storage address of media original slice file.Following terminal can be according to the file format that player can identify to multimedia Original slice address carries out mapping processing, is illustrated below, and the file format that player can identify is fmp4, and multimedia is former Beginning fragment address may is that #EXTINF:10,0.ts;#EXTINF:10,1.ts;#EXTINF:10,2.ts are handled by mapping Multimedia original slice address after available mapping are as follows: #EXTINF:10,0.fmp4;#EXTINF:10,1.fmp4;# EXTINF:10,2.fmp4.Last terminal can be former according to the multimedia behind the modified primary index address in base address and mapping Beginning fragment address generates at least one original broadcast address, wherein the base address of primary index address is modified to the sheet of terminal Way address, the multimedia original slice address progress address splicing by the local address and after mapping, available at least one A original broadcast address.
Next the generating mode of original broadcast address is carried out further for example, terminal is modified according to base address Primary index address afterwards and the fragment address after mapping, generate at least one original broadcast address, comprising:
When multimedia original slice address is multimedia original slice relative address, terminal modifies primary index address Base address and multimedia original slice relative address afterwards carries out address splicing, obtains multimedia original slice absolute address;
Terminal maps multimedia original slice absolute address according to the port numbers of preset index mark and terminal Processing, obtains at least one original broadcast address.
Wherein, multimedia original slice address may be there are two types of address: one is relative address, one is absolute address, If multimedia original slice address be multimedia original slice absolute address when can with terminal according to preset index identify with The port numbers of terminal carry out mapping processing to multimedia original slice absolute address, obtain at least one original broadcast address.When When multimedia original slice address is multimedia original slice relative address, terminal is needed to multimedia original slice relative address It is converted, to obtain multimedia original slice absolute address.It is illustrated below, relative address are as follows: #EXTINF:10, The modified base address in primary index address and multimedia original slice relative address are carried out address splicing, can obtained by 0.ts The absolute address arrived are as follows: #EXTINF:10, http://v.xx.com/video/0.ts.
Further, in some embodiments of the invention, terminal identifies the port numbers with terminal according to preset index Mapping processing is carried out to multimedia original slice absolute address, comprising:
Terminal adds the port numbers of terminal in multimedia original slice absolute address, more matchmakers after obtaining addition port numbers Body original slice absolute address;
Terminal adds index mark in adding the multimedia original slice absolute address after port numbers, by addition index mark Multimedia original slice absolute address after knowledge is as at least one original broadcast address.
Wherein, terminal can map multimedia original slice absolute address, such as to original point of each multimedia Piece absolute address distributes a unique index mark, such as the index is identified as m3u8id, and index mark can be in order It is incremented by distribution, it is assumed that multimedia original slice absolute address is http://v.xx.com/video/play.m3u8, the rope of distribution Draw and be identified as 0, then the multimedia original slice absolute address after mapping is the address http://ip: port numbers/m3u8id/ Play.m3u8, the address after mapping are http: // 127.0.0.1:12345/0/play.m3u8, and the address as setting is broadcast Put the original broadcast address of device.
In some embodiments of the invention, step 302 terminal is according to the local address of terminal at least one original rope Draw address and carries out mapping processing, after obtaining at least one original broadcast address, multimedia file provided in an embodiment of the present invention Processing method further include:
Terminal establishes address mapping table according to primary index address and original broadcast address.
Wherein, to carry out mapping and inverse mapping convenient for terminal, terminal can establish address and reflect after address of cache completion Firing table, record has the corresponding relationship between primary index address and original broadcast address in the address mapping table, what terminal was established Address mapping table can store in the memory of terminal, so as to terminal real-time calling.
303, terminal carries out inverse mapping processing to the first broadcast address of player requests, obtains the first index address, the One broadcast address is the broadcast address at least one original broadcast address.
It in embodiments of the present invention, can by least one primary index by abovementioned steps 301 and step 302 terminal Location is mapped as at least one original broadcast address, when player needs to play multimedia file, in request transmitted by player The original broadcast address can be carried, such as the Agent components in terminal can receive the playing request of player transmission, or Local proxy server in terminal can receive the playing request of player transmission, can carry first in the playing request and broadcast Address is put, which is the broadcast address in step 302 at least one obtained original broadcast address, In, the first broadcast address is the requested corresponding original broadcast address of multimedia slicing file for needing to play of player, by It is the address obtained after terminal maps primary index address according to local address in original broadcast address, player is sent Terminal is available when the request of the first broadcast address arrives first broadcast address, so that terminal again carries out the first broadcast address Inverse mapping processing, wherein inverse mapping processing in step 303 and the processing of the mapping in step 302 are that two opposite addresses turn Mode is changed, the first broadcast address can be converted to by the first index address by inverse mapping processing, then first index address is The primary index address of one or more of at least one primary index address in step 301.In the embodiment of the present invention eventually End the first index address is converted to the first broadcast address of player requests, thus terminal be based on again first index address and Multimedia server interacts, the description being detailed in subsequent step 304.
In the case where aforementioned terminals establish the realization scene of address mapping table, step 303 terminal is broadcast to the first of player requests It puts address and carries out inverse mapping processing, obtain the first index address, comprising:
Terminal inquires address mapping table using the first broadcast address, obtains the first index address.
Wherein, record has the corresponding relationship between primary index address and original broadcast address in the address mapping table, eventually After end gets the first broadcast address of player requests, first broadcast address inquiry address of cache is can be used in terminal Table can export the first index address found by address mapping table, and by way of tabling look-up, terminal can be obtained quickly First index address.
304, terminal obtains the corresponding first multimedia slicing file of the first index address.
In embodiments of the present invention, after generating the first index address by 303 terminal of abovementioned steps, terminal is available First multimedia slicing text can be got from multimedia file data library to the first multimedia slicing file, such as terminal Part.For another example, terminal can also send fragment downloading request to multimedia server, and fragment downloading request includes the first index ground Location, multimedia server do not need to format multimedia slicing file processing, multimedia server according to this first Index address searches the first multimedia slicing file stored in the multimedia server, multimedia server will find One multimedia slicing file is sent to terminal, and terminal receives more than first matchmaker that multimedia server is returned according to the first index address Body slicing files.
305, terminal carries out turning encapsulation process to the first multimedia slicing file, obtains the first fragment package file.
In embodiments of the present invention, terminal obtain the first multimedia slicing file after, terminal can also to this more than first Media slicing file carries out turning encapsulation process, such as terminal can be used transcoding and turn encapsulation tool to complete turn envelope of slicing files Dress, which, which turns encapsulation tool, can be ffmpeg, mp4box etc., not limit, and can also be arranged in the terminal and turn encapsulation Module, turning package module by this can also complete to carry out turning encapsulation process to the first multimedia slicing file, so as to incite somebody to action First multimedia slicing file is converted to the file format that format meets player requirement, obtained first fragment package file It can be used for player to play out.
In some embodiments of the invention, step 305 terminal carries out turning encapsulation process to the first multimedia slicing file, Include:
Terminal carries out transcoding processing to the first multimedia slicing file, obtains transcoding treated the first multimedia slicing text Part;
Treated that the first multimedia slicing file carries out turning encapsulation process to transcoding for terminal, obtains the first fragment encapsulation text Part.
Wherein, before carrying out turning encapsulation process, terminal can also first turn the first multimedia slicing file terminal Code processing, such as the first multimedia slicing file criteria of right and wrong HEVC slicing files, are handled by transcoding, can be by more than first matchmaker Body slicing files are converted to standard HEVC slicing files.Such as terminal can be used transcoding and turn encapsulation tool to complete slicing files Transcoding, which, which turns encapsulation tool, can be ffmpeg, mp4box etc..
306, terminal passes through the first fragment of player plays package file.
In embodiments of the present invention, terminal generates the first fragment package file by turning encapsulation process, and terminal can be used The player that configures in the terminal plays the first fragment package file, and user can be browsed to more by the player of terminal Media file.
By above embodiments to the description of the embodiment of the present invention it is found that obtain play source information after, can be according to end The local address at end carries out mapping processing at least one primary index address, obtains at least one original broadcast address, connects down Inverse mapping is carried out come the first broadcast address to player requests to handle to obtain the first index address, obtains the first index address pair The the first multimedia slicing file answered turn encapsulation process to the first multimedia slicing file and obtains the first fragment encapsulation text Part can finally pass through player plays the first fragment package file.Due to can by primary index in the embodiment of the present invention Location is mapped as original broadcast address, and the original broadcast address is related with the local address of terminal, and player can be broadcast based on original Address is put to request the required slicing files played, such as player that can request the first broadcast address, so that terminal can be downloaded To the first multimedia slicing file, carry out that the first fragment package file can be played after turning encapsulation process, therefore terminal can be right The multimedia file that player cannot identify plays out, and multimedia server is avoided to carry out the conversion of file format, can also be with Multimedia slicing file after avoiding multimedia server from storing various format transformations, reduces the load of multimedia server.
In order to facilitate a better understanding and implementation of the above scheme of the embodiment of the present invention, corresponding application scenarios of illustrating below come It is specifically described.
Next it is illustrated for including: Agent components and player in terminal, multimedia service implement body For video server.As shown in figure 4, for Agent components and video server, transcoding in terminal provided in an embodiment of the present invention Turn the attachment structure schematic diagram between package module, player.Terminal can turn encapsulation by Agent components and transcoding and combine Method, allow the player of terminal to support the broadcasting of the video distribution file of off-gauge HLS technology based on HEVC agreement.This Terminal can execute transcoding and turn encapsulation task in inventive embodiments, can reduce the processing load of video server, and the present invention is implemented For the player plays in terminal, the demand of other non-standard audio-video formats provides scalability to example.
Can be applied in the embodiment of the present invention in the videoconference client of iOS11 terminal, such as video iOS client, to Be for family it is transparent, detect that video source that needs play is off-gauge HLS technology based on HEVC agreement in client Video slicing file when technical solution provided in an embodiment of the present invention can be used, followed by illustration.Wherein, depending on Frequency server can provide video slicing file, it is necessary to issue the video slicing of the HLS technology based on HEVC agreement as backstage File, but there is no particular/special requirement to encapsulation format.Terminal can provide broadcasting for player and support as front end, such as the end End can be iOS client, and process flow performed by terminal is as follows:
Step 1. terminal obtains video playing source, such as terminal gets broadcast source from video server.
Step 2. terminal is by video information detection instrument (such as mediainfo, ffprobe), with obtaining primary index Location, judge its whether be standard HEVC HLS format.
If the step 3. primary index address is the HEVC HLS format of standard, the player in terminal can be called to carry out It plays, terminates the process, otherwise, enter step 4;
Step 4. terminal starts Agent components, carries out HLS address of cache.
For example, the available address HLS arrived of Agent components are as follows: http://v.xx.com/play.m3u8, agency Component is 127.0.0.1 by the local address of HLS address of cache, such as terminal according to the local address of terminal, available Address after mapping are as follows: http: // 127.0.0.1/task1/play.m3u8.
Next request logic of the player in terminal to the address HLS is illustrated, with primary index address Specially for the address m3u8, such as the address m3u8 is http://v.xx.com/video/play.m3u8, which is terminal It is acquired from video server, terminal obtains the content of the address m3u8, the fragment of the multimedia original slice file in m3u8 Address can be there are two types of address, and one is relative addresses, and one is absolute address, is illustrated below:
Relative address are as follows:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
0.ts
#EXTINF:10,
1.ts
#EXTINF:10,
2.ts
#EXT-X-ENDLIST。
Absolute address are as follows:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
http://v.xx.com/play/0.ts
#EXTINF:10,
http://v.xx.com/play/1.ts
#EXTINF:10,
http://v.xx.com/play/2.ts
#EXT-X-ENDLIST。
It should be noted that needing to carry out address splicing, taking the base of the address m3u8 if fragment address is relative address Location and the relative address of multimedia slicing file are spliced, and absolute address is spliced into, for example, the base address of the address m3u8 is The content of http://v.xx.com/video/, m3u8 are as follows:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
http://v.xx.com/video/0.ts
#EXTINF:10,
http://v.xx.com/video/1.ts
#EXTINF:10,
http://v.xx.com/video/2.ts
#EXT-X-ENDLIST。
Terminal after the absolute address for obtaining each multimedia slicing file, ask by player sequence when playing The absolute address for seeking each multimedia slicing file gets video content and plays out again later.
Step 5. Agent components get multimedia original slice address from video server, then carry out fragment address and reflect It penetrates.
Wherein, the Standard File Format that player can identify is fmp4, and Agent components carry out fragment address of cache, can be with Multimedia original slice address after to mapping.It is illustrated below, which can be table 1 as follows.
Next the realization process of Agent components is illustrated, terminal first choice starts an Agent components, it is assumed that Internet protocol address is 127.0.0.1, port numbers 12345.Agent components access the original address m3u8 and (are assumed to be Http:// v.xx.com/video/play.m3u8), m3u8 content is obtained, then obtain the absolute address of each fragment, it is assumed that such as Under:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
http://v.xx.com/video/0.ts
#EXTINF:10,
http://v.xx.com/video/1.ts
#EXTINF:10,
http://v.xx.com/video/2.ts
#EXT-X-ENDLIST。
Following Agent components map the address m3u8, can distribute each address m3u8 a unique index Mark, the index are identified as m3u8id, can sequentially distribute index mark, it is assumed that the address m3u8 is http: // V.xx.com/video/play.m3u8, the index of distribution are identified as 0, then the address m3u8 after mapping is the address http://ip: Port numbers/m3u8id/play.m3u8, in the example, the address after mapping is http: // 127.0.0.1:12345/0/ Play.m3u8, the address are to be arranged to the broadcast address of the player in terminal.
The address HLS after mapping is arranged step 6. Agent components plays out to the player in terminal.
Step 7. Agent components obtain the fragment request that the player in the terminal received issues, true according to address mapping table Determine original slice address, downloading original slice file, the original slice are requested from video server according to the original slice address File criteria of right and wrong HEVC fragment.
It is illustrated below, Agent components map fragment address, can distribute each fragment address one only One index mark, it is assumed that fragment address of the fragment address by the way of relative address, then after mapping are as follows: fragment id.fmp4.
Such as m3u8 (http: // 127.0.0.1:12345/0/play.m3u8) list content after mapping are as follows:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
0.fmp4
#EXTINF:10,
1.fmp4
#EXTINF:10,
2.fmp4
#EXT-X-ENDLIST。
Its corresponding absolute address are as follows:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
http://127.0.0.1:12345/0/0.fmp4
#EXTINF:10,
http://127.0.0.1:12345/0/1.fmp4
#EXTINF:10,
http://127.0.0.1:12345/0/2.fmp4
#EXT-X-ENDLIST。
Following Agent components can determine request forwarding relationship according to address mapping table.
When the request that Agent components receive is http: when // 127.0.0.1:12345/0/play.m3u8, indicating player It needs to obtain m3u8 list content, at this point, the m3u8 list content after mapping is directly returned to player by Agent components, is not required to It to be obtained from video server end.It is illustrated below, the broadcast address of player requests are as follows:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10,
0.fmp4
#EXTINF:10,
1.fmp4
#EXTINF:10,
2.fmp4
#EXT-X-ENDLIST。
When the request that Agent components receive is http: // 127.0.0.1:12345/0/0.fmp4 fragment request, table Show that player needs to obtain video slicing file.Address mapping table is inquired, is obtained to the corresponding original video fragment in the address Location (i.e. http://v.xx.com/video/0.ts), Agent components obtain the original video fragment content from video server, It send and turns package module to transcoding and handled, after the completion of transcoding turns package module processing, return to player.
It should be noted that player is not directly and video server carries out communication and data in the embodiment of the present invention Transmission.But by Agent components, which is the increased network request between player and video server Transfer layer, the transfer layer may include that (address is generally the responsible local proxy server for handling player requests 127.0.0.1) and be responsible for video server carry out request of data local agent groups of clients at.Player is not direct and regards Frequency server is communicated, but initiates access request to Agent components, and Agent components are closed according to predetermined address of cache System goes the storage address of access video server, obtains video slicing file, is then returned to player and plays out.
After step 8. Agent components have downloaded original slice file, transcoding is transferred to turn package module processing, such as transcoding Turning package module is ffmpeg, mp4box, changes into standard HEVC fragment, and return to the player in terminal.
Step 9. Agent components repeat step 7 to step 8, until finishing playing or user actively exits.
By aforementioned citing, terminal can allow iOS11 player to support non-standard HEVC indirectly in the embodiment of the present invention Slicing files.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
For the above scheme convenient for the better implementation embodiment of the present invention, phase for implementing the above scheme is also provided below Close device.
It please refers to shown in Fig. 5-a, a kind of terminal 500 provided in an embodiment of the present invention, may include: that broadcast source obtains module 501, mapping block 502, inverse mapping module 503, slicing files obtain module 504, turn package module 505 and playing module 506, Wherein,
Broadcast source obtains module 501, plays source information for obtaining, the broadcasting source packet includes: at least one is original Index address;
Mapping block 502, for being carried out according to the local address of the terminal at least one described primary index address Mapping processing, obtains at least one original broadcast address;
Inverse mapping module 503 carries out inverse mapping processing for the first broadcast address to player requests, obtains the first rope Draw address, first broadcast address is the broadcast address at least one described original broadcast address;
Slicing files obtain module 504, for obtaining the corresponding first multimedia slicing file of first index address;
Turn package module 505, for carrying out turning encapsulation process to the first multimedia slicing file, obtains the first fragment Package file;
Playing module 506, for passing through the first fragment package file described in the player plays.
In some embodiments of the invention, it please refers to shown in Fig. 5-b, the mapping block 502, comprising:
Base address modified module 5021, for the end to be revised as in the base address of at least one primary index address The local address at end obtains the modified primary index address in base address;
Fragment address acquisition module 5022, for according to the primary index address with getting multimedia original slice Location;
Fragment address mapping module 5023, the file format for that can identify according to player are original to the multimedia Fragment address carries out mapping processing, the multimedia original slice address after being mapped;
Broadcast address generation module 5024, for according to the modified primary index address in the base address and the mapping Multimedia original slice address afterwards generates at least one described original broadcast address.
In some embodiments of the invention, it please refers to shown in Fig. 5-c, the broadcast address generation module 5024, comprising:
Address splicing module 50241, for when multimedia original slice address be multimedia original slice relatively When location, the modified base address in the primary index address and the multimedia original slice relative address are subjected to address spelling It connects, obtains multimedia original slice absolute address;
Absolute address mapping block 50242, for identifying the port numbers with the terminal to described according to preset index Multimedia original slice absolute address carries out mapping processing, obtains at least one described original broadcast address.
In some embodiments of the invention, the absolute address mapping block 50242 is specifically used in the multimedia The port numbers that the terminal is added in original slice absolute address, the multimedia original slice after obtaining addition port numbers is utterly Location;The index mark is added in the multimedia original slice absolute address after the addition port numbers, by addition index mark Multimedia original slice absolute address after knowledge is as at least one described original broadcast address.
In some embodiments of the invention, it please refers to shown in Fig. 5-d, the terminal 500 further include: mapping table establishes mould Block 507, wherein
The mapping table establishes module 507, for the mapping block 502 according to the local address of terminal to it is described at least One primary index address carries out mapping processing, after obtaining at least one original broadcast address, according to the primary index Location and the original broadcast address establish address mapping table;
The inverse mapping module 503 is specifically used for inquiring the address mapping table using first broadcast address, obtain First index address.
In some embodiments of the invention, it please refers to shown in Fig. 5-e, the terminal 500 further include: file format detection Module 508 detects the primary index address and is asked after obtaining the acquisition broadcasting source information of module 501 for the broadcast source Whether seek the slicing files format of broadcasting can correctly be identified by the player;When the primary index address requests to play Slicing files format when can not correctly be identified by the player, triggering executes the mapping processing module.
In some embodiments of the invention, described to turn package module 505, it is specifically used for first multimedia slicing File carries out transcoding processing, obtains transcoding treated the first multimedia slicing file;To the transcoding, treated more than first Media slicing file carries out turning encapsulation process, obtains the first fragment package file.
By above to the description of the embodiment of the present invention it is found that obtain play source information after, can be according to the sheet of terminal Way address carries out mapping processing at least one primary index address, obtains at least one original broadcast address, next to broadcasting The first broadcast address for putting device request carries out inverse mapping and handles to obtain the first index address, obtains the first index address corresponding the One multimedia slicing file carries out turning encapsulation process obtaining the first fragment package file, finally to the first multimedia slicing file Player plays the first fragment package file can be passed through.Due to that can be by primary index address of cache in the embodiment of the present invention Original broadcast address, the original broadcast address is related with the local address of terminal, player can based on original broadcast address come The slicing files played needed for request, such as player can request the first broadcast address, so that terminal can download to more than first Media slicing file carries out that the first fragment package file can be played after turning encapsulation process, therefore terminal can be to player not The multimedia file that can be identified plays out, and multimedia server is avoided to carry out the conversion of file format, can also be to avoid more matchmakers Body server stores the multimedia slicing file after various format transformations, reduces the load of multimedia server.
The embodiment of the invention also provides another terminals, as shown in fig. 6, for ease of description, illustrating only and this hair The relevant part of bright embodiment, it is disclosed by specific technical details, please refer to present invention method part.The terminal can be with Being includes mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, taking the terminal as an example:
Fig. 6 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 6, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 6 is not constituted pair The restriction of mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
It is specifically introduced below with reference to each component parts of the Fig. 6 to mobile phone:
RF circuit 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1080;In addition, the data for designing uplink are sent to base station.In general, RF circuit 1010 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 1010 can also be logical with network and other equipment by wireless communication Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1020 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1020 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1030 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 1030 may include touch panel 1031 and other inputs Equipment 1032.Touch panel 1031, also referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1031 or near touch panel 1031 Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1031 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and executed.In addition, Touch panel 1031 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 1031, input unit 1030 can also include other input equipments 1032.Specifically, other input equipments 1032 may include But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1041.Further, touch panel 1031 can cover display panel 1041, when touch panel 1031 detects After arriving touch operation on it or nearby, processor 1080 is sent to determine the type of touch event, is followed by subsequent processing device 1080 provide corresponding visual output according to the type of touch event on display panel 1041.Although in Fig. 6, touch panel 1031 and display panel 1041 are the input and input function for realizing mobile phone as two independent components, but in certain realities Apply in example, can be integrated by touch panel 1031 and display panel 1041 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1050, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1041, proximity sensor can close display panel when mobile phone is moved in one's ear 1041 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1060, loudspeaker 1061, microphone 1062 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1061, be converted by loudspeaker 1061 by circuit 1060 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit 1060 Audio data is converted to after reception, then by after the processing of audio data output processor 1080, through RF circuit 1010 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1020 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1080 may include one or more processing units;Preferably, processor 1080 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1080.
Mobile phone further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1080 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 1080 included by the terminal also has control execution is above to be executed by terminal Method flow.
In addition it should be noted that, the apparatus embodiments described above are merely exemplary, wherein described as separation The unit of part description may or may not be physically separated, component shown as a unit can be or It can not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality Border needs to select some or all of the modules therein to achieve the purpose of the solution of this embodiment.In addition, provided by the invention In Installation practice attached drawing, the connection relationship between module indicates there is communication connection between them, specifically can be implemented as one Item or a plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can It understands and implements.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize, naturally it is also possible to by specialized hardware include specific integrated circuit, specially It is realized with CPU, private memory, special components and parts etc..Under normal circumstances, all functions of being completed by computer program are ok It is easily realized with corresponding hardware, moreover, being used to realize that the specific hardware structure of same function is also possible to a variety of more Sample, such as analog circuit, digital circuit or special circuit etc..But software program is real in situations more for the purpose of the present invention It is now more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words makes the prior art The part of contribution can be embodied in the form of software products, which is stored in the storage medium that can be read In, such as the floppy disk of computer, USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), magnetic or disk etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
In conclusion the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to upper Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to upper Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (15)

1. a kind of processing method of multimedia file characterized by comprising
It obtains and plays source information, the broadcasting source packet includes: at least one primary index address;
Mapping processing is carried out at least one described primary index address according to the local address of terminal, it is original to obtain at least one Broadcast address;
Inverse mapping processing is carried out to the first broadcast address of player requests, obtains the first index address, described first plays ground Location is the broadcast address at least one described original broadcast address;
Obtain the corresponding first multimedia slicing file of first index address;
The first multimedia slicing file is carried out turning encapsulation process, obtains the first fragment package file;
Pass through the first fragment package file described in the player plays.
2. the method according to claim 1, wherein the local address according to terminal to it is described at least one Primary index address carries out mapping processing, obtains at least one original broadcast address, comprising:
The base address of at least one primary index address is revised as to the local address of the terminal, obtains base address modification Primary index address afterwards;
Multimedia original slice address is got according to the primary index address;
The file format that can be identified according to player carries out mapping processing to multimedia original slice address, is mapped Multimedia original slice address afterwards;
According to the multimedia original slice address after the modified primary index address in the base address and the mapping, institute is generated State at least one original broadcast address.
3. according to the method described in claim 2, it is characterized in that, it is described according to the modified primary index in the base address Fragment address behind location and the mapping generates at least one described original broadcast address, comprising:
When multimedia original slice address is multimedia original slice relative address, the primary index address is modified Base address and the multimedia original slice relative address afterwards carries out address splicing, obtains multimedia original slice utterly Location;
The multimedia original slice absolute address is mapped according to the port numbers of preset index mark and the terminal Processing obtains at least one described original broadcast address.
4. according to the method described in claim 3, it is characterized in that, the end according to preset index mark and the terminal Slogan carries out mapping processing to the multimedia original slice absolute address, comprising:
The port numbers that the terminal is added in the multimedia original slice absolute address, more matchmakers after obtaining addition port numbers Body original slice absolute address;
The index mark is added in the multimedia original slice absolute address after the addition port numbers, by addition index mark Multimedia original slice absolute address after knowledge is as at least one described original broadcast address.
5. the method according to claim 1, wherein the local address according to terminal to it is described at least one Primary index address carries out mapping processing, after obtaining at least one original broadcast address, the method also includes:
Address mapping table is established according to the primary index address and the original broadcast address;
First broadcast address to player requests carries out inverse mapping processing, obtains the first index address, comprising:
The address mapping table is inquired using first broadcast address, obtains first index address.
6. the method according to claim 1, wherein the method is also wrapped after the acquisition plays source information It includes:
It detects the primary index address and requests whether the slicing files format played can correctly be identified by the player;
When the primary index address requests the slicing files format played that can not correctly be identified by the player, triggering Execute following steps: mapping processing is carried out at least one described primary index address according to the local address of terminal, obtain to A few original broadcast address.
7. method according to any one of claim 1 to 6, which is characterized in that described to first multimedia slicing File carries out turning encapsulation process, comprising:
Transcoding processing is carried out to the first multimedia slicing file, obtains transcoding treated the first multimedia slicing file;
To the transcoding, treated that the first multimedia slicing file carries out turning encapsulation process, obtains the first fragment package file.
8. a kind of terminal characterized by comprising
Broadcast source obtains module, plays source information for obtaining, the broadcasting source packet includes: at least one primary index Location;
Mapping block, for being carried out at mapping according to the local address of the terminal at least one described primary index address Reason, obtains at least one original broadcast address;
Inverse mapping module carries out inverse mapping processing for the first broadcast address to player requests, obtains the first index address, First broadcast address is the broadcast address at least one described original broadcast address;
Slicing files obtain module, for obtaining the corresponding first multimedia slicing file of first index address;
Turn package module, for carrying out turning encapsulation process to the first multimedia slicing file, obtains the first fragment encapsulation text Part;
Playing module, for passing through the first fragment package file described in the player plays.
9. terminal according to claim 8, which is characterized in that the mapping block, comprising:
Base address modified module, for the base address of at least one primary index address to be revised as to the local of the terminal Address obtains the modified primary index address in base address;
Fragment address acquisition module, for getting multimedia original slice address according to the primary index address;
Fragment address mapping module, the file format for that can identify according to player is to multimedia original slice address Mapping processing is carried out, the multimedia original slice address after being mapped;
Broadcast address generation module, for according to more matchmakers after the modified primary index address in the base address and the mapping Body original slice address generates at least one described original broadcast address.
10. terminal according to claim 9, which is characterized in that the broadcast address generation module, comprising:
Address splicing module is used for when multimedia original slice address is multimedia original slice relative address, by institute It states the modified base address in primary index address and the multimedia original slice relative address carries out address splicing, obtain more matchmakers Body original slice absolute address;
Absolute address mapping block, it is original to the multimedia for the port numbers according to preset index mark and the terminal Fragment absolute address carries out mapping processing, obtains at least one described original broadcast address.
11. terminal according to claim 10, which is characterized in that the absolute address mapping block is specifically used in institute The port numbers that the terminal is added in multimedia original slice absolute address are stated, original point of multimedia after obtaining addition port numbers Piece absolute address;The index mark is added in the multimedia original slice absolute address after the addition port numbers, will be added Multimedia original slice absolute address after indexing mark is as at least one described original broadcast address.
12. terminal according to claim 8, which is characterized in that the terminal further include: mapping table establishes module, wherein
The mapping table establishes module, for the mapping block according to the local address of terminal at least one described original rope Draw address and carry out mapping processing, after obtaining at least one original broadcast address, according to the primary index address and the original Beginning broadcast address establishes address mapping table;
The inverse mapping module is specifically used for inquiring the address mapping table using first broadcast address, obtains described the One index address.
13. terminal according to claim 8, which is characterized in that the terminal further include: file format detection module is used After the broadcast source obtains module acquisition broadcasting source information, detects the primary index address and request the fragment played text Whether part format can correctly be identified by the player;When the slicing files format played is requested in the primary index address When can not correctly be identified by the player, triggering executes the mapping processing module.
14. the terminal according to any one of claim 8 to 13, which is characterized in that it is described to turn package module, it is specifically used for Transcoding processing is carried out to the first multimedia slicing file, obtains transcoding treated the first multimedia slicing file;To institute It states transcoding treated that the first multimedia slicing file carries out turning encapsulation process, obtain the first fragment package file.
15. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as Method described in any one of claims 1 to 7.
CN201810002941.7A 2018-01-02 2018-01-02 Multimedia file processing method and terminal Active CN109995743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810002941.7A CN109995743B (en) 2018-01-02 2018-01-02 Multimedia file processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002941.7A CN109995743B (en) 2018-01-02 2018-01-02 Multimedia file processing method and terminal

Publications (2)

Publication Number Publication Date
CN109995743A true CN109995743A (en) 2019-07-09
CN109995743B CN109995743B (en) 2021-11-05

Family

ID=67128779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002941.7A Active CN109995743B (en) 2018-01-02 2018-01-02 Multimedia file processing method and terminal

Country Status (1)

Country Link
CN (1) CN109995743B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243158A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Media file processing method and device and electronic equipment
CN113206841A (en) * 2021-04-26 2021-08-03 杭州当虹科技股份有限公司 AES decryption agent method and system based on HLS protocol
CN113438513A (en) * 2021-06-25 2021-09-24 深圳Tcl新技术有限公司 Video resolution switching method, device, equipment and storage medium
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088620A (en) * 2010-12-01 2011-06-08 中兴通讯股份有限公司 Method for downloading media file in content distribution network and client
WO2012151070A1 (en) * 2011-05-02 2012-11-08 Authentec, Inc. Method, system, or user device for adaptive bandwidth control of proxy multimedia server
CN103036888A (en) * 2012-12-19 2013-04-10 南京视海网络科技有限公司 Self-adapting stream-media play method and self-adapting play unit
WO2014205450A2 (en) * 2013-06-21 2014-12-24 General Instrument Corporation Dtcp converter for hls
US20150100667A1 (en) * 2013-10-08 2015-04-09 WePow, Inc. Optimizing content delivery
CN105142020A (en) * 2015-08-10 2015-12-09 合一网络技术(北京)有限公司 Method and system for converting video in unsupported format in mobile terminal
CN105898370A (en) * 2015-11-13 2016-08-24 乐视云计算有限公司 Multi-camera video player, playing system and playing method
CN106303754A (en) * 2016-08-04 2017-01-04 天脉聚源(北京)传媒科技有限公司 A kind of audio data play method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088620A (en) * 2010-12-01 2011-06-08 中兴通讯股份有限公司 Method for downloading media file in content distribution network and client
WO2012151070A1 (en) * 2011-05-02 2012-11-08 Authentec, Inc. Method, system, or user device for adaptive bandwidth control of proxy multimedia server
CN103036888A (en) * 2012-12-19 2013-04-10 南京视海网络科技有限公司 Self-adapting stream-media play method and self-adapting play unit
WO2014205450A2 (en) * 2013-06-21 2014-12-24 General Instrument Corporation Dtcp converter for hls
US20150100667A1 (en) * 2013-10-08 2015-04-09 WePow, Inc. Optimizing content delivery
CN105142020A (en) * 2015-08-10 2015-12-09 合一网络技术(北京)有限公司 Method and system for converting video in unsupported format in mobile terminal
CN105898370A (en) * 2015-11-13 2016-08-24 乐视云计算有限公司 Multi-camera video player, playing system and playing method
CN106303754A (en) * 2016-08-04 2017-01-04 天脉聚源(北京)传媒科技有限公司 A kind of audio data play method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张超: ""基于iOS平台播放器的设计与实现"", 《万方》 *
杨鑫诚: ""基于IOS 的多媒体播放系统设计与实现"", 《万方》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243158A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Media file processing method and device and electronic equipment
CN112243158B (en) * 2019-07-18 2023-07-14 腾讯科技(深圳)有限公司 Media file processing method and device, computer readable medium and electronic equipment
CN113206841A (en) * 2021-04-26 2021-08-03 杭州当虹科技股份有限公司 AES decryption agent method and system based on HLS protocol
CN113206841B (en) * 2021-04-26 2022-08-23 杭州当虹科技股份有限公司 AES decryption agent method and system based on HLS protocol
CN113438513A (en) * 2021-06-25 2021-09-24 深圳Tcl新技术有限公司 Video resolution switching method, device, equipment and storage medium
CN114051152A (en) * 2022-01-17 2022-02-15 飞狐信息技术(天津)有限公司 Video playing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109995743B (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN104424496B (en) Two-dimensional code generation method, recognition methods, information providing method, device and system
US10701451B2 (en) Program interaction system, method, client, and backend server
US20170302990A1 (en) Method, terminal, and system for processing data of video stream
WO2017008627A1 (en) Multimedia live broadcast method, apparatus and system
CN104426963B (en) The method and terminal of associated terminal
CN104967608B (en) Play method, mobile terminal and the fixed terminal of multimedia file
CN103414766A (en) Method, device and terminal equipment for installing application
CN109995743A (en) A kind of processing method and terminal of multimedia file
CN105847996A (en) Video playing method and apparatus
CN106791958A (en) Position marker information generation method and device
CN104462570B (en) Web page contents acquisition methods and device
US20150304701A1 (en) Play control method and device
CN106293738B (en) Expression image updating method and device
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN105608124A (en) Screen capturing method and apparatus
CN104378755A (en) Terminal interaction method and device
CN103491421B (en) Content displaying method, device and intelligent television
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN108337533A (en) Video-frequency compression method and device
CN106504303A (en) A kind of method and apparatus for playing frame animation
CN103607377A (en) Method, device and system for information sharing
CN106375182B (en) Voice communication method and device based on instant messaging application
CN104516890A (en) Business processing method, business processing device and electronic equipment
CN106257928A (en) Audio file acquisition methods, update notification sending method, equipment and system
US20170155739A1 (en) Advertisement data processing method and router

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant