CN106534900A - Method and device for uploading live broadcast video streams - Google Patents

Method and device for uploading live broadcast video streams Download PDF

Info

Publication number
CN106534900A
CN106534900A CN201611051785.0A CN201611051785A CN106534900A CN 106534900 A CN106534900 A CN 106534900A CN 201611051785 A CN201611051785 A CN 201611051785A CN 106534900 A CN106534900 A CN 106534900A
Authority
CN
China
Prior art keywords
video
uploaded
flowing
video flowing
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611051785.0A
Other languages
Chinese (zh)
Inventor
张金良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TVM Beijing Technology Co Ltd
Original Assignee
TVM Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TVM Beijing Technology Co Ltd filed Critical TVM Beijing Technology Co Ltd
Priority to CN201611051785.0A priority Critical patent/CN106534900A/en
Publication of CN106534900A publication Critical patent/CN106534900A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing 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/4402Processing 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/440281Processing 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 altering the temporal resolution, e.g. by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing 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/440263Processing 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 altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Abstract

The invention discloses a method and device for uploading live broadcast video streams. The method includes obtaining a video stream to be uploaded; analyzing video parameter information of the video stream to be uploaded; judging whether the video parameter information of the video stream to be uploaded satisfies a preset video uploading criterion; when the video parameter information of the video stream to be uploaded satisfies the preset video uploading criterion, decoding the video stream to be uploaded and playing the decoded video stream to be uploaded; and after decoding, transcoding the video stream to be uploaded according to the preset video uploading criterion and uploading the video stream to a preset live broadcast server. The method provided by the invention can process video streams to be uploaded which have various video parameter information through a unique technical scheme, thereby overcoming the limitation of the video parameter information of the video streams to be uploaded, and improving user experience of an uploading video terminal.

Description

A kind of method and device for uploading live video stream
Technical field
The present invention relates to net cast technical field, more particularly to a kind of method and device for uploading live video stream.
Background technology
Under some applicable cases, the video flowing that live terminal is uploaded in real time is not only produced by the live transmission terminal itself , it is also possible to from other-end.And the video parameter letter of video flowing of the direct broadcast server to being uploaded by live terminal in real time Breath is to have certain requirements, that is, the video flowing for uploading needs to meet default video upload standard.Can be advance in live terminal Arranged accordingly so that the video flowing for itself producing is to meet the default video to upload standard.But come from other The real-time video flowing of terminal does not ensure that its Video parameter information meets the default video and uploads standard.Further, user During the video flowing for coming from other-end live, also there is the demand for directly watching video flowing in the live terminal in real time.How While live terminal real-time reception comes from the video flowing of other-end, in live terminal plays, this comes from which in real time The video flowing of his terminal, and standard can also be uploaded uploading from which to meet default video in direct broadcast server in real time The video flowing of terminal in him, just becomes industry problem urgently to be resolved hurrily.
The content of the invention
The present invention provides a kind of method and device for uploading live video stream, processes to by unified technical scheme Video flowing to be uploaded with various Video parameter informations.
A kind of first aspect according to embodiments of the present invention, there is provided method of upload live video stream, including:
Obtain video flowing to be uploaded;
The Video parameter information of the video flowing to be uploaded is analyzed, the Video parameter information includes video format and regards Any one of frequency parameter or many persons;
Judge whether the Video parameter information of the video flowing to be uploaded meets default video and upload standard;
When the Video parameter information of the video flowing to be uploaded meets default video uploads standard, on described treating The video flowing of biography carries out decoding and the video flowing described to be uploaded after broadcast decoder;
After the decoding, uploading standard according to the default video carries out transcoding to the video flowing to be uploaded and uploads To default direct broadcast server.
In one embodiment, the Video parameter information of the analysis video flowing to be uploaded, the video parameter Information includes any one of video format and video parameter or many persons, including:
The video format of the video flowing to be uploaded is analyzed, the video format includes stream media protocol, video encapsulation Any one of form and video compression format or many persons;
The video parameter of the video flowing to be uploaded is analyzed, the video parameter includes video resolution, video frame rate With any one of video stream bit rate or many persons.
In one embodiment, whether the Video parameter information for judging the video flowing to be uploaded meets default Video uploads standard, including:
Judge whether the video format of the video flowing to be uploaded meets the video that the default video uploads standard Form, confirms that the judged result is the first judged result;
Judge whether the video parameter of the video flowing to be uploaded meets the video that the default video uploads standard Parameter, confirms that the judged result is the second judged result.
In one embodiment, it is described when the Video parameter information of the video flowing to be uploaded meets on default video During biography standard, the video flowing to be uploaded is decoded and broadcast decoder after video flowing described to be uploaded, including:
It is true time when the first judged result is different with the second judged result, confirms the video of the video flowing to be uploaded Parameter information does not meet default video and uploads standard;
Parse the stream media protocol of the video flowing to be uploaded;
Parse the encapsulation format of the video flowing to be uploaded;
Decompress the video code flow of the video flowing to be uploaded;
After the voice data and video data of the video flowing described to be uploaded after to decompression are synchronized, play described Video flowing to be uploaded.
In one embodiment, it is described after the decoding, upload standard to described to be uploaded according to the default video Video flowing carries out transcoding and uploads to default direct broadcast server, including:
After the decoding, the compressed format of the video format of standard is uploaded according to the default video, is treated to described respectively The voice data and video data of the video flowing of upload is compressed;
The encapsulation format of the video format of standard is uploaded according to the default video, to the video flowing to be uploaded Voice data and video data are packaged;
The stream media protocol form of the video format of standard is uploaded according to the default video, described to be uploaded is regarded The voice data and video data of frequency stream is processed;
Video flowing described to be uploaded after by transcoding is to default direct broadcast server.
A kind of second aspect according to embodiments of the present invention, there is provided device of upload live video stream, including:
Acquisition module, for obtaining video flowing to be uploaded;
Analysis module, for analyzing the Video parameter information of the video flowing to be uploaded, the Video parameter information bag Include any one of video format and video parameter or many persons;
Judge module, for judging whether the Video parameter information of the video flowing to be uploaded meets default video Biography standard;
Decoder module, for uploading standard when the Video parameter information of the video flowing to be uploaded meets default video When, the video flowing to be uploaded is decoded and broadcast decoder after video flowing described to be uploaded;
Transcoding module, for after the decoding, uploading standard to the video flowing to be uploaded according to the default video Carry out transcoding and upload to default direct broadcast server.
In one embodiment, the analysis module, including:
First analysis submodule, for analyzing the video format of the video flowing to be uploaded, the video format includes Any one of stream media protocol, video encapsulation form and video compression format or many persons;
Second analysis submodule, for analyzing the video parameter of the video flowing to be uploaded, the video parameter includes Any one of video resolution, video frame rate and video stream bit rate or many persons.
In one embodiment, the judge module, including:
First judging submodule, for judging whether the video format of the video flowing to be uploaded meets described default Video uploads the video format of standard, confirms that the judged result is the first judged result;
Second judging submodule, for judging whether the video parameter of the video flowing to be uploaded meets described default Video uploads the video parameter of standard, confirms that the judged result is the second judged result.
In one embodiment, the decoder module, including:
Confirm submodule, for being true time when the first judged result is different with the second judged result, treat described in confirmation The Video parameter information of the video flowing of biography does not meet default video and uploads standard;
First analyzing sub-module, for parsing the stream media protocol of the video flowing to be uploaded;
Second analyzing sub-module, for parsing the encapsulation format of the video flowing to be uploaded;
Decompression submodule, for decompressing the video code flow of the video flowing to be uploaded;
Synchronous submodule, the voice data and video data for the video flowing described to be uploaded after to decompression are carried out After synchronization, the video flowing to be uploaded is played.
In one embodiment, the transcoding module, including:
Compression submodule, for after the decoding, the compression lattice of the video format of standard being uploaded according to the default video Formula, is compressed to the voice data and video data of the video flowing to be uploaded respectively;
Encapsulation submodule, for the encapsulation format of the video format of standard is uploaded according to the default video, to described The voice data and video data of video flowing to be uploaded is packaged;
Submodule is processed, for the stream media protocol form of the video format of standard is uploaded according to the default video, The voice data and video data of the video flowing to be uploaded are processed;
Submodule is uploaded, for the video flowing described to be uploaded after by transcoding to default direct broadcast server.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from description Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write In book, claims and accompanying drawing, specifically noted structure is realizing and obtain.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for description, the reality with the present invention Applying example is used for explaining the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for the upload live video stream shown in an exemplary embodiment of the invention;
The stream of the step of Fig. 2 is a kind of method of the upload live video stream shown in an exemplary embodiment of the invention S12 Cheng Tu;
The stream of the step of Fig. 3 is a kind of method of the upload live video stream shown in an exemplary embodiment of the invention S13 Cheng Tu;
The stream of the step of Fig. 4 is a kind of method of the upload live video stream shown in an exemplary embodiment of the invention S14 Cheng Tu;
The step of Fig. 5 is a kind of method of the upload live video stream shown in an exemplary embodiment of the invention S15 flow processs Figure;
Fig. 6 is a kind of block diagram of the device of the upload live video stream shown in an exemplary embodiment of the invention;
Fig. 7 is a kind of analysis module 62 of the device of the upload live video stream shown in an exemplary embodiment of the invention Block diagram;
Fig. 8 is a kind of judge module 63 of the device of the upload live video stream shown in an exemplary embodiment of the invention Block diagram;
Fig. 9 is a kind of decoder module 64 of the device of the upload live video stream shown in an exemplary embodiment of the invention Block diagram;
Figure 10 is a kind of transcoding module 65 of the device of the upload live video stream shown in an exemplary embodiment of the invention Block diagram.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of method flow diagram of the upload live video stream according to an exemplary embodiment, such as Fig. 1 institutes Show that the method for the upload live video stream comprises the following steps S11-S15:
In step s 11, obtain video flowing to be uploaded;
In step s 12, the Video parameter information of the video flowing to be uploaded is analyzed, the Video parameter information includes Any one of video format and video parameter or many persons;
In step s 13, judge whether the Video parameter information of the video flowing to be uploaded meets on default video Biography standard;
In step S14, standard is uploaded when the Video parameter information of the video flowing to be uploaded meets default video When, the video flowing to be uploaded is decoded and broadcast decoder after video flowing described to be uploaded;
In step S15, after the decoding, upload standard according to the default video to enter the video flowing to be uploaded Row transcoding simultaneously uploads to default direct broadcast server.
In one embodiment, under some applicable cases, the video flowing that live terminal is uploaded in real time is not only straight by this Broadcast transmission terminal itself generation, it is also possible to from other-end.And direct broadcast server is to being regarded by the upload in real time of live terminal The Video parameter information of frequency stream is to have certain requirements, that is, the video flowing for uploading needs to meet default video upload standard. Can be arranged accordingly in advance in live terminal so that the video flowing for itself producing is to meet the default video to upload mark It is accurate.But come from the real-time video flowing of other-end and do not ensure that its Video parameter information meets on the default video Biography standard.Further, during the video flowing that user comes from other-end live, also have in the live terminal that directly viewing is regarded in real time The demand of frequency stream.How while live terminal real-time reception comes from the video flowing of other-end, in real time at live end The video flowing that this comes from other-end is played at end, and can also be uploaded with meeting default video in direct broadcast server in real time Uploading the video flowing of terminal in other, the technical scheme in the present embodiment can adequate solution the problems referred to above for standard.
Following technical schemes is applied and is not met the default video of direct broadcast server in live terminal video flowing to be uploaded The situation of upload standard.Further, it is commonly used to coordinate live situation, or live terminal itself in multiple terminals The video flowing to be uploaded for producing does not meet the situation that the default video of direct broadcast server uploads standard.
Detailed step is as follows, obtains video flowing to be uploaded first in real time.Analyze the video of the video flowing to be uploaded Parameter information, the Video parameter information include any one of video format and video parameter or many persons, and the video format includes Any one of stream media protocol, video encapsulation form and video compression format or many persons, the video parameter include that video is differentiated Any one of rate, video frame rate and video stream bit rate or many persons.Video compression format includes that video code model and audio frequency are compiled Code form.
Then judge whether the Video parameter information of the video flowing to be uploaded meets default video and upload standard.Enter one Step, judge whether the video format of the video flowing to be uploaded meets the video format that the default video uploads standard, and Confirm that the judged result is the first judged result;Judge whether the video parameter of the video flowing to be uploaded meets this and default regard Frequency uploads the video parameter of standard, and confirms that the judged result is the second judged result.
It is when the Video parameter information of the video flowing to be uploaded meets default video uploads standard, to be uploaded to this Video flowing carries out decoding and the video flowing to be uploaded after broadcast decoder.Further, when the first above-mentioned judged result and It is true time when second judged result is different, confirms that the Video parameter information of the video flowing to be uploaded is not met on default video Biography standard.In the case where default video upload standard is not met, the Streaming Media association of the to be uploaded video flowing is parsed first View.Then parse the encapsulation format of the video flowing to be uploaded.Then decompress the video code flow of the video flowing to be uploaded.Most After synchronizing to the voice data and video data of the video flowing to be uploaded after decompression afterwards, play this and to be uploaded regard Frequency flows.
After the decoding, uploading standard according to the default video carries out transcoding to the video flowing to be uploaded and uploads to pre- If direct broadcast server.Further, after the decoding, upload the compression of the video format of standard first according to the default video Form, respectively the voice data and video data of the video flowing to be uploaded to this be compressed.Then according to the default video The encapsulation format of the video format of upload standard, the voice data and video data of the video flowing to be uploaded to this are packaged. Upload the stream media protocol form of the video format of standard then according to the default video, the sound of the video flowing to be uploaded to this Frequency evidence and video data are processed.Finally by the video flowing to be uploaded after transcoding to default direct broadcast server.
For example, certain live terminal A receives the video flowing α to be uploaded that certain high-definition camera B sends, should by analysis Video flowing α to be uploaded, the Video parameter information that can obtain the video flowing α to be uploaded are as follows, video format:Streaming Media is assisted Discuss as RTMP (Real Time Messaging Protocol, real-time messages host-host protocol), encapsulation format is FLV (Flash Video, streaming media video), the video code model in video compression format is MPEG2 (Moving Picture Experts Group, Motion Picture Experts Group), the audio coding formats in video compression format are AC-3 (Dolby Surround Audio Coding-3, Dolby Surround sound encoder is 3).Video parameter is as follows:Video frame rate is PAL (the Phase Alteration of 25 frames Lin, line-by-line inversion), video code rate is 3.5M/S, and video resolution is 1080P.
Default video upload standard β of direct broadcast server is as follows, video format:Stream media protocol is RTMP (Real Time Messaging Protocol, real-time messages host-host protocol), encapsulation format is TS (Transport Stream, transmission Stream), the video code model in video compression format is for H.264, the audio coding formats in video compression format are AAC (Advanced Audio Coding, Advanced Audio Coding).Video parameter is as follows:Video frame rate is the PAL (Phase of 25 frames Alteration Lin, line-by-line inversion), video code rate is not more than 1.5M/S, and video resolution is not more than 720P.This is to be uploaded The video format of video flowing α does not meet the video format that the default video uploads standard β, confirms that the first judged result is false. The video parameter of the video flowing α to be uploaded does not meet the video parameter that the default video uploads standard β, confirms that second judges As a result it is false.Meet the first judged result it is different with the second judged result when for genuine condition, therefore confirm the video to be uploaded The Video parameter information of stream α does not meet default video and uploads standard β.
Next the video flowing α to be uploaded to this is decoded, and the detailed process of decoding is as follows:Parse this to be uploaded to regard Frequency flows the stream media protocol RTMP of α, obtains the content of its encapsulation format;Parse the encapsulation format of the video flowing α to be uploaded FLV, obtains its video code flow, and video code flow includes two parts of video and audio frequency.Decompress regarding for the video flowing α to be uploaded Frequency coded format MPEG2 and audio coding formats AAC, the video data of the video flowing α to be uploaded after being decompressed and Voice data, after synchronizing to the video data and voice data, can play this in the live terminal and to be uploaded regards Frequency stream α.
Then uploading standard β according to the default video to the video flowing α to be uploaded carries out transcoding, after the completion of transcoding Upload the video flowing after the transcoding.Detailed decoding process is as follows:To the video data of the above-mentioned video flowing α to be uploaded and Voice data is compressed respectively, and H.264 the video data is compressed according to video code model, and the voice data is pressed It is compressed according to audio coding formats AAC.Then the voice data and video data after compression is entered into envelope according to encapsulation format TS Fill, then stream media protocol RTMP carries out streaming.In above process, while by the video codes of the video flowing α to be uploaded Rate is reduced to 1.5M/S from 3.5M/S, and video resolution is reduced to 720P from 1080P.To treat through this after above-mentioned steps The video flowing α of biography is to default direct broadcast server.
Technical scheme in the present embodiment can be processed by unified technical scheme with various Video parameter informations Video flowing to be uploaded, so as to extend the restriction of the Video parameter information of video flowing to be uploaded, regards so as to improve upload The Consumer's Experience of frequency terminal.
In one embodiment, as shown in Fig. 2 step S12 comprises the steps S21-S22:
In the step s 21, the video format of the video flowing to be uploaded is analyzed, the video format includes that Streaming Media is assisted Any one of view, video encapsulation form and video compression format or many persons;
In step S22, the video parameter of the video flowing to be uploaded is analyzed, and the video parameter includes that video is differentiated Any one of rate, video frame rate and video stream bit rate or many persons.
In one embodiment, the Video parameter information of the video flowing to be uploaded is analyzed, the parameter information includes regarding Any one of frequency form and video parameter or many persons, wherein video format are related to being adopted for the video flowing to be uploaded Various agreements, the video parameter be related to the video flowing to be uploaded referring to quality.Further, the video format includes stream Any one of media protocol, video encapsulation form and video compression format or many persons;The video parameter include video resolution, Any one of video frame rate and video stream bit rate or many persons.
In one embodiment, as shown in figure 3, step S13 comprises the steps S31-S32:
In step S31, judge whether the video format of the video flowing to be uploaded meets on the default video The video format of biography standard, confirms that the judged result is the first judged result;
In step s 32, judge whether the video parameter of the video flowing to be uploaded meets on the default video The video parameter of biography standard, confirms that the judged result is the second judged result.
In one embodiment, stream media protocol, video encapsulation form and the video of the video flowing to be uploaded are judged Whether any one of compressed format or many persons meet the default video uploads the stream media protocol of standard, video encapsulation lattice Any one of formula and video compression format or many persons, and confirm that the judged result is the first judged result.Treat described in judging Whether any one of the video resolution of the video flowing of biography, video frame rate and video stream bit rate or many persons meet this default regards Frequency uploads any one of video resolution, video frame rate and video stream bit rate of standard or many persons, and confirms the judged result For the second judged result.
In one embodiment, as shown in figure 4, step S14 comprises the steps S41-S45:
In step S41, it is true time when the first judged result is different with the second judged result, confirms described to be uploaded The Video parameter information of video flowing does not meet default video and uploads standard;
In step S42, the stream media protocol of the video flowing to be uploaded is parsed;
In step S43, the encapsulation format of the video flowing to be uploaded is parsed;
In step S44, the video code flow of the video flowing to be uploaded is decompressed;
In step S45, to decompression after video flowing described to be uploaded voice data and video data carry out together After step, the video flowing to be uploaded is played.
In one embodiment, obtaining the first above-mentioned judged result and the second judged result carries out logic and operation, i.e., Only when the first judged result and the second judged result are true time simultaneously, the Video parameter information of video flowing to be uploaded is just confirmed Meet default video and upload standard, in addition in the case of, confirm that the Video parameter information of video flowing to be uploaded is not inconsistent Close default video and upload standard.Concrete logical relation refers to 1 logical operationss table of following table table:
1 logical operationss table of table
First judged result First judged result Output result
Very Very Very
Very It is false It is false
It is false Very It is false
It is false It is false It is false
In 1 logical operationss table of upper table table, output result is that the false Video parameter information for representing video flowing to be uploaded is accorded with Close not default video and upload standard;Output result is that the Video parameter information of true respresentation video flowing to be uploaded meets default Video uploads standard.
Signaling data can be got rid of during parsing the stream media protocol of the video flowing of the upload, parsing stream media protocol And only retain video flowing.For example, using the data of RTMP protocol transmissions, after parsing stream media protocol operation, FLV lattice are exported The data of formula.Parse the tunneling of the video flowing to be uploaded afterwards, the Main Function of tunneling be video code flow and Audio code stream is stored in one file according to certain form.Further according to video flowing to be uploaded compressed format decompressing Go out video code flow, video code flow includes two parts of video data and voice data.If video data and voice data do not have If compression, it is assumed that the data volume of the film A after a compressed format be 4G, the video data and audio frequency number of film A According to data volume may exceed 100G.After synchronizing to the voice data and video data after above-mentioned decompression, play Device just can directly play the voice data and video data.
In one embodiment, as shown in figure 5, step S15 comprises the steps S51-S54:
In step s 51, after the decoding, the compressed format of the video format of standard is uploaded according to the default video, Respectively the voice data and video data of the video flowing to be uploaded are compressed;
In step S52, the encapsulation format of the video format of standard is uploaded according to the default video, on described treating The voice data and video data of the video flowing of biography is packaged;
In step S53, the stream media protocol form of the video format of standard is uploaded according to the default video, to institute The voice data and video data for stating video flowing to be uploaded is processed;
In step S54, by transcoding after video flowing described to be uploaded to default direct broadcast server.
In one embodiment, after crossing through above-mentioned decoding process, regarding for standard is uploaded according to default video The compressed format of frequency form, is compressed to the voice data and video data of the video flowing to be uploaded respectively.Further according to The default video uploads the encapsulation format of the video format of standard, the voice data and video counts of the video flowing to be uploaded to this According to being packaged.Then the stream media protocol form of the video format of standard is uploaded according to the default video, it is to be uploaded to this Video flowing voice data and video data processed.Stream media protocol transmission regarding video flowing while, simultaneous transmission Some signaling datas.Those signaling datas include the control to playing and the description of network state.During above-mentioned transcoding, Ensure frequency division resolution, video frame rate and the video of the video flowing after the video format process of standard are uploaded according to default video Stream bit rate meets the video parameter that default video uploads standard.Finally, by the video flowing to be uploaded after transcoding in advance If direct broadcast server.
In one embodiment, Fig. 6 is a kind of device of the upload live video stream according to an exemplary embodiment Block diagram.As Fig. 6 shows that the device includes acquisition module 61, analysis module 62, judge module 63, decoder module 64 and transcoding module 65。
The acquisition module 61, for obtaining video flowing to be uploaded;
The analysis module 62, for analyzing the Video parameter information of the video flowing to be uploaded, the video parameter letter Breath includes any one of video format and video parameter or many persons;
The judge module 63, for judging whether the Video parameter information of the video flowing to be uploaded meets default regarding Frequency uploads standard;
The decoder module 64, for uploading when the Video parameter information of the video flowing to be uploaded meets default video During standard, the video flowing to be uploaded is decoded and broadcast decoder after video flowing described to be uploaded;
The transcoding module 65, for after the decoding, uploading standard according to the default video and regarding to described to be uploaded Frequency stream carries out transcoding and uploads to default direct broadcast server.
As shown in fig. 7, the analysis module 62 includes the first analysis submodule 71 and the second analysis submodule 72.
The first analysis submodule 71, for analyzing the video format of the video flowing to be uploaded, the video format Including any one of stream media protocol, video encapsulation form and video compression format or many persons;
The second analysis submodule 72, for analyzing the video parameter of the video flowing to be uploaded, the video parameter Including any one of video resolution, video frame rate and video stream bit rate or many persons.
As shown in figure 8, the judge module 63 includes the first judging submodule 81 and the second judging submodule 82.
First judging submodule 81, for judging whether the video format of the video flowing to be uploaded meets described pre- If video upload the video format of standard, confirm that the judged result is the first judged result;
Second judging submodule 82, for judging whether the video parameter of the video flowing to be uploaded meets described pre- If video upload the video parameter of standard, confirm that the judged result is the second judged result.
As shown in figure 9, the decoder module 64 includes validating that submodule 91, the first analyzing sub-module 92, second parse submodule Block 93, decompression submodule 94 and synchronous submodule 95:
The confirmation submodule 91, for being true time when the first judged result is different with the second judged result, confirms described The Video parameter information of video flowing to be uploaded does not meet default video and uploads standard;
First analyzing sub-module 92, for parsing the stream media protocol of the video flowing to be uploaded;
Second analyzing sub-module 93, for parsing the encapsulation format of the video flowing to be uploaded;
The decompression submodule 94, for decompressing the video code flow of the video flowing to be uploaded;
The synchronous submodule 95, for the voice data and video data of the video flowing described to be uploaded after to decompression After synchronizing, the video flowing to be uploaded is played.
As shown in Figure 10, the transcoding module 65 includes compressing submodule 101, encapsulation submodule 102, processes submodule 103 With upload submodule 104.
The compression submodule 101, for after the decoding, the pressure of the video format of standard being uploaded according to the default video Contracting form, is compressed to the voice data and video data of the video flowing to be uploaded respectively;
The encapsulation submodule 102, it is for the encapsulation format of the video format of standard is uploaded according to the default video, right The voice data and video data of the video flowing to be uploaded is packaged;
The process submodule 103, for the stream media protocol of the video format of standard is uploaded according to the default video Form, is processed to the voice data and video data of the video flowing to be uploaded;
The upload submodule 104, for the video flowing described to be uploaded after by transcoding to default direct broadcast server.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be using the computer for wherein including computer usable program code at one or more The shape of the computer program implemented in usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention be with reference to method according to embodiments of the present invention, equipment (system), and computer program flow process Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be provided The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. it is a kind of upload live video stream method, it is characterised in that include:
Obtain video flowing to be uploaded;
The Video parameter information of the video flowing to be uploaded is analyzed, the Video parameter information includes video format and video ginseng Any one of number or many persons;
Judge whether the Video parameter information of the video flowing to be uploaded meets default video and upload standard;
When the Video parameter information of the video flowing to be uploaded meets default video uploads standard, to described to be uploaded Video flowing carries out decoding and the video flowing described to be uploaded after broadcast decoder;
After the decoding, uploading standard according to the default video carries out transcoding to the video flowing to be uploaded and uploads to pre- If direct broadcast server.
2. the method for claim 1, it is characterised in that the video parameter letter of the analysis video flowing to be uploaded Breath, the Video parameter information include any one of video format and video parameter or many persons, including:
The video format of the video flowing to be uploaded is analyzed, the video format includes stream media protocol, video encapsulation form With any one of video compression format or many persons;
The video parameter of the video flowing to be uploaded is analyzed, the video parameter includes video resolution, video frame rate and regards Any one of frequency stream bit rate or many persons.
3. method as claimed in claim 2, it is characterised in that the video parameter letter of the judgement video flowing to be uploaded Whether breath meets default video uploads standard, including:
Judge whether the video format of the video flowing to be uploaded meets the video format that the default video uploads standard, Confirm that the judged result is the first judged result;
Judge whether the video parameter of the video flowing to be uploaded meets the video parameter that the default video uploads standard, Confirm that the judged result is the second judged result.
4. method as claimed in claim 3, it is characterised in that described when the Video parameter information of the video flowing to be uploaded When meeting default video and uploading standard, the video flowing to be uploaded is decoded and broadcast decoder after it is described to be uploaded Video flowing, including:
It is true time when the first judged result is different with the second judged result, confirms the video parameter of the video flowing to be uploaded Information does not meet default video and uploads standard;
Parse the stream media protocol of the video flowing to be uploaded;
Parse the encapsulation format of the video flowing to be uploaded;
Decompress the video code flow of the video flowing to be uploaded;
After the voice data and video data of the video flowing described to be uploaded after to decompression are synchronized, treat described in broadcasting The video flowing of biography.
5. the method for claim 1, it is characterised in that it is described after the decoding, upload mark according to the default video Standard carries out transcoding to the video flowing to be uploaded and uploads to default direct broadcast server, including:
After the decoding, the compressed format of the video format of standard is uploaded according to the default video, respectively to described to be uploaded Video flowing voice data and video data be compressed;
The encapsulation format of the video format of standard, the audio frequency to the video flowing to be uploaded are uploaded according to the default video Data and video data are packaged;
The stream media protocol form of the video format of standard is uploaded according to the default video, to the video flowing to be uploaded Voice data and video data processed;
Video flowing described to be uploaded after by transcoding is to default direct broadcast server.
6. it is a kind of upload live video stream device, it is characterised in that include:
Acquisition module, for obtaining video flowing to be uploaded;
Analysis module, for analyzing the Video parameter information of the video flowing to be uploaded, the Video parameter information includes regarding Any one of frequency form and video parameter or many persons;
Judge module, uploads mark for judging whether the Video parameter information of the video flowing to be uploaded meets default video It is accurate;
Decoder module, for when the Video parameter information of the video flowing to be uploaded meets default video and uploads standard, The video flowing to be uploaded is decoded and broadcast decoder after video flowing described to be uploaded;
Transcoding module, for after the decoding, uploading standard according to the default video is carried out to the video flowing to be uploaded Transcoding simultaneously uploads to default direct broadcast server.
7. device according to claim 6, it is characterised in that the analysis module, including:
First analysis submodule, for analyzing the video format of the video flowing to be uploaded, the video format includes flowing matchmaker Any one of body agreement, video encapsulation form and video compression format or many persons;
Second analysis submodule, for analyzing the video parameter of the video flowing to be uploaded, the video parameter includes video Any one of resolution, video frame rate and video stream bit rate or many persons.
8. device according to claim 7, it is characterised in that the judge module, including:
First judging submodule, for judging whether the video format of the video flowing to be uploaded meets the default video The video format of upload standard, confirms that the judged result is the first judged result;
Second judging submodule, for judging whether the video parameter of the video flowing to be uploaded meets the default video The video parameter of upload standard, confirms that the judged result is the second judged result.
9. device according to claim 8, it is characterised in that the decoder module, including:
Confirm submodule, for being true time when the first judged result is different with the second judged result, confirm described to be uploaded The Video parameter information of video flowing does not meet default video and uploads standard;
First analyzing sub-module, for parsing the stream media protocol of the video flowing to be uploaded;
Second analyzing sub-module, for parsing the encapsulation format of the video flowing to be uploaded;
Decompression submodule, for decompressing the video code flow of the video flowing to be uploaded;
Synchronous submodule, the voice data and video data for the video flowing described to be uploaded after to decompression are synchronized Afterwards, play the video flowing to be uploaded.
10. device according to claim 6, it is characterised in that the transcoding module, including:
Compression submodule, for after the decoding, the compressed format of the video format of standard being uploaded according to the default video, point Other voice data and video data to the video flowing to be uploaded is compressed;
Encapsulation submodule, for the encapsulation format of the video format of standard is uploaded according to the default video, on described treating The voice data and video data of the video flowing of biography is packaged;
Submodule is processed, for the stream media protocol form of the video format of standard is uploaded according to the default video, to institute The voice data and video data for stating video flowing to be uploaded is processed;
Submodule is uploaded, for the video flowing described to be uploaded after by transcoding to default direct broadcast server.
CN201611051785.0A 2016-11-24 2016-11-24 Method and device for uploading live broadcast video streams Pending CN106534900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611051785.0A CN106534900A (en) 2016-11-24 2016-11-24 Method and device for uploading live broadcast video streams

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611051785.0A CN106534900A (en) 2016-11-24 2016-11-24 Method and device for uploading live broadcast video streams

Publications (1)

Publication Number Publication Date
CN106534900A true CN106534900A (en) 2017-03-22

Family

ID=58357304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611051785.0A Pending CN106534900A (en) 2016-11-24 2016-11-24 Method and device for uploading live broadcast video streams

Country Status (1)

Country Link
CN (1) CN106534900A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965914A (en) * 2017-12-20 2018-12-07 北京视联动力国际信息技术有限公司 A kind of video data handling procedure and device based on view networking
CN109729369A (en) * 2018-11-22 2019-05-07 北京奇艺世纪科技有限公司 A kind of live streaming exchange method, system, device and computer readable storage medium
CN110062278A (en) * 2019-04-12 2019-07-26 北京字节跳动网络技术有限公司 Video data issues method, apparatus, electronic equipment and storage medium
CN110493662A (en) * 2019-08-21 2019-11-22 广州汇思信息科技有限公司 A kind of video segment method, apparatus, computer equipment and storage medium
CN110662086A (en) * 2019-10-31 2020-01-07 成都威爱新经济技术研究院有限公司 5G high-definition live broadcast system and video processing method
CN111093082A (en) * 2019-12-14 2020-05-01 贵阳朗玛信息技术股份有限公司 Method and system for live broadcasting of streaming media
CN111182324A (en) * 2020-01-13 2020-05-19 张益兰 Video data processing method and server
CN111726643A (en) * 2019-03-21 2020-09-29 上海语德教育科技有限公司 Live broadcast-based real-time Japanese learning system and method
CN112565814A (en) * 2019-09-26 2021-03-26 腾讯科技(深圳)有限公司 Video distribution method, device, storage medium and server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184195A (en) * 2007-12-25 2008-05-21 腾讯科技(深圳)有限公司 Audio/video living broadcast system and method
CN101765002A (en) * 2009-12-25 2010-06-30 大连三通软件有限公司 Real-time online live broadcast device
US7974313B2 (en) * 2006-02-07 2011-07-05 Samsung Electronics Co., Ltd. System for intermediating A/V stream between data network and IEEE 1394 network and method thereof
CN103686210A (en) * 2013-12-17 2014-03-26 广东威创视讯科技股份有限公司 Method and system for achieving audio and video transcoding in real time
CN104243998A (en) * 2014-09-29 2014-12-24 广州华多网络科技有限公司 Data processing method, data processing device and related servers
CN104410918A (en) * 2014-12-09 2015-03-11 广州华多网络科技有限公司 Method and device for adjusting parameters of live video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7974313B2 (en) * 2006-02-07 2011-07-05 Samsung Electronics Co., Ltd. System for intermediating A/V stream between data network and IEEE 1394 network and method thereof
CN101184195A (en) * 2007-12-25 2008-05-21 腾讯科技(深圳)有限公司 Audio/video living broadcast system and method
CN101765002A (en) * 2009-12-25 2010-06-30 大连三通软件有限公司 Real-time online live broadcast device
CN103686210A (en) * 2013-12-17 2014-03-26 广东威创视讯科技股份有限公司 Method and system for achieving audio and video transcoding in real time
CN104243998A (en) * 2014-09-29 2014-12-24 广州华多网络科技有限公司 Data processing method, data processing device and related servers
CN104410918A (en) * 2014-12-09 2015-03-11 广州华多网络科技有限公司 Method and device for adjusting parameters of live video

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965914A (en) * 2017-12-20 2018-12-07 北京视联动力国际信息技术有限公司 A kind of video data handling procedure and device based on view networking
CN109729369A (en) * 2018-11-22 2019-05-07 北京奇艺世纪科技有限公司 A kind of live streaming exchange method, system, device and computer readable storage medium
CN111726643A (en) * 2019-03-21 2020-09-29 上海语德教育科技有限公司 Live broadcast-based real-time Japanese learning system and method
CN110062278A (en) * 2019-04-12 2019-07-26 北京字节跳动网络技术有限公司 Video data issues method, apparatus, electronic equipment and storage medium
CN110493662A (en) * 2019-08-21 2019-11-22 广州汇思信息科技有限公司 A kind of video segment method, apparatus, computer equipment and storage medium
CN112565814A (en) * 2019-09-26 2021-03-26 腾讯科技(深圳)有限公司 Video distribution method, device, storage medium and server
CN110662086A (en) * 2019-10-31 2020-01-07 成都威爱新经济技术研究院有限公司 5G high-definition live broadcast system and video processing method
CN111093082A (en) * 2019-12-14 2020-05-01 贵阳朗玛信息技术股份有限公司 Method and system for live broadcasting of streaming media
CN111182324A (en) * 2020-01-13 2020-05-19 张益兰 Video data processing method and server
CN112004103A (en) * 2020-01-13 2020-11-27 张益兰 Video data processing system and method based on Internet of things and live webcasting
CN112004104A (en) * 2020-01-13 2020-11-27 张益兰 Video data processing method and server based on Internet of things and live webcasting
CN112004103B (en) * 2020-01-13 2022-04-12 宿迁市广播电视总台 Video data processing system and method based on Internet of things and live webcasting

Similar Documents

Publication Publication Date Title
CN106534900A (en) Method and device for uploading live broadcast video streams
US11527254B2 (en) Apparatus and method for screen related audio object remapping
US6989868B2 (en) Method of converting format of encoded video data and apparatus therefor
CN102986229B (en) The method for decoding 2D compatible stereoscopic video streams
CN107667400B (en) Segment aligned audio coding
EP3792731A1 (en) Multimedia information transmission method and apparatus, and terminal
CN106792155A (en) A kind of method and device of the net cast of multiple video strems
EP2276192A2 (en) Method and apparatus for transmitting/receiving multi - channel audio signals using super frame
CN104333764B (en) A kind of multi-channel video player method and device
CN106878290B (en) Audio and video playing method and device
CN113301359A (en) Audio and video processing method and device and electronic equipment
CN106604047A (en) Multi-video-stream video direct broadcasting method and device
CN109040818A (en) Audio and video synchronization method, storage medium, electronic equipment and system when live streaming
WO2012160782A1 (en) Bit stream transmission device, bit stream reception/transmission system, bit stream reception device, bit stream transmission method, bit stream reception method, and bit stream
CN105163169B (en) A kind of method and system for the data encapsulation format being suitable for transmission
CN105376641B (en) A kind of apparatus and method for fluidizing audio-video document
CN102934452A (en) Method for transporting information and/or application data inside a digital video stream, and relative devices for generating and playing such video stream
CN113207040A (en) Data processing method, device and system for video remote quick playback
CN104079951B (en) Multimedia file processing method and electronic equipment
CN107426487A (en) A kind of panoramic picture recorded broadcast method and system
CN112055253A (en) Method and device for adding and multiplexing independent subtitle stream
CN113055706A (en) Video synthesis method and device, electronic equipment and storage medium
US20130191133A1 (en) Apparatus for audio data processing and method therefor
CN113141536B (en) Video cover adding method and device, electronic equipment and storage medium
CN113784209B (en) Multimedia data stream processing 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170322