CN109640115A - A kind of files in stream media code-transferring method and device - Google Patents
A kind of files in stream media code-transferring method and device Download PDFInfo
- Publication number
- CN109640115A CN109640115A CN201811544264.8A CN201811544264A CN109640115A CN 109640115 A CN109640115 A CN 109640115A CN 201811544264 A CN201811544264 A CN 201811544264A CN 109640115 A CN109640115 A CN 109640115A
- Authority
- CN
- China
- Prior art keywords
- transcoding
- terminal
- file
- slice
- files
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234336—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
Abstract
The embodiment of the invention provides a kind of files in stream media code-transferring method and devices.This method comprises: carrying out slicing treatment in the case where the size of files in stream media to be transcoded is more than preset threshold to the files in stream media to be transcoded, obtaining the slice file of the first quantity;The transcoding terminal iidentification of the first quantity is obtained to the view networking service perception terminal;The transcoding terminal iidentification is the corresponding mark of transcoding terminal being in idle condition;To each corresponding transcoding terminal of the transcoding terminal iidentification, a slice file and corresponding transcoding parameter are sent;The slice file that each described transcoding terminal receives is all different;The transcoding terminal is used to be that the corresponding transcoding of the transcoding parameter is sliced file by the slice file transcoding;Receive the transcoding slice file that the transcoding terminal returns;All transcoding slice file mergencess are obtained into target transcoding file.Transcoding efficiency can be improved from largely the transcoding time is reduced.
Description
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of files in stream media code-transferring method and device.
Background technique
It can be realized the whole network high resolution audio and video real-time Transmission etc. depending on networking, therefore, be widely used.
Currently, view networking in, files in stream media transcoding service is provided by file server, by file server upload to
The files in stream media of transcoding carries out transcoding by file server.
Inventor has found that above-mentioned prior art has the following disadvantages: the stream matchmaker if to be transcoded in the course of the research
Body file is very big, then transcoding expends overlong time.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of files in stream media code-transferring method and device to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of methods of files in stream media transcoding, wrap depending on networking
It includes: file server, transcoding terminal, view networking service perception terminal;The method is applied to the file server, the side
Method includes:
The size of files in stream media to be transcoded be more than preset threshold in the case where, to the files in stream media to be transcoded into
Row slicing treatment obtains the slice file of the first quantity;
The transcoding terminal iidentification of the first quantity is obtained to the view networking service perception terminal;The transcoding terminal iidentification is
The corresponding mark of transcoding terminal being in idle condition;It is described depending on saving each transcoding terminal in networking service perception terminal
Service condition;The service condition includes: idle state and busy condition;
To each corresponding transcoding terminal of the transcoding terminal iidentification, a slice file and corresponding transcoding ginseng are sent
Number;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;The slice file that each described transcoding terminal receives is equal
It is not identical;The transcoding terminal is used to be that the corresponding transcoding of the transcoding parameter is sliced file by the slice file transcoding;
Receive the transcoding slice file that the transcoding terminal returns;
All transcoding slice file mergencess are obtained into target transcoding file.
Optionally, described in the case where the size of files in stream media to be transcoded is more than preset threshold, to described to be transcoded
Files in stream media carries out slicing treatment, obtains the slice file of the first quantity, comprising:
In the case where the size of files in stream media to be transcoded is more than preset threshold, threshold is sized according to slice file
Value, determines the corresponding each slice position of the files in stream media to be transcoded;
The files in stream media slicing treatment to be transcoded is obtained into cutting for the first quantity according to each slice position
Piece file;The size of the slice file is sized threshold value described in being less than or equal to.
Optionally, it is described all transcoding slice file mergencess are obtained into target transcoding file before, further includes:
According to each slice position, position of each slice file in the files in stream media to be transcoded is determined
Confidence breath;
It is described that all transcoding slice file mergencess are obtained into target transcoding file, comprising:
According to location information of each slice file in the files in stream media to be transcoded, each described turn is determined
The merging sequence of code slice file;
According to the merging sequence, all transcoding slice file mergencess are obtained into target transcoding file.
Optionally, the transcoding terminal is used in transcoding slice file processes, to the view networking service perception terminal
Send the first notification information that service condition is busy condition;The view networking service perception terminal, for according to described first
The service condition of the transcoding terminal is set busy condition by notification information;
The transcoding terminal is used for after transcoding is sliced file, sends service condition to the view networking service perception terminal
For the second notification information of idle state;The view networking service perception terminal is used for according to second notification information, by institute
The service condition for stating transcoding terminal is set as idle state.
Optionally, the view networking further include: autonomous server;It is described autonomy server include: view networking network interface card and mutually
Networking network interface card;
The transcoding terminal iidentification that the first quantity is obtained to the view networking service perception terminal, comprising:
Based on the internet network interface card of the autonomous server, the first quantity is obtained to the view networking service perception terminal
Transcoding terminal iidentification.
The embodiment of the invention also discloses a kind of devices of files in stream media transcoding, include: file server depending on networking, turn
Code terminal, view networking service perception terminal;Described device is applied to the file server, and described device includes:
Be sliced module, for the size of files in stream media to be transcoded be more than preset threshold in the case where, to it is described wait turn
Code stream media file carries out slicing treatment, obtains the slice file of the first quantity;
Transcoding terminal iidentification obtains module, and the transcoding for obtaining the first quantity to the view networking service perception terminal is whole
End mark;The transcoding terminal iidentification is the corresponding mark of transcoding terminal being in idle condition;The view networking service perception
The service condition of each transcoding terminal is saved in terminal;The service condition includes: idle state and busy condition;
It is sliced file and parameter sending module, for sending out to each corresponding transcoding terminal of the transcoding terminal iidentification
Send a slice file and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;It is described each
The slice file that a transcoding terminal receives is all different;The transcoding terminal is used to be described turn by the slice file transcoding
The corresponding transcoding of code parameter is sliced file;
Transcoding is sliced file reception module, is sliced file for receiving the transcoding that the transcoding terminal returns;
Merging module, for all transcoding slice file mergencess to be obtained target transcoding file.
Optionally, the slice module includes:
Slice position determination unit, for the size of files in stream media to be transcoded be more than preset threshold in the case where, root
It is sized threshold value according to slice file, determines the corresponding each slice position of the files in stream media to be transcoded;
It is sliced unit, for obtaining the files in stream media slicing treatment to be transcoded according to each slice position
The slice file of first quantity;The size of the slice file is sized threshold value described in being less than or equal to.
Optionally, described device further include:
Location information determining module, for determining each slice file described according to each slice position
Location information in files in stream media to be transcoded;
The merging module includes:
Merge order determination unit, for the position according to each slice file in the files in stream media to be transcoded
Confidence breath determines the merging sequence of each transcoding slice file;
Combining unit, for all transcoding slice file mergencess being obtained target and are turned according to the merging sequence
Code file.
Optionally, the transcoding terminal is used in transcoding slice file processes, to the view networking service perception terminal
Send the first notification information that service condition is busy condition;The view networking service perception terminal, for according to described first
The service condition of the transcoding terminal is set busy condition by notification information;
The transcoding terminal is used for after transcoding is sliced file, sends service condition to the view networking service perception terminal
For the second notification information of idle state;The view networking service perception terminal is used for according to second notification information, by institute
The service condition for stating transcoding terminal is set as idle state.
Optionally, the view networking further include: autonomous server;It is described autonomy server include: view networking network interface card and mutually
Networking network interface card;
The transcoding terminal iidentification obtains module
Transcoding terminal iidentification acquiring unit is networked for the internet network interface card based on the autonomous server to the view
Service-aware terminal obtains the transcoding terminal iidentification of the first quantity.
The embodiment of the present invention includes following advantages: the embodiment of the present invention depending on networking include: file server, transcoding terminal,
Depending on networking service perception terminal;The method is applied to the file server, is more than in the size of files in stream media to be transcoded
In the case where preset threshold, slicing treatment is carried out to the files in stream media to be transcoded, obtains the slice file of the first quantity;To
The view networking service perception terminal obtains the transcoding terminal iidentification of the first quantity;The transcoding terminal iidentification is in idle shape
The corresponding mark of transcoding terminal of state;The service condition depending on saving each transcoding terminal in networking service perception terminal;
The service condition includes: idle state and busy condition;To each corresponding transcoding terminal of the transcoding terminal iidentification, hair
Send a slice file and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;It is described each
The slice file that a transcoding terminal receives is all different;The transcoding terminal is used to be described turn by the slice file transcoding
The corresponding transcoding of code parameter is sliced file;Receive the transcoding slice file that the transcoding terminal returns;By all transcodings
Slice file mergences obtains target transcoding file.Compared with the existing technology, by file server treat transcoding stream medium file into
For row transcoding, files in stream media slicing treatment to be transcoded is multiple slice files by the embodiment of the present application, file server, by
The transcoding terminal of corresponding number free time carries out transcoding to above-mentioned each slice file respectively, obtains each transcoding slice file, then
All transcoding slice file mergencess are obtained into target transcoding file by above-mentioned file server, and then can be from largely
The transcoding time is reduced, transcoding efficiency is improved.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of structural schematic diagram of view networking of the embodiment of the present invention;
Fig. 6 is a kind of step flow chart of files in stream media code-transferring method of the invention;
Fig. 7 is the step flow chart of another files in stream media code-transferring method of the invention;
Fig. 8 is the structural schematic diagram of another view networking of the invention;
Fig. 9 is a kind of structural block diagram of the device of files in stream media transcoding of the embodiment of the present invention;
Figure 10 is the structural block diagram of the device of another files in stream media transcoding of the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but
The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions
It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410
(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze is according to the view of packet networking purpose
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA | SA | Reserved | Payload | CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into
0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA | SA | Reserved | Label | Payload | CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows regard the association of networking
View, using the virtual networked terminals that regard of the first virtual view networked terminals and second as the first view networked server and the second view connection
The view networked terminals of network server, the first virtual view networked terminals and the second virtual view networked terminals join respectively as the first view
The view networked terminals of network server and the second view networked server, regard the Internet services with the first view networked server and second respectively
Device carries out the reception and transmission of data, and without changing the structure of former view networked server, convenient, inexpensive realizing joins across view
Net meeting.
It is a kind of structural schematic diagram of view networking of the embodiment of the present invention, wherein file server 501 is used for referring to Fig. 5
Files in stream media to be transcoded is received, in the case where the size of the files in stream media to be transcoded is more than preset threshold, this is waited for
Transcoding stream medium file carries out slicing treatment, obtains the slice file of the first quantity, this is used for depending on networking service perception terminal 502
The service condition of each transcoding terminal 503 is stored or registers, each transcoding terminal 503 is on startup to view networking service sense
Know the report of terminal 502 or registers its service condition.
It is understood that the data interaction between above-mentioned file server 501 and each transcoding terminal 503 can pass through
It is carried out depending on networking protocol.This can support Internet protocol depending on networking service perception terminal 502, in embodiments of the present invention, right
This is not especially limited.
It is a kind of step flow chart of files in stream media code-transferring method of the invention, this method can be applied to referring to Fig. 6
Depending on can specifically include step 601-605 in networking:
Step 601: in the case where the size of files in stream media to be transcoded is more than preset threshold, to the stream matchmaker to be transcoded
Body file carries out slicing treatment, obtains the slice file of the first quantity.
In embodiments of the present invention, files in stream media to be transcoded can be the sound view of the formats such as mp4, avi, flv, wmv
Frequency file etc. is in embodiments of the present invention not especially limited this.
It in embodiments of the present invention, can be right in the case where the size of files in stream media to be transcoded is more than preset threshold
The files in stream media to be transcoded carries out slicing treatment, obtains the slice file of the first quantity.The preset threshold can be according to reality
It sets etc..
Specifically, preset threshold can be set in advance, the size of files in stream media to be transcoded and the preset threshold are carried out
Compare, if the size of the files in stream media to be transcoded be more than the preset threshold in the case where, to the files in stream media to be transcoded into
Row slice, can be sliced as the identical slice of multiple sizes, can also be sliced as the identical slice of size, the present invention in fact
It applies in example, this is not especially limited.
For example, if preset threshold is 100M, if the size of the files in stream media to be transcoded is 200M, Streaming Media to be transcoded
The size of file is more than the preset threshold, which can be carried out slicing treatment, can be to be transcoded by this
Files in stream media carries out the slice file that slicing treatment is 2 100M, respectively slice file 1 and slice file 2.
In embodiments of the present invention, slice thread has can be set in this document service server 501, passes through above-mentioned slice
Above-mentioned files in stream media to be transcoded is sliced by journey, obtains each slice file, in embodiments of the present invention, is not made to this
It is specific to limit.
Step 602: the transcoding terminal iidentification of the first quantity is obtained to the view networking service perception terminal;The transcoding is whole
End is identified as the corresponding mark of transcoding terminal being in idle condition;It is described depending on saving each turn in networking service perception terminal
The service condition of code terminal;The service condition includes: idle state and busy condition.
In embodiments of the present invention, the business depending on saving each transcoding terminal 503 in networking service perception terminal 502
State, the service condition may include: idle state and busy condition.This document server 501 can be to above-mentioned view networking industry
The transcoding terminal iidentification for the first quantity of acquisition of perception terminal 502 of being engaged in, the transcoding terminal iidentification are the transcoding end being in idle condition
Hold corresponding mark.
In embodiments of the present invention, transcoding terminal can be the view networked terminals etc. with transcoding business, of the invention real
It applies in example, this is not especially limited.
Specifically, this document server 501 can be by autonomous server etc., to above-mentioned view networking service perception terminal
502 obtain the transcoding terminal iidentification of the first quantity, which may include view networking network interface card and internet network interface card, this turn
Code terminal iidentification is the corresponding mark of transcoding terminal being in idle condition.
It is 2 slice files by the files in stream media slicing treatment to be transcoded for example, being directed to above-mentioned example.File service
Device 501 can obtain 2 transcoding terminal iidentifications, respectively transcoding terminal iidentification 1 to above-mentioned view networking service perception terminal 502
With transcoding terminal iidentification 2, transcoding terminal iidentification 1 and transcoding terminal iidentification 2 are the corresponding mark of the transcoding terminal that is in idle condition
Know.
Step 603: each corresponding transcoding terminal of Xiang Suoshu transcoding terminal iidentification sends a slice file and correspondence
Transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;What each described transcoding terminal received cuts
Piece file is all different;The transcoding terminal is used to be that the corresponding transcoding of the transcoding parameter is sliced by the slice file transcoding
File.
In embodiments of the present invention, to each corresponding transcoding terminal 503 of the transcoding terminal iidentification, a slice is sent
File and corresponding transcoding parameter, corresponding transcoding parameter may include: transcoded format, resolution ratio, frame per second etc.;It is above-mentioned each
The slice file that transcoding terminal receives is all different, which is used to above-mentioned slice file transcoding be transcoding parameter pair
The transcoding slice file answered.
Specifically, the transcoded format can be the format to be transcoded into, the transcoded format equally may include: mp4, avi,
The formats such as flv, wmv.Resolution ratio is the size of the slice file after transcoding, and frame per second is the size etc. of the slice file after transcoding.
Above-mentioned file server 501 can based on view networking protocol, to each corresponding transcoding terminal 503 of the transcoding terminal iidentification,
A slice file and corresponding transcoding parameter are sent, corresponding transcoding parameter may include: transcoded format, resolution ratio, frame per second
Deng;The slice file that each above-mentioned transcoding terminal receives is all different, which is used to turn above-mentioned slice file
Code is that the corresponding transcoding of transcoding parameter is sliced file.
For example, being directed to above-mentioned example, file server 501 can be right to the transcoding terminal iidentification 1 and transcoding terminal iidentification 2
Each the transcoding terminal 503 answered, sends a slice file and corresponding transcoding parameter, if desired by above-mentioned 2 slices text
Part conversion are as follows: flv format, resolution ratio are as follows: 1280*720, frame per second are 30 frames, then corresponding transcoding parameter may include: transcoding lattice
Formula flv format, resolution ratio 1280*720,30 frame of frame per second etc., if transcoding terminal iidentification 1 corresponds to transcoding terminal B1, if transcoding terminal
Slice file 1 can be sent to transcoding terminal B1 by the corresponding transcoding terminal B2 of mark 2, slice file 2 can be sent to transcoding
Above-mentioned 1 transcoding of slice file is that the corresponding transcoding of transcoding parameter is sliced file 1, the transcoding terminal by terminal B2, transcoding terminal B1
Above-mentioned 2 transcoding of slice file is that the corresponding transcoding of transcoding parameter is sliced file 2 by B2.
Step 604: receiving the transcoding slice file that the transcoding terminal returns.
In embodiments of the present invention, the transcoding that above-mentioned file server 501 can receive that above-mentioned transcoding terminal 503 returns is cut
Piece file, specifically, above-mentioned file server 501 can be based on turn for receiving the above-mentioned return of transcoding terminal 503 depending on networking protocol
Code slice file.
For example, being directed to above-mentioned example, above-mentioned file server 501 it is whole can to receive above-mentioned transcoding based on view networking protocol
The transcoding for holding B1 to return is sliced file 1, receives the transcoding that transcoding terminal B2 is returned and is sliced file 2.
Step 605: all transcoding slice file mergencess are obtained into target transcoding file.
In embodiments of the present invention, all transcodings can be sliced file mergences and obtain target turn by file server 501
Code file.
Specifically, merging thread has can be set in this document server 501, which can the Streaming Media to be transcoded
The corresponding all transcoding slice file mergencess of file obtain target transcoding file.
For example, being directed to above-mentioned example, this document server 501 can merge thread by it, by above-mentioned stream matchmaker to be transcoded
The corresponding all transcodings of body file are sliced file, and transcoding is sliced file 1 and transcoding is sliced file 1, and merging obtains target transcoding
File.
In the embodiment of the present invention, optionally, this document server 501 may include view networking storage service system in,
This can store the audio, video data of view networking depending on networking storage service system, at the same time it can also by the sound of internet
Video data transmission is into view networking.In embodiments of the present invention, this is not especially limited.
In the embodiment of the present invention, the obtained target transcoding file can be the formats such as mp4, avi, flv, wmv.In this hair
In bright embodiment, this is not especially limited.
In the embodiment of the present invention, optionally, all transcodings slice file mergences is being obtained target turn by file server 501
After code file, which can also be saved.
In the embodiment of the present invention, the embodiment of the present invention includes: file server, transcoding terminal, view networking service depending on networking
Perception terminal;The method is applied to the file server, is more than preset threshold in the size of files in stream media to be transcoded
In the case of, slicing treatment is carried out to the files in stream media to be transcoded, obtains the slice file of the first quantity;It networks to the view
Service-aware terminal obtains the transcoding terminal iidentification of the first quantity;The transcoding terminal iidentification is the transcoding end being in idle condition
Hold corresponding mark;The service condition depending on saving each transcoding terminal in networking service perception terminal;The business shape
State includes: idle state and busy condition;To each corresponding transcoding terminal of the transcoding terminal iidentification, a slice is sent
File and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;Each described transcoding terminal
The slice file received is all different;The transcoding terminal is used for the slice file transcoding is corresponding for the transcoding parameter
Transcoding be sliced file;Receive the transcoding slice file that the transcoding terminal returns;All transcoding slice files are closed
And obtain target transcoding file.Compared with the existing technology, for treating transcoding stream medium file progress transcoding by file server,
Files in stream media slicing treatment to be transcoded is multiple slice files by the embodiment of the present application, file server, by corresponding number sky
Not busy transcoding terminal carries out transcoding to above-mentioned each slice file respectively, obtains each transcoding slice file, then by above-mentioned file
All transcoding slice file mergencess are obtained target transcoding file by server, and then can be from when largely reducing transcoding
Between, improve transcoding efficiency.
It is the step flow chart of another files in stream media code-transferring method of the invention, this method can be applied referring to Fig. 7
In view networking, step 701-708 can specifically include:
Step 701: in the case where the size of files in stream media to be transcoded is more than preset threshold, according to setting for slice file
Determine size threshold value, determines the corresponding each slice position of the files in stream media to be transcoded.
Specifically, this, which is sized threshold value, to set etc. as the case may be, in files in stream media to be transcoded
In the case that size is more than preset threshold, file server 501 can be sized threshold value according to slice file, determine wait turn
The corresponding each slice position of code stream media file, the slice position can be determining slice in files in stream media to be transcoded
Point.
For example, if preset threshold is 100M, if the size of the files in stream media to be transcoded is 200M, Streaming Media to be transcoded
The size of file is more than the preset threshold, if being sized threshold value is 100M, each slice file can be less than or equal to 100M,
Slice position can be determined in the files in stream media to be transcoded, above-mentioned files in stream media to be transcoded can according to the given threshold
With slice for 2 slice files, then slice position can be 1, for example, can will be after 100M in files in stream media to be transcoded
Position is determined as slice position.
Step 702: the files in stream media slicing treatment to be transcoded being obtained first according to each slice position
The slice file of quantity;The size of the slice file is sized threshold value described in being less than or equal to.
File server 501 can according to above-mentioned each slice position, by above-mentioned files in stream media slicing treatment to be transcoded,
The slice file of the first quantity is obtained, the size of the slice file is sized threshold value less than or equal to above-mentioned.
For example, being directed to above-mentioned example, file server 501 can be by the files in stream media to be transcoded from above-mentioned slice position
Place carry out slicing treatment, obtain 2 slice files, respectively slice file 3 and slice file 4, slice file 3 can for be somebody's turn to do to
Preceding 100M in transcoding stream medium file, slice file 4 can be the rear 100M in the files in stream media to be transcoded.
By determining slice position, slicing treatment is carried out from above-mentioned slice position by the files in stream media to be transcoded, it can be with
Facilitate subsequent merging treatment.
Step 703: the view networking further include: autonomous server;It is described autonomy server include: view networking network interface card and mutually
Networking network interface card;Based on the internet network interface card of the autonomous server, the first quantity is obtained to the view networking service perception terminal
Transcoding terminal iidentification;The transcoding terminal iidentification is the corresponding mark of transcoding terminal being in idle condition;The view networking
The service condition of each transcoding terminal is saved in service-aware terminal;The service condition includes: idle state and busy shape
State.
In embodiments of the present invention, which is referred to above-mentioned steps 602, it should be noted that referring to shown in Fig. 8,
Fig. 8 is the structural schematic diagram of another view networking of the invention, this can also include autonomous server 504, the autonomy depending on networking
Server 504 may include view networking network interface card and internet network interface card, this is used to be based on to be counted depending on networking protocol depending on networking network interface card
According to interaction, which carries out data interaction for internet protocol-based.
This document server 501 can be perceived based on the internet network interface card of the autonomy server 504 to the view networking service
Terminal 502 obtains the transcoding terminal iidentification of the first quantity, which is that the transcoding terminal being in idle condition corresponds to
Mark, the service condition depending on saving each transcoding terminal 503 in networking service perception terminal 502, which can
To include: idle state and busy condition.
Step 704: each corresponding transcoding terminal of Xiang Suoshu transcoding terminal iidentification sends a slice file and correspondence
Transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;What each described transcoding terminal received cuts
Piece file is all different;The transcoding terminal is used to be that the corresponding transcoding of the transcoding parameter is sliced by the slice file transcoding
File.
In embodiments of the present invention, which is referred to above-mentioned steps 603, it should be noted that the transcoding terminal
For sending service condition to the networking service perception terminal that regards as the first of busy condition in transcoding slice file processes
Notification information;The view networking service perception terminal is used for according to first notification information, by the business of the transcoding terminal
State is set as busy condition;The transcoding terminal is used for after transcoding is sliced file, to the view networking service perception terminal
Send the second notification information that service condition is idle state;The view networking service perception terminal, for according to described second
The service condition of the transcoding terminal is set idle state by notification information.
Specifically, in the transcoding terminal 503 in transcoding slice file processes, can by above-mentioned autonomous server etc.,
Service condition is sent as the first notification information of busy condition to the above-mentioned networking service perception terminal 502 that regards, and then the view is networked
Service-aware terminal 502 can set busy condition for the service condition of the transcoding terminal according to first notification information.
For example, being directed to above-mentioned example, above-mentioned 1 transcoding of slice file is that the corresponding transcoding of transcoding parameter is cut by transcoding terminal B1
During piece file 1, alternatively, autonomous server etc. can be led to after receiving the slice file 1, to above-mentioned view networking service sense
Know that terminal 502 sends the first notification information that service condition is busy condition, and then the view networking service perception terminal 502, it can
To set busy condition for the service condition of transcoding terminal B1 according to first notification information.And then it can be accurate, quick
Update transcoding terminal service condition, avoid issuing new transcoding task for the transcoding terminal 503 in busy condition so that
New transcoding task possible waiting time is longer, can reduce the transcoding time to a certain extent.
Step 705: receiving the transcoding slice file that the transcoding terminal returns.
In embodiments of the present invention, which is referred to above-mentioned steps 604, and in order to avoid repeating, details are not described herein again.
In embodiments of the present invention, optionally, the transcoding terminal is used for after transcoding is sliced file, is networked to the view
Service-aware terminal sends the second notification information that service condition is idle state;The view networking service perception terminal, is used for
According to second notification information, idle state is set by the service condition of the transcoding terminal.
Specifically, transcoding terminal 503 is also used to after transcoding is sliced file, to 502 base of view networking service perception terminal
In autonomous server etc., the second notification information that service condition is idle state is sent, the view networking service perception terminal 502,
Idle state can be set by the service condition of above-mentioned transcoding terminal according to second notification information.
For example, being directed to above-mentioned example, above-mentioned 1 transcoding of slice file is that the corresponding transcoding of transcoding parameter is cut by transcoding terminal B1
After piece file 1, autonomous server etc. can be led to, send service condition to the above-mentioned networking service perception terminal 502 that regards as idle shape
Second notification information of state, and then the view networking service perception terminal 502, can be according to second notification information, by the transcoding
The service condition of terminal B1 is set as idle state.And then the service condition of transcoding terminal can be accurately and rapidly updated, to connect
Receive subsequent transcoding service.
Step 706: according to each slice position, determining each slice file in the Streaming Media text to be transcoded
Location information in part.
In embodiments of the present invention, file server 501 can determine each above-mentioned cut according to above-mentioned each slice position
Location information of the piece file in above-mentioned files in stream media to be transcoded.
Specifically, the location information can be sliced the timing sequencing in the files in stream media to be transcoded for that can characterize
Information etc..Since above-mentioned slice position is slice point, then being sliced file can be for before the slice position, or is located at the slice
After position, and then location information of each slice in files in stream media to be transcoded can be determined with each slice position.
For example, being directed to above-mentioned example, the position in the files in stream media to be transcoded after 100M is slice position.It should be wait turn
Code stream media file one shares 1 slice position, and slice file 3 can be the preceding 100M in the files in stream media to be transcoded, cuts
Piece file 4 can be the rear 100M in the files in stream media to be transcoded, and then it can be concluded that, it is sliced the stream to be transcoded in file 3
Location information in media file can are as follows: preceding 100M is sliced the location information in file 4 in the files in stream media to be transcoded
It can are as follows: rear 100M.
Step 707: according to location information of each slice file in the files in stream media to be transcoded, determining each
The merging sequence of a transcoding slice file.
In embodiments of the present invention, file server 501 can be according to each above-mentioned slice file in the stream matchmaker to be transcoded
Location information in body file determines the merging sequence of each transcoding slice file.Merging sequence can cut for characterization is each
The successive sequence of piece file mergences.
For example, being directed to above-mentioned example, the location information being sliced in file 3 in the files in stream media to be transcoded can are as follows:
Preceding 100M, the location information being sliced in file 4 in the files in stream media to be transcoded can are as follows: rear 100M, it is determined that slice
The corresponding transcoding of file 3 is sliced file 3 and is sliced the merging sequence of the corresponding transcoding of file 4 slice file 4 can be with are as follows: transcoding is cut
Merge transcoding behind piece file 3 and is sliced file 4.
Step 708: according to the merging sequence, all transcoding slice file mergencess being obtained into target transcoding text
Part.
In embodiments of the present invention, all transcodings can be sliced text according to above-mentioned merging sequence by file server 501
Part merges to obtain target transcoding file.
For example, it is directed to above-mentioned example, determining merging sequence are as follows: transcoding, which is sliced behind file 3, merges transcoding slice file
4.Then file server 501 can cut the corresponding all transcodings of the files in stream media to be transcoded according to above-mentioned merging sequence
Piece file, transcoding is sliced file 3 and transcoding is sliced file 4, and merging obtains target transcoding file.
In the embodiment of the present invention, the embodiment of the present invention includes: file server, transcoding terminal, view networking service depending on networking
Perception terminal;The method is applied to the file server, is more than preset threshold in the size of files in stream media to be transcoded
In the case of, slicing treatment is carried out to the files in stream media to be transcoded, obtains the slice file of the first quantity;It networks to the view
Service-aware terminal obtains the transcoding terminal iidentification of the first quantity;The transcoding terminal iidentification is the transcoding end being in idle condition
Hold corresponding mark;The service condition depending on saving each transcoding terminal in networking service perception terminal;The business shape
State includes: idle state and busy condition;To each corresponding transcoding terminal of the transcoding terminal iidentification, a slice is sent
File and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;Each described transcoding terminal
The slice file received is all different;The transcoding terminal is used for the slice file transcoding is corresponding for the transcoding parameter
Transcoding be sliced file;Receive the transcoding slice file that the transcoding terminal returns;All transcoding slice files are closed
And obtain target transcoding file.Compared with the existing technology, for treating transcoding stream medium file progress transcoding by file server,
Files in stream media slicing treatment to be transcoded is multiple slice files by the embodiment of the present application, file server, by corresponding number sky
Not busy transcoding terminal carries out transcoding to above-mentioned each slice file respectively, obtains each transcoding slice file, then by above-mentioned file
All transcoding slice file mergencess are obtained target transcoding file by server, and then can be from when largely reducing transcoding
Between, improve transcoding efficiency.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
It is a kind of structural block diagram of the device of files in stream media transcoding of the embodiment of the present invention referring to Fig. 9, is wrapped depending on networking
It includes: file server, transcoding terminal, view networking service perception terminal;Described device is applied to the file server, the dress
Setting 900 may include:
Be sliced module 901, for the size of files in stream media to be transcoded be more than preset threshold in the case where, to it is described to
Transcoding stream medium file carries out slicing treatment, obtains the slice file of the first quantity;
Transcoding terminal iidentification obtains module 902, for obtaining turning for the first quantity to the view networking service perception terminal
Code terminal iidentification;The transcoding terminal iidentification is the corresponding mark of transcoding terminal being in idle condition;The view networking service
The service condition of each transcoding terminal is saved in perception terminal;The service condition includes: idle state and busy condition;
It is sliced file and parameter sending module 903, is used for each corresponding transcoding terminal of the transcoding terminal iidentification,
Send a slice file and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;It is described every
The slice file that one transcoding terminal receives is all different;The transcoding terminal is used to the slice file transcoding be described
The corresponding transcoding of transcoding parameter is sliced file;
Transcoding is sliced file reception module 904, is sliced file for receiving the transcoding that the transcoding terminal returns;
Merging module 906, for all transcoding slice file mergencess to be obtained target transcoding file.
Optionally, on the basis of above-mentioned Fig. 9, referring to Fig.1 shown in 0, the slice module 901 may include:
Slice position determination unit 9011, for the size in files in stream media to be transcoded be more than preset threshold the case where
Under, threshold value is sized according to slice file, determines the corresponding each slice position of the files in stream media to be transcoded;
It is sliced unit 9012, for according to each slice position, by the files in stream media slicing treatment to be transcoded,
Obtain the slice file of the first quantity;The size of the slice file is sized threshold value described in being less than or equal to.
Optionally, described device can also include:
Location information determining module 905, for determining each slice file in institute according to each slice position
State the location information in files in stream media to be transcoded;
The merging module 906 may include:
Merge order determination unit 9061, is used for according to each slice file in the files in stream media to be transcoded
Location information, determine the merging sequence of each transcoding slice file;
Combining unit 9062, for according to the merging sequence, all transcoding slice file mergencess to be obtained mesh
Mark transcoding file.
Optionally, the transcoding terminal is used in transcoding slice file processes, to the view networking service perception terminal
Send the first notification information that service condition is busy condition;The view networking service perception terminal, for according to described first
The service condition of the transcoding terminal is set busy condition by notification information;
The transcoding terminal is used for after transcoding is sliced file, sends service condition to the view networking service perception terminal
For the second notification information of idle state;The view networking service perception terminal is used for according to second notification information, by institute
The service condition for stating transcoding terminal is set as idle state.
Optionally, the view networking further include: autonomous server;It is described autonomy server include: view networking network interface card and mutually
Networking network interface card;
The transcoding terminal iidentification obtains module 902
Transcoding terminal iidentification acquiring unit 9021, for the internet network interface card based on the autonomous server, to the view
Networking service perception terminal obtains the transcoding terminal iidentification of the first quantity.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
In the embodiment of the present invention, the embodiment of the present invention includes: file server, transcoding terminal, view networking service depending on networking
Perception terminal;The method is applied to the file server, is more than preset threshold in the size of files in stream media to be transcoded
In the case of, slicing treatment is carried out to the files in stream media to be transcoded, obtains the slice file of the first quantity;It networks to the view
Service-aware terminal obtains the transcoding terminal iidentification of the first quantity;The transcoding terminal iidentification is the transcoding end being in idle condition
Hold corresponding mark;The service condition depending on saving each transcoding terminal in networking service perception terminal;The business shape
State includes: idle state and busy condition;To each corresponding transcoding terminal of the transcoding terminal iidentification, a slice is sent
File and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;Each described transcoding terminal
The slice file received is all different;The transcoding terminal is used for the slice file transcoding is corresponding for the transcoding parameter
Transcoding be sliced file;Receive the transcoding slice file that the transcoding terminal returns;All transcoding slice files are closed
And obtain target transcoding file.Compared with the existing technology, for treating transcoding stream medium file progress transcoding by file server,
Files in stream media slicing treatment to be transcoded is multiple slice files by the embodiment of the present application, file server, by corresponding number sky
Not busy transcoding terminal carries out transcoding to above-mentioned each slice file respectively, obtains each transcoding slice file, then by above-mentioned file
All transcoding slice file mergencess are obtained target transcoding file by server, and then can be from when largely reducing transcoding
Between, improve transcoding efficiency.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements, but also other elements including being not explicitly listed are included, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It above to a kind of files in stream media code-transferring method provided by the present invention and device, is described in detail, herein
In apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sides
Assistant solves method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.
Claims (10)
1. a kind of method of files in stream media transcoding, which is characterized in that depending on networking include: file server, transcoding terminal, view connection
Network service perception terminal;The method is applied to the file server, which comprises
In the case where the size of files in stream media to be transcoded is more than preset threshold, the files in stream media to be transcoded is cut
Piece processing, obtains the slice file of the first quantity;
The transcoding terminal iidentification of the first quantity is obtained to the view networking service perception terminal;The transcoding terminal iidentification be in
The corresponding mark of transcoding terminal of idle state;The business depending on saving each transcoding terminal in networking service perception terminal
State;The service condition includes: idle state and busy condition;
To each corresponding transcoding terminal of the transcoding terminal iidentification, a slice file and corresponding transcoding parameter are sent;
The transcoding parameter includes: transcoded format, resolution ratio, frame per second;The slice file that each described transcoding terminal receives is not
It is identical;The transcoding terminal is used to be that the corresponding transcoding of the transcoding parameter is sliced file by the slice file transcoding;
Receive the transcoding slice file that the transcoding terminal returns;
All transcoding slice file mergencess are obtained into target transcoding file.
2. the method according to claim 1, wherein the size in files in stream media to be transcoded is more than default
In the case where threshold value, slicing treatment is carried out to the files in stream media to be transcoded, obtains the slice file of the first quantity, comprising:
In the case where the size of files in stream media to be transcoded is more than preset threshold, threshold value is sized according to slice file,
Determine the corresponding each slice position of the files in stream media to be transcoded;
The files in stream media slicing treatment to be transcoded is obtained into the slice text of the first quantity according to each slice position
Part;The size of the slice file is sized threshold value described in being less than or equal to.
3. according to the method described in claim 2, it is characterized in that, described obtain all transcoding slice file mergencess
Before target transcoding file, further includes:
According to each slice position, position letter of each slice file in the files in stream media to be transcoded is determined
Breath;
It is described that all transcoding slice file mergencess are obtained into target transcoding file, comprising:
According to location information of each slice file in the files in stream media to be transcoded, determine that each transcoding is cut
The merging sequence of piece file;
According to the merging sequence, all transcoding slice file mergencess are obtained into target transcoding file.
4. the method according to claim 1, wherein the transcoding terminal is used to be sliced file processes in transcoding
In, service condition is sent to the networking service perception terminal that regards as the first notification information of busy condition;The view networking industry
Business perception terminal, for setting busy condition for the service condition of the transcoding terminal according to first notification information;
The transcoding terminal is used for after transcoding is sliced file, sends service condition to the networking service perception terminal that regards as sky
Second notification information of not busy state;The view networking service perception terminal, for that described will turn according to second notification information
The service condition of code terminal is set as idle state.
5. the method according to claim 1, wherein the view is networked further include: autonomous server;The autonomy
Server includes: view networking network interface card and internet network interface card;
The transcoding terminal iidentification that the first quantity is obtained to the view networking service perception terminal, comprising:
Based on the internet network interface card of the autonomous server, the transcoding of the first quantity is obtained to the view networking service perception terminal
Terminal iidentification.
6. a kind of device of files in stream media transcoding, which is characterized in that depending on networking include: file server, transcoding terminal, view connection
Network service perception terminal;Described device is applied to the file server, and described device includes:
Be sliced module, for the size of files in stream media to be transcoded be more than preset threshold in the case where, to the stream to be transcoded
Media file carries out slicing treatment, obtains the slice file of the first quantity;
Transcoding terminal iidentification obtains module, for obtaining the transcoding terminal mark of the first quantity to the view networking service perception terminal
Know;The transcoding terminal iidentification is the corresponding mark of transcoding terminal being in idle condition;The view networking service perception terminal
In save the service condition of each transcoding terminal;The service condition includes: idle state and busy condition;
It is sliced file and parameter sending module, for sending one to each corresponding transcoding terminal of the transcoding terminal iidentification
A slice file and corresponding transcoding parameter;The transcoding parameter includes: transcoded format, resolution ratio, frame per second;Each described turn
The slice file that code terminal receives is all different;The transcoding terminal is used to the slice file transcoding be transcoding ginseng
The corresponding transcoding of number is sliced file;
Transcoding is sliced file reception module, is sliced file for receiving the transcoding that the transcoding terminal returns;
Merging module, for all transcoding slice file mergencess to be obtained target transcoding file.
7. device according to claim 6, which is characterized in that the slice module includes:
Slice position determination unit, in the case where the size of files in stream media to be transcoded is more than preset threshold, according to cutting
Piece file is sized threshold value, determines the corresponding each slice position of the files in stream media to be transcoded;
It is sliced unit, for the files in stream media slicing treatment to be transcoded to be obtained first according to each slice position
The slice file of quantity;The size of the slice file is sized threshold value described in being less than or equal to.
8. device according to claim 7, which is characterized in that further include:
Location information determining module, for determining each slice file described wait turn according to each slice position
Location information in code stream media file;
The merging module includes:
Merge order determination unit, for believing according to position of each slice file in the files in stream media to be transcoded
Breath determines the merging sequence of each transcoding slice file;
Combining unit, for according to the merging sequence, all transcoding slice file mergencess to be obtained target transcoding text
Part.
9. device according to claim 6, which is characterized in that the transcoding terminal is used to be sliced file processes in transcoding
In, service condition is sent to the networking service perception terminal that regards as the first notification information of busy condition;The view networking industry
Business perception terminal, for setting busy condition for the service condition of the transcoding terminal according to first notification information;
The transcoding terminal is used for after transcoding is sliced file, sends service condition to the networking service perception terminal that regards as sky
Second notification information of not busy state;The view networking service perception terminal, for that described will turn according to second notification information
The service condition of code terminal is set as idle state.
10. device according to claim 6, which is characterized in that the view networking further include: autonomous server;It is described from
Controlling server includes: view networking network interface card and internet network interface card;
The transcoding terminal iidentification obtains module
Transcoding terminal iidentification acquiring unit, for the internet network interface card based on the autonomous server, to the view networking service
Perception terminal obtains the transcoding terminal iidentification of the first quantity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811544264.8A CN109640115A (en) | 2018-12-17 | 2018-12-17 | A kind of files in stream media code-transferring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811544264.8A CN109640115A (en) | 2018-12-17 | 2018-12-17 | A kind of files in stream media code-transferring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109640115A true CN109640115A (en) | 2019-04-16 |
Family
ID=66074734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811544264.8A Pending CN109640115A (en) | 2018-12-17 | 2018-12-17 | A kind of files in stream media code-transferring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109640115A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110475128A (en) * | 2019-08-02 | 2019-11-19 | 视联动力信息技术股份有限公司 | A kind of video transcoding method, device, electronic equipment and storage medium |
CN111629233A (en) * | 2020-05-29 | 2020-09-04 | 北京华夏电通科技有限公司 | Audio and video transcoding method and device |
CN112073727A (en) * | 2020-09-22 | 2020-12-11 | Oppo广东移动通信有限公司 | Transcoding method and device, electronic equipment and storage medium |
CN112584256A (en) * | 2020-12-10 | 2021-03-30 | 杭州当虹科技股份有限公司 | Method for directly writing TS file after transcoding based on NAS storage fragment |
CN115277653A (en) * | 2022-09-26 | 2022-11-01 | 成都华栖云科技有限公司 | Real-time video slicing method and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090161697A1 (en) * | 2007-12-19 | 2009-06-25 | General Instrument Corporation | Method and System for Interleaving Video and Data for Transmission over a Network at a Selected Bit Rate |
CN103237037A (en) * | 2013-05-08 | 2013-08-07 | 华迪计算机集团有限公司 | Media format conversion method and system based on cloud computing architecture |
CN103458270A (en) * | 2013-09-09 | 2013-12-18 | 深圳市融创天下科技股份有限公司 | Video transcoding system and method |
CN105227968A (en) * | 2014-06-30 | 2016-01-06 | 惠州市伟乐科技股份有限公司 | Based on the video code conversion accelerated method of section |
CN105323593A (en) * | 2015-10-29 | 2016-02-10 | 深圳云聚汇数码有限公司 | Multimedia transcoding scheduling method and multimedia transcoding scheduling device |
CN105338371A (en) * | 2015-10-29 | 2016-02-17 | 南京秦杜明视信息技术有限公司 | Multimedia transcoding scheduling method and apparatus |
CN105451031A (en) * | 2015-11-18 | 2016-03-30 | 腾讯科技(深圳)有限公司 | Video transcoding method and system thereof |
CN107370726A (en) * | 2017-06-22 | 2017-11-21 | 上海网达软件股份有限公司 | A kind of virtual sliced sheet method and system for disributed media file trans-coding system |
CN108965224A (en) * | 2017-12-13 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of method and apparatus of video on demand |
-
2018
- 2018-12-17 CN CN201811544264.8A patent/CN109640115A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090161697A1 (en) * | 2007-12-19 | 2009-06-25 | General Instrument Corporation | Method and System for Interleaving Video and Data for Transmission over a Network at a Selected Bit Rate |
CN103237037A (en) * | 2013-05-08 | 2013-08-07 | 华迪计算机集团有限公司 | Media format conversion method and system based on cloud computing architecture |
CN103458270A (en) * | 2013-09-09 | 2013-12-18 | 深圳市融创天下科技股份有限公司 | Video transcoding system and method |
CN105227968A (en) * | 2014-06-30 | 2016-01-06 | 惠州市伟乐科技股份有限公司 | Based on the video code conversion accelerated method of section |
CN105323593A (en) * | 2015-10-29 | 2016-02-10 | 深圳云聚汇数码有限公司 | Multimedia transcoding scheduling method and multimedia transcoding scheduling device |
CN105338371A (en) * | 2015-10-29 | 2016-02-17 | 南京秦杜明视信息技术有限公司 | Multimedia transcoding scheduling method and apparatus |
CN105451031A (en) * | 2015-11-18 | 2016-03-30 | 腾讯科技(深圳)有限公司 | Video transcoding method and system thereof |
CN107370726A (en) * | 2017-06-22 | 2017-11-21 | 上海网达软件股份有限公司 | A kind of virtual sliced sheet method and system for disributed media file trans-coding system |
CN108965224A (en) * | 2017-12-13 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of method and apparatus of video on demand |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110475128A (en) * | 2019-08-02 | 2019-11-19 | 视联动力信息技术股份有限公司 | A kind of video transcoding method, device, electronic equipment and storage medium |
CN111629233A (en) * | 2020-05-29 | 2020-09-04 | 北京华夏电通科技有限公司 | Audio and video transcoding method and device |
CN111629233B (en) * | 2020-05-29 | 2022-03-25 | 北京华夏电通科技股份有限公司 | Audio and video transcoding method and device |
CN112073727A (en) * | 2020-09-22 | 2020-12-11 | Oppo广东移动通信有限公司 | Transcoding method and device, electronic equipment and storage medium |
CN112584256A (en) * | 2020-12-10 | 2021-03-30 | 杭州当虹科技股份有限公司 | Method for directly writing TS file after transcoding based on NAS storage fragment |
CN115277653A (en) * | 2022-09-26 | 2022-11-01 | 成都华栖云科技有限公司 | Real-time video slicing method and system |
CN115277653B (en) * | 2022-09-26 | 2022-12-09 | 成都华栖云科技有限公司 | Real-time video slicing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109640115A (en) | A kind of files in stream media code-transferring method and device | |
CN110072143A (en) | A kind of method for decoding video stream and device | |
CN108111474B (en) | A kind of sound mixing method and device | |
CN107888401B (en) | A kind of method and system of real time monitoring view networked terminals cpu busy percentage | |
CN109151058A (en) | A kind of data transmission method and device | |
CN109996086A (en) | A kind of view networking service method for inquiring status and device | |
CN109120879A (en) | A kind of processing method and system of video conference | |
CN110049271A (en) | A kind of view networking conferencing information methods of exhibiting and device | |
CN110460804A (en) | Conferencing data sending method, system, equipment and computer readable storage medium | |
CN109246486A (en) | A kind of framing method and device | |
CN110049346A (en) | A kind of method and system of net cast | |
CN110493513A (en) | A kind of camera control method and a kind of view networked system | |
CN109547731A (en) | A kind of methods of exhibiting and system of video conference | |
CN109068148A (en) | A kind of method and apparatus of video processing | |
CN110048903A (en) | A kind of association turns gateway status monitoring method and device | |
CN109491783A (en) | A kind of acquisition methods and system of memory usage | |
CN109194901A (en) | A kind of method for processing video frequency and device based on view networking | |
CN109286775A (en) | A kind of multi-person conference control method and system | |
CN109257615A (en) | A kind of method and apparatus that net cast is shown | |
CN110035307A (en) | A kind of fragment storage method and device | |
CN110266577A (en) | A kind of tunnel establishing method and view networked system | |
CN110022500A (en) | A kind of loss treating method and device | |
CN109889380A (en) | A kind of transmission rate processing method and system of data packet | |
CN109121017A (en) | A kind of view intranet network method for evaluating quality and device | |
CN109640016A (en) | It is a kind of to realize the method and apparatus quickly recorded in depending on networking meeting |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |
|
RJ01 | Rejection of invention patent application after publication |