CN106375859B - A kind of media processing method, device and terminal - Google Patents
A kind of media processing method, device and terminal Download PDFInfo
- Publication number
- CN106375859B CN106375859B CN201610850745.6A CN201610850745A CN106375859B CN 106375859 B CN106375859 B CN 106375859B CN 201610850745 A CN201610850745 A CN 201610850745A CN 106375859 B CN106375859 B CN 106375859B
- Authority
- CN
- China
- Prior art keywords
- media content
- backup
- media
- server
- living broadcast
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- 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/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26291—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
-
- 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/27—Server based end-user applications
- H04N21/274—Storing end-user multimedia data in response to end-user request, e.g. network recorder
- H04N21/2743—Video hosting of uploaded data from client
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- 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/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention provides a kind of media processing method, device and terminals, wherein the described method includes: obtaining the optimal way of the medium living broadcast process when detecting that terminal starts medium living broadcast process;The media content being broadcast live in the medium living broadcast process is backed up according to acquired optimal way;By backup media content uploading to server, so that the server is using on-demand content formed in medium living broadcast process described in the backup media content update.Using the present invention, it is ensured that the code rate of on-demand content promotes the play quality of on-demand content, and the media-on-demand service of high quality high-resolution can be provided for user.
Description
Technical field
The present invention relates to Internet technical fields, and in particular at media processing techniques field more particularly to a kind of media
Manage method, apparatus and terminal.
Background technique
Medium living broadcast, which refers to, realizes the synchronous movement carried out to the recording of media program, transmission and broadcast by terminal.One
A complete medium living broadcast process mainly includes acquisition, pretreatment, coding, plug-flow, draws the treatment processes such as stream, medium living broadcast process
Related live stream would generally be converted to on-demand content, so that user can obtain the service such as playback, program request.It is straight in media
It broadcasts in process, if network environment is poor (such as bandwidth is inadequate or network connection generates shake), live media content
It is second-rate, so that the quality for the on-demand content that conversion is formed is also poor, it, must not when user wants to see playback on-demand content
Do not endure fuzzy program request picture, order program service it is second-rate, the viewing experience of user is poor.
Summary of the invention
The embodiment of the present invention provides a kind of media processing method, device and terminal, can guarantee the code rate of on-demand content, mention
The quality for rising on-demand content, provides the media-on-demand service of high quality high-resolution for user.
First aspect of the embodiment of the present invention provides a kind of media processing method, it may include:
When detecting that terminal starts medium living broadcast process, the optimal way of the medium living broadcast process is obtained;
The media content being broadcast live in the medium living broadcast process is backed up according to acquired optimal way;
By backup media content uploading to server, so that the server is using described in the backup media content update
On-demand content formed in medium living broadcast process.
Preferably, the optimal way includes: fragment optimization or global optimization.
Preferably, described to back up the media according to acquired optimal way if the optimal way is fragment optimization
The media content being broadcast live in live streaming process, comprising:
Monitor the network environment of the medium living broadcast process;
If monitoring, the network environment is abnormal, and is obtained the medium living broadcast process and is carved institute's plug-flow when abnormal extremely
A few media slicing;
The media content that at least one described media slicing is included is stored according to the backup of default code rate.
Preferably, described to back up the media according to acquired optimal way if the optimal way is global optimization
The media content being broadcast live in live streaming process, comprising:
All media contents of institute's plug-flow in the medium living broadcast process are recorded using default code rate;
The media content recorded backup is stored as a media file.
Preferably, described by backup media content uploading to server, so that the server uses the backup media
On-demand content formed in medium living broadcast process described in content update, comprising:
Whether the amount of capacity for judging backup media content is more than preset threshold;
If not exceeded, by backup media content uploading to server, so that the server is using in the backup media
Hold and updates on-demand content formed in the medium living broadcast process;
If being more than, output uploads prompting message, and true according to the upload fed back of upload prompting message receiving
When recognizing message, by backup media content uploading to server, so that the server uses the backup media content update institute
State on-demand content formed in medium living broadcast process.
Preferably, this method further include:
During by backup media content uploading to server, if upload procedure is interrupted, record interrupts the moment
The breakpoint storage location of the backup media content;
When restoring upload procedure again, continue that matchmaker will be backed up since the breakpoint storage location of the backup media content
Hold in vivo and is uploaded to server.
Second aspect of the embodiment of the present invention provides a kind of media processor, it may include:
Acquiring unit, for obtaining the excellent of the medium living broadcast process when detecting that terminal starts medium living broadcast process
Change mode;
Backup units, for backing up the media being broadcast live in the medium living broadcast process according to acquired optimal way
Content;
Optimize unit, be used for backup media content uploading to server, so that the server uses the backup matchmaker
On-demand content formed in medium living broadcast process described in body content update.
Preferably, the optimal way includes: fragment optimization or global optimization.
Preferably, if the optimal way is fragment optimization, the backup units include:
Monitoring unit, for monitoring the network environment of the medium living broadcast process;
Fragment acquiring unit, if obtaining the medium living broadcast process for monitoring that the network environment is abnormal and existing
At least one media slicing of abnormal moment institute plug-flow;
First redundant memory cell, for being included according at least one described media slicing of default code rate backup storage
Media content.
Preferably, if the optimal way is global optimization, the backup units include:
Recording elements, for recording all media contents of institute's plug-flow in the medium living broadcast process using default code rate;
Second redundant memory cell, for the media content recorded backup to be stored as a media file.
Preferably, the optimization unit includes:
Judging unit, for judging whether the amount of capacity of backup media content is more than preset threshold;
Uploading unit is used for if not exceeded, by backup media content uploading to server, so that the server uses institute
State on-demand content formed in medium living broadcast process described in backup media content update;If output uploads for being more than
Prompting message, and receive according to it is described upload prompting message fed back upload confirmation message when, by backup media content
It is uploaded to server, so that the server is using formed in medium living broadcast process described in the backup media content update
On-demand content.
Preferably, the device further include:
Breakpoint transmission unit is used for during by backup media content uploading to server, if upload procedure occurs
It interrupts, record interrupts the breakpoint storage location of backup media content described in the moment, when restoring upload procedure again, from described standby
The breakpoint storage location of part media content starts to continue backup media content uploading to server.
The third aspect of the embodiment of the present invention provides a kind of terminal, it may include the dress of media handling described in above-mentioned second aspect
It sets.
The embodiment of the present invention backs up the media content being broadcast live in the medium living broadcast process in medium living broadcast process, will
Backup media content uploading is to server, so that the server is using medium living broadcast stream described in the backup media content update
On-demand content formed in journey;Since local backup is not necessarily to consider the influence of network environment, the backup of high code rate can be obtained
Media content updates the on-demand content that replacement medium living broadcast process is formed, Ke Yibao using the backup media content of high code rate
The code rate for demonstrate,proving on-demand content, promotes the play quality of on-demand content, the media-on-demand of high quality high-resolution can be provided for user
Service.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of medium living broadcast system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of media processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of internal structure of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of media processor provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Medium living broadcast, which refers to, realizes the synchronous movement carried out to the recording of media program, transmission and broadcast by terminal.This
Place, terminal may include but be not limited to: the equipment such as TV, radio station, smart phone, PAD (tablet computer).The embodiment of the present invention provides
A kind of medium living broadcast system, referring to Figure 1, the structure of the system can include: main broadcaster's terminal, server and at least one sight
See terminal;Under this system architecture, a complete medium living broadcast process mainly includes following interactive step:
1, main broadcaster terminal side
(1) it acquires.Main broadcaster's terminal or the APP for running in main broadcaster's terminal and supporting medium living broadcast function
Original media content required for the acquisition of (Application, application program) client is broadcast live, media content herein may include
Audio, video data.In the specific implementation, main broadcaster's terminal built-in or external camera acquisition video data can be used, main broadcaster's end is used
End is built-in or External microphone acquires audio data;Wherein, the video data can for RGB (Red Green Blue, it is red green
Blue color mode) data of format or a kind of data of YUV (colour coding method) format, audio data can be PCM
The data of (Pulse-code modulation, pulse number tune are compiled) format.
(2) it pre-processes.Collected original media content volume it is usually larger, in order to promote efficiency of transmission, be convenient for
The processing such as plug-flow draws stream and stores, and main broadcaster's terminal is needed to encode original media content, be compressed.In the specific implementation, can be with
Select H.264, H.265 etc. that technologies carry out encoding compression processing to video data, using MP3, AAC (Advanced Audio
Coding, Advanced Audio Coding) etc. technologies to audio data carry out encoding compression processing.
(3) plug-flow.The process of plug-flow is by main broadcaster's terminal by the process of media content transmission to server, it is desirable that pre- place
Audio, video data after reason is packaged using transport protocol, becomes flow data, and common flow host-host protocol may include but unlimited
In: RTSP (Real Time Streaming Protocol, real-time streaming protocol), RTMP (Real Time Messaging
Protocol, real-time messages transport protocol), HLS (stream protocol is broadcast live in HTTP Live Streaming, HTTP) etc..With HLS
For, principle is that collected entire live media content stream, which is divided into media slicing small one by one, to be transmitted;Tool
Body, the live stream based on HLS is the file of a m3u8, and this document includes several small TS media slicings.Wherein, m3u8 text
The structure of part can be expressed as follows:
#EXTM3U
#EXT-X-VERSION:1
#EXT-X-TARGETDURATION:10
#EXTINF:3,
4.ts
#EXTINT:8,
6.ts
#EXTINT:8,
8.ts
#EXTINT:8,
10.ts
Since medium living broadcast is higher to requirement of real-time, above steps is executed to main broadcaster's terminal near-synchronous, i.e.,
The original media content of one section of duration (usually several seconds) is often collected, i.e., coding is carried out to the media content and is encapsulated as a TS
A kind of (file format) media slicing, then by the TS media slicing plug-flow into the server of network.
2, server side
(1) it receives.Server receives one that main broadcaster's terminal plug-flow comes based on the flow host-host protocol between main broadcaster's terminal
A TS media slicing, it is to be understood that each TS media slicing for belonging to same medium living broadcast process has identical traffic identifier,
And have that timing is successive between each TS media slicing, each TS media slicing has respective unique identification.
(2) it stores.Server chronologically successively stores the TS media slicing received, and viewing terminal is facilitated to draw stream
To realize that medium living broadcast is watched.Further, after main broadcaster's terminal completes entire plug-flow process, server can also will be received
All TS media slicings coding assembling is carried out using MP4, HLS etc., form a complete on-demand media file;So, it sees
See that terminal can be played out from server pull on-demand media file, to realize that media-on-demand is watched.
3, viewing terminal side
(1) stream is drawn.Viewing terminal can TS media slicing plays out one by one from server pull, to realize that media are straight
Broadcast viewing.
(2) program request.Viewing terminal can also be played out from server pull on-demand media file, which can be with
The functions such as positioning playing, playback are realized, to realize that media-on-demand is watched.
Pass through the above-mentioned acquisition of main broadcaster's terminal, server and viewing terminal, pretreatment, plug-flow, reception, storage, drawing stream etc.
Complete medium living broadcast process may be implemented in step.In above-mentioned medium living broadcast process, if network environment is poor, such as:
Network bandwidth not enough or network connection generate shake, in the case, in order to guarantee medium living broadcast process it is normal into
Row, it usually needs sacrifice the quality of live stream, i.e. main broadcaster's terminal would generally reduce the code rate of media slicing, this meeting in pretreatment
The quality for causing medium living broadcast process to be finally formed by on-demand media file is also poor, and user can not both obtain high quality high-resolution
Medium living broadcast viewing experience, and the media-on-demand viewing experience of high quality high-resolution can not be obtained.
In order to promote the quality of on-demand content, the quality and viewing experience of media-on-demand service, the embodiment of the present invention are promoted
In, the media content being broadcast live in the medium living broadcast process is backed up in medium living broadcast process, by backup media content uploading
To server, so that the server is using program request formed in medium living broadcast process described in the backup media content update
Content;Since local backup is not necessarily to consider the influence of network environment, the backup media content of high code rate can be obtained, using high code
The backup media content of rate replaces the on-demand content of medium living broadcast process formation to update, it is ensured that the code rate of on-demand content,
The play quality for promoting on-demand content, can provide the media-on-demand service of high quality high-resolution for user.
Based on foregoing description, the embodiment of the invention provides a kind of media processing method, this method be can be as shown in Figure 1
Main broadcaster's terminal execute, unless otherwise indicated, subsequent terminal of the embodiment of the present invention refers to main broadcaster's terminal.Fig. 2 is referred to, this method can
Include the following steps S101- step S103.
S101 obtains the optimal way of the medium living broadcast process when detecting that terminal starts medium living broadcast process.
Terminal starting medium living broadcast process refers to the acquisition of terminal starting media content, and executes subsequent pretreatment, plug-flow
Deng live streaming step.The optimal way of the medium living broadcast process can include but is not limited to: fragment optimization or global optimization.Fragment
Optimization refers to that the media content for part of media fragment involved in medium living broadcast process optimizes.Global optimization refers to
It is optimized for the media content of total medium fragment involved in medium living broadcast process.Wherein, to medium living broadcast process
The purpose optimized is: the quality that medium living broadcast process is formed by on-demand content is promoted, to promote media-on-demand service
Quality.In a kind of feasible embodiment of the invention, the optimal way of medium living broadcast process can be by terminal side user
It presets and is stored in terminal;In the feasible embodiment of another kind of the invention, server can preset matchmaker
The optimal way of body live streaming process is simultaneously issued in terminal;So, this step can this step can be from terminal from the storage of terminal
The optimal way of medium living broadcast process is obtained in memory space.
S102 backs up the media content being broadcast live in the medium living broadcast process according to acquired optimal way.
In a kind of feasible embodiment of the invention, if optimal way is fragment optimization, this method is being held
It is specific to execute following steps s11-s13 during row step S102.
S11 monitors the network environment of the medium living broadcast process.
S12, if monitoring, the network environment is abnormal, and is obtained the medium living broadcast process and is carved institute's plug-flow when abnormal
At least one media slicing.
S13 stores the media content that at least one described media slicing is included according to the backup of default code rate.
In step s11-s13, the network environment of monitoring medium living broadcast process substantially can be the net where monitoring terminal
Network environment, specifically can be by obtaining network bandwidth parameter, obtaining the modes such as network connection parameter come monitoring network environment;If
Network environment is normal (i.e. network bandwidth is enough, network connection is normal), then terminal can handle media according to normal code rate
Fragment simultaneously carries out normal medium living broadcast process;If network environment is abnormal, (i.e. network bandwidth is insufficient, network connection disconnects or production
Raw shake), then, in order to guarantee that normal medium living broadcast process, terminal would generally reduce the media point of abnormal moment institute plug-flow
The transmission code rate of piece come promoted the media respectively efficiency of transmission, i.e., the code of at least one media slicing of abnormal moment institute's plug-flow
Rate is lower, then, this implementation, which then needs to back up according to default code rate, to be stored in the media that this at least one media slicing is included
Hold.It is abnormal herein it should be noted that assuming that the code rate of media slicing involved in normal medium living broadcast process is 64kbps
The code rate of at least one media slicing of moment institute's plug-flow is usually less than 64kbps, and default code rate is generally greater than or equal to
64kbps.By the description of above embodiment it is found that this embodiment has only backed up the matchmaker in the case where network environment is poor
The media content of part of media fragment involved in process is broadcast live in body.
In the feasible embodiment of another kind of the invention, if optimal way is global optimization, this method exists
It is specific to execute following steps s21-s22 during executing step S102.
S21 records all media contents of institute's plug-flow in the medium living broadcast process using default code rate.
The media content recorded backup is stored as a media file by s22.
In step s21-s22, a complete media file, media text can be recorded according to default code rate in terminal local
The media content that part includes is all media contents of medium living broadcast process institute plug-flow.Herein it should be noted that media are literary
The file format of part can include but is not limited to: MP4 or HLS.Default code rate can be set according to actual needs, usually be set
It is set to and is greater than or equal to transmission code rate involved in normal media live streaming process.By the description of above embodiment it is found that this
Embodiment has backed up the media content of total medium fragment involved in medium living broadcast process.
S103, by backup media content uploading to server, so that the server uses the backup media content more
On-demand content formed in the new medium living broadcast process.
In medium living broadcast process, server both can successively store each TS media slicing of medium living broadcast according to timing,
Each TS media slicing can also be assembled to form complete on-demand media file.For two kinds of embodiment party shown in step S102
Formula, this method execute the process of step S103 can include: in a kind of feasible embodiment of the invention, if in backup media
Hold the media content at least one media slicing;So, by the media content uploading of the backup media fragment to server it
Afterwards, the program request of identical media slicing is known in local storage space acceptance of the bid by unique identification of the server according to each media slicing
Content replaces with the media content of corresponding backup media fragment.In the feasible embodiment of another kind of the invention, if standby
Part media content is complete media file;So, after which being uploaded to server, server can be incited somebody to action
The on-demand content of on-demand media file in local storage space directly replaces with the media content of the backup media file.
In the specific implementation, this method is during executing step S103, it is specific to execute following steps s31-s33.
S31 judges whether the amount of capacity of backup media content is more than preset threshold.
S32, if not exceeded, by backup media content uploading to server, so that the server uses the backup matchmaker
On-demand content formed in medium living broadcast process described in body content update.
S33, if being more than, output upload prompting message, and receive fed back according to the upload prompting message it is upper
When passing confirmation message, by backup media content uploading to server, so that the server uses the backup media content more
On-demand content formed in the new medium living broadcast process.
In step s31-s33, preset threshold can be set according to the actual situation, such as: preset threshold can be
100KB, 500KB etc. show backup media content if the amount of capacity of backup media content is less than or equal to preset threshold
It is more short and small, transmit that occupied network flow is smaller, transmission is comparatively fast without influencing the use of terminal other function, then can lead to
Step s32 is crossed directly for backup media content uploading to server;If the amount of capacity of backup media content is more than default valve
Value, shows that backup media content is more, transmits that occupied network flow is larger, and transmission may influence terminal other function more slowly
Use, then the user of terminal side can be notified by step s33, when user confirms and uploads, then will be in backup media content
Reach server.
In the specific implementation, following steps s41-s42 can also be performed during executing step S103 in this method.
S41, during by backup media content uploading to server, if upload procedure is interrupted, record is interrupted
The breakpoint storage location of backup media content described in moment.
S42, when restoring upload procedure again, continuing since the breakpoint storage location of the backup media content will be standby
Part media content uploading is to server.
Step s41-s42 describes the process that breakpoint transmission is carried out to backup media content, if backup media content exists
It is uploaded to due to artificially interrupting or Transmission occurs since network environment is abnormal during server, then can remember
Breakpoint storage location is recorded, continues to remain when upload, which is interrupted, to be released from and restore upload procedure again, then from breakpoint storage location
The backup media content uploading of remaining part point is to server.The process of breakpoint transmission can disappear to avoid transmission bring resource is repeated
Consumption saves transmission time and improves efficiency of transmission.
Media processing method provided by the embodiment of the present invention backs up in the medium living broadcast process in medium living broadcast process
The media content being broadcast live, by backup media content uploading to server, so that the server uses the backup media
On-demand content formed in medium living broadcast process described in content update;Since local backup is not necessarily to consider the shadow of network environment
It rings, the backup media content of high code rate can be obtained, replacement medium living broadcast stream is updated using the backup media content of high code rate
The on-demand content that journey is formed, it is ensured that the code rate of on-demand content promotes the play quality of on-demand content, can provide for user
The media-on-demand service of high quality high-resolution.
The embodiment of the invention provides a kind of terminals, refer to Fig. 3, and the internal structure of the terminal may include but be not limited to:
Processor, user interface, network interface and memory.Wherein, the processor in terminal, user interface, network interface and storage
Device can be connected by bus or other modes, in Fig. 3 shown in the embodiment of the present invention for being connected by bus.
Wherein, user interface is the medium realizing user and terminal and interacting with information exchange, and embodying can be with
Including the display screen (Display) for output and the keyboard (Keyboard) for input etc., it should be noted that this
The keyboard at place both can be physical keyboard, or touch screen dummy keyboard can also be entity in conjunction with touch screen virtualphase
Keyboard.Processor (or CPU (Central Processing Unit, central processing unit)) be terminal calculating core and
Control core can parse the Various types of data of all kinds of instructions and processing terminal in terminal, such as: CPU can be used for solving
It analyses user to instruct to switching on and shutting down transmitted by terminal, and controlling terminal carries out switching on and shutting down operation;For another example: CPU can be in terminal
All kinds of interaction datas, etc. are transmitted between portion's structure.Memory (Memory) is the memory device in terminal, for storing program
And data.It is understood that memory herein both may include the internal memory of terminal, naturally it is also possible to including terminal
The extended menory supported.Memory provides memory space, which stores the operating system of terminal.The present invention is real
It applies in example, media processor is also stored in the memory space of memory.Terminal passes through the media handling dress in run memory
It sets to execute the corresponding steps of method flow shown in above-mentioned Fig. 2.Fig. 4 is referred to, the media processor operation such as lower unit:
Acquiring unit 101, for obtaining the medium living broadcast process when detecting that terminal starts medium living broadcast process
Optimal way.
Backup units 102 are being broadcast live in the medium living broadcast process for backing up according to acquired optimal way
Media content.
Optimize unit 103, be used for backup media content uploading to server, so that the server uses the backup
Media content updates on-demand content formed in the medium living broadcast process.
Wherein, the optimal way includes: fragment optimization or global optimization.
In the specific implementation, the device is in the process for running the backup units 102 if the optimal way is fragment optimization
In, carrying out practically such as lower unit:
Monitoring unit 1001, for monitoring the network environment of the medium living broadcast process.
Fragment acquiring unit 1002, if obtaining the medium living broadcast stream for monitoring that the network environment is abnormal
Journey carves at least one media slicing of institute's plug-flow when abnormal.
First redundant memory cell 1003 is wrapped for storing at least one described media slicing according to the backup of default code rate
The media content contained.
In the specific implementation, the device is in the process for running the backup units 102 if the optimal way is global optimization
In, carrying out practically such as lower unit:
Recording elements 1011, for being recorded in the medium living broadcast process in all media of institute's plug-flow using default code rate
Hold.
Second redundant memory cell 1012, for the media content recorded backup to be stored as a media file.
In the specific implementation, the device is during running optimization unit 103, carrying out practically such as lower unit:
Judging unit 2001, for judging whether the amount of capacity of backup media content is more than preset threshold.
Uploading unit 2002, for if not exceeded, by backup media content uploading to server, so that the server is adopted
On-demand content formed in the medium living broadcast process described in the backup media content update;If for being more than to export
Upload prompting message, and receive according to it is described upload prompting message fed back upload confirmation message when, by backup media
Content uploading is to server, so that the server is using institute's shape in medium living broadcast process described in the backup media content update
At on-demand content.
In the specific implementation, the device can also be run such as lower unit:
Breakpoint transmission unit 104 is used for during by backup media content uploading to server, if upload procedure is sent out
Raw to interrupt, record interrupts the breakpoint storage location of backup media content described in the moment, when restoring upload procedure again, from described
The breakpoint storage location of backup media content starts to continue backup media content uploading to server.
Since terminal executes method shown in Fig. 2 by running the media processor that Fig. 4 shows, dress shown in Fig. 4
The function for each unit set can be found in the associated description of each step of method shown in Fig. 2, and this will not be repeated here.
Terminal and media processor provided by the embodiment of the present invention back up the medium living broadcast in medium living broadcast process
The media content being broadcast live in process, by backup media content uploading to server, so that the server is using described standby
Part media content updates on-demand content formed in the medium living broadcast process;Since local backup is without considering network environment
Influence, the backup media content of high code rate can be obtained, updated using the backup media content of high code rate replacement media it is straight
Broadcast the on-demand content of process formation, it is ensured that the code rate of on-demand content promotes the play quality of on-demand content, can be user
The media-on-demand service of high quality high-resolution is provided.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (11)
1. a kind of media processing method characterized by comprising
When detecting that terminal starts medium living broadcast process, the optimal way of the medium living broadcast process is obtained;The optimization side
Formula includes fragment optimization or global optimization;
The media content being broadcast live in the medium living broadcast process is backed up according to acquired optimal way;It wherein, is to use
Default code rate backs up the media content being broadcast live in the medium living broadcast process, and the default code rate is higher than is monitoring net
The code rate of media slicing is pushed when network environmental abnormality;
By backup media content uploading to server, so that the server is using media described in the backup media content update
On-demand content formed in process is broadcast live.
2. the method as described in claim 1, which is characterized in that described according to being obtained if the optimal way is fragment optimization
The optimal way taken backs up the media content being broadcast live in the medium living broadcast process, comprising:
Monitor the network environment of the medium living broadcast process;
If monitoring, the network environment is abnormal, and obtains the medium living broadcast process carves institute's plug-flow when abnormal at least one
A media slicing;
The media content that at least one described media slicing is included is stored according to the backup of default code rate.
3. the method as described in claim 1, which is characterized in that described according to being obtained if the optimal way is global optimization
The optimal way taken backs up the media content being broadcast live in the medium living broadcast process, comprising:
All media contents of institute's plug-flow in the medium living broadcast process are recorded using default code rate;
The media content recorded backup is stored as a media file.
4. the method according to claim 1, which is characterized in that described by backup media content uploading to service
Device, so that the server uses on-demand content formed in medium living broadcast process described in the backup media content update,
Include:
Whether the amount of capacity for judging backup media content is more than preset threshold;
If not exceeded, by backup media content uploading to server, so that the server uses the backup media content more
On-demand content formed in the new medium living broadcast process;
If being more than, output uploads prompting message, and is disappeared receiving according to the upload confirmation that the upload prompting message is fed back
When breath, by backup media content uploading to server, so that the server is using matchmaker described in the backup media content update
On-demand content formed in process is broadcast live in body.
5. method as claimed in claim 4, which is characterized in that further include:
During by backup media content uploading to server, if upload procedure is interrupted, record was interrupted described in the moment
The breakpoint storage location of backup media content;
When restoring upload procedure again, continuing since the breakpoint storage location of the backup media content will be in backup media
Appearance is uploaded to server.
6. a kind of media processor characterized by comprising
Acquiring unit, for obtaining the optimization side of the medium living broadcast process when detecting that terminal starts medium living broadcast process
Formula;The optimal way includes fragment optimization or global optimization;
Backup units, for being backed up in the media being broadcast live in the medium living broadcast process according to acquired optimal way
Hold;It wherein, is that the media content being broadcast live in the medium living broadcast process, the default code rate are backed up using default code rate
Higher than the code rate for pushing media slicing when monitoring network environment exception;
Optimize unit, be used for backup media content uploading to server, so that the server is using in the backup media
Hold and updates on-demand content formed in the medium living broadcast process.
7. device as claimed in claim 6, which is characterized in that if the optimal way is fragment optimization, the backup is single
Member includes:
Monitoring unit, for monitoring the network environment of the medium living broadcast process;
Fragment acquiring unit, if obtaining the medium living broadcast process in exception for monitoring that the network environment is abnormal
At least one media slicing of moment institute's plug-flow;
First redundant memory cell, for storing the media that at least one described media slicing is included according to the backup of default code rate
Content.
8. device as claimed in claim 6, which is characterized in that if the optimal way is global optimization, the backup is single
Member includes:
Recording elements, for recording all media contents of institute's plug-flow in the medium living broadcast process using default code rate;
Second redundant memory cell, for the media content recorded backup to be stored as a media file.
9. such as the described in any item devices of claim 6-8, which is characterized in that the optimization unit includes:
Judging unit, for judging whether the amount of capacity of backup media content is more than preset threshold;
Uploading unit is used for if not exceeded, by backup media content uploading to server, so that the server is using described standby
Part media content updates on-demand content formed in the medium living broadcast process;If output uploads prompt for being more than
Message, and receive according to it is described upload prompting message fed back upload confirmation message when, by backup media content uploading
To server, so that the server is using program request formed in medium living broadcast process described in the backup media content update
Content.
10. device as claimed in claim 9, which is characterized in that further include:
Breakpoint transmission unit is used for during by backup media content uploading to server, if upload procedure is interrupted,
Record interrupts the breakpoint storage location of backup media content described in the moment, when restoring upload procedure again, from the backup matchmaker
The breakpoint storage location held in vivo starts to continue backup media content uploading to server.
11. a kind of terminal, which is characterized in that including such as described in any item media processors of claim 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610850745.6A CN106375859B (en) | 2016-09-26 | 2016-09-26 | A kind of media processing method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610850745.6A CN106375859B (en) | 2016-09-26 | 2016-09-26 | A kind of media processing method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106375859A CN106375859A (en) | 2017-02-01 |
CN106375859B true CN106375859B (en) | 2019-01-15 |
Family
ID=57897434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610850745.6A Active CN106375859B (en) | 2016-09-26 | 2016-09-26 | A kind of media processing method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106375859B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107071503B (en) * | 2017-02-09 | 2019-01-08 | 腾讯科技(深圳)有限公司 | The method, apparatus of net cast and live streaming connect streaming server |
CN110049346A (en) * | 2019-04-10 | 2019-07-23 | 视联动力信息技术股份有限公司 | A kind of method and system of net cast |
CN110392276B (en) * | 2019-07-29 | 2021-06-22 | 湖南卡罗德音乐集团有限公司 | Live broadcast recording and broadcasting method based on Real Time Messaging Protocol (RTMP) synchronous transmission MIDI |
CN110708314A (en) * | 2019-10-09 | 2020-01-17 | 北京字节跳动网络技术有限公司 | Live streaming data uploading method and device, electronic equipment and storage medium |
CN112804545B (en) * | 2021-01-07 | 2022-08-09 | 中电福富信息科技有限公司 | Slow live broadcast processing method and system based on live broadcast streaming frame extraction algorithm |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917590A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Network live broadcasting system with playback function and player |
CN102006511A (en) * | 2010-11-24 | 2011-04-06 | 中兴通讯股份有限公司 | Method and device for looking back live program and terminal |
CN102447893A (en) * | 2010-09-30 | 2012-05-09 | 北京沃安科技有限公司 | Method and system for real-time acquisition and release of videos of mobile phone |
CN102790911A (en) * | 2011-05-16 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Method and system for playback of live broadcast |
CN102932667A (en) * | 2012-11-15 | 2013-02-13 | 掌赢信息科技(上海)有限公司 | Frame loss control and retransmission method and system in real-time streaming media uploading |
CN103729407A (en) * | 2013-12-09 | 2014-04-16 | 乐视网信息技术(北京)股份有限公司 | Method and device for playing live broadcast streaming media |
CN104469512A (en) * | 2013-09-25 | 2015-03-25 | 浙江大华技术股份有限公司 | Video player and video playing control method thereof |
CN105871808A (en) * | 2015-12-14 | 2016-08-17 | 乐视云计算有限公司 | Method and device for transcoding live video |
CN105897678A (en) * | 2015-12-03 | 2016-08-24 | 乐视云计算有限公司 | Network broadcast data processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2245770A1 (en) * | 2008-01-23 | 2010-11-03 | LiveU Ltd. | Live uplink transmissions and broadcasting management system and method |
-
2016
- 2016-09-26 CN CN201610850745.6A patent/CN106375859B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917590A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Network live broadcasting system with playback function and player |
CN102447893A (en) * | 2010-09-30 | 2012-05-09 | 北京沃安科技有限公司 | Method and system for real-time acquisition and release of videos of mobile phone |
CN102006511A (en) * | 2010-11-24 | 2011-04-06 | 中兴通讯股份有限公司 | Method and device for looking back live program and terminal |
CN102790911A (en) * | 2011-05-16 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Method and system for playback of live broadcast |
CN102932667A (en) * | 2012-11-15 | 2013-02-13 | 掌赢信息科技(上海)有限公司 | Frame loss control and retransmission method and system in real-time streaming media uploading |
CN104469512A (en) * | 2013-09-25 | 2015-03-25 | 浙江大华技术股份有限公司 | Video player and video playing control method thereof |
CN103729407A (en) * | 2013-12-09 | 2014-04-16 | 乐视网信息技术(北京)股份有限公司 | Method and device for playing live broadcast streaming media |
CN105897678A (en) * | 2015-12-03 | 2016-08-24 | 乐视云计算有限公司 | Network broadcast data processing method and device |
CN105871808A (en) * | 2015-12-14 | 2016-08-17 | 乐视云计算有限公司 | Method and device for transcoding live video |
Also Published As
Publication number | Publication date |
---|---|
CN106375859A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106375859B (en) | A kind of media processing method, device and terminal | |
US20210168414A1 (en) | Synchronizing Playback of Segmented Video Content Across Multiple Video Playback Devices | |
CN103166941B (en) | A kind of method and device of data sharing | |
CN103067776B (en) | Program push method, system and intelligent display device, cloud server | |
CN102118641B (en) | High-definition video system and method supporting remote mobile reservation based on set-top box | |
CN109561351A (en) | Network direct broadcasting back method, device and storage medium | |
CN103686219B (en) | A kind of method, equipment and the system of video conference recorded broadcast | |
CN106303674B (en) | Data transmission method, device and intelligent television system | |
CN104053014A (en) | Live broadcast system and method based on mobile terminal, and mobile terminal | |
CN101778285B (en) | A kind of audio-video signal wireless transmitting system and method thereof | |
CN103945240A (en) | Video playing method and device based on video aggregation | |
AU2013368906A1 (en) | Reduced latency server- mediated audio-video communication | |
CN104135672A (en) | HLS-based method for realizing seamless disaster recovery of video on demand | |
CN104837043B (en) | Multimedia information processing method and electronic equipment | |
CN104754370B (en) | Multimedia data transmission method, device, client and the system of cross-terminal | |
CN107872721A (en) | A kind of multimedia data transmission method, terminal and computer-readable medium | |
CN112019905A (en) | Live broadcast playback method, computer equipment and readable storage medium | |
CN105577645A (en) | Agent-based HLS client-end device and realization method thereof | |
CN104834649B (en) | It can realize the smart machine and multiple-equipment team working method of more equipment collaborations | |
CN104661059A (en) | Picture playing method and device as well as set-top box | |
CN113938470A (en) | Method and device for playing RTSP data source by browser and streaming media server | |
CN106209824A (en) | The cloud edit methods of data, system and the client of cloud editor | |
CN105979284B (en) | Mobile terminal video sharing method | |
US20230096176A1 (en) | Methods and systems for separate delivery of segments of content items | |
CN105142003A (en) | Television program playing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |