CN106817588B - 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
CN106817588B
CN106817588B CN201710065863.0A CN201710065863A CN106817588B CN 106817588 B CN106817588 B CN 106817588B CN 201710065863 A CN201710065863 A CN 201710065863A CN 106817588 B CN106817588 B CN 106817588B
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.)
Active
Application number
CN201710065863.0A
Other languages
Chinese (zh)
Other versions
CN106817588A (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)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (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 includes the following steps: that the video frame rate to the current detection time segment of video flowing detects, it obtains current video frame per second, and it is transcoding frame per second that the current video frame per second, which is arranged, 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 lower detection time segment of the video flowing is determined;The video frame rate of next detection time segment described in the video flowing is detected, obtains next video frame rate, and the transcoding frame per second is updated to next video frame rate, transcoding is carried out to the video flowing according to the updated transcoding frame per second.The present invention ensure that the accuracy of video stream transcoding process transit code frame per second by the real-time detection to video stream frame rate.

Description

Transcoding control method and device, net cast method and system
Technical field
The present invention relates to internet stream media technical field more particularly to a kind of transcoding control method and device, video are straight Broadcasting method and system.
Background technique
With the development of internet technology and China's bandwidth constantly raises speed, and the leading content of internet is from text, picture It is leading content that gradually development, which is with audio-video,.The explosion of mobile Internet in recent years, so that internet and people Life contacts more close, 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 has been expedited the emergence of, and has greatly facilitated content distributing network (Content Delivery Network, CDN) industry development.Simple audio-video no longer meets the needs of people, and people's demand is either in PC End is still in the case where various mobile terminals either network quality is excellent or in the case where network quality difference, all The audio-video frequency content of high-quality high quality can be enjoyed.
For internet stream media field, since there are big and small many video source providers, these video sources are mentioned The accuracy of the audio-video format of offer, such as the frame per second information of video are not provided for quotient.Meanwhile in video code conversion process Middle video source is also possible to that the frame per second information of video flowing can be changed in real time.This is resulted in cannot be according to accurate video frame rate Transcoding is carried out to video flowing, will lead to according to the frame per second transcoding of inaccuracy:
1. the code rate after transcoding is unable to control, the code rate that the excessive frame per second of mistake is arranged after may cause transcoding is excessive, Lead to bandwidth waste.
2. the video true frame per second before frame per second and transcoding when transcoding is inconsistent, in transcoding process according to the frame per second of mistake into Row video code conversion can do the operation for taking out frame or some frames of duplication to video, influence the result of broadcast of video.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of transcoding control method and device, video Live broadcasting method and system.The technical solution is as follows:
On the one hand, a kind of transcoding control method is provided, is included the following steps:
The video frame rate of the current detection time segment of video flowing is detected, obtain current video frame per second, and institute is set Stating current video frame per second is transcoding frame per second, carries out transcoding 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 lower detection time segment of the video flowing is determined;
The video frame rate of next detection time segment described in the video flowing is detected, obtains 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 updated transcoding frame per second Row transcoding.
Further, the video frame rate to the current detection time segment of video flowing detects, and obtains current video Frame per second, and it is transcoding frame per second that the current video frame per second, which is arranged, carries out transcoding to the video flowing according to the transcoding frame per second Step specifically includes:
The video frame rate that the current detection time segment is detected according to frame per second probe algorithm, obtains the current video frame Rate;
Transcoding frame per second is set by the current video frame per second, according to the transcoding frame per second to the current detection time piece Section and the current detection time segment to the video flowing between next detection time segment carry out transcoding.
Further, described according to the current video frame per second and video frame rate before, determine a spy under 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 is greater than setting difference, shorten the current detection time segment and next detection time The time interval of segment;
If the difference is less than or equal to setting difference, extend the current detection time segment and next detection The time interval of time slice.
Further, the video frame rate to next detection time segment described in the video flowing detects, and obtains Next video frame rate, and the transcoding frame per second is updated to next video frame rate, according to the updated transcoding frame per second The step of carrying out transcoding to the video flowing specifically includes:
The video frame rate that next detection time segment is detected according to the frame per second probe algorithm, obtains next view Frequency frame per second;
The transcoding frame per second is updated to next video frame rate, according to the updated transcoding frame per second under described The video flowing of one detection time segment and next detection time segment to before detecting again carries out transcoding.
On the other hand, a kind of net cast method is provided, including the transcoding control method.
In another aspect, providing a kind of transcoding control device, comprising:
First detecting module is detected for the video frame rate to the current detection time segment of video flowing, is obtained current Video frame rate, and it is transcoding frame per second that the current video frame per second, which is arranged, is turned according to the transcoding frame per second to the video flowing Code;
Control module, for according to the current video frame per second and video frame rate before, determining a spy under the video flowing Survey time slice;
Second detecting module is detected for the video frame rate to next detection time segment described in the video flowing, It obtains next video frame rate, and the transcoding frame per second is updated to next video frame rate, according to the updated transcoding Frame per second carries out transcoding to the video flowing.
Further, first detecting module includes the first detection submodule and the first setting submodule;
The first detection submodule, for detecting the video of the current detection time segment according to frame per second probe algorithm Frame per second obtains the current video frame per second;
The first setting submodule, for setting transcoding frame per second for the current video frame per second, according to the transcoding Frame per second is to the current detection time segment and the current detection time segment between next detection time segment The video flowing carries out transcoding.
Further, the control module includes computational submodule and judging submodule;
The computational submodule, for calculating the difference of the current video frame per second and the video frame rate before;
The judging submodule, for judging:
If the difference is greater than setting difference, shorten the current detection time segment and next detection time The time interval of segment;Or
If the difference is less than or equal to setting difference, extend the current detection time segment and next detection The time interval of time slice.
Further, second detecting module includes the second detection submodule and the second setting submodule;
The second detection submodule, for detecting next detection time segment according to the frame per second probe algorithm Video frame rate obtains next video frame rate;
The second setting submodule, for the transcoding frame per second to be updated to next video frame rate, according to update Institute of the transcoding frame per second afterwards to next detection time segment and next detection time segment to before detecting again It states video flowing and carries out transcoding.
In another aspect, a kind of video living transmission system is provided, including the transcoding control device.
Technical solution provided in an embodiment of the present invention has the benefit that
By the real-time detection to video stream frame rate, it ensure that the accuracy of video stream transcoding process transit code frame per second, keep away Bandwidth waste caused by the excessive frame per second of fault-avoidance accidentally, and wrong too small frame per second lead to the decline of image quality, guarantee The consistency of image quality and code rate before and after transcoding.And then it ensure that the quality and effect of video stream transcoding.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the transcoding control method flow chart that the embodiment of the present invention one provides;
Fig. 2 is the transcoding control method flow chart that the embodiment of the present invention one provides;
Fig. 3 is the transcoding control method flow chart that the embodiment of the present invention one provides;
Fig. 4 is the transcoding control method flow chart that the embodiment of the present invention one provides;
Fig. 5 is the transcoding flow chart that the embodiment of the present invention one provides;
Fig. 6 is the structural schematic diagram of transcoding control device provided by Embodiment 2 of the present invention;
Fig. 7 is the structural schematic diagram of the first detecting module provided by Embodiment 2 of the present invention;
Fig. 8 is the structural schematic diagram of control module provided by Embodiment 2 of the present invention;
Fig. 9 is the structural schematic diagram of the second detecting module provided by Embodiment 2 of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiment of the invention provides a kind of transcoding control methods to include the following steps: referring to Fig. 1
S101: the video frame rate of the current detection time segment of video flowing is detected, obtains current video frame per second, and set Setting the current video frame per second is transcoding frame per second, carries out transcoding to the video flowing according to the transcoding frame per second.
In live scene, video source provider provides video flowing and determines the format of provided video flowing, due to these The format of video source is different, thus needs to carry out video source real-time transcoding, then transcoding treated video flowing is exported To user terminal.Due in transcoding process, because of different reasons, such as the inaccuracy of video frame rate information entrained by video flowing or Video frame rate information is not carried, will lead to the video frame rate inaccuracy that directly parsing video flowing obtains, and then lead to transcoding not just Often or the video after transcoding can not normally be shown.
This method carries out real-time detection, and the video frame rate learnt according to real-time detection by the video frame rate to video flowing Transcoding is carried out to video flowing, ensure that transcoded quality.
In the present embodiment, the video frame rate to the current detection time segment of video flowing detects, and obtains current Video frame rate, and it is transcoding frame per second that the current video frame per second, which is arranged, is turned according to the transcoding frame per second to the video flowing The step S101 of code specifically includes two sub-steps of S1011-S1012, as shown in Figure 2.
S1011: detecting the video frame rate of the current detection time segment according to frame per second probe algorithm, obtains described current Video frame rate.
Frame per second (Frame rate) is the measurement for measuring display frame number, and measurement unit is display frame number per second (Frames per Second, FPS), such as one second 30 frame of display, then frame per second is 30FPS.Detection for frame per second is visited Method of determining and calculating is varied, and the computation complexity of the more high then algorithm of the precision of detection is also higher, thus comprehensively considers essence when selecting It spends with computation complexity and selects different probe algorithms.
Due in live scene, to consider time delay, the processing to video flowing is extremely rapidly, to be also contemplated that simultaneously To equipment performance, thus, the detection time segment of selection is all very short, is chosen in the range of several hundred milliseconds, although detection Time slice is all very short, but the detection time segment length chosen determines the accurate journey to the detection of this time slice frame per second Degree, since data are more in longer detection time segment, thus the detection result obtained is more acurrate.
In the present embodiment, the initial of video flowing is being received and processed, above-mentioned current detection time segment is first choosing The detection time segment taken carries out video frame rate detection to the detection time segment by frame per second probe algorithm, obtains and work as forward sight Frequency frame per second.
S1012: transcoding frame per second is set by the current video frame per second, according to the transcoding frame per second to the current detection Time slice and the current detection time segment to the video flowing between next detection time segment carry out transcoding.
In the present embodiment, the current video frame per second detected is by the transcoding frame per second as transcoding, by that will deserve forward sight Frequency frame per second is arranged into transcoding device, for example, setting to decoder context parameters and encoder context parameters in, turn Code device is according to transcoding frame per second, that is, the current video frame per second detected, to current detection time segment and current detection time Segment to the video flowing between next detection time segment carries out transcoding.
As can be seen that the current video frame per second detected is view that is limited, being only used as in specific time segment The transcoding frame per second of frequency stream, this is because being in real time, to pass through the video frame of real-time detection video flowing to the detection process of video flowing Rate overcomes the problem of video frame rate caused by due to unstable networks lead to video dither flow changes well.
S102: according to the current video frame per second and video frame rate before, the lower detection time piece of the video flowing is determined Section.
In the present embodiment, it also will do it and detect next time after the completion of detection every time, until transcoding process terminates.Turning During code, detection video frame rate meeting occupying system resources, if system burden can be significantly greatly increased by frequently carrying out detection, thus Appropriate setting is carried out to the opportunity of detection, balance transcoded quality and system performance.
In the present embodiment, described according to the current video frame per second and video frame rate before, it determines under the video flowing The step S102 of one detection time segment specifically includes two sub-steps of S1021-S1022, as shown in Figure 3.
S1021: the difference of the current video frame per second and the video frame rate before is calculated.
At video stream transcoding initial stage, current video frame per second is to detect the video frame rate obtained for the first time, because it may be not present Detection time segment and next detection time segment before being easy to act as is set in advance in this case in preceding video frame rate.
When the detection of second video frame rate is completed, current video frame per second be detect the video frame rate obtained for the second time, at this point, Video frame rate is to detect the video frame rate obtained for the first time before.
Third time video frame rate detection complete when, current video frame per second be detect the video frame rate obtained for the third time, at this point, There are many setting means for video frame rate before.
A kind of setting means of video frame rate is that video frame rate is to detect the video frame rate obtained for the second time before before, Video frame rate be the preceding primary video frame rate detected out currently detected before i.e., under this setting means, video frame before Rate does not need to count the video frame rate that all previous detection obtains, can reflect the frame per second situation of change of current video stream in real time.
Another setting means of video frame rate is that video frame rate is that synthesis detects the video obtained for the first time before before Frame per second and detect the video frame rate obtained for the second time and the reference video frame per second obtained, 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 obtains, such as first time probe value and second are detected Value setting weight, it is assumed that the weight of first time probe value is 40%, and the weight of second of probe value is 60%, according to weight calculation Reference video frame per second is calculated in mode.Under this setting means, video frame rate is closer with reference to all previous detection data before The actual frame per second of video flowing.
In the case where having carried out video frame rate detection twice, by calculating current video frame per second and video frame before The difference of rate determines next detection time segment.
S1022: if the difference is greater than setting difference, shorten the current detection time segment and next spy Survey the time interval of time slice;If the difference is less than or equal to setting difference, extend the current detection time segment With the time interval of next detection time segment.
In the present embodiment, current video frame per second and the difference of video frame rate before are smaller, illustrate 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, carried out down at this time, it may be necessary to be appropriately extended The time interval of one detection.If current video frame per second and the difference of video frame rate before are bigger, illustrate the steady of current video stream Determine that degree is poor, at this time, it may be necessary to suitably shorten the time interval for carrying out next detection, increases 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, such as when When setting difference is smaller, obtained video flowing degree of stability is higher, and it is higher to be subjected to degree at this time;When setting difference is larger, obtain The video flowing degree of stability arrived is lower, and it is lower to be subjected to degree at this time.
S103: the video frame rate of next detection time segment described in the video flowing is detected, obtains next video Frame per second, and the transcoding frame per second is updated to next video frame rate, according to the updated transcoding frame per second to the view Frequency stream carries out transcoding.
Since the detection process of video frame rate is ongoing, thus need to continuously adjust 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 segment described in the video flowing detects, It obtains next video frame rate, and the transcoding frame per second is updated to next video frame rate, according to the updated transcoding The step S103 that frame per second carries out transcoding to the video flowing specifically includes two sub-steps of S1031-S1032, as shown in Figure 4.
S1031: detecting the video frame rate of next detection time segment according to the frame per second probe algorithm, obtains described Next video frame rate.
In the present embodiment, the frame per second probe algorithm used in entire transcoding process be it is identical, according to frame per second detect calculate Method detects the video frame rate of next detection time segment, obtains next video frame rate.It should be noted that when carrying out next detection Between segment video frame rate detection when, process detects as step S101, and to next detection time segment When, which is current time segment.When current detection time segment in this method and next detection Between segment name, name purpose be in order to distinguish frame per second detection tandem.
S1032: being updated to next video frame rate for the transcoding frame per second, according to the updated transcoding frame per second pair The video flowing of next detection time segment and next detection time segment to before detecting again carries out transcoding.
After detecting next video frame rate, transcoding frame per second before is stopped using, and transcoding frame per second is updated to next view Frequency frame per second, according to updated transcoding frame per second, to next detection time segment and next detection time segment 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 codetermine video detection next time when Machine is that circulation carries out to the video frame rate detection of video flowing, until video stream transcoding terminates.
By the real-time detection to video stream frame rate, it ensure that the accuracy of video stream transcoding process transit code frame per second, keep away Bandwidth waste caused by the excessive frame per second of fault-avoidance accidentally, and wrong too small frame per second lead to the decline of image quality, guarantee The consistency of image quality and code rate before and after transcoding.And then it ensure that the quality and effect of video stream transcoding.
As can be seen that transcoding control method described in the present embodiment is the transcoding frame per second by real-time detection come to transcoding mistake Cheng Jinhang control.The transcoding specific flow chart using this transcoding control method is shown referring to Fig. 5, Fig. 5.
Firstly, reading the audio/video flow of input, and obtain the encapsulation format of audio/video flow, audio-video parameter and encoding and decoding Parameter information.
Later, audio/video flow is decapsulated, separates audio, video data.
For video data, after transcoding control method through this embodiment obtains video frame rate, video frame rate is arranged Into decoder context parameter and encoder context parameters, and then decoding video data, to the processing of video filter, and encode Filter treated video data.
For audio data, decoding audio data to the processing of audio data filter, and encodes filter treated audio number According to.
Finally, being encapsulated according to output file type to audio, video data, the audio-video after exporting transcoding.
Shown in fig. 5 is a kind of reality that the transcoding control method carries out transcoding processing during net cast to video flowing Mode is applied, not as the restriction of the other embodiments to the transcoding control method.
Embodiment two
Referring to Fig. 6, the embodiment of the invention provides a kind of transcoding control device, turn provided in embodiment one can be executed Code control method, comprising:
First detecting module 210 detects for the video frame rate to the current detection time segment of video flowing, obtains and work as Preceding video frame rate, and it is transcoding frame per second that current video frame per second, which is arranged, carries out transcoding to video flowing according to transcoding frame per second;
Control module 220, for determining the lower detection time of video flowing according to current video frame per second and video frame rate before Segment;
Second detecting module 230 is detected for the video frame rate to the lower detection time segment of video flowing, is obtained down One video frame rate, and transcoding frame per second is updated to next video frame rate, video flowing is turned according to updated transcoding frame per second Code.
In the present embodiment, above-mentioned transcoding control device is when detecting the video frame rate of video flowing, it is also necessary to other devices Cooperation, such as acquisition device, the decapsulation processing unit, encoder, decoder etc. of video flowing encapsulation mode, these devices are complete At the transcoding process of existing video flowing, which is a spy of middle addition on the basis of existing transcoding process Survey the device of video flowing video frame rate.
Referring to Fig. 7, in the present embodiment, the first detecting module 210 includes the first detection submodule 211 and the first setting Module 212.
First detection submodule 211, for detecting the video frame rate of current detection time segment according to frame per second probe algorithm, Obtain current video frame per second.
First setting submodule 212, for setting transcoding frame per second for current video frame per second, according to transcoding frame per second to current Detection time segment and current detection time segment to the video flowing between next detection time segment carry out transcoding.
Referring to Fig. 8, in the present embodiment, control module 220 includes computational submodule 221 and judging submodule 222.
Computational submodule 221, for calculating the difference of current video frame per second with video frame rate before.
Judging submodule 222, for judging:
If difference is greater than setting difference, shorten between current detection time segment and the time of next detection time segment Every;Or
If difference is less than or equal to setting difference, extend current detection time segment and next detection time segment when Between be spaced.
Referring to Fig. 9, in the present embodiment, the second detecting module 230 includes the second detection submodule 231 and the second setting Module 232.
Second detection submodule 231, for detecting the video frame rate of next detection time segment according to frame per second probe algorithm, Obtain next video frame rate.
Second setting submodule 232, for transcoding frame per second to be updated to next video frame rate, according to updated transcoding frame Rate carries out transcoding to the video flowing of next detection time segment and next detection time segment to before detecting again.
Embodiment three
The embodiment of the invention provides a kind of net cast methods, including the transcoding control method provided in embodiment one.
In existing net cast method, the transcoding to video flowing is the video format letter provided by video source provider Breath, including video resolution, code rate, frame per second, in the transcoding process to video flowing, if directly believed according to above-mentioned video format Breath carries out transcoding, and when above-mentioned video format information inaccuracy, it is bad to will cause transcoded quality, influences that effect is broadcast live.
In the present embodiment, Fig. 5 is participated in again, during live streaming, firstly, the live streaming audio/video flow of input is read, and Obtain encapsulation format, audio-video parameter and the codec parameters information of audio/video flow.
Later, audio/video flow is decapsulated, separates audio, video data.
Video frame rate is arranged after obtaining video frame rate by the transcoding control method of embodiment one for video data Into decoder context parameter and encoder context parameters, and then decoding video data, to the processing of video filter, and encode Filter treated video data.
For audio data, decoding audio data to the processing of audio data filter, and encodes filter treated audio number According to.
Finally, being encapsulated according to output file type to audio, video data, the audio-video after transcoding is exported to reception and is broadcast live Various reception terminals, such as user mobile phone, PC etc..
The transcoding control method provided by implementing embodiment one in the live broadcasting method, has obtained video flowing and has accurately regarded Frequency frame per second preferably improves live streaming effect.
Example IV
The embodiment of the invention provides a kind of video living transmission systems, including the transcoding control device provided in embodiment two.
In the present embodiment, which includes:
Encapsulation mode acquisition device, for obtaining encapsulation format information, audio-video parameter from audio/video flow and compiling solution Code parameter information.
Processing unit is decapsulated, for decapsulating separation audio-video.
Transcoding control device, for detecting video frame rate.
Device for decoding audio and video, for video to be decoded as yuv data, audio decoder is PCM data.
Filter processing unit, the filter for audio-video are handled.
Audio/video coding device, for treated that audio, video data encodes by filter.
Encapsulation process device, for the encapsulation format of the audio, video data after coding as requested to be packaged.
The video living transmission system exports the audio-video after encapsulation process to the various reception terminals for receiving live streaming.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of transcoding control method, which comprises the steps of:
The video frame rate of the current detection time segment of video flowing is detected, obtains current video frame per second, and work as described in setting Preceding video frame rate is transcoding frame per second, carries out transcoding 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 lower detection time segment of the video flowing is determined;
The video frame rate of next detection time segment described in the video flowing is detected, obtains next video frame rate, and will The transcoding frame per second is updated to next video frame rate, turns according to the updated transcoding frame per second to the video flowing Code;
It is described according to the current video frame per second and video frame rate before, determine the step of the lower detection time segment of the video flowing Suddenly it specifically includes:
Calculate the difference of the current video frame per second and the video frame rate before;
If the difference is greater than setting difference, shorten the current detection time segment and next detection time segment Time interval;
If the difference is less than or equal to setting difference, extend the current detection time segment and next detection time The time interval of segment.
2. transcoding control method according to claim 1, which is characterized in that described to the current detection time segment of video flowing Video frame rate detected, obtain current video frame per second, and be arranged the current video frame per second be 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 that the current detection time segment is detected according to frame per second probe algorithm, obtains the current video frame per second;
Set transcoding frame per second for the current video frame per second, according to the transcoding frame per second to the current detection time segment and The current detection time segment to the video flowing between next detection time segment carries out transcoding.
3. transcoding control method according to claim 2, which is characterized in that described to next detection described in the video flowing The video frame rate of time slice is detected, and obtains next video frame rate, and the transcoding frame per second is updated to next view Frequency frame per second specifically includes the step of video flowing progress transcoding according to the updated transcoding frame per second:
The video frame rate that next detection time segment is detected according to the frame per second probe algorithm, obtains next video frame Rate;
The transcoding frame per second is updated to next video frame rate, according to the updated transcoding frame per second to next spy It surveys the video flowing of time slice and next detection time segment to before detecting again and carries out transcoding.
4. a kind of net cast method, which is characterized in that including transcoding control method described in claims 1 to 3 any one.
5. a kind of transcoding control device characterized by comprising
First detecting module detects for the video frame rate to the current detection time segment of video flowing, obtains current video Frame per second, and it is transcoding frame per second that the current video frame per second, which is arranged, carries out transcoding to the video flowing according to the transcoding frame per second;
Control module is used for according to the current video frame per second and video frame rate before, when determining a detection under the video flowing Between segment;
Second detecting module is detected for the video frame rate to next detection time segment described in the video flowing, is obtained Next video frame rate, and the transcoding frame per second is updated to next video frame rate, according to the updated transcoding frame per second Transcoding is carried out to the video flowing;
The control module further includes computational submodule and judging submodule:
The computational submodule, for calculating the difference of the current video frame per second and the video frame rate before;
The judging submodule, for judging:
If the difference is greater than setting difference, shorten the current detection time segment and next detection time segment Time interval;Or
If the difference is less than or equal to setting difference, extend the current detection time segment and next detection time The time interval of segment.
6. transcoding control device according to claim 5, which is characterized in that first detecting module includes the first detection Submodule and the first setting submodule;
The first detection submodule, for detecting the video frame of the current detection time segment according to frame per second probe algorithm Rate obtains the current video frame per second;
The first setting submodule, for setting transcoding frame per second for the current video frame per second, according to the transcoding frame per second To the current detection time segment and the current detection time segment to described between next detection time segment Video flowing carries out transcoding.
7. transcoding control device according to claim 6, which is characterized in that second detecting module includes the second detection Submodule and the second setting submodule;
The second detection submodule, for detecting the video of next detection time segment according to the frame per second probe algorithm Frame per second obtains next video frame rate;
The second setting submodule, for the transcoding frame per second to be updated to next video frame rate, according to updated The view of the transcoding frame per second to next detection time segment and next detection time segment to before detecting again Frequency stream carries out transcoding.
8. a kind of video living transmission system, which is characterized in that including transcoding control device described in claim 5 to 7 any one.
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 CN106817588A (en) 2017-06-09
CN106817588B true 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)

Families Citing this family (7)

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

Family Cites Families (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
CN101888513B (en) * 2010-06-29 2012-09-05 深圳市融创天下科技股份有限公司 Method for converting video frame rate
WO2014178865A1 (en) * 2013-05-02 2014-11-06 This Technology, Inc. Server side adaptive bit rate reporting
CN103916679B (en) * 2014-03-10 2018-04-10 百度在线网络技术(北京)有限公司 A kind of method, equipment and system for being used to provide video information
US9414100B2 (en) * 2014-03-31 2016-08-09 Arris Enterprises, Inc. Adaptive streaming transcoder synchronization
CN105491461B (en) * 2014-10-11 2018-11-20 成都鼎桥通信技术有限公司 A kind of video transmission method

Also Published As

Publication number Publication date
CN106817588A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN106817588B (en) Transcoding control method and device, net cast method and system
CN105379293B (en) Media quality informa instruction in dynamic self-adapting Streaming Media based on hyper text protocol
JP2020096342A (en) Video processing method and apparatus
JP6064251B2 (en) Signaling and transport of metadata information in dynamic adaptive hypertext transfer protocol streaming
US9521469B2 (en) Carriage of quality information of content in media formats
US20130262693A1 (en) Methods and apparatus for segmenting, distributing, and resegmenting adaptive rate content streams
CN105163134A (en) Video coding parameter setting method, device and video coding device for live video
CN113287319B (en) Method and apparatus for optimizing encoding operations
CN108810657B (en) Method and system for setting video cover
US20230082784A1 (en) Point cloud encoding and decoding method and apparatus, computer-readable medium, and electronic device
CN106688239A (en) Video downloading method, apparatus, and system
CN113490055B (en) Data processing method and device
EP3861484A1 (en) An apparatus, a method and a computer program for running a neural network
US20160212054A1 (en) Multiple Protocol Media Streaming
US12118760B2 (en) Point cloud encoding and decoding method and apparatus, computer-readable medium, and electronic device
CN111755017A (en) Audio recording method and device for cloud conference, server and storage medium
US11968379B2 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and electronic device
CN111385576B (en) Video coding method and device, mobile terminal and storage medium
CN113965751A (en) Screen content coding method, device, equipment and storage medium
CN108989905B (en) Media stream control method and device, computing equipment and storage medium
US10681105B2 (en) Decision engine for dynamically selecting media streams
CN113079386A (en) Video online playing method and device, electronic equipment and storage medium
CN109587517B (en) Multimedia file playing method and device, server and storage medium
CN111954034A (en) Video coding method and system based on terminal equipment parameters
US20170374432A1 (en) System and method for adaptive video streaming with quality equivalent segmentation and delivery

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