CN106817588A - Transcoding control method and device, net cast method and system - Google Patents

Transcoding control method and device, net cast method and system Download PDF

Info

Publication number
CN106817588A
CN106817588A CN201710065863.0A CN201710065863A CN106817588A CN 106817588 A CN106817588 A CN 106817588A CN 201710065863 A CN201710065863 A CN 201710065863A CN 106817588 A CN106817588 A CN 106817588A
Authority
CN
China
Prior art keywords
transcoding
video
frame per
video frame
detection time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710065863.0A
Other languages
Chinese (zh)
Other versions
CN106817588B (en
Inventor
马良
荆睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201710065863.0A priority Critical patent/CN106817588B/en
Publication of CN106817588A publication Critical patent/CN106817588A/en
Application granted granted Critical
Publication of CN106817588B publication Critical patent/CN106817588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/02Diagnosis, testing or measuring for television systems or their details for colour television signals
    • 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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of transcoding control method and device, net cast method and system, belong to internet stream media technical field.Wherein, transcoding control method comprises the following steps:Video frame rate to the current detection time fragment of video flowing is detected, and draws current video frame per second, and sets the current video frame per second for transcoding frame per second, and transcoding is carried out to the video flowing according to the transcoding frame per second;According to the current video frame per second and video frame rate before, the next detection time fragment of the video flowing is determined;Video frame rate to next detection time fragment described in the video flowing is detected, and draws next video frame rate, and the transcoding frame per second is updated into next video frame rate, and transcoding is carried out to the video flowing according to the transcoding frame per second after renewal.The present invention is by the real-time detection to video stream frame rate, it is ensured that the accuracy of video stream transcoding process transit code frame per second.

Description

Transcoding control method and device, net cast method and system
Technical field
It is straight the present invention relates to internet stream media technical field, more particularly to a kind of transcoding control method and device, video Broadcasting method and system.
Background technology
As the development and China's bandwidth of Internet technology are constantly raised speed, the leading content of internet is from word, picture It is leading content progressively to develop into audio frequency and video.The explosion of mobile Internet in recent years so that internet is with people's It is more close that life is contacted, increasingly, it is desired that obtaining multimedia messages from internet to meet the various demands of oneself. Then large quantities of audio-video frequency content providers have been expedited the emergence of, and has greatly facilitated content distributing network (Content Delivery Network, CDN) industry development.Simple audio frequency and video no longer meet the demand of people, and people's demand is either in PC In the case that end or in various mobile terminals, either network quality are excellent or in the case of network quality difference, all The high-quality audio-video frequency content of high-quality can be enjoyed.
For internet stream media field, due to there is big and small many video source providers, these video sources are carried The accuracy of the audio frequency and video form of offer, the frame per second information of such as video are not provided for business.Meanwhile, in video code conversion process Middle video source is also possible in real time change the frame per second information of video flowing.This is resulted in can not be according to accurate video frame rate Transcoding is carried out to video flowing, can be caused according to inaccurate frame per second transcoding:
1. the code check after transcoding is uncontrollable, and the excessive frame per second of mistake sets and the code check after transcoding may be caused excessive, Cause bandwidth waste.
2. frame per second during transcoding is inconsistent with video true frame per second before transcoding, and the frame per second in transcoding process according to mistake is entered Row video code conversion, frame can be taken out to video or replicate the operation of some frames, influence the result of broadcast of video.
The content of the invention
In order to solve problem of the prior art, a kind of transcoding control method and device, video are the embodiment of the invention provides Live broadcasting method and system.The technical scheme is as follows:
On the one hand, there is provided a kind of transcoding control method, comprise the following steps:
Video frame rate to the current detection time fragment of video flowing is detected, and draws current video frame per second, and set institute Current video frame per second is stated for transcoding frame per second, transcoding is carried out to the video flowing according to the transcoding frame per second;
According to the current video frame per second and video frame rate before, the next detection time fragment of the video flowing is determined;
Video frame rate to next detection time fragment described in the video flowing is detected, and draws next video frame rate, And the transcoding frame per second is updated to next video frame rate, the video is flowed into according to the transcoding frame per second after renewal Row transcoding.
Further, the video frame rate to the current detection time fragment of video flowing is detected, and draws current video Frame per second, and the current video frame per second is set for transcoding frame per second, transcoding is carried out to the video flowing according to the transcoding frame per second Step is specifically included:
The video frame rate of the current detection time fragment is detected according to frame per second probe algorithm, the current video frame is drawn Rate;
The current video frame per second is set to transcoding frame per second, according to the transcoding frame per second to the current detection time piece Section and the current detection time fragment to the video flowing between next detection time fragment carry out transcoding.
Further, it is described according to the current video frame per second and video frame rate before, determine the next spy of the video flowing The step of surveying time slice specifically includes:
Calculate the difference of the current video frame per second and the video frame rate before;
If the difference shortens the current detection time fragment and next detection time more than setting difference The time interval of fragment;
If the difference extends the current detection time fragment and next detection less than or equal to setting difference The time interval of time slice.
Further, the video frame rate to next detection time fragment described in the video flowing is detected, and is drawn Next video frame rate, and the transcoding frame per second is updated to next video frame rate, according to the transcoding frame per second after renewal The step of carrying out transcoding to the video flowing specifically includes:
The video frame rate of next detection time fragment is detected according to the frame per second probe algorithm, described next regard is drawn Frequency frame per second;
The transcoding frame per second is updated to next video frame rate, according to the transcoding frame per second after renewal under described One detection time fragment and next detection time fragment to the video flowing before detecting again carry out transcoding.
, there is provided a kind of net cast method, including described transcoding control method on the other hand.
A kind of another further aspect, there is provided transcoding control device, including:
First detecting module, detects for the video frame rate to the current detection time fragment of video flowing, draws current Video frame rate, and the current video frame per second is set for transcoding frame per second, the video flowing is turned according to the transcoding frame per second Code;
Control module, for according to the current video frame per second and video frame rate before, determining the next spy of the video flowing Survey time slice;
Second detecting module, detects for the video frame rate to next detection time fragment described in the video flowing, Next video frame rate is drawn, and the transcoding frame per second is updated to next video frame rate, according to the transcoding after renewal Frame per second carries out transcoding to the video flowing.
Further, first detecting module includes that the first detection submodule and first sets submodule;
The first detection submodule, the video for detecting the current detection time fragment according to frame per second probe algorithm Frame per second, draws the current video frame per second;
Described first sets submodule, for the current video frame per second to be set into transcoding frame per second, according to the transcoding Frame per second is to the current detection time fragment and the current detection time fragment between next detection time fragment The video flowing carries out transcoding.
Further, the control module includes calculating sub module and judging submodule;
The calculating sub module, the difference for calculating the current video frame per second and the video frame rate before;
The judging submodule, for judging:
If the difference shortens the current detection time fragment and next detection time more than setting difference The time interval of fragment;Or
If the difference extends the current detection time fragment and next detection less than or equal to setting difference The time interval of time slice.
Further, second detecting module includes that the second detection submodule and second sets submodule;
The second detection submodule, for detecting next detection time fragment according to the frame per second probe algorithm Video frame rate, draws next video frame rate;
Described second sets submodule, for the transcoding frame per second to be updated into next video frame rate, according to renewal Institute of the transcoding frame per second afterwards to next detection time fragment and next detection time fragment to before detecting again Stating video flowing carries out transcoding.
A kind of another further aspect, there is provided video living transmission system, including described transcoding control device.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By the real-time detection to video stream frame rate, it is ensured that the accuracy of video stream transcoding process transit code frame per second, keep away Bandwidth waste caused by fault-avoidance excessive frame per second by mistake, and the too small frame per second of mistake causes the decline of image quality, it is ensured that The uniformity of image quality and code check before and after transcoding.And then ensure that the quality and effect of video stream transcoding.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the transcoding control method flow chart that the embodiment of the present invention one is provided;
Fig. 2 is the transcoding control method flow chart that the embodiment of the present invention one is provided;
Fig. 3 is the transcoding control method flow chart that the embodiment of the present invention one is provided;
Fig. 4 is the transcoding control method flow chart that the embodiment of the present invention one is provided;
Fig. 5 is the transcoding flow chart that the embodiment of the present invention one is provided;
Fig. 6 is the structural representation of the transcoding control device that the embodiment of the present invention two is provided;
Fig. 7 is the structural representation of the first detecting module that the embodiment of the present invention two is provided;
Fig. 8 is the structural representation of the control module that the embodiment of the present invention two is provided;
Fig. 9 is the structural representation of the second detecting module that the embodiment of the present invention two is provided.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
A kind of transcoding control method is the embodiment of the invention provides, referring to Fig. 1, is comprised the following steps:
S101:Video frame rate to the current detection time fragment of video flowing is detected, and draws current video frame per second, and set The current video frame per second is put for transcoding frame per second, transcoding is carried out to the video flowing according to the transcoding frame per second.
In live scene, video source provider provides video flowing and determines the form of provided video flowing, due to these The form of video source is different, so that carry out real-time transcoding to video source, then the video flowing output after transcoding is processed To user terminal.In due to transcoding process, because of different reasons, such as the video frame rate information entrained by video flowing it is inaccurate or Video frame rate information is not carried, the video frame rate that will cause directly to parse video flowing acquisition is inaccurate, and then cause transcoding not just Video often or after transcoding cannot normally show.
This method carries out real-time detection by the video frame rate to video flowing, and the video frame rate learnt according to real-time detection Transcoding is carried out to video flowing, it is ensured that transcoded quality.
In the present embodiment, the video frame rate to the current detection time fragment of video flowing is detected, and is drawn current Video frame rate, and the current video frame per second is set for transcoding frame per second, the video flowing is turned according to the transcoding frame per second The step of code, S101 specifically included the sub-steps of S1011-S1012 two, as shown in Figure 2.
S1011:The video frame rate of the current detection time fragment is detected according to frame per second probe algorithm, is drawn described current Video frame rate.
Frame per second (Frame rate) is that, for measuring measuring for display frame number, its units of measurement is display frame number per second (Frames per Second, FPS), such as one second 30 frames of display, then frame per second is 30FPS.For the detection of frame per second, its spy Method of determining and calculating is varied, and the computation complexity of the precision then algorithm more high of detection is also higher, thus considers essence when selecting Spend with computation complexity to select different probe algorithms.
Due in live scene, to consider time delay, the treatment to video flowing is extremely rapid, while it is also contemplated that To equipment performance, thus, the detection time fragment of selection is all very short, is chosen in the range of hundreds of milliseconds, although detection Time slice is all very short, but the detection time fragment length chosen determines the accurate journey to the detection of this time slice frame per second Degree, because data are more in detection time fragment more long, thus the result of detection for drawing is more accurate.
In the present embodiment, receiving and processing the initial of video flowing, above-mentioned current detection time fragment is being first choosing The detection time fragment for taking, video frame rate detection is carried out by frame per second probe algorithm to the detection time fragment, is drawn and is worked as forward sight Frequency frame per second.
S1012:The current video frame per second is set to transcoding frame per second, according to the transcoding frame per second to the current detection Time slice and the current detection time fragment to the video flowing between next detection time fragment carry out transcoding.
In the present embodiment, the current video frame per second for detecting using as the transcoding frame per second of transcoding, by the way that forward sight will be deserved Frequency frame per second is set into transcoding device, for example, set in the context parameters of decoder and the context parameters of encoder, is turned Code device according to transcoding frame per second, that is, the current video frame per second for detecting, to current detection time fragment, and current detection time Fragment to the video flowing between next detection time fragment carries out transcoding.
As can be seen that the current video frame per second for detecting is limited, it is only used as regarding in special time fragment The transcoding frame per second of frequency stream, because, the detection process to video flowing is real-time, by the frame of video of real-time detection video flowing Rate, overcome well because unstable networks cause video dither flow and caused by the problem that changes of video frame rate.
S102:According to the current video frame per second and video frame rate before, the next detection time piece of the video flowing is determined Section.
In the present embodiment, can also be detected next time, until transcoding process terminates after the completion of detection every time.Turning During code, detection video frame rate meeting occupying system resources, if frequently carrying out detection can be significantly greatly increased system burden, thus Appropriate setting is carried out to the opportunity for detecting, balance transcoded quality and systematic function.
In the present embodiment, it is described according to the current video frame per second and video frame rate before, under determining the video flowing The step of one detection time fragment, S102 specifically included the sub-steps of S1021-S1022 two, as shown in Figure 3.
S1021:Calculate the difference of the current video frame per second and the video frame rate before.
At the video stream transcoding initial stage, current video frame per second is to detect the video frame rate for drawing for the first time, thus in the absence of it Preceding video frame rate, in this case, sets current detection time fragment and next detection time fragment in advance.
When second video frame rate detection is completed, current video frame per second is the video frame rate that second detection draws, now, Video frame rate is to detect the video frame rate for drawing for the first time before.
When the detection of third time video frame rate is completed, current video frame per second is to detect the video frame rate for drawing for the third time, now, Video frame rate has various setting means before.
A kind of setting means of video frame rate is that video frame rate is the video frame rate that second detection draws before before, Video frame rate is the preceding video frame rate for once detecting out of current detection before i.e., under this setting means, frame of video before Rate need not count the video frame rate that all previous detection draws, can in real time reflect the frame per second situation of change of current video stream.
Another setting means of video frame rate is that video frame rate is comprehensively to detect the video for drawing for the first time before before Frame per second and detect the video frame rate for drawing for the second time and the reference video frame per second for drawing, i.e., before video frame rate be comprehensive currently spy The video frame rate of all previous detection before surveying and the reference video frame per second that draws, for example, detect to first time probe value and second Value setting weight, it is assumed that the weight of first time probe value is 40%, and second weight of probe value is 60%, according to weight calculation Mode calculates reference video frame per second.Under this setting means, video frame rate with reference to all previous detection data before, closer The actual frame per second of video flowing.
In the case where video frame rate detection twice had been carried out, by calculating current video frame per second with frame of video before The difference of rate, determines next detection time fragment.
S1022:If the difference shortens the current detection time fragment and next spy more than setting difference Survey the time interval of time slice;If the difference extends the current detection time fragment less than or equal to setting difference With the time interval of next detection time fragment.
In the present embodiment, current video frame per second is smaller with the difference of video frame rate before, illustrates the steady of current video stream Determine that degree is better, applicable time of the current video frame per second as transcoding frame per second can be extended, at this time, it may be necessary to proper extension is carried out down The time interval of one detection.If current video frame per second is bigger with the difference of video frame rate before, the steady of current video stream is illustrated Determine that degree is poor, at this time, it may be necessary to appropriate shorten the time interval for carrying out next detection, increase detection times, obtained according to detection Video frame rate as transcoding frame per second.
It should be noted that above-mentioned setting difference reflects the acceptable degree of transcoding rear video stream degree of stability, for example when When setting difference is smaller, the video flowing degree of stability for obtaining is higher, is now subjected to degree higher;When setting difference and being larger, obtain The video flowing degree of stability for arriving is relatively low, is now subjected to degree relatively low.
S103:Video frame rate to next detection time fragment described in the video flowing is detected, and draws next video Frame per second, and the transcoding frame per second is updated to next video frame rate, regarded to described according to the transcoding frame per second after renewal Frequency stream carries out transcoding.
Because the detection process of video frame rate is ongoing, so that constantly adjusting transcoding frame per second, Jin Ergeng Transcoding is carried out to video flowing well.
In the present embodiment, the video frame rate to next detection time fragment described in the video flowing is detected, Next video frame rate is drawn, and the transcoding frame per second is updated to next video frame rate, according to the transcoding after renewal The step of frame per second carries out transcoding to video flowing S103 specifically includes the sub-steps of S1031-S1032 two, as shown in Figure 4.
S1031:The video frame rate of next detection time fragment is detected according to the frame per second probe algorithm, is drawn described Next video frame rate.
In the present embodiment, the frame per second probe algorithm for being used in whole transcoding process is identical, is detected according to frame per second and calculated Method detects the video frame rate of next detection time fragment, draws next video frame rate.It should be noted that when carrying out next detection Between fragment video frame rate detect when, its process is detected as step S101 to next detection time fragment When, next detection time fragment is current time fragment.When current detection time fragment in this method is with next detection Between fragment name, its name purpose be in order to distinguish frame per second detection tandem.
S1032:The transcoding frame per second is updated to next video frame rate, according to the transcoding frame per second pair after renewal Next detection time fragment and next detection time fragment to the video flowing before detecting again carry out transcoding.
After next video frame rate is detected, transcoding frame per second before is stopped using, and transcoding frame per second is updated into next regarding Frequency frame per second, according to the transcoding frame per second after renewal, to next detection time fragment and next detection time fragment to detecting again Video flowing in preceding time interval carries out transcoding.
It should be noted that current video frame rate and video frame rate before together decide on video detection next time when Machine, i.e. the video frame rate detection circulation to video flowing are carried out, until video stream transcoding terminates.
By the real-time detection to video stream frame rate, it is ensured that the accuracy of video stream transcoding process transit code frame per second, keep away Bandwidth waste caused by fault-avoidance excessive frame per second by mistake, and the too small frame per second of mistake causes the decline of image quality, it is ensured that The uniformity of image quality and code check before and after transcoding.And then ensure that the quality and effect of video stream transcoding.
As can be seen that the transcoding control method described in the present embodiment is the transcoding frame per second by real-time detection come to transcoding mistake Journey is controlled.Referring to Fig. 5, Fig. 5 is shown using the transcoding particular flow sheet of this transcoding control method.
First, the audio/video flow of input is read, and obtains the encapsulation format of audio/video flow, audio frequency and video parameter and encoding and decoding Parameter information.
Afterwards, audio/video flow is decapsulated, separates audio, video data.
For video data, after the transcoding control method of the present embodiment obtains video frame rate, video frame rate is set Into decoder context parameter and encoder context parameters, and then decoding video data, to the treatment of video filter, and encode Video data after filter treatment.
For voice data, decoding audio data to the treatment of voice data filter, and encodes the audio number after filter treatment According to.
Finally, audio, video data is encapsulated according to output file type, the audio frequency and video after output transcoding.
Shown in Fig. 5 is that the transcoding control method carries out a kind of real of transcoding treatment during net cast to video flowing Mode is applied, not as the restriction of the other embodiment to the transcoding control method.
Embodiment two
Referring to Fig. 6, a kind of transcoding control device is the embodiment of the invention provides, turning of providing in embodiment one can be provided Code control method, including:
First detecting module 210, detects for the video frame rate to the current detection time fragment of video flowing, draws and works as Preceding video frame rate, and current video frame per second is set for transcoding frame per second, transcoding is carried out to video flowing according to transcoding frame per second;
Control module 220, for according to current video frame per second and video frame rate before, determining the next detection time of video flowing Fragment;
Second detecting module 230, detects for the video frame rate to the next detection time fragment of video flowing, draws down One video frame rate, and transcoding frame per second is updated to next video frame rate, video flowing is turned according to the transcoding frame per second after renewal Code.
In the present embodiment, above-mentioned transcoding control device is when the video frame rate of video flowing is detected, in addition it is also necessary to other devices Cooperation, such as acquisition device of video flowing encapsulation mode, decapsulation processing unit, encoder, decoder etc., these devices are complete Into the transcoding flow of existing video flowing, the transcoding control device is a spy of the middle addition on the basis of existing transcoding flow Survey the device of video flowing video frame rate.
Referring to Fig. 7, in the present embodiment, the first detecting module 210 includes that the first detection submodule 211 and first sets son Module 212.
First detection submodule 211, the video frame rate for detecting current detection time fragment according to frame per second probe algorithm, Draw current video frame per second.
First sets submodule 212, for current video frame per second to be set into transcoding frame per second, according to transcoding frame per second to current Detection time fragment and current detection time fragment to the video flowing between next detection time fragment carry out transcoding.
Referring to Fig. 8, in the present embodiment, control module 220 includes calculating sub module 221 and judging submodule 222.
Calculating sub module 221, the difference for calculating current video frame per second and video frame rate before.
Judging submodule 222, for judging:
If difference is more than setting difference, between shortening the time of current detection time fragment and next detection time fragment Every;Or
If difference less than or equal to setting difference, extend current detection time fragment and next detection time fragment when Between be spaced.
Referring to Fig. 9, in the present embodiment, the second detecting module 230 includes that the second detection submodule 231 and second sets son Module 232.
Second detection submodule 231, the video frame rate for detecting next detection time fragment according to frame per second probe algorithm, Draw next video frame rate.
Second sets submodule 232, for transcoding frame per second to be updated into next video frame rate, according to the transcoding frame after renewal Rate carries out transcoding to next detection time fragment and next detection time fragment to the video flowing before detecting again.
Embodiment three
A kind of net cast method is the embodiment of the invention provides, including the transcoding control method provided in embodiment one.
In existing net cast method, the transcoding to video flowing is that the video format provided by video source provider is believed Breath, including video resolution, code check, frame per second, in the transcoding process to video flowing, if directly believed according to above-mentioned video format Breath carries out transcoding, when above-mentioned video format information is inaccurate, transcoded quality can be caused not good, influences live effect.
In the present embodiment, Fig. 5 is participated in again, during live, first, reads the live audio/video flow of input, and Obtain encapsulation format, audio frequency and video parameter and the codec parameters information of audio/video flow.
Afterwards, audio/video flow is decapsulated, separates audio, video data.
For video data, after the transcoding control method of embodiment one obtains video frame rate, video frame rate is set Into decoder context parameter and encoder context parameters, and then decoding video data, to the treatment of video filter, and encode Video data after filter treatment.
For voice data, decoding audio data to the treatment of voice data filter, and encodes the audio number after filter treatment According to.
Finally, audio, video data is encapsulated according to output file type, the audio frequency and video after transcoding is exported live to receiving Various receiving terminals, such as user mobile phone, PC etc..
Implement the transcoding control method that embodiment one is provided by the live broadcasting method, obtained video flowing and accurately regarded Frequency frame per second, preferably improves live effect.
Example IV
The transcoding control device provided in a kind of video living transmission system, including embodiment two is provided.
In the present embodiment, the video living transmission system includes:
Encapsulation mode acquisition device, for obtaining encapsulation format information, audio frequency and video parameter from audio/video flow and compiling solution Code parameter information.
Decapsulation processing unit, audio frequency and video are separated for decapsulating.
Transcoding control device, for detecting video frame rate.
Device for decoding audio and video, for video to be decoded as into yuv data, audio decoder is PCM data.
Filter processing unit, for the filter treatment of audio frequency and video.
Audio/video coding device, for filter to be processed after audio, video data encoded.
Encapsulation process device, is packaged for the encapsulation format by the audio, video data after coding as requested.
The video living transmission system exports to receiving live various receiving terminals the audio frequency and video after encapsulation process.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware.Based on such understanding, on Stating the part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, should Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Order is used to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs each implementation Method described in some parts of example or embodiment.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (10)

1. a kind of transcoding control method, it is characterised in that comprise the following steps:
Video frame rate to the current detection time fragment of video flowing is detected, and draws current video frame per second, and set described working as Preceding video frame rate is transcoding frame per second, and transcoding is carried out to the video flowing according to the transcoding frame per second;
According to the current video frame per second and video frame rate before, the next detection time fragment of the video flowing is determined;
Video frame rate to next detection time fragment described in the video flowing is detected, and draws next video frame rate, and will The transcoding frame per second is updated to next video frame rate, and the video flowing is turned according to the transcoding frame per second after renewal Code.
2. transcoding control method according to claim 1, it is characterised in that described to the current detection time fragment of video flowing Video frame rate detected, current video frame per second is drawn, and the current video frame per second is set for transcoding frame per second, according to described The step of transcoding frame per second carries out transcoding to the video flowing specifically includes:
The video frame rate of the current detection time fragment is detected according to frame per second probe algorithm, the current video frame per second is drawn;
The current video frame per second is set to transcoding frame per second, according to the transcoding frame per second to the current detection time fragment and The current detection time fragment to the video flowing between next detection time fragment carries out transcoding.
3. transcoding control method according to claim 2, it is characterised in that it is described according to the current video frame per second therewith Preceding video frame rate, specifically includes the step of determine the video flowing next detection time fragment:
Calculate the difference of the current video frame per second and the video frame rate before;
If the difference shortens the current detection time fragment with next detection time fragment more than setting difference Time interval;
If the difference extends the current detection time fragment and next detection time less than or equal to setting difference The time interval of fragment.
4. transcoding control method according to claim 3, it is characterised in that described to next detection described in the video flowing The video frame rate of time slice is detected, and draws next video frame rate, and the transcoding frame per second is updated into described next regard Frequency frame per second, specifically includes the step of carry out transcoding to the video flowing according to the transcoding frame per second after renewal:
The video frame rate of next detection time fragment is detected according to the frame per second probe algorithm, next frame of video is drawn Rate;
The transcoding frame per second is updated to next video frame rate, according to the transcoding frame per second after renewal to next spy Surveying time slice and next detection time fragment to the video flowing before detecting again carries out transcoding.
5. a kind of net cast method, it is characterised in that including the transcoding control method described in Claims 1-4 any one.
6. a kind of transcoding control device, it is characterised in that including:
First detecting module, detects for the video frame rate to the current detection time fragment of video flowing, draws current video Frame per second, and the current video frame per second is set for transcoding frame per second, transcoding is carried out to the video flowing according to the transcoding frame per second;
Control module, for according to the current video frame per second and video frame rate before, determining during the next detection of the video flowing Between fragment;
Second detecting module, detects for the video frame rate to next detection time fragment described in the video flowing, draws Next video frame rate, and the transcoding frame per second is updated to next video frame rate, according to the transcoding frame per second after renewal Transcoding is carried out to the video flowing.
7. transcoding control device according to claim 6, it is characterised in that first detecting module includes the first detection Submodule and first sets submodule;
The first detection submodule, the frame of video for detecting the current detection time fragment according to frame per second probe algorithm Rate, draws the current video frame per second;
Described first sets submodule, for the current video frame per second to be set into transcoding frame per second, according to the transcoding frame per second To the current detection time fragment and the current detection time fragment to described between next detection time fragment Video flowing carries out transcoding.
8. transcoding control device according to claim 7, it is characterised in that the control module include calculating sub module and Judging submodule;
The calculating sub module, the difference for calculating the current video frame per second and the video frame rate before;
The judging submodule, for judging:
If the difference shortens the current detection time fragment with next detection time fragment more than setting difference Time interval;Or
If the difference extends the current detection time fragment and next detection time less than or equal to setting difference The time interval of fragment.
9. transcoding control device according to claim 8, it is characterised in that second detecting module includes the second detection Submodule and second sets submodule;
The second detection submodule, the video for detecting next detection time fragment according to the frame per second probe algorithm Frame per second, draws next video frame rate;
Described second sets submodule, for the transcoding frame per second to be updated into next video frame rate, after renewal The transcoding frame per second to next detection time fragment and next detection time fragment to before detecting again described in regard Frequency stream carries out transcoding.
10. a kind of video living transmission system, it is characterised in that control dress including the transcoding described in claim 6 to 9 any one Put.
CN201710065863.0A 2017-02-06 2017-02-06 Transcoding control method and device, net cast method and system Active CN106817588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710065863.0A CN106817588B (en) 2017-02-06 2017-02-06 Transcoding control method and device, net cast method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710065863.0A CN106817588B (en) 2017-02-06 2017-02-06 Transcoding control method and device, net cast method and system

Publications (2)

Publication Number Publication Date
CN106817588A true CN106817588A (en) 2017-06-09
CN106817588B CN106817588B (en) 2019-07-05

Family

ID=59112369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710065863.0A Active CN106817588B (en) 2017-02-06 2017-02-06 Transcoding control method and device, net cast method and system

Country Status (1)

Country Link
CN (1) CN106817588B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174290A (en) * 2018-01-25 2018-06-15 北京百度网讯科技有限公司 For handling the method and apparatus of video
CN108712422A (en) * 2018-05-18 2018-10-26 网宿科技股份有限公司 A kind of method and apparatus creating transcoding task
CN110278460A (en) * 2018-03-16 2019-09-24 上海小麦互动企业发展有限公司 Content control system and its control method
CN110401850A (en) * 2019-07-30 2019-11-01 网宿科技股份有限公司 A kind of method and apparatus of the customized SEI of transparent transmission
CN110798738A (en) * 2018-08-01 2020-02-14 Oppo广东移动通信有限公司 Frame rate control method, device, terminal and storage medium
CN111866533A (en) * 2020-07-13 2020-10-30 网宿科技股份有限公司 Live broadcast transcoding method and device
CN114363303A (en) * 2021-12-31 2022-04-15 上海网达软件股份有限公司 Stream media transcoding method for realizing quick playing of monitoring video

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888513A (en) * 2010-06-29 2010-11-17 深圳市融创天下科技发展有限公司 Method for converting video frame rate
CN103916679A (en) * 2014-03-10 2014-07-09 百度在线网络技术(北京)有限公司 Method, equipment and system for providing video information
US8897370B1 (en) * 2009-11-30 2014-11-25 Google Inc. Bitrate video transcoding based on video coding complexity estimation
WO2015153233A1 (en) * 2014-03-31 2015-10-08 Arris Enterprises, Inc. Adaptive streaming transcoder synchronization
EP2992631A1 (en) * 2013-05-02 2016-03-09 This Technology, Inc. Server side adaptive bit rate reporting
CN105491461A (en) * 2014-10-11 2016-04-13 成都鼎桥通信技术有限公司 Video transmission method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8897370B1 (en) * 2009-11-30 2014-11-25 Google Inc. Bitrate video transcoding based on video coding complexity estimation
CN101888513A (en) * 2010-06-29 2010-11-17 深圳市融创天下科技发展有限公司 Method for converting video frame rate
EP2992631A1 (en) * 2013-05-02 2016-03-09 This Technology, Inc. Server side adaptive bit rate reporting
CN103916679A (en) * 2014-03-10 2014-07-09 百度在线网络技术(北京)有限公司 Method, equipment and system for providing video information
WO2015153233A1 (en) * 2014-03-31 2015-10-08 Arris Enterprises, Inc. Adaptive streaming transcoder synchronization
CN105491461A (en) * 2014-10-11 2016-04-13 成都鼎桥通信技术有限公司 Video transmission method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174290A (en) * 2018-01-25 2018-06-15 北京百度网讯科技有限公司 For handling the method and apparatus of video
CN110278460A (en) * 2018-03-16 2019-09-24 上海小麦互动企业发展有限公司 Content control system and its control method
CN108712422A (en) * 2018-05-18 2018-10-26 网宿科技股份有限公司 A kind of method and apparatus creating transcoding task
CN110798738A (en) * 2018-08-01 2020-02-14 Oppo广东移动通信有限公司 Frame rate control method, device, terminal and storage medium
CN110798738B (en) * 2018-08-01 2022-01-28 Oppo广东移动通信有限公司 Frame rate control method, device, terminal and storage medium
CN110401850A (en) * 2019-07-30 2019-11-01 网宿科技股份有限公司 A kind of method and apparatus of the customized SEI of transparent transmission
CN110401850B (en) * 2019-07-30 2021-10-22 网宿科技股份有限公司 Method and device for transparent transmission of custom SEI
CN111866533A (en) * 2020-07-13 2020-10-30 网宿科技股份有限公司 Live broadcast transcoding method and device
CN111866533B (en) * 2020-07-13 2022-03-08 网宿科技股份有限公司 Live broadcast transcoding method and device
CN114363303A (en) * 2021-12-31 2022-04-15 上海网达软件股份有限公司 Stream media transcoding method for realizing quick playing of monitoring video
CN114363303B (en) * 2021-12-31 2023-06-02 上海网达软件股份有限公司 Streaming media transcoding method for realizing rapid playing of surveillance video

Also Published As

Publication number Publication date
CN106817588B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN106817588B (en) Transcoding control method and device, net cast method and system
US11227612B2 (en) Audio frame loss and recovery with redundant frames
JP6064251B2 (en) Signaling and transport of metadata information in dynamic adaptive hypertext transfer protocol streaming
CN105379293B (en) Media quality informa instruction in dynamic self-adapting Streaming Media based on hyper text protocol
US8989259B2 (en) Method and system for media file compression
CN105163134A (en) Video coding parameter setting method, device and video coding device for live video
CN108810657B (en) Method and system for setting video cover
CN106688239A (en) Video downloading method, apparatus, and system
US9787999B2 (en) Method for decreasing the bit rate needed to transmit videos over a network by dropping video frames
CN113490055B (en) Data processing method and device
US20230082784A1 (en) Point cloud encoding and decoding method and apparatus, computer-readable medium, and electronic device
US20210112291A1 (en) Staggered key frame video encoding
US11968379B2 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and electronic device
TW201316814A (en) Methods for transmitting and receiving a digital signal, transmitter and receiver
CN111798858A (en) Audio playing method and device, electronic equipment and storage medium
CN109769125B (en) Dynamic adjustment method for streaming media code rate, media server and transcoding server
US20120169929A1 (en) Method And Apparatus For Processing A Video Signal
CN113079386B (en) Video online playing method and device, electronic equipment and storage medium
CN108989905B (en) Media stream control method and device, computing equipment and storage medium
CN113242446B (en) Video frame caching method, video frame forwarding method, communication server and program product
CN115767149A (en) Video data transmission method and device
US11265357B2 (en) AV1 codec for real-time video communication
CN103596012B (en) Interframe macro block type selecting method used in real-time AVS-based video frame rate transcoding
JP2014135728A (en) Video transmission system and video transmission method
WO2024139865A1 (en) Virtual speaker determination method and related apparatus

Legal Events

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