CN113115076A - Video processing system, method and device, electronic equipment and storage medium - Google Patents

Video processing system, method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113115076A
CN113115076A CN202110381865.7A CN202110381865A CN113115076A CN 113115076 A CN113115076 A CN 113115076A CN 202110381865 A CN202110381865 A CN 202110381865A CN 113115076 A CN113115076 A CN 113115076A
Authority
CN
China
Prior art keywords
video
format
fragments
transcoding
preset
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
CN202110381865.7A
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110381865.7A priority Critical patent/CN113115076A/en
Publication of CN113115076A publication Critical patent/CN113115076A/en
Pending legal-status Critical Current

Links

Images

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/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/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/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement

Landscapes

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

Abstract

The application provides a video processing system, a video processing method, a video processing device, electronic equipment and a storage medium, and belongs to the technical field of internet. The method comprises the steps that transcoding processing is carried out on a preset number of first video fragments to obtain second video fragments when the preset number of first video fragments in a first video are received; when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video; and sending the second video to a distribution terminal. By the method and the device, the whole transcoding time of all the first video fragments is reduced, namely the transcoding time of the first video is reduced, and the video transcoding efficiency is improved.

Description

Video processing system, method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet, and in particular, to a video processing system, method, apparatus, electronic device, and storage medium.
Background
Video Transcoding (Video Transcoding) refers to converting a Video code stream that has been compression-coded into another Video code stream to adapt to different network bandwidths, different terminal processing capabilities and different user requirements. When a video is published on a video website or a video APP, the following steps are usually required: firstly, uploading a video to a server, then transcoding the video by the server, converting the video into a video code stream which is supported by a playing end to play, and finally sending the transcoded video code stream to the playing end to play.
At present, a single transcoding server is generally used for transcoding videos, transcoding can be started only after the videos are completely uploaded, and the transcoded videos are transmitted to a playing end after the transcoding is completed.
However, this approach has the disadvantage of inefficient transcoding.
Disclosure of Invention
In order to solve the technical problem that transcoding is performed on a video by using a single transcoding server, and transcoding can be performed only after the video is completely uploaded, so that transcoding efficiency is low, the application provides a video processing system, a video processing method, a video processing device, an electronic device and a storage medium.
In a first aspect, a video processing system is provided, including: a client, a content production device and a distribution terminal;
the client is used for sending a first video fragment in a first video to the content production equipment;
the content production equipment is used for transcoding a preset number of first video fragments to obtain second video fragments when receiving the preset number of first video fragments in a first video; when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video; sending the second video to a distribution terminal;
the distribution terminal is used for receiving the second video.
In a second aspect, a video processing method is provided, which is applied to a content production device, and the method includes:
when a preset number of first video fragments in a first video are received, transcoding the preset number of first video fragments to obtain a second video fragment;
when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video;
and sending the second video to a distribution terminal.
Optionally, the preset number is one, and transcoding the preset number of first video fragments every time the preset number of first video fragments in the first video are received, includes:
and transcoding the first video fragment every time one first video fragment in the first video is received.
Optionally, the method further comprises:
and when any group of the first video fragments with the preset number is transcoded, sending second video fragments corresponding to the first video fragments with the preset number to the distribution end.
Optionally, the method further comprises:
acquiring format information corresponding to a first video;
judging whether the format information meets a preset format condition or not;
if the format information accords with a preset format condition, converting the packaging format of the first video into a target packaging format corresponding to a playing end, and sending the format-converted first video to the distribution end;
and if the format information does not accord with the preset format condition, executing the step of receiving the preset number of first video fragments in the first video.
Optionally, the determining whether the format information meets a preset format condition includes:
acquiring a file format, a video coding format and an audio coding format of the first video;
if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition;
otherwise, determining that the first video does not meet the preset condition.
Optionally, the method further comprises:
acquiring file header information corresponding to the first video;
judging whether the first video is complete or not based on the file header information;
and when the first video is complete, executing the step of acquiring the format information corresponding to the first video.
Optionally, the converting the packaging format of the first video into a target packaging format corresponding to a play end includes:
searching a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format;
decapsulating the first video by using the demultiplexer to obtain video data and audio data in the first video;
and packaging the video data and the audio data by using the multiplexer to obtain a first video packaged in the target packaging format.
Optionally, the combining the plurality of second video slices to obtain the second video includes:
and combining the second video fragments corresponding to the first video fragments according to the sequence of the first video fragments in the first video to obtain a second video.
In a third aspect, a video processing apparatus is provided, the apparatus comprising:
the transcoding module is used for transcoding a preset number of first video fragments to obtain a second video fragment when the preset number of first video fragments in a first video are received;
the combination module is used for combining a plurality of second video fragments to obtain a second video when all transcoding of the plurality of first video fragments in the first video is finished;
and the sending module is used for sending the second video to the distribution end.
Optionally, the transcoding module is specifically configured to:
and transcoding the first video fragment every time one first video fragment in the first video is received.
Optionally, the apparatus further comprises:
and the second video fragment sending module is used for sending second video fragments corresponding to the first video fragments with the preset number to the distribution end when transcoding of any group of the first video fragments with the preset number is completed.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring format information corresponding to the first video;
the judging module is used for judging whether the format information meets a preset format condition;
the packaging conversion module is used for converting the packaging format of the first video into a target packaging format corresponding to a playing end if the format information accords with a preset format condition, and sending the first video subjected to format conversion to the distribution end;
and the first execution module is used for executing the step of receiving the preset number of first video fragments in the first video if the format information does not accord with the preset format condition.
Optionally, the determining module is specifically configured to:
acquiring a file format, a video coding format and an audio coding format of the first video;
if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition;
otherwise, determining that the first video does not meet the preset condition.
Optionally, the apparatus further comprises:
the information acquisition module is used for acquiring file header information corresponding to the first video;
the information judgment module is used for judging whether the first video is complete or not based on the file header information;
and the second execution module is used for executing the step of acquiring the format information corresponding to the first video when the first video is complete.
Optionally, the trans-encapsulation module is specifically configured to:
searching a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format;
decapsulating the first video by using the demultiplexer to obtain video data and audio data in the first video;
and packaging the video data and the audio data by using the multiplexer to obtain a first video packaged in the target packaging format.
Optionally, the combination module is specifically configured to:
and combining the second video fragments corresponding to the first video fragments according to the sequence of the first video fragments in the first video to obtain a second video.
In a fourth aspect, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the second aspect when executing the program stored in the memory.
In a fifth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program realizes the method steps of any one of the second aspect.
A sixth aspect provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the video processing methods described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a video processing system, a video processing method, a video processing device, electronic equipment and a storage medium, wherein a preset number of first video fragments in a first video are transcoded by receiving the preset number of first video fragments every time to obtain second video fragments; then, when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video; and sending the second video to a distribution terminal.
According to the method, transcoding can be performed on the first video fragments when the first video fragments with the preset number are received in the first video, namely, the uploaded first video fragments are transcoded, other first video fragments can be uploaded normally, uploading and transcoding of the first video fragments are not affected mutually, transcoding while uploading is achieved, transcoding does not occupy time independently, integral transcoding is avoided after all first video fragments waiting for the first video are uploaded completely in the related technology, time for integral uploading of the first video and time for integral transcoding of the first video are needed, namely, time for transcoding of the first video is shortened, and efficiency of video transcoding is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a video processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 3 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a video transcoding method according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, a single transcoding server is usually used for transcoding the video, transcoding can be started only after the video is completely uploaded, and the transcoded video is transmitted to a playing end after the transcoding is completed. However, this approach has the disadvantage of inefficient transcoding. Therefore, the embodiment of the application provides a video processing method which can be applied to content production equipment.
A video processing method provided in an embodiment of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:
s101, when a preset number of first video fragments in a first video are received, transcoding processing is carried out on the preset number of first video fragments to obtain second video fragments.
In the embodiment of the application, as shown in fig. 6, when a client uploads a video, the video is divided into a plurality of video segments to be uploaded, for example, one 100M video is uploaded, and the 100M video can be divided into 10M video segments to be sequentially uploaded.
The content production device may be an edge cloud device, and when a user uploads a first video at a client, the content production device transcodes a preset number of first video fragments to obtain second video fragments each time the content production device receives a preset number of first video fragments in the first video, that is, each time the preset number of first video fragments are uploaded, the preset number of first video fragments are transcoded to obtain the second video fragments. Preferably, the predetermined number is 1. After the second video fragment is obtained, the second video fragment may be sent to a module for storage in the content production device for storage.
Illustratively, the preset number is 3, and when a 100M first video is uploaded, the uploading process is as follows: and sequentially uploading 10M first video fragments, and transcoding the 3 first video fragments to obtain a second video fragment when 3 first video fragments are received.
And S102, combining a plurality of second video fragments to obtain a second video when all transcoding of the plurality of first video fragments in the first video is completed.
In the embodiment of the application, when all transcoding of a plurality of first video fragments in a first video is completed, a plurality of second video fragments are combined to obtain a second video, wherein the second video is the transcoded first video.
S103, sending the second video to the distribution terminal.
In this embodiment of the application, after the second video is obtained, the second video may be sent to the distribution terminal, where the distribution terminal is a module for storage in the content production device. The distribution terminal can respond to the playing request of the client terminal, and the distribution terminal transmits the video data to the client terminal and finally plays the video data at the client terminal. And the second video can be sent to the module for playing in the content production equipment in response to the playing request of the module for playing in the content production equipment, so that the uploading and downloading IO operation of the second video can be saved compared with the uploading and downloading IO operation sent to the terminal playing equipment, and the video publishing efficiency is higher.
In the embodiment of the application, each time a preset number of first video fragments in a first video are received, the preset number of first video fragments can be transcoded, that is, while the uploaded first video fragments are transcoded, other first video fragments can be uploaded normally, uploading and transcoding of the first video fragments are not affected mutually, transcoding while uploading is realized, transcoding does not occupy time independently, and it is avoided that in the related art, after all first video fragments of the first video are completely uploaded, integral transcoding is performed, time for integrally uploading the first video and time for integrally transcoding the first video are consumed, that is, time for transcoding the first video is shortened, and efficiency of video transcoding is improved.
In yet another embodiment of the present application, the method may comprise the steps of:
and when any group of the first video fragments with the preset number is transcoded, sending second video fragments corresponding to the first video fragments with the preset number to the distribution end.
In the embodiment of the application, when transcoding of any group of the first video fragments with the preset number is completed, the second video fragments corresponding to the group of the first video fragments with the preset number are obtained, and at this time, the second video fragments are sent to the distributing end without waiting for other first video fragments which are not transcoded, so that the video publishing efficiency is improved.
In yet another embodiment of the present application, the method may comprise the steps of:
s201, acquiring format information corresponding to the first video.
In the embodiment of the present application, format information of width, height, duration, code rate, coding format, frame list, key frame list, audio track, corresponding timestamp, position in a file, and the like in a video file is separately stored in several storage modules (boxes) under a media storage unit (Sample Table Box, stbl) by a specific algorithm.
By analyzing all boxes under the stbl corresponding to the first video, the format information corresponding to the first video can be obtained.
S202, judging whether the format information meets a preset format condition.
In the embodiment of the application, the format condition is preset, and whether the format information meets the preset format condition or not can be judged by comparing the format information corresponding to the first video with the preset format condition.
And S203, if the format information conforms to a preset format condition, converting the packaging format of the first video into a target packaging format corresponding to the playing end, and sending the format-converted first video to the distribution end.
In the embodiment of the present application, if the format information meets the preset format condition, the first video may be processed in a package-to-package manner, that is, the package format of the first video is converted into a target package format corresponding to the playing end, and the format-converted first video is sent to the distribution end.
S204, if the format information does not accord with the preset format condition, executing the step of receiving the preset number of first video fragments in the first video.
In the embodiment of the present application, if the format information does not meet the preset format condition, the first video cannot be processed in a package-to-package manner, and then step S101 is executed.
In the embodiment of the application, if the format information meets the preset format condition, the first video may be processed in a package-to-package manner, that is, the package format of the first video is converted into a target package format corresponding to the playing end. The video is processed by using a transcoding and packaging mode, so that the transcoding process of full decoding and full encoding is omitted, and compared with the method of processing the video by using the transcoding mode, the method consumes less time and has higher video processing efficiency.
In another embodiment of the present application, the S202 may include the following steps:
step one, acquiring a file format, a video coding format and an audio coding format of the first video.
In the embodiment of the present application, the file format, the video encoding format, and the audio encoding format of the first video may be obtained by analyzing all storage modules box under the media storage unit stbl corresponding to the first video.
And step two, if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition.
In the embodiment of the present application, the preset standard file format, the preset standard video encoding format, and the preset standard audio encoding format are shown in table 1.
Table 1:
Figure BDA0003013320830000101
and if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition.
And step three, otherwise, determining that the first video does not accord with the preset condition.
In this embodiment, if the file format is not the preset standard file format, or the video encoding format is not the preset standard video encoding format, or the audio encoding format is not the preset standard audio encoding format, the first video does not conform to the preset condition.
In the embodiment of the application, whether the first video meets the preset condition or not can be determined by comparing the file format with the preset standard file format, the video coding format with the preset standard video coding format and the audio coding format with the preset standard audio coding format, and the comparison process is simple and efficient.
In yet another embodiment of the present application, the method may comprise the steps of:
s301, acquiring file header information corresponding to the first video.
In this embodiment of the application, the header information is used to describe file content of the first video, and the header information corresponding to the first video may be obtained through parsing.
S302, judging whether the first video is complete or not based on the file header information.
In the embodiment of the application, whether the first video is complete or not can be judged based on the file content recorded in the file header information and the file content of the first video obtained by analysis, if the file content recorded in the file header information is consistent with the file content of the first video obtained by analysis, the first video is complete, and if the file content is not consistent with the file content of the first video obtained by analysis; and if the file content recorded in the file header information is inconsistent with the file content of the first video obtained by analysis, the first video is incomplete.
S303, when the first video is complete, executing the step of obtaining the format information corresponding to the first video.
In this embodiment of the application, when the first video is incomplete, it is indicated that the first video is a damaged video file, and then subsequent processing is not required to be performed on the first video, and only when the first video is complete, the subsequent processing is performed on the first video, that is, the step S201 of obtaining the format information corresponding to the first video is performed.
In the embodiment of the application, whether the first video is complete or not is judged based on the file header information, the subsequent processing is performed on the first video only when the first video is complete, and when the first video is incomplete, the first video is a damaged video file, the subsequent processing is not performed on the first video, so that the damaged video file can be prevented from being processed, and the computing resource is saved.
In another embodiment of the present application, the step S203 may include the following steps:
step one, searching a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format.
In the embodiment of the present application, after determining that the format information meets the preset format condition, first, a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format need to be searched, so as to prepare for subsequent package conversion.
And step two, the demultiplexer is used for decapsulating the first video to obtain video data and audio data in the first video.
In the embodiment of the application, after finding the demultiplexer corresponding to the encapsulation format of the first video, initializing the demultiplexer, then inputting the first video into the demultiplexer, and finally decapsulating the first video by using the demultiplexer to obtain video data and audio data in the first video.
And step three, packaging the video data and the audio data by using the multiplexer to obtain a first video packaged in the target packaging format.
In the embodiment of the application, after finding the multiplexer corresponding to the target encapsulation format, inputting the decapsulated video data and audio data into the multiplexer, and encapsulating the video data and the audio data by using an encapsulator to obtain the first video encapsulated in the target encapsulation format.
In the embodiment of the application, the demultiplexer and the multiplexer are used for converting the packaging format of the first video into the target packaging format, so that the conversion speed is high, and the efficiency is high.
In another embodiment of the present application, the S102 may include the following steps:
and combining the second video fragments corresponding to the first video fragments according to the sequence of the first video fragments in the first video to obtain a second video.
In this embodiment of the present application, according to the order of the first video slices in the first video, the second video slices corresponding to the first video slices may be combined to obtain the second video. The playing sequence of the second video obtained by the scheme is the same as that of the first video, and the second video cannot be out of order.
In the embodiment of the application, each time a preset number of first video fragments in a first video are received, transcoding can be performed on the first video fragments, that is, the uploaded first video fragments are transcoded, other first video fragments can be uploaded normally, uploading and transcoding of the first video fragments are not affected mutually, transcoding while uploading is performed, transcoding does not occupy time independently, integral transcoding is avoided after all first video fragments waiting for the first video to be uploaded completely in the related technology, time for integral uploading of the first video and time for integral transcoding of the first video need to be consumed, that is, time for transcoding of the first video is shortened, and efficiency of video transcoding is improved.
Based on the same technical concept, an embodiment of the present application further provides a video processing system, including: a client, a content production device and a distribution terminal;
the client is used for sending a first video fragment in a first video to the content production equipment;
the content production equipment is used for transcoding a preset number of first video fragments to obtain second video fragments when receiving the preset number of first video fragments in a first video; when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video; sending the second video to a distribution terminal;
the distribution terminal is used for receiving the second video.
Based on the same technical concept, an embodiment of the present application further provides a video processing apparatus, as shown in fig. 4, the apparatus includes:
the transcoding module 401 is configured to, each time a preset number of first video fragments in a first video are received, transcode the preset number of first video fragments to obtain a second video fragment;
the combining module 402 is configured to combine the plurality of second video segments to obtain a second video when all transcoding of the plurality of first video segments in the first video is completed;
a sending module 403, configured to send the second video to the distribution end.
Optionally, the transcoding module is specifically configured to:
and transcoding the first video fragment every time one first video fragment in the first video is received.
Optionally, the apparatus further comprises:
and the second video fragment sending module is used for sending second video fragments corresponding to the first video fragments with the preset number to the distribution end when transcoding of any group of the first video fragments with the preset number is completed.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring format information corresponding to the first video;
the judging module is used for judging whether the format information meets a preset format condition;
the packaging conversion module is used for converting the packaging format of the first video into a target packaging format corresponding to a playing end if the format information accords with a preset format condition, and sending the first video subjected to format conversion to the distribution end;
and the first execution module is used for executing the step of receiving the preset number of first video fragments in the first video if the format information does not accord with the preset format condition.
Optionally, the determining module is specifically configured to:
acquiring a file format, a video coding format and an audio coding format of the first video;
if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition;
otherwise, determining that the first video does not meet the preset condition.
Optionally, the apparatus further comprises:
the information acquisition module is used for acquiring file header information corresponding to the first video;
the information judgment module is used for judging whether the first video is complete or not based on the file header information;
and the second execution module is used for executing the step of acquiring the format information corresponding to the first video when the first video is complete.
Optionally, the trans-encapsulation module is specifically configured to:
searching a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format;
decapsulating the first video by using the demultiplexer to obtain video data and audio data in the first video;
and packaging the video data and the audio data by using the multiplexer to obtain a first video packaged in the target packaging format.
Optionally, the combination module is specifically configured to:
and combining the second video fragments corresponding to the first video fragments according to the sequence of the first video fragments in the first video to obtain a second video.
In the embodiment of the application, each time a preset number of first video fragments in a first video are received, transcoding can be performed on the first video fragments, that is, the uploaded first video fragments are transcoded, other first video fragments can be uploaded normally, uploading and transcoding of the first video fragments are not affected mutually, transcoding while uploading is performed, transcoding does not occupy time independently, integral transcoding is avoided after all first video fragments waiting for the first video to be uploaded completely in the related technology, time for integral uploading of the first video and time for integral transcoding of the first video need to be consumed, that is, time for transcoding of the first video is shortened, and efficiency of video transcoding is improved.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
when a preset number of first video fragments in a first video are received, transcoding the preset number of first video fragments to obtain a second video fragment;
when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video;
and sending the second video to a distribution terminal.
Optionally, the method further includes:
acquiring format information corresponding to a first video;
judging whether the format information meets a preset format condition or not;
if the format information accords with a preset format condition, converting the packaging format of the first video into a target packaging format corresponding to a playing end, and sending the format-converted first video to the distribution end;
and if the format information does not accord with the preset format condition, executing the step of receiving the preset number of first video fragments in the first video.
Optionally, the determining whether the format information meets a preset format condition includes:
acquiring a file format, a video coding format and an audio coding format of the first video;
if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition;
otherwise, determining that the first video does not meet the preset condition.
Optionally, the method further includes:
acquiring file header information corresponding to the first video;
judging whether the first video is complete or not based on the file header information;
and when the first video is complete, executing the step of acquiring the format information corresponding to the first video.
Optionally, the converting the packaging format of the first video into a target packaging format corresponding to a play end includes:
searching a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format;
decapsulating the first video by using the demultiplexer to obtain video data and audio data in the first video;
and packaging the video data and the audio data by using the multiplexer to obtain a first video packaged in the target packaging format.
Optionally, the combining the multiple second video slices to obtain the second video includes:
and combining the second video fragments corresponding to the first video fragments according to the sequence of the first video fragments in the first video to obtain a second video.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned video processing methods.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the video processing methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A video processing system, comprising: a client, a content production device and a distribution terminal;
the client is used for sending a first video fragment in a first video to the content production equipment;
the content production equipment is used for transcoding a preset number of first video fragments to obtain second video fragments when receiving the preset number of first video fragments in a first video; when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video; sending the second video to a distribution terminal;
the distribution terminal is used for receiving the second video.
2. A video processing method, applied to a content production device, the method comprising:
when a preset number of first video fragments in a first video are received, transcoding the preset number of first video fragments to obtain a second video fragment;
when all transcoding of a plurality of first video fragments in the first video is completed, combining a plurality of second video fragments to obtain a second video;
and sending the second video to a distribution terminal.
3. The method of claim 2, wherein the predetermined number is one, and the transcoding the predetermined number of first video segments of the first video each time the predetermined number of first video segments of the first video are received includes:
and transcoding the first video fragment every time one first video fragment in the first video is received.
4. The method of claim 2, further comprising:
and when any group of the first video fragments with the preset number is transcoded, sending second video fragments corresponding to the first video fragments with the preset number to the distribution end.
5. The method of claim 2, further comprising:
acquiring format information corresponding to a first video;
judging whether the format information meets a preset format condition or not;
if the format information accords with a preset format condition, converting the packaging format of the first video into a target packaging format corresponding to a playing end, and sending the format-converted first video to the distribution end;
and if the format information does not accord with the preset format condition, executing the step of receiving the preset number of first video fragments in the first video.
6. The method according to claim 5, wherein the determining whether the format information meets a preset format condition comprises:
acquiring a file format, a video coding format and an audio coding format of the first video;
if the file format is a preset standard file format, the video coding format is a preset standard video coding format, and the audio coding format is a preset standard audio coding format, determining that the first video meets a preset format condition;
otherwise, determining that the first video does not meet the preset condition.
7. The method of claim 5, further comprising:
acquiring file header information corresponding to the first video;
judging whether the first video is complete or not based on the file header information;
and when the first video is complete, executing the step of acquiring the format information corresponding to the first video.
8. The method of claim 5, wherein converting the packaging format of the first video into a target packaging format corresponding to a player end comprises:
searching a demultiplexer corresponding to the packaging format of the first video and a multiplexer corresponding to the target packaging format;
decapsulating the first video by using the demultiplexer to obtain video data and audio data in the first video;
and packaging the video data and the audio data by using the multiplexer to obtain a first video packaged in the target packaging format.
9. The method of claim 2, wherein combining the plurality of second video slices to obtain the second video comprises:
and combining the second video fragments corresponding to the first video fragments according to the sequence of the first video fragments in the first video to obtain a second video.
10. A video processing apparatus, characterized in that the apparatus comprises:
the transcoding module is used for transcoding a preset number of first video fragments to obtain a second video fragment when the preset number of first video fragments in a first video are received;
the combination module is used for combining a plurality of second video fragments to obtain a second video when all transcoding of the plurality of first video fragments in the first video is finished;
and the sending module is used for sending the second video to the distribution end.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 2 to 9 when executing a program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 2-9.
CN202110381865.7A 2021-04-09 2021-04-09 Video processing system, method and device, electronic equipment and storage medium Pending CN113115076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110381865.7A CN113115076A (en) 2021-04-09 2021-04-09 Video processing system, method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110381865.7A CN113115076A (en) 2021-04-09 2021-04-09 Video processing system, method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113115076A true CN113115076A (en) 2021-07-13

Family

ID=76714874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110381865.7A Pending CN113115076A (en) 2021-04-09 2021-04-09 Video processing system, method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113115076A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292799A1 (en) * 2008-05-23 2009-11-26 Research In Motion Limited Remote administration of mobile wireless devices
CN101964894A (en) * 2010-08-24 2011-02-02 中国科学院深圳先进技术研究院 Method and system for parallel trans-coding of video slicing
CN106254867A (en) * 2016-08-08 2016-12-21 暴风集团股份有限公司 Based on picture group, video file is carried out the method and system of transcoding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292799A1 (en) * 2008-05-23 2009-11-26 Research In Motion Limited Remote administration of mobile wireless devices
CN101964894A (en) * 2010-08-24 2011-02-02 中国科学院深圳先进技术研究院 Method and system for parallel trans-coding of video slicing
CN106254867A (en) * 2016-08-08 2016-12-21 暴风集团股份有限公司 Based on picture group, video file is carried out the method and system of transcoding

Similar Documents

Publication Publication Date Title
US10140105B2 (en) Converting source code
US11490173B2 (en) Switch of audio and video
US10051026B2 (en) Real-time transcode transfer method and system based on HTTP under DLNA
CN112866730B (en) Streaming media data transmission method, device, system, electronic equipment and storage medium
US20180013813A1 (en) Method and apparatus for cloud streaming service
JP7181308B2 (en) MEDIA PLAYBACK LOADING CONTROL METHOD, APPARATUS AND STORAGE MEDIUM
US20220256226A1 (en) Video data processing method, electronic device and computer-readable medium
JP2021508428A (en) Media file playback methods, devices and storage media based on web pages
JP2021510047A (en) Synchronous playback method of media files, equipment and storage media
US10419798B2 (en) Method and apparatus for just-in-time transcoding
CN109089174B (en) Multimedia data stream processing method and device and computer storage medium
CN110996160A (en) Video processing method and device, electronic equipment and computer readable storage medium
CN107276990B (en) Streaming media live broadcasting method and device
CN111327951A (en) Multimedia data playing method, device, system and storage medium
CN112243158B (en) Media file processing method and device, computer readable medium and electronic equipment
CN109151570B (en) Streaming media processing method and system based on HTML5 and related components
CN108769830B (en) Method for caching video and related equipment
WO2015096745A1 (en) Data processing method and device in content delivery network
CN116261021B (en) Video stream playing method and device, electronic equipment and storage medium
US20180020043A1 (en) Method for playing audio/video and display device
CN113115076A (en) Video processing system, method and device, electronic equipment and storage medium
TW200408227A (en) Digital item adaptation system via URL
CN112243159B (en) DVB-based data processing and reading method, server, terminal and system
CN112287127B (en) Multimedia file storage and reading method
CN110855619B (en) Processing method and device for playing audio and video data, storage medium and terminal 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

Application publication date: 20210713

RJ01 Rejection of invention patent application after publication