CN110062278A - Video data issues method, apparatus, electronic equipment and storage medium - Google Patents

Video data issues method, apparatus, electronic equipment and storage medium Download PDF

Info

Publication number
CN110062278A
CN110062278A CN201910293502.0A CN201910293502A CN110062278A CN 110062278 A CN110062278 A CN 110062278A CN 201910293502 A CN201910293502 A CN 201910293502A CN 110062278 A CN110062278 A CN 110062278A
Authority
CN
China
Prior art keywords
video data
transcoding
video
special efficacy
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910293502.0A
Other languages
Chinese (zh)
Inventor
周驿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910293502.0A priority Critical patent/CN110062278A/en
Publication of CN110062278A publication Critical patent/CN110062278A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
    • 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/81Monomedia components thereof
    • H04N21/8106Monomedia components thereof involving special audio data, e.g. different tracks for different languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure proposes that a kind of video data issues method, apparatus, electronic equipment and storage medium, wherein, method includes: after obtaining video data to be released, when determining that the video data needs transcoding to handle, transcoding processing is carried out to video data, and issues the video data after transcoding.Thus, when issuing video data, transcoding processing only is carried out to the video data for needing transcoding, avoids resource consumption caused by all types of video datas are carried out with transcoding processing, transcoded video data are reduced to resource consumption caused by electronic equipment, reduce power consumption.

Description

Video data issues method, apparatus, electronic equipment and storage medium
Technical field
This disclosure relates to field of computer technology more particularly to a kind of video data publication method, apparatus, electronic equipment and Storage medium.
Background technique
With the development of mobile internet, more and more content suppliers are by development and application program come in carrying service Hold.By taking short video class application program as an example, short video class application program provides various short-sighted frequencies for consumer entertainment and/study.
In the related technology, during using short-sighted frequency APP sharing video frequency, the whatsoever video to be released of type, Video to be released can all be carried out transcoding and issued again by short video application.However, all types of videos to be released into The processing of row transcoding, the more resource being easy in consumption electronic equipment, power consumption are serious.
Summary of the invention
The disclosure provides a kind of video data publication method, apparatus, electronic equipment and storage medium, in publication video data When, transcoding processing only is carried out to the video data for needing transcoding, avoids carrying out transcoding processing to all types of video datas Caused resource consumption reduces transcoded video data to resource consumption caused by electronic equipment, reduces power consumption.
Disclosure first aspect embodiment proposes a kind of video data publication method, comprising: obtains video to be released Data;Determine that the video data needs transcoding again;Transcoding processing is carried out to the video data, and issues the view after transcoding Frequency evidence.
The video data of the embodiment of the present disclosure issues method, after obtaining video data to be released, is determining the video counts When according to needing transcoding to handle, transcoding processing is carried out to video data, and issue the video data after transcoding.As a result, in publication video When data, transcoding processing only is carried out to the video data for needing transcoding, avoids carrying out transcoding to all types of video datas Resource consumption caused by processing reduces transcoded video data to resource consumption caused by electronic equipment, reduces power consumption.
In one embodiment of the present disclosure, the determination video data needs transcoding again, including it is following at least It is a kind of: if the size of the video data is more than preset threshold, it is determined that the video data needs transcoding to handle;Described in identification Video data is user's importing, it is determined that the video data needs transcoding again;Identify the video data using special efficacy or Default special efficacy, it is determined that the video data needs transcoding again.
In one embodiment of the present disclosure, when determining that the video data does not need transcoding, by the video data Directly it is distributed to video platform.
In one embodiment of the present disclosure, it is described the video data is directly distributed to video platform before, also The audio track and/or track of video for comprising determining that the video data are added special efficacy;According to the sound to the video data Special efficacy added by frequency track and/or track of video, audio track and track of video to the video data are sealed again Dress.
In one embodiment of the present disclosure, further includes: when determining the video data encapsulation failure, to the video Data re-start transcoding processing.
In one embodiment of the present disclosure, the transcoding processing, including multiple processing stages, each processing stage is by each Self-corresponding thread executes.
Disclosure second aspect embodiment proposes a kind of video data distributing device, comprising: first obtains module, is used for Obtain video data to be released;First determining module, for determining that the video data needs transcoding again;Release module, For carrying out transcoding processing to the video data, and issue the video data after transcoding.
The video data distributing device of the embodiment of the present disclosure after obtaining video data to be released, is determining the video counts When according to needing transcoding to handle, transcoding processing is carried out to video data, and issue the video data after transcoding.As a result, in publication video When data, transcoding processing only is carried out to the video data for needing transcoding, avoids carrying out transcoding to all types of video datas Resource consumption caused by processing reduces transcoded video data to resource consumption caused by electronic equipment, reduces power consumption.
In one embodiment of the present disclosure, the determining module needs weight by following at least one determining video data New transcoding: if the size of the video data is more than preset threshold, it is determined that the video data needs transcoding to handle;Identification institute Video data is stated as user's importing, it is determined that the video data needs transcoding again;Identify that the video data uses special efficacy Or default special efficacy, it is determined that the video data needs transcoding again.
In one embodiment of the present disclosure, the release module, be also used to determine the video data do not need turn When code, the video data is directly distributed to video platform.
In one embodiment of the present disclosure, further includes: the second determining module, for determining the audio of the video data Track and/or track of video are added special efficacy;Reseal module, for according to the audio track of the video data and/ Or special efficacy added by track of video, the audio track and track of video of the video data are Resealed.
In one embodiment of the present disclosure, further includes: transcoding module, for determining the video data encapsulation failure When, transcoding processing is re-started to the video data.
In one embodiment of the present disclosure, the transcoding processing, including multiple processing stages, each processing stage is by each Self-corresponding thread executes.
Disclosure third aspect embodiment proposes a kind of electronic equipment, including memory, processor and is stored in described On memory and the computer program that can run on the processor, the processor execute described program, for executing Above-mentioned video data issues method.
Disclosure fourth aspect embodiment proposes a kind of computer readable storage medium, is stored thereon with computer journey Sequence, the program are executed by processor, to issue method for executing above-mentioned video data.
The additional aspect of the disclosure and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the disclosure.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of video data publication method provided by the embodiment of the present disclosure;
Fig. 2 is the flow diagram that another kind video data provided by the embodiment of the present disclosure issues method;
Fig. 3 is the flow diagram that another kind video data provided by the embodiment of the present disclosure issues method;
Fig. 4 is a kind of structural schematic diagram of video data distributing device provided by the embodiment of the present disclosure;
Fig. 5 is the structural schematic diagram of another kind video data distributing device provided by the embodiment of the present disclosure;
Fig. 6 is the hardware configuration signal for executing video data and issuing the electronic equipment of method that the embodiment of the present disclosure provides Figure.
Specific embodiment
Embodiment of the disclosure is described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical from beginning to end Or similar label indicates same or similar element or element with the same or similar functions.It is retouched below with reference to attached drawing The embodiment stated is exemplary, it is intended to for explaining the disclosure, and should not be understood as the limitation to the disclosure.
Below with reference to the accompanying drawings video data publication method, apparatus, electronic equipment and the storage for describing the embodiment of the present disclosure are situated between Matter.
Fig. 1 is a kind of flow diagram of video data publication method provided by the embodiment of the present disclosure.
As shown in Figure 1, video data publication method includes:
S101 obtains video data to be released.
Wherein, it should be noted that the video data publication method of the embodiment of the present disclosure is configured in video data publication In device, which be can be set in the application program with video sharing function, which can To be arranged in electronic equipment or server, which is not construed as limiting this.
Wherein, electronic equipment can include but is not limited to mobile phone, tablet computer, wearable device etc., and the embodiment is to this It is not construed as limiting.
Disclosure implementation is described so that user is using the short video class application issued video in electronic equipment as an example.
Wherein, it should be noted that be released during user is by short video class application issued video Video data can be user by the video data of short video class application program direct recording, is also possible to user and leads from local The video data entered can also be that user imports plurality of pictures by local, by short-sighted frequency types of applications according to a variety of figures The video data that piece generates, the embodiment are not construed as limiting this.
Wherein, video data may include video image data and audio data, which is not construed as limiting this.
S102 determines that video data needs transcoding again.
Wherein, it should be noted that under different application scene, determine that video data needs again the mode of transcoding not Together, it is illustrated below:
As an example, if the size of video data is more than preset threshold, it is determined that video data needs transcoding to handle.
Specifically, whether the size for judging video data is more than preset threshold, if judgement knows that the size of video data is super Cross preset threshold, it is determined that video data needs transcoding to handle.
Wherein, the size of video data can be calculated according to video code rate and video length, can also pass through reading The Video parameter information of video data obtains, which is not construed as limiting this.
Wherein, it should be noted that if judgement knows that the size of video data is less than preset threshold, can determine that video counts According to transcoding processing is not needed, video data can also further be judged in conjunction with other factor of judgment, to determine that video data is It is no that transcoding is needed to handle.
As an example, if judgement knows that the size of video data is less than preset threshold, can further judge to regard Whether frequency is according to special efficacy is used, if knowing, any special efficacy is not used in video data, can determine that video data does not need transcoding processing.
If knowing, video counts use special efficacy, it may be determined that video data needs transcoding to handle.
It, can be by judging whether video data has special efficacy mark, to judge video as a kind of possible implementation Whether data use special efficacy, if video data is identified with special efficacy, it is determined that video data uses special efficacy, if in video data not It is identified with special efficacy, it is determined that special efficacy is not used in video data.
As another example, identify video data for user's importing, it is determined that video data needs transcoding again.
Specifically, judging whether video data is user's importing, if video data is user's importing, it is determined that video Data need transcoding again
As a kind of possible implementation, judge whether video data is user's importing, it can be by judging video data It whether is user's importing, wherein if video data is labeled to import mark, it is determined that video data needs transcoding again.
Wherein, it should be noted that video data is labeled to import mark, indicates that video data is user from local importing Video data.
Wherein, it should be noted that if video data is not labeled to import mark, further whether can judge video data Use special efficacy, that is, judge whether video data is labeled with special efficacy mark, if video data is labeled with special efficacy mark, say Bright user has addition special efficacy operation to the video data by short video class application program, at this time, it may be determined that the video data Transcoding is needed to handle, alternatively, further being judged according to other factor of judgment the video data, about according to other judgements The particular content that factor further judges video data, reference can be made to the subsequent descriptions of the disclosure.
As another example, identify that video data uses special efficacy, it is determined that video data needs transcoding again.
Specifically, can determine whether video data uses special efficacy, wherein if video data uses special efficacy, it is determined that view Frequency is according to needs again transcoding.
As a kind of possible implementation, judge whether video data uses special efficacy, can be by judging video data It is no to be labeled with special efficacy mark, to judge whether video data to be processed uses special efficacy, if video data is labeled special efficacy mark Know, then determines that video data to be processed is determined to be processed using special efficacy if video data is labeled any special efficacy mark Special efficacy is not used in video data.
As another example, identify that video data uses default special efficacy, it is determined that video data needs transcoding again.
Default special efficacy refers to the special efficacy to video image data addition special efficacy in video data.Default special efficacy may include but The special efficacys such as the color filter, special efficacy filter, any paster, watermark, text, paintbrush are not limited to, the implementation is to this restriction.
S103 carries out transcoding processing to video data, and issues the video data after transcoding.
Specifically, according to preset transcoding rule, transcoding processing carried out to video data, and by transcoding treated video On data publication to video platform.
The video data of the embodiment of the present disclosure issues method, after obtaining video data to be released, is determining the video counts When according to needing transcoding to handle, transcoding processing is carried out to video data, and issue the video data after transcoding.As a result, in publication video When data, transcoding processing only is carried out to the video data for needing transcoding, avoids carrying out transcoding to all types of video datas Resource consumption caused by processing reduces transcoded video data to resource consumption caused by electronic equipment, reduces power consumption.
On the basis of based on the above embodiment, when determining that video data does not need transcoding, video data is directly issued To video platform.As a result, hence for the video data to be released met the requirements, without carrying out transcoding processing, directly will Video data is issued to video platform, and the issuing time for meeting the requirements video to be released is reduced, and improves the video hair of user Cloth experience.
In practical applications, for video data to be released, user can carry out video before issuing video data Video processing, after audio track and/or track of video of the user to video data are handled, in order to by user to audio The operation of track and/or track of video is added in the video data of publication, as an example the embodiment of property, will regard Frequency determines that the audio track of video data and/or track of video are added special efficacy according to being directly distributed to before video platform;Root According to video data audio track and/or track of video added by special efficacy, to the audio track and video track of video data Road is Resealed.
That is, can also judge the audio of video data before video data is directly distributed to video platform Track and and/or track of video whether be added special efficacy, and the audio track for determining video data and and/or track of video be It is not no when being added special efficacy, according to video data audio track and/or track of video added by special efficacy, to video data Audio track and track of video are Resealed.
The embodiment of the present disclosure provides another video data and issues method, and this method is to method shown in FIG. 1 into one Step extension and optimization.
Fig. 2 is the flow diagram that another kind video data provided by the embodiment of the present disclosure issues method.
As shown in Fig. 2, video data publication method includes:
S201 obtains video data to be released.
S202, judges whether video data uses special efficacy, if it is not, S208 is then executed, if so, executing S203.
Wherein, it should be noted that if judgement knows that special efficacy is not used in video data, determine that video data does not need to turn Code processing, that is, illustrate that video data does not need to carry out transcoding processing, at this point, can directly issue above-mentioned video data to video Platform.
S203 judges video data whether using default special efficacy, if it is not, then executing S204;If so, S205 is executed, and Execute S206.
Wherein, default special efficacy can include but is not limited to the color filter, special efficacy filter, any paster, watermark, text, picture The special efficacys such as pen, the implementation is to this restriction.
As an example, default special efficacy, which refers to, adds special efficacy to video image data in video data.
Wherein, it should be noted that if judgement knows that video data uses default special efficacy, it is determined that video data needs to turn Code processing, that is, illustrate that video data needs to carry out transcoding processing.
S204, judges whether the audio track of video data and/or track of video are added special efficacy, if so, executing S207, if it is not, then executing S208.
S205 carries out special effect processing to video data according to default special efficacy.
Wherein, it should be noted that in practical applications, default special efficacy can be added to entire video data, it can also be with Default special efficacy is added to the partial video segment in video data.Therefore, the embodiment of property as an example, according to default Special efficacy carries out special effect processing to video data, may include: to obtain the piece of video that label has special efficacy to identify in video data Then section according to default special efficacy, adds special efficacy to video clip.The efficiency to video data addition special efficacy can be improved as a result,.
S206 carries out transcoding processing to video data, and issues the video data after transcoding.
S207, according to video data audio track and/or track of video added by special efficacy, to the sound of video data Frequency track and track of video are Resealed, the video data after concurrent cloth encapsulation.
Wherein, to the special efficacy of track of video addition may include flow backwards the time, dodge, the special efficacys such as slow motion, the implementation This is not construed as limiting.
Wherein, the special efficacy of audio track addition can include but is not limited to select new music.
Wherein, it should be noted that in actual application, video data may be caused to seal because of some reasons Dress failure.In order to further increase video data publication success rate, the video distribution experience of user is improved, as an example property Embodiment transcoding processing can be re-started to video data, and to transcoding again when determining video data encapsulation failure Video data afterwards is packaged processing, and then, the video data after encapsulation is issued to video platform.
Specifically, when determining video data encapsulation failure, it can be according to preset transcoding rule, again to video data Transcoding processing is carried out, and processing is packaged to the video after transcoding again, then, the video data after encapsulation is issued to view Frequency platform.
S208 issues video data to video platform.
The video data of the embodiment of the present disclosure issues method, after obtaining video data to be released, judges that video data is It is no to use special efficacy, and when video data uses special efficacy, video data is further judged whether using default special efficacy, if judgement view Frequency carries out transcoding processing to row video data according to default special efficacy is used, then, and the video data after transcoding is issued to video Platform, and when default special efficacy is not used in video data, further determine that the audio track and/or video track to video data Road uses special efficacy, if special efficacy is used to audio track and/or video data, to the track of video and audio track of video data It is Resealed, and the video data after encapsulation is issued to video platform;If not making to audio track and/or video data With special efficacy, then directly video data is issued to video platform.As a result, hence for the video counts to be released met the requirements According to, without carrying out transcoding processing, directly by video data issue to video platform, reduce the hair for meeting the requirements video to be released The cloth time improves the video distribution experience of user.
The embodiment of the present disclosure provides another video data and issues method, and this method is to method shown in FIG. 1 into one Step extension and optimization.
Fig. 3 is the flow diagram that another kind video data provided by the embodiment of the present disclosure issues method.
As shown in figure 3, video data publication method includes:
S301 obtains video data to be released.
S302 judges whether video data is user's importing, if so, S309 is executed, if it is not, then executing 303.
S303, judges whether video data uses special efficacy, if it is not, S309 is then executed, if so, executing S304.
Wherein, it should be noted that, if judgement knows that special efficacy is not used in video data, determine that video data does not need transcoding Processing, that is, illustrate that video data does not need to carry out transcoding processing, regarded at this point, can directly issue above-mentioned video data to target Frequency platform.
S304 judges video data whether using default special efficacy, if it is not, then executing S305;If so, executing S306- S307。
Wherein, it should be noted that if judgement knows that video data uses default special efficacy, it is determined that video data needs to turn Code processing, that is, illustrate that video data needs to carry out transcoding processing.
S305, judges whether the audio track of video data and/or track of video are added special efficacy, if so, executing S308, if it is not, then executing S309.
S306 carries out special effect processing to video data according to default special efficacy.
S307 carries out transcoding processing to video data, and issues the video data after transcoding.
S308, according to video data audio track and/or track of video added by special efficacy, to video data carry out It Reseals, the video data after concurrent cloth encapsulation.
It in some embodiments,, can when determining video data encapsulation failure before the video data after publication encapsulation Transcoding processing first is re-started to video data, and processing is packaged to the video after transcoding again, then, will be Resealed Video data afterwards is issued to video platform.
S309 issues video data to video platform.
The video data of the embodiment of the present disclosure issues method, after obtaining video data to be released, judges that video data is It is no to be imported for user, and when video data is that user imports, further judge whether video data uses special efficacy, in video counts When according to any special efficacy is not used, directly by video data placement to video platform, and when video data uses special efficacy, into one Whether step judges video data using default special efficacy, if judging, video data using default special efficacy, is carried out row video data Transcoding processing, and the video data after transcoding is issued to video platform, and when default special efficacy is not used in video data, into One step, which is determined, uses special efficacy to the audio track and/or track of video of video data, if being carried out using special efficacy to video data It Reseals, and the video data after encapsulation is issued to video platform;If special efficacy is not used, directly video data is issued To video platform.It, directly will view without carrying out transcoding processing as a result, hence for the video data to be released met the requirements Frequency reduces the issuing time for meeting the requirements video to be released, improves the video distribution of user according to video platform is published to Experience.
In the related technology, during carrying out transcoding processing to video data, the mode of single-threaded serial is generallyd use Transcoding processing is carried out to video data, the transcoding time that this processing mode usually requires is more.The reality of property as an example Mode is applied, in order to improve the efficiency of video code conversion, and then further increases the efficiency for issuing of video data, the disclosure is implemented to use Multiple thread parallel processing modes carry out transcoding processing to video data.
Specifically, transcoding is handled, including multiple processing stages, each processing stage are executed by corresponding thread.
Wherein, it should be noted that multiple processing stage corresponding threads can use parallel processing or serial Processing mode, the implementation are not construed as limiting this.
Wherein, transcoding processing can include but is not limited to the processing stages such as decoding, special effect processing, transcoding, encapsulation.
Wherein, as a kind of possible implementation, transcoding is carried out to video data, may include: to pass through first thread Video data is decoded, and decoding data is put into data queue;When the second thread monitor exists into data queue When decoding data, the decoding data in third thread read data queue is notified;Decoding data is read by third thread, and right Decoding data carries out coding and encapsulation process.
Wherein, as alternatively possible implementation, transcoding is carried out to video data, may include: by the 4th line Journey is decoded video data, and decoding data is put into data queue;When the 5th thread monitor is deposited into data queue In decoding data, the decoding data in the 6th thread read data queue is notified;Decoding data is read by the 6th thread, and Decoding data is encoded;When receiving from the coded data of the 6th thread, by the 7th thread to coded data into Row encapsulation process.
It is understood that by thread corresponding to the coded treatment stage to video data carry out coded treatment it Before, respective handling can also be carried out to video data according to video processing information used by video data.
For example, special efficacy use information corresponding to video data can be obtained, and according to special efficacy use information, to video data Corresponding special effect processing is carried out, so that the video data after publication has special video effect added by user.
Preferably, corresponding thread of multiple processing stages can use parallel processing manner, simultaneously by multiple threads Row processing mode carries out transcoding processing to video data, can make full use of processor performance, reduces required for video code conversion Time improves the efficiency of video code conversion.
The embodiment of the present disclosure also proposes a kind of video data distributing device.
Fig. 4 is a kind of structural schematic diagram of video data distributing device provided by the embodiment of the present disclosure.
As shown in figure 4, the video data distributing device may include the first acquisition module 110,120 and of the first determining module Release module 130, in which:
First obtains module 110, for obtaining video data to be released.
First determining module 120, for determining that video data needs transcoding again.
Release module 130 for carrying out transcoding processing to video data, and issues the video data after transcoding.
In one embodiment of the present disclosure, determining module 120 needs weight by following at least one determining video data New transcoding: if the size of video data is more than preset threshold, it is determined that video data needs transcoding to handle.Identify that video data is User imports, it is determined that video data needs transcoding again.Identify that video data uses special efficacy or default special efficacy, it is determined that video Data need transcoding again.
In one embodiment of the present disclosure, release module is also used to when determining that video data does not need transcoding, will be regarded Frequency evidence is directly distributed to video platform.
On the basis of above-mentioned Installation practice shown in Fig. 4, as shown in figure 5, the device can also include
Second determining module 140, audio track and/or track of video for determining video data are added special efficacy.
Reseal module 150, for according to video data audio track and/or track of video added by spy Effect, Reseals the audio track and track of video of video data.
In one embodiment of the present disclosure, as shown in figure 5, the device can also include:
Transcoding module 160, for re-starting transcoding processing to video data when determining video data encapsulation failure.
In one embodiment of the present disclosure, transcoding is handled, including multiple processing stages, and each processing stage is by respectively right The thread answered executes.
As an example, corresponding thread of multiple processing stages can use parallel mode.As a result, by multi-thread The mode of journey parallel processing carries out transcoding processing, improves the transcoding efficiency of video data, and then can be further reduced video hair Issuing time required for cloth improves the efficiency of video distribution.
Wherein, it should be noted that, the aforementioned explanation to video data publication embodiment of the method is also applied for the implementation The video data distributing device of example, realization principle is similar, and details are not described herein again.
The video data distributing device of the embodiment of the present disclosure after obtaining video data to be released, is determining the video counts When according to needing transcoding to handle, transcoding processing is carried out to video data, and issue the video data after transcoding.As a result, in publication video When data, transcoding processing only is carried out to the video data for needing transcoding, avoids carrying out transcoding to all types of video datas Resource consumption caused by processing reduces transcoded video data to resource consumption caused by electronic equipment, reduces power consumption.
In order to realize above-described embodiment, the embodiment of the present invention also proposes a kind of computer readable storage medium, stores thereon There is computer program, which is executed by processor, and the video data for executing above-described embodiment issues method.
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present disclosure provides.The electronic equipment includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the video data publication method provided in above-described embodiment when executing program.
Further, electronic equipment further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes the immediate feedback method of the recommendation information of above-described embodiment when for executing program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.Bus can be Industry Standard Architecture Structure (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..Bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, Fig. 6, it is not intended that an only bus or a type of bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt It is configured to implement one or more integrated circuits of the embodiment of the present disclosure.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that can on it the paper of print routine or other suitable be situated between Matter, because can then be edited, be interpreted or when necessary with other for example by carrying out optical scanner to paper or other media Suitable method is handled electronically to obtain program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.

Claims (10)

1. a kind of video data issues method characterized by comprising
Obtain video data to be released;
Determine that the video data needs transcoding again;
Transcoding processing is carried out to the video data, and issues the video data after transcoding.
2. the method as described in claim 1, which is characterized in that the determination video data needs transcoding again, including Following at least one:
If the size of the video data is more than preset threshold, it is determined that the video data needs transcoding to handle;
Identify the video data for user's importing, it is determined that the video data needs transcoding again;
Identify that the video data uses special efficacy or default special efficacy, it is determined that the video data needs transcoding again.
3. the method as described in claim 1, which is characterized in that, will be described when determining that the video data does not need transcoding Video data is directly distributed to video platform.
4. method as claimed in claim 3, which is characterized in that the video data is directly distributed to video platform described Before, further includes:
The audio track and/or track of video for determining the video data are added special efficacy;
According to the video data audio track and/or track of video added by special efficacy, to the sound of the video data Frequency track and track of video are Resealed.
5. method as claimed in claim 4, which is characterized in that further include:
When determining the video data encapsulation failure, transcoding processing is re-started to the video data.
6. the method according to claim 1 to 5, which is characterized in that the transcoding processing, including multiple processing stages, Each processing stage is executed by corresponding thread.
7. a kind of video data distributing device characterized by comprising
First obtains module, for obtaining video data to be released;
First determining module, for determining that the video data needs transcoding again;
Release module for carrying out transcoding processing to the video data, and issues the video data after transcoding.
8. device as claimed in claim 7, which is characterized in that the determining module passes through following at least one determining video counts According to needs again transcoding:
If the size of the video data is more than preset threshold, it is determined that the video data needs transcoding to handle;
Identify the video data for user's importing, it is determined that the video data needs transcoding again;
Identify that the video data uses special efficacy or default special efficacy, it is determined that the video data needs transcoding again.
9. a kind of electronic equipment characterized by comprising
At least one processor;And the memory being connect at least one described processor communication;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, and described instruction is arranged to use Method is issued in executing the described in any item video datas of the claims 1-6.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage computer refers to It enables, the computer instruction is for making the computer perform claim require the described in any item video data publication methods of 1-6.
CN201910293502.0A 2019-04-12 2019-04-12 Video data issues method, apparatus, electronic equipment and storage medium Pending CN110062278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910293502.0A CN110062278A (en) 2019-04-12 2019-04-12 Video data issues method, apparatus, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910293502.0A CN110062278A (en) 2019-04-12 2019-04-12 Video data issues method, apparatus, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110062278A true CN110062278A (en) 2019-07-26

Family

ID=67318952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910293502.0A Pending CN110062278A (en) 2019-04-12 2019-04-12 Video data issues method, apparatus, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110062278A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650304A (en) * 2019-10-23 2020-01-03 维沃移动通信有限公司 Video generation method and electronic equipment
CN112533065A (en) * 2020-12-11 2021-03-19 北京达佳互联信息技术有限公司 Method and device for publishing video, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997663A (en) * 2013-02-19 2014-08-20 广州星海传媒有限公司 Video resource management method and system, and video-on-demand device
CN104333765A (en) * 2014-10-23 2015-02-04 无锡天脉聚源传媒科技有限公司 Processing method and device of video live streams
CN104685886A (en) * 2012-06-29 2015-06-03 瑞典爱立信有限公司 Apparatus and methods thereof for video processing
US20150156281A1 (en) * 2013-12-04 2015-06-04 Facebook, Inc. Uploading and Transcoding Media Files
CN105357593A (en) * 2015-10-30 2016-02-24 努比亚技术有限公司 Method, device and system for uploading video
CN105451031A (en) * 2015-11-18 2016-03-30 腾讯科技(深圳)有限公司 Video transcoding method and system thereof
CN105516736A (en) * 2016-01-18 2016-04-20 腾讯科技(深圳)有限公司 Video file processing method and device
CN106534900A (en) * 2016-11-24 2017-03-22 天脉聚源(北京)科技有限公司 Method and device for uploading live broadcast video streams
CN106657963A (en) * 2016-09-14 2017-05-10 深圳岚锋创视网络科技有限公司 Data processing device and method
CN106791928A (en) * 2016-12-29 2017-05-31 上海幻电信息科技有限公司 The high performance video trans-coding system and method for a kind of self adaptation
CN108337465A (en) * 2017-02-09 2018-07-27 腾讯科技(深圳)有限公司 Method for processing video frequency and device
CN108833942A (en) * 2018-06-28 2018-11-16 北京达佳互联信息技术有限公司 Video cover choosing method, device, computer equipment and storage medium
CN109547797A (en) * 2019-01-02 2019-03-29 太原科技大学 A kind of separable encrypted domain information concealing method
CN109547841A (en) * 2018-12-20 2019-03-29 北京微播视界科技有限公司 Processing method, device and the electronic equipment of short video data

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104685886A (en) * 2012-06-29 2015-06-03 瑞典爱立信有限公司 Apparatus and methods thereof for video processing
CN103997663A (en) * 2013-02-19 2014-08-20 广州星海传媒有限公司 Video resource management method and system, and video-on-demand device
US20150156281A1 (en) * 2013-12-04 2015-06-04 Facebook, Inc. Uploading and Transcoding Media Files
CN104333765A (en) * 2014-10-23 2015-02-04 无锡天脉聚源传媒科技有限公司 Processing method and device of video live streams
CN105357593A (en) * 2015-10-30 2016-02-24 努比亚技术有限公司 Method, device and system for uploading video
CN105451031A (en) * 2015-11-18 2016-03-30 腾讯科技(深圳)有限公司 Video transcoding method and system thereof
CN105516736A (en) * 2016-01-18 2016-04-20 腾讯科技(深圳)有限公司 Video file processing method and device
CN106657963A (en) * 2016-09-14 2017-05-10 深圳岚锋创视网络科技有限公司 Data processing device and method
CN106534900A (en) * 2016-11-24 2017-03-22 天脉聚源(北京)科技有限公司 Method and device for uploading live broadcast video streams
CN106791928A (en) * 2016-12-29 2017-05-31 上海幻电信息科技有限公司 The high performance video trans-coding system and method for a kind of self adaptation
CN108337465A (en) * 2017-02-09 2018-07-27 腾讯科技(深圳)有限公司 Method for processing video frequency and device
CN108833942A (en) * 2018-06-28 2018-11-16 北京达佳互联信息技术有限公司 Video cover choosing method, device, computer equipment and storage medium
CN109547841A (en) * 2018-12-20 2019-03-29 北京微播视界科技有限公司 Processing method, device and the electronic equipment of short video data
CN109547797A (en) * 2019-01-02 2019-03-29 太原科技大学 A kind of separable encrypted domain information concealing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王彤: "媒体数据的转码技术", 《数字媒体内容管理技术与实践》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650304A (en) * 2019-10-23 2020-01-03 维沃移动通信有限公司 Video generation method and electronic equipment
CN110650304B (en) * 2019-10-23 2021-12-07 维沃移动通信有限公司 Video generation method and electronic equipment
CN112533065A (en) * 2020-12-11 2021-03-19 北京达佳互联信息技术有限公司 Method and device for publishing video, electronic equipment and storage medium
CN112533065B (en) * 2020-12-11 2022-07-22 北京达佳互联信息技术有限公司 Method and device for publishing video, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP7191240B2 (en) Video stream decoding method, device, terminal equipment and program
CN110062262A (en) Transcoding control method, device, electronic equipment and the storage medium of video data
US8068116B2 (en) Methods, systems, and data structures for generating a rasterizer
US8036474B2 (en) Information processing apparatus enabling an efficient parallel processing
CN106251392A (en) For the method and apparatus performing to interweave
CN110096507A (en) A kind of page complexity table rendering method, system, terminal and medium
CN109121009A (en) Method for processing video frequency, client and server
CN109213594A (en) Method, apparatus, equipment and the computer storage medium that resource is seized
CN110062278A (en) Video data issues method, apparatus, electronic equipment and storage medium
CN110908697A (en) Resource packaging method, device, server and storage medium
CN107391295A (en) The processing method and processing device of application exception
EP3198870B1 (en) Processing parameters for operations on blocks while decoding images
US11604753B2 (en) Inter device data exchange via external bus by utilizing communication port
TWI401613B (en) System, method, and computer program product for preventing display of unwanted content stored in a frame buffer
US7900010B2 (en) System and method for memory allocation management
CN108363655A (en) User behavior characteristics analysis method and device
CN113345067B (en) Unified rendering method, device, equipment and engine
CN115935909A (en) File generation method and device and electronic equipment
CN112114959B (en) Resource scheduling method, distributed system, computer device and storage medium
CN113747195A (en) Video data processing method, device, equipment and storage medium
AU2009212933A1 (en) Methods of storing and retrieving images
CN107426308A (en) Asynchronous network communication means, device, terminal and server
CN112181496A (en) AI extended instruction execution method and device based on open source instruction set processor, storage medium and electronic equipment
CN113806594A (en) Business data processing method, device, equipment and storage medium based on decision tree
CN112835626A (en) Pipeline configuration method and device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190726