CN114630147A - Video processing method and device - Google Patents

Video processing method and device Download PDF

Info

Publication number
CN114630147A
CN114630147A CN202011441087.8A CN202011441087A CN114630147A CN 114630147 A CN114630147 A CN 114630147A CN 202011441087 A CN202011441087 A CN 202011441087A CN 114630147 A CN114630147 A CN 114630147A
Authority
CN
China
Prior art keywords
video
transcoded
frame
video frame
transcoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011441087.8A
Other languages
Chinese (zh)
Other versions
CN114630147B (en
Inventor
汤然
王一
郑龙
何钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202011441087.8A priority Critical patent/CN114630147B/en
Priority to US17/547,165 priority patent/US20220191522A1/en
Publication of CN114630147A publication Critical patent/CN114630147A/en
Application granted granted Critical
Publication of CN114630147B publication Critical patent/CN114630147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application provides a video processing method and a video processing device, wherein the video processing method comprises the steps of receiving a video to be transcoded, and setting a test object containing video parameters in each video frame of the video to be transcoded; sending the video to be transcoded to a preset video transcoding system for video transcoding, and receiving a transcoded video returned by the video transcoding system; extracting a test object in each video frame of the transcoded video, and acquiring video parameters contained in the test object in each video frame of the transcoded video; and determining a transcoding result of the video to be transcoded based on video parameters contained in the test object in each video frame of the transcoded video. According to the method, the video parameters contained in the test object in each video frame before and after transcoding are compared, so that whether the transcoded video has the problems of frame loss, frame dropping or picture and sound asynchronism can be judged quickly and accurately.

Description

Video processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a video processing method. The application also relates to a video processing apparatus, a computing device, and a computer-readable storage medium.
Background
At present, in the video industry, the original video of a user is generally transcoded to obtain videos with different definitions through transcoding, the user can selectively play and watch the videos according to definition requirements, but video transcoding can involve reprocessing of the original video of the user, various problems may occur due to compatibility problems of various packaging and encoding protocols in the transcoding process, for example, the transcoded video can have the problems of frame loss, frame drop or picture and sound asynchronization, and the video watching experience of the user is greatly influenced.
Disclosure of Invention
In view of this, the present application provides a video processing method. The application also relates to a video processing device, a computing device and a computer readable storage medium, which are used for solving the technical defects that the transcoded video can lose frames, drop frames or be in audio-video asynchronous in the prior art.
According to a first aspect of embodiments of the present application, there is provided a video processing method, including:
receiving a video to be transcoded, and setting a test object containing video parameters in each video frame of the video to be transcoded;
sending the video to be transcoded to a preset video transcoding system for video transcoding, and receiving a transcoded video returned by the video transcoding system;
extracting a test object in each video frame of the transcoded video, and acquiring video parameters contained in the test object in each video frame of the transcoded video;
and determining a transcoding result of the video to be transcoded based on video parameters contained in the test object in each video frame of the transcoded video.
According to a second aspect of embodiments of the present application, there is provided a video processing apparatus including:
the video receiving module is configured to receive a video to be transcoded and set a test object containing video parameters in each video frame of the video to be transcoded;
the video transcoding module is configured to send the video to be transcoded to a preset video transcoding system for video transcoding and receive a transcoded video returned by the video transcoding system;
the object extraction module is configured to extract a test object in each video frame of the transcoded video and acquire video parameters contained in the test object in each video frame of the transcoded video;
the transcoding result determining module is configured to determine a transcoding result of the video to be transcoded based on video parameters contained in a test object in each video frame of the transcoded video.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the video processing method when executing the instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the video processing method.
The video processing method comprises the steps of receiving a video to be transcoded, and setting a test object containing video parameters in each video frame of the video to be transcoded; sending the video to be transcoded to a preset video transcoding system for video transcoding, and receiving a transcoded video returned by the video transcoding system; extracting a test object in each video frame of the transcoded video, and acquiring video parameters contained in the test object in each video frame of the transcoded video; and determining a transcoding result of the video to be transcoded based on video parameters contained in the test object in each video frame of the transcoded video.
Specifically, the video processing method sets a test object containing video parameters in each video frame of the video to be transcoded, and can quickly and accurately judge whether the transcoded video has the problems of frame loss, frame drop or picture-in-sound asynchronization by comparing the video parameters contained in the test object in each video frame before and after transcoding.
Drawings
Fig. 1 is a flowchart of a video processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a video to be transcoded in a video processing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit and scope of this application, and thus this application is not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
Transcoding: and recoding the audio and video.
Frame loss: video transcoding results in some frame-level video picture loss.
Frame dropping: video transcoding results in some frame-level video pictures being lost and supplemented by adjacent frame copies, but video pictures may appear unsmooth during this time period as if stuck.
Video watermarking: some texts or pictures are added on the video picture, such as station logo/logo on the video.
The sound and the picture are asynchronous: the video may appear to be slower in sound than in picture, or slower in picture than in sound, because the sound and picture of the video are not identical.
Psnr: peak Signal to Noise Ratio, the Peak Signal to Noise Ratio, is an objective criterion for evaluating images, and has limitations, typically an engineering project between the maximum Signal and background Noise.
Ssim: structural SIMilarity, which is an index for measuring the SIMilarity between two images, is an index.
Vmaf: video Multimethod Association Fusion, Video quality Multi-method Assessment Fusion.
At present, video transcoding can involve reprocessing of an original video, and how to retain visual and auditory effects of the original video to the greatest extent needs a set of complete evaluation systems to evaluate the degree of change of the video before and after transcoding.
Based on this, in the present application, a video processing method is provided, and the present application simultaneously relates to a video processing apparatus, a computing device, and a computer-readable storage medium, which are individually detailed in the following embodiments.
Referring to fig. 1, fig. 1 shows a flowchart of a video processing method according to an embodiment of the present application, which specifically includes the following steps.
Step 102: the method comprises the steps of receiving a video to be transcoded, and setting a test object containing video parameters in each video frame of the video to be transcoded.
The video to be transcoded includes, but is not limited to, videos of any type and any duration, for example, short entertainment videos including thirty video frames, long videos of a tv play type including hundreds of video frames, and the like. In practical application, the received video to be transcoded can also be a video to be transcoded which is generated according to user requirements and contains a plurality of video frames.
Specifically, after receiving the video to be transcoded, a test object containing video parameters may be set in each video frame of the video to be transcoded, where the form of the test object includes, but is not limited to, a two-dimensional code, a barcode, or an identification block in any other shape. For convenience of understanding, the embodiments of the present application all use the test object as a two-dimensional code as an example for description.
In practical applications, the video parameters include, but are not limited to, a video frame number of a video frame where the test object is located, a number of audio frames before the video frame where the test object is located, a video frame resolution of the video frame where the test object is located, a color space of the video frame where the test object is located, a timestamp of the video frame where the test object is located, and the like; in specific implementation, the video parameters can be further expanded to parameter information of a packaging layer and a coding layer which can record an original video, the parameter information cannot be lost along with video transcoding, the video information of the video to be transcoded can be put on a video frame picture through the recorded information of the packaging layer and the recorded information of the coding layer, when the video information is changed after the video is transcoded, the coding layer information and the packaging layer information of the video to be transcoded which are to be transcoded can be simultaneously transcoded, and the coding layer information and the packaging layer information of the video to be transcoded which are to be transcoded can be assisted to judge what abnormity happens to the video to be transcoded in transcoding and what changes happen to data through comparison of the coding layer information and the packaging layer information, so that a basis can be provided for later-stage data statistics.
The video to be transcoded comprises three video frames: for example, a video frame 1, a video frame 2, and a video frame 3 are provided, where the video frame 1, the video frame 2, and the video frame 3 are respectively provided with a watermark of a two-dimensional code including video parameters, and the watermark of each two-dimensional code carries all relevant parameters of the video frame where the two-dimensional code is located, such as a video frame sequence number of the current video frame, a time stamp of the current video frame, the number of audio frames in front of the current video frame, a picture resolution in front of the current video frame, and various information such as a color space of the current video frame.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a video to be transcoded in a video processing method provided by an embodiment of the present application.
The video to be transcoded in fig. 2 includes a video frame 1, a video frame 2, and a video frame 3, a two-dimensional code a containing video parameters is arranged at the upper right corner of the video frame 1, a two-dimensional code b containing video parameters is arranged at the upper right corner of the video frame 2, and a two-dimensional code c containing video parameters is arranged at the upper right corner of the video frame 3, where the video parameters in the video frame 1, the video frame 2, and the video frame 3: the video frame sequence number and the number of audio frames preceding the current video frame are increased from frame to frame in the order of video frame arrangement. For example, the video parameters contained in the two-dimensional code a of the video frame 1: the video frame sequence number is 1, and the number of audio frames in front of the current video frame is 3; video parameters contained in the two-dimensional code b of the video frame 2: the video frame sequence number is 2, and the number of the audio frames in front of the current video frame is the number 7 of the audio frames after the sum of the number 3 of the audio frames in front of the video frame 1 and the number 4 of the audio frames between the video frame 1 and the video frame 2; video parameters contained in the two-dimensional code c of the video frame 3: the video frame number is 3, and the number of audio frames preceding the current video frame is 10, which is the sum of the number of audio frames 7 preceding the video frame 2 and the number of audio frames 3 between the video frame 2 and the video frame 3.
In practical application, each video frame of a video to be transcoded has a test object (such as a two-dimensional code watermark), and the positions of the test objects in each video frame may be the same or different, and are specifically set according to practical requirements, which is not limited in this application.
Step 104: and sending the video to be transcoded to a preset video transcoding system for video transcoding, and receiving the transcoded video returned by the video transcoding system.
The preset video transcoding system comprises any video transcoding system to be subjected to transcoding quality testing.
Specifically, the video to be transcoded is sent to a specific video transcoding system for transcoding quality test, and then the transcoded video generated after transcoding the video to be transcoded and returned by the video transcoding system is received.
Step 106: and extracting the test object in each video frame of the transcoded video, and acquiring the video parameters contained in the test object in each video frame of the transcoded video.
In practical application, each video frame of the video to be transcoded comprises a test object, and the test object generally cannot be lost or disordered along with transcoding, so that after transcoding, each video frame of the transcoded video also comprises a test object, and each test object also comprises video parameters for the video frame.
Specifically, after receiving the transcoded video, extracting a test object in each video frame of the transcoded video, and acquiring video parameters, such as a video frame sequence number, a video frame resolution, a color space of the video frame, a timestamp of the video frame, information of an encapsulation layer and an encoding layer of the transcoded video, included in the test object in each video frame of the transcoded video.
Step 108: and determining a transcoding result of the video to be transcoded based on video parameters contained in the test object in each video frame of the transcoded video.
Specifically, after video parameters contained in a test object in each video frame of the transcoded video are obtained, whether frame loss, frame drop or picture asynchronism occurs in the transcoding process of the video to be transcoded can be judged through a linear increasing relation of parameters which increase progressively frame by frame in the video parameters, and whether fixed parameters in the video to be transcoded and corresponding video frames before and after transcoding of the transcoded video change can also be judged through fixed parameter information in the video parameters, so that whether frame loss, frame drop or picture asynchronism occurs in the transcoding process of the video to be transcoded is determined, and the following specific steps are shown:
the determining the transcoding result of the video to be transcoded based on the video parameters contained in the test object in each video frame of the transcoded video comprises the following steps:
arranging video parameters contained in a test object in each video frame of the video to be transcoded frame by frame to form a first sequence number sequence; and
arranging video parameters contained in a test object in each video frame of the transcoded video frame by frame to form a second sequence number sequence;
and comparing the first sequence number sequence with the second sequence number sequence, and determining that the transcoding of the video to be transcoded is successful under the condition that the first sequence number sequence is completely matched with the second sequence number sequence.
The video parameters include, but are not limited to, a video frame number, an audio frame number, a video frame resolution, a video frame color space, a video frame timestamp, video encapsulation information, and video coding information.
Specifically, video parameters contained in a test object in each video frame of a video to be transcoded are arranged frame by frame according to the arrangement sequence of all video frames in the video to be transcoded to form a first sequence number sequence; and simultaneously, arranging the video parameters contained in the test object in each video frame of the transcoded video frame by frame according to the arrangement sequence of all the video frames in the transcoded video to form a second sequence number sequence.
Then comparing the first sequence number sequence with the second sequence number sequence, if the first sequence number sequence is completely matched with the second sequence number sequence, it can be determined that the video to be transcoded has no frame loss, frame drop and picture synchronization, the video transcoding is successful, if the first sequence number sequence is not matched with the second sequence number sequence, for example, if there are 3 video parameters in the first sequence number sequence and 4 video parameters in the second sequence number sequence, it can be determined that the video to be transcoded has a frame drop in the transcoding process, if there are 3 video parameters in the first sequence number sequence and 2 video parameters in the second sequence number sequence, it can be determined that the video to be transcoded has a frame loss in the transcoding process, then the video to be transcoded fails in video transcoding, and at this time, an error video frame can be found out based on the unmatched sequence numbers, after the error video frame is analyzed, the video transcoding system can be repaired and adjusted based on a specific analysis result; or a certain video parameter in the first sequence number sequence does not match a certain video parameter in the second sequence number sequence, it may also indicate that transcoding of the video to be transcoded is unsuccessful, and the specific situation is as follows.
In the embodiment of the description, video parameters contained in a test object in each video frame before and after transcoding are compared, so that whether the transcoded video after transcoding has frame loss, frame dropping or picture and sound asynchronism can be judged quickly and accurately.
Specifically, the video parameter includes a video frame number;
correspondingly, the determining a transcoding result of the video to be transcoded based on the video parameters included in the test object in each video frame of the transcoded video includes:
arranging video frame sequence numbers contained in a test object in each video frame of the video to be transcoded frame by frame to form a first sequence number sequence, and arranging video frame sequence numbers contained in the test object in each video frame of the transcoded video frame by frame to form a second sequence number sequence;
and comparing the first sequence number sequence with the second sequence number sequence, and determining that the transcoding of the video to be transcoded is successful under the condition that the first sequence number sequence is matched with the second sequence number sequence.
In specific implementation, taking the video parameter as the video frame number as an example, whether transcoding of the video to be transcoded is successful is judged.
Specifically, the video frame sequence numbers included in the test object in each video frame of the video to be transcoded are arranged frame by frame according to the arrangement sequence of all the video frames in the video to be transcoded to form a first sequence number sequence.
According to the above example, the video frame sequence numbers contained in the test object in each video frame of the video to be transcoded are arranged frame by frame according to the arrangement sequence of all the video frames in the video to be transcoded, and the formed first sequence number sequence is [ 1, 2 and 3 ].
And simultaneously, arranging the video frame sequence numbers contained in the test object in each video frame of the transcoded video frame by frame according to the arrangement sequence of all the video frames in the transcoded video to form a second sequence number sequence.
For example, transcoded video still includes three sequentially arranged video frames: and video frames 1, 2 and 3, arranging the video frame sequence numbers contained in the test object in each video frame of the transcoded video frame by frame according to the arrangement sequence of all the video frames in the transcoded video, wherein the formed second sequence number sequence is [ 1, 2 and 3 ].
Comparing the first sequence number sequence with the second sequence number sequence to determine that the first sequence number sequence and the second sequence number sequence are all matched, at this time, determining that the transcoding of the video to be transcoded is successful, and determining that the transcoding of the video to be transcoded is successful can indicate that the transcoding quality of the current video transcoding system is good.
In addition, if the video to be transcoded includes three video frames arranged in sequence: and video frames 1, 3 and 2, arranging the video frame sequence numbers contained in the test object in each video frame of the transcoded video frame by frame according to the arrangement sequence of all the video frames in the transcoded video, wherein the formed second sequence number sequence is [ 1, 3 and 2 ].
At this time, comparing the first sequence number sequence with the second sequence number sequence may determine that the first sequence number sequence does not match the second sequence number sequence, and when a video frame 2 and a video frame 3 are in disorder during transcoding, transcoding of the video to be transcoded is unsuccessful.
In the embodiment of the application, a first sequence number sequence formed by arranging the video parameters contained in the test object in each video frame of the video to be transcoded frame by frame is compared with a second sequence number sequence formed by arranging the video parameters contained in the test object in each video frame of the video to be transcoded frame by frame, whether the transcoding result of the video to be transcoded is correct can be rapidly and accurately judged according to the comparison result, and user experience is improved.
In practical applications, after the comparing the first sequence number sequence with the second sequence number sequence, the method further comprises:
under the condition that the first sequence number sequence is not matched with the second sequence number sequence, determining video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence, and taking the video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence as verification video frames;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
The preset transcoding condition is set according to practical application, and is not limited in this application, for example, the preset transcoding condition is that the video frame 1 may have repeated frames or the video frame 2 may drop frames in the transcoding process.
Following the above example, if the transcoded video includes two video frames arranged in sequence: the method comprises the steps that video frames 1 and 3 are obtained, video frame sequence numbers contained in a test object in each video frame in the transcoded video are arranged frame by frame according to the arrangement sequence of all the video frames in the transcoded video, and the formed second sequence number sequence is [ 10 ] and [ 12 ]; then the first sequence number sequence [ 10, 11, 12 ] is not matched with the second sequence number sequence [ 10, 12 ], the video frame sequence number in the determined second sequence number sequence that is not matched with the first sequence number sequence is 11, the video frame corresponding to the unmatched video frame sequence number is a video frame 2 in the video to be transcoded, and the video frame 2 is a verification video frame.
If the preset transcoding condition is that the video frame 2 needs to be lost in the video transcoding process, it can be determined that the verified video frame meets the preset transcoding condition according to the preset transcoding condition, and at this time, it can also be said that the transcoding of the video to be transcoded is successful.
In the embodiment of the description, specific video transcoding scenes are different, and situations such as frame loss and frame dropping are allowed to occur in the video transcoding process for the requirements of video special effects and the like in some special video transcoding scenes, so that whether the video to be transcoded is transcoded successfully or not needs to be verified again based on the preset transcoding condition in the specific application scene under the condition that the first sequence number sequence and the second sequence number sequence are not matched, so that the application scene of the video processing method provided by the application is enlarged, and the user experience is improved.
During specific implementation, the comparison of the video frame sequence numbers before and after transcoding can only be used for judging whether the video before and after transcoding has lost frames or dropped frames, and in practical application, each video is paired with audio, the audio frame can be set in front of the corresponding video frame, if the audio frame and the video frame are misplaced or lost in the video transcoding process, the condition of asynchronous sound and picture can be caused, the watching experience of a user can be greatly influenced, therefore, under the condition that the video transcoding is successful before and after being determined based on the comparison of the video frame sequence numbers before and after transcoding, the audio in the video before and after transcoding needs to be checked, and the specific implementation mode is as follows:
the video parameters include a number of audio frames;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring the number of current audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each video frame of the transcoded video, determining that the transcoding of the video to be transcoded is successful.
Specifically, under the condition that the first sequence number sequence is determined to be matched with the second sequence number sequence, the current number of audio frames before each video frame of the transcoded video is obtained, and the current number of audio frames is the actual number of audio frames before each video frame after transcoding.
Along the above example, if the transcoded video still includes video frames 1, 2 and 3, the number of the obtained current audio frames of the video frames 1 of the transcoded video is 3, the number of the obtained current audio frames of the video frames 2 of the transcoded video is 7, and the number of the obtained current audio frames of the video frames 3 of the transcoded video is 10.
The number of audio frames contained in the test object in the video frame 1 of the transcoded video is also 3, the number of audio frames contained in the test object in the video frame 1 of the transcoded video is also 7, and the number of audio frames contained in the test object in the video frame 1 of the transcoded video is also 10; under the condition, the actual number of the audio frames before each video frame of the transcoded video can be determined to be the same as the number of the audio frames contained in the two-dimensional code in each video frame of the transcoded video, at the moment, the video before and after transcoding can be determined to have no frame loss or frame drop of the video frames, no frame loss of the audio frames, the same sequence between the audio frames and the video frames, and the problem of audio-video asynchronization of the video before and after transcoding can be solved.
In another embodiment of the present disclosure, after the comparing the first sequence number sequence with the second sequence number sequence, the method further comprises:
under the condition that the first sequence number sequence is not matched with the second sequence number sequence, determining video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence, and taking the video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence as verification video frames;
under the condition that the verification video frame meets the preset transcoding condition, acquiring the current number of audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each video frame of the transcoded video, determining that the transcoding of the video to be transcoded is successful.
For a detailed description of the preset transcoding condition, reference may be made to the above embodiments, which are not described herein again.
In practical application, under the condition that the first sequence number sequence and the second sequence number sequence are not matched, but unmatched verification video frames meet a preset transcoding condition, at the moment, if the number of actual audio frames before each video frame of the transcoded video is the same as the number of audio frames included in the two-dimensional code in each video frame of the transcoded video, it can be determined that not only the transcoded video meets the transcoding requirement, but also the situation that sound and pictures are not synchronous does not occur in the transcoded video, and user experience is greatly improved.
In the embodiment of the present specification, it may also be directly determined whether the video to be transcoded is successfully transcoded by comparing the number of audio frames in each video frame of the video before and after transcoding, specifically as follows:
specifically, the video parameters include the number of audio frames;
the determining the transcoding result of the video to be transcoded based on the video parameters contained in the test object in each video frame of the transcoded video comprises the following steps:
acquiring the number of current audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each video frame of the transcoded video, determining that the transcoding of the video to be transcoded is successful.
In particular, the computer may automatically obtain and count the actual number of audio frames preceding each video frame of the transcoded video.
Specifically, the following may be referred to as a way of determining whether the current number of audio frames is the same as the number of audio frames included in the test object in each video frame of the transcoded video:
arranging the number of audio frames contained in a test object in each video frame of the transcoded video frame by frame to form a third sequence number sequence;
arranging the number of the current audio frames before each video frame of the obtained transcoded video frame by frame to form a fourth sequence number sequence;
and comparing the third sequence number sequence with the fourth sequence number sequence, and determining that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each video frame of the transcoded video under the condition that the third sequence number sequence is completely matched with the fourth sequence number sequence, so that the video to be transcoded can be successfully transcoded.
Specifically, the number of audio frames included in the test object in each video frame of the video to be transcoded is arranged frame by frame according to the arrangement sequence of all video frames in the transcoded video, so as to form a third sequence number sequence.
Following the above example, transcoding video is: the method comprises the steps of obtaining video frames 1, 2 and 3, arranging the number of audio frames contained in a test object in each video frame of the transcoded video frame by frame according to the arrangement sequence of all the video frames in the transcoded video, and forming a third sequence number sequence of [ 3 ], 7 and 10 ].
And arranging the current audio frame number before each video frame of the obtained transcoded video frame by frame according to the arrangement sequence of all video frames in the transcoded video to form a fourth sequence number sequence.
For example, if the number of audio frames before video frame 1 of the acquired transcoded video is 3, the number of audio frames before video frame 2 of the acquired transcoded video is 7, and the number of audio frames before video frame 3 of the acquired transcoded video is 10, the fourth sequence number sequence is [ 3, 7, 10 ].
At this time, comparing the third sequence number sequence with the fourth sequence number sequence, it may be determined that the third sequence number sequence and the fourth sequence number sequence are all matched, it is determined that transcoding of the video to be transcoded succeeds, if the number of audio frames before the video frame 1 of the obtained transcoded video is 3, the number of audio frames before the video frame 2 of the obtained transcoded video is 6, and the number of audio frames before the video frame 3 of the obtained transcoded video is 10, then the formed fourth sequence number sequence is [ 3, 6, 10 ], at this time, it may be determined that the third sequence number sequence [ 3, 7, 10 ] does not match the fourth sequence number sequence [ 3, 6, 10 ], the current number of audio frames is not the same as the number of audio frames included in the test object in each video frame of the transcoded video, it may be determined that one audio frame is lost before the video frame 2 in the transcoded video, and one audio frame is added before the video frame 3 in the transcoded video, the audio frame and the video frame in the transcoded video are disordered in position, and the condition of unsynchronized sound and picture can be caused during actual playing. In practical applications, it may also happen that all audio frames are before a certain video frame in the transcoded video, for example, the number of audio frames before video frame 1 in the transcoded video is 0, the number of audio frames before video frame 2 is also 0, and the number of audio frames before video frame 3 is 10; or the number of audio frames before the video frame 1 in the transcoded video is 0, the number of audio frames before the video frame 2 is 10, and the number of audio frames before the video frame 3 is 10; when the situation occurs, the problem that the audio and video of the transcoded video are not synchronous can be determined.
In the embodiment of the specification, the number of audio frames contained in a test object in each video frame of the transcoded video to be transcoded is compared with the number of audio frames of each video frame of the transcoded video actually obtained, so that whether the transcoding result of the transcoded video is successful or not can be accurately judged.
In another embodiment of this specification, comparing the sequence numbers of the video frames before and after transcoding can only determine whether the video before and after transcoding has lost frames or dropped frames, and in an actual video transcoding process, the resolution of the video frames may also change, for example, a low-resolution video is converted into a high-resolution video, at this time, under the condition that the sequence numbers of the video frames before and after transcoding are the same, the video resolution of the transcoded video after transcoding may be different from the video resolution of the video to be transcoded before transcoding, and the transcoded video is also a successful video to be transcoded according to the specific scene requirements, as described in detail below:
the video parameters include video frame resolution;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring the current video frame resolution of each video frame of the transcoded video;
under the condition that the resolution of the current video frame is different from the resolution of the video frame contained in the test object in each video frame of the transcoded video, taking the video frame with the resolution different from that of the current video frame in the transcoded video as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
Wherein the current video frame resolution may be understood as the actual video frame resolution.
Specifically, when video parameters of videos before and after transcoding are compared, even if the actual video frame resolution of each video frame of the transcoded video after transcoding is different from the video frame resolution contained in the test object in each video frame of the transcoded video, the video frames of the transcoded video with different video frame resolutions can be considered to be successfully transcoded under the condition that the video frames of the transcoded video meet the preset transcoding condition set by the specific application scene.
Corresponding to the scheme, under the condition that the video frame color spaces of the videos before and after transcoding are different, the following judgment can be carried out:
the video parameters comprise a video frame color space;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring a current video frame color space of each video frame of the transcoded video;
under the condition that the color space of the current video frame is different from the color space of the video frame contained in the test object in each audio frame of the transcoded video, taking the video frame in the transcoded video, which is different from the color space of the current video frame, as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
Wherein, the current video frame color space can be understood as the actual video frame color space.
Specifically, when video parameters of videos before and after transcoding are compared, even if an actual video frame color space of each video frame of the transcoded video is different from a video frame color space contained in a test object in each video frame of the transcoded video, the video frames of the transcoded video with different video frame color spaces are in accordance with a preset transcoding condition set by a specific application scene, and the video to be transcoded can be considered to be transcoded successfully.
In the embodiment of the description, when the transcoding result of the video to be transcoded is determined based on the video parameters included in the test object in each video frame of the video before and after transcoding, the transcoding result of the video to be transcoded cannot be simply determined by whether the video parameters are matched, and the transcoding result of the video to be transcoded, which is accurate based on the relationship between the preset transcoding condition and the video parameters set in the actual application scene, is determined.
In this embodiment of the present specification, in some scenarios, the transcoding result of the video to be transcoded may be determined only through the comparison relationship among the video frame number, the number of audio frames, the resolution of the video frame, and the color space included in the test object in the video frames of the video before and after transcoding, for example, the resolution of the video frame and the color space before and after transcoding are required to be unchanged, and the transcoding result of the video to be transcoded may be determined only through the comparison relationship between the resolution of the video frame and the color space before and after transcoding.
In addition, the video frame number contained in the test object in the video frames of the video before and after transcoding can be combined and compared with the audio frame number, the video frame resolution and the color space to judge the transcoding result of the video to be transcoded, for example, under the condition that the video frames of the video to be transcoded are determined not to have frame loss or frame drop through the video frame number, whether the transcoding result of the video to be transcoded is asynchronous with sound and picture is judged by combining the audio frame number; under the condition that the video frame of the video to be transcoded is determined not to have frame loss or frame drop through the video frame sequence number, whether the transcoding of the video to be transcoded is enough to have the condition that the video frame image is deteriorated or not can be judged by combining the video frame resolution or the color space, the specific combination using method can be set according to the actual requirement, and the method is not limited in this application.
In another embodiment of the present specification, the video parameters include video frame encapsulation information;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring current video frame packaging information of each video frame of the transcoded video;
under the condition that the current video frame packaging information is different from video frame packaging information contained in a test object in each video frame of the transcoded video, taking the video frame which is different from the current video frame packaging information in the transcoded video as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
The video frame encapsulation information includes parameter information of an encapsulation layer and an encoding layer, such as an encoding format, an encapsulation sequence number, and the like of the video frame. And the current video frame encapsulation information can be understood as the actual video frame encapsulation information.
In practical application, a test object in each video frame of a video to be transcoded comprises corresponding video frame packaging information, and the video frame packaging information cannot be lost along with video transcoding, so that after the video to be transcoded is transcoded into a transcoded video, the video frame packaging information of the video to be transcoded and the video frame packaging information of the transcoded video can be compared, which abnormality occurs in transcoding of the transcoded video can be effectively judged, and which changes occur in video frames and/or audio frames in the transcoded video compared with the video to be transcoded and the like. The transcoding result of the video to be transcoded can be quickly determined only through the video frame encapsulation information contained in the test object in the video frames before and after transcoding.
In the embodiment of the description, the video processing method sets a test object containing video parameters in each video frame of a video to be transcoded, and can quickly and accurately judge whether the transcoded video has frame loss, frame drop or picture and sound asynchronization or not by comparing the video parameters contained in the test object in each video frame before and after transcoding.
Corresponding to the above method embodiment, the present application further provides an embodiment of a video processing apparatus, and fig. 3 shows a schematic structural diagram of a video processing apparatus provided in an embodiment of the present application. As shown in fig. 3, the apparatus includes:
the video receiving module 302 is configured to receive a video to be transcoded and set a test object containing video parameters in each video frame of the video to be transcoded;
the video transcoding module 304 is configured to send the video to be transcoded to a preset video transcoding system for video transcoding, and receive a transcoded video returned by the video transcoding system;
an object extraction module 306, configured to extract a test object in each video frame of the transcoded video, and obtain video parameters included in the test object in each video frame of the transcoded video;
a transcoding result determining module 308 configured to determine a transcoding result of the video to be transcoded based on video parameters included in a test object in each video frame of the transcoded video.
Optionally, the transcoding result determining module 308 is further configured to:
arranging video parameters contained in a test object in each video frame of the video to be transcoded frame by frame to form a first sequence number sequence; and
arranging video parameters contained in a test object in each video frame of the transcoded video frame by frame to form a second sequence number sequence;
and comparing the first sequence number sequence with the second sequence number sequence, and determining that the transcoding of the video to be transcoded is successful under the condition that the first sequence number sequence is completely matched with the second sequence number sequence.
Optionally, the video parameter includes a video frame number;
accordingly, the transcoding result determining module 308 is further configured to:
arranging video frame sequence numbers contained in a test object in each video frame of the video to be transcoded frame by frame to form a first sequence number sequence, and arranging video frame sequence numbers contained in the test object in each video frame of the transcoded video frame by frame to form a second sequence number sequence;
and comparing the first sequence number sequence with the second sequence number sequence, and determining that the transcoding of the video to be transcoded is successful under the condition that the first sequence number sequence is matched with the second sequence number sequence.
Optionally, the apparatus further includes:
a first verification module configured to:
under the condition that the first sequence number sequence is not matched with the second sequence number sequence, determining video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence, and taking the video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence as verification video frames;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
Optionally, the video parameter includes a number of audio frames;
accordingly, the transcoding result determining module 308 is further configured to:
acquiring the number of current audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each audio frame of the transcoded video, determining that the video to be transcoded is transcoded successfully.
Optionally, the apparatus further includes:
a second verification module configured to:
under the condition that the first sequence number sequence is not matched with the second sequence number sequence, determining video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence, and taking the video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence as verification video frames;
under the condition that the verification video frame meets the preset transcoding condition, acquiring the current number of audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each audio frame of the transcoded video, determining that the video to be transcoded is transcoded successfully.
Optionally, the video parameter includes a video frame resolution;
accordingly, the transcoding result determining module 308 is further configured to:
acquiring the current video frame resolution of each video frame of the transcoded video;
under the condition that the resolution of the current video frame is different from the resolution of the video frame contained in the test object in each audio frame of the transcoded video, taking the video frame with the resolution different from that of the current video frame in the transcoded video as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
Optionally, the video parameters include a video frame color space;
accordingly, the transcoding result determining module 308 is further configured to:
acquiring a current video frame color space of each video frame of the transcoded video;
under the condition that the color space of the current video frame is different from the color space of the video frame contained in the test object in each audio frame of the transcoded video, taking the video frame in the transcoded video, which is different from the color space of the current video frame, as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
Optionally, the video parameter includes video frame encapsulation information;
accordingly, the transcoding result determining module 308 is further configured to:
acquiring current video frame packaging information of each video frame of the transcoded video;
under the condition that the current video frame packaging information is different from video frame packaging information contained in a test object in each video frame of the transcoded video, taking the video frame which is different from the current video frame packaging information in the transcoded video as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
Optionally, the test object includes a two-dimensional code.
In the embodiment of the present specification, the video processing apparatus sets a test object containing video parameters in each video frame of a video to be transcoded, and can quickly and accurately determine whether the transcoded video has a problem of frame loss, frame drop or picture and sound asynchronism by comparing the video parameters contained in the test object in each video frame before and after transcoding.
The above is a schematic scheme of a video processing apparatus of the present embodiment. It should be noted that the technical solution of the video processing apparatus belongs to the same concept as the technical solution of the video processing method, and details that are not described in detail in the technical solution of the video processing apparatus can be referred to the description of the technical solution of the video processing method.
Fig. 4 shows a block diagram of a computing device 400 provided according to an embodiment of the present application. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. Processor 420 is coupled to memory 410 via bus 430 and database 450 is used to store data.
Computing device 400 also includes access device 440, access device 440 enabling computing device 400 to communicate via one or more networks 460. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 440 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 400 and other components not shown in FIG. 4 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 4 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet computer, personal digital assistant, laptop computer, notebook computer, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 400 may also be a mobile or stationary server.
Wherein the processor 420 implements the steps of the video processing method when executing the instructions.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the video processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the video processing method.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, the instructions implement the steps of the video processing method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned video processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned video processing method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (13)

1. A video processing method, comprising:
receiving a video to be transcoded, and setting a test object containing video parameters in each video frame of the video to be transcoded;
sending the video to be transcoded to a preset video transcoding system for video transcoding, and receiving a transcoded video returned by the video transcoding system;
extracting a test object in each video frame of the transcoded video, and acquiring video parameters contained in the test object in each video frame of the transcoded video;
and determining a transcoding result of the video to be transcoded based on video parameters contained in the test object in each video frame of the transcoded video.
2. The video processing method according to claim 1, wherein the determining a transcoding result of the video to be transcoded based on video parameters included in a test object in each video frame of the transcoded video comprises:
arranging video parameters contained in a test object in each video frame of the video to be transcoded frame by frame to form a first sequence number sequence; and
arranging video parameters contained in a test object in each video frame of the transcoded video frame by frame to form a second sequence number sequence;
and comparing the first sequence number sequence with the second sequence number sequence, and determining that the transcoding of the video to be transcoded is successful under the condition that the first sequence number sequence is completely matched with the second sequence number sequence.
3. The video processing method of claim 1, wherein the video parameters comprise video frame sequence numbers;
correspondingly, the determining a transcoding result of the video to be transcoded based on the video parameters included in the test object in each video frame of the transcoded video includes:
arranging video frame sequence numbers contained in a test object in each video frame of the video to be transcoded frame by frame to form a first sequence number sequence, and arranging video frame sequence numbers contained in the test object in each video frame of the transcoded video frame by frame to form a second sequence number sequence;
and comparing the first sequence number sequence with the second sequence number sequence, and determining that the transcoding of the video to be transcoded is successful under the condition that the first sequence number sequence is matched with the second sequence number sequence.
4. The method of claim 3, wherein after comparing the first sequence number sequence to the second sequence number sequence, further comprising:
under the condition that the first sequence number sequence is not matched with the second sequence number sequence, determining video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence, and taking the video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence as verification video frames;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
5. The video processing method according to claim 3, wherein the video parameter comprises a number of audio frames;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring the number of current audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each video frame of the transcoded video, determining that the transcoding of the video to be transcoded is successful.
6. The method of claim 5, wherein after comparing the first sequence number sequence to the second sequence number sequence, further comprising:
under the condition that the first sequence number sequence is not matched with the second sequence number sequence, determining video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence, and taking the video frames corresponding to the unmatched sequence numbers in the first sequence number sequence and the second sequence number sequence as verification video frames;
under the condition that the verification video frame meets the preset transcoding condition, acquiring the number of current audio frames before each video frame of the transcoded video;
and under the condition that the number of the current audio frames is the same as the number of the audio frames contained in the test object in each video frame of the transcoded video, determining that the transcoding of the video to be transcoded is successful.
7. The video processing method according to claim 3 or 5, wherein the video parameters comprise video frame resolution;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring the current video frame resolution of each video frame of the transcoded video;
under the condition that the resolution of the current video frame is different from the resolution of the video frame contained in the test object in each video frame of the transcoded video, taking the video frame with the resolution different from that of the current video frame in the transcoded video as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
8. The video processing method according to claim 3 or 5, wherein the video parameters comprise a video frame color space;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring a current video frame color space of each video frame of the transcoded video;
under the condition that the color space of the current video frame is different from the color space of the video frame contained in the test object in each video frame of the transcoded video, taking the video frame in the transcoded video, which is different from the color space of the current video frame, as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
9. The video processing method according to claim 3 or 5, wherein the video parameters comprise video frame encapsulation information;
correspondingly, the determining that the transcoding of the video to be transcoded is successful includes:
acquiring current video frame packaging information of each video frame of the transcoded video;
under the condition that the current video frame packaging information is different from video frame packaging information contained in a test object in each video frame of the transcoded video, taking the video frame which is different from the current video frame packaging information in the transcoded video as a verification video frame;
and under the condition that the verification video frame meets the preset transcoding condition, determining that the transcoding of the video to be transcoded is successful.
10. The video processing method according to any of claims 1 to 6, wherein the test object comprises a two-dimensional code.
11. A video processing apparatus, comprising:
the video receiving module is configured to receive a video to be transcoded and set a test object containing video parameters in each video frame of the video to be transcoded;
the video transcoding module is configured to send the video to be transcoded to a preset video transcoding system for video transcoding and receive a transcoded video returned by the video transcoding system;
the object extraction module is configured to extract a test object in each video frame of the transcoded video and acquire video parameters contained in the test object in each video frame of the transcoded video;
the transcoding result determining module is configured to determine a transcoding result of the video to be transcoded based on video parameters contained in a test object in each video frame of the transcoded video.
12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-10 when executing the instructions.
13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 10.
CN202011441087.8A 2020-12-11 2020-12-11 Video processing method and device Active CN114630147B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011441087.8A CN114630147B (en) 2020-12-11 2020-12-11 Video processing method and device
US17/547,165 US20220191522A1 (en) 2020-12-11 2021-12-09 Video processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011441087.8A CN114630147B (en) 2020-12-11 2020-12-11 Video processing method and device

Publications (2)

Publication Number Publication Date
CN114630147A true CN114630147A (en) 2022-06-14
CN114630147B CN114630147B (en) 2024-03-19

Family

ID=81894791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011441087.8A Active CN114630147B (en) 2020-12-11 2020-12-11 Video processing method and device

Country Status (1)

Country Link
CN (1) CN114630147B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120676A1 (en) * 2006-11-22 2008-05-22 Horizon Semiconductors Ltd. Integrated circuit, an encoder/decoder architecture, and a method for processing a media stream
CN105263024A (en) * 2015-10-15 2016-01-20 宁波大学 Anti-quantitative-transcoding HEVC video stream zero-watermark registering and detecting method
US20160057490A1 (en) * 2014-08-21 2016-02-25 The Nielsen Company (Us), Llc Methods and apparatus to measure exposure to streaming media
CN110049313A (en) * 2019-04-17 2019-07-23 微梦创科网络科技(中国)有限公司 A kind of video measurement method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120676A1 (en) * 2006-11-22 2008-05-22 Horizon Semiconductors Ltd. Integrated circuit, an encoder/decoder architecture, and a method for processing a media stream
US20160057490A1 (en) * 2014-08-21 2016-02-25 The Nielsen Company (Us), Llc Methods and apparatus to measure exposure to streaming media
CN105263024A (en) * 2015-10-15 2016-01-20 宁波大学 Anti-quantitative-transcoding HEVC video stream zero-watermark registering and detecting method
CN110049313A (en) * 2019-04-17 2019-07-23 微梦创科网络科技(中国)有限公司 A kind of video measurement method and system

Also Published As

Publication number Publication date
CN114630147B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
WO2018214693A1 (en) Video communication system detection method and apparatus, storage medium and computer device
EP3171593B1 (en) Testing system and method
US20220188357A1 (en) Video generating method and device
CN113382284B (en) Pirate video classification method and device
CN112418058A (en) Video processing method and device
KR20160107734A (en) Method for classifying objectionable movies using duration information and apparatus for the same
CN115396705A (en) Screen projection operation verification method, platform and system
CN114630147A (en) Video processing method and device
CN116708892A (en) Sound and picture synchronous detection method, device, equipment and storage medium
CN113316001B (en) Video alignment method and device
US20220191522A1 (en) Video processing method and device
CN113014996B (en) Video generation method and device
CN113949899B (en) Video quality assessment method and device
CN114173154B (en) Video processing method and system
CN110636334A (en) Data transmission method and system
CN114630148B (en) Video processing method and device
CN115228081A (en) Virtual scene switching method and device
CN115499677A (en) Audio and video synchronization detection method and device based on live broadcast
CN111901661B (en) Video recording method, video playing method and display equipment
Alghafli et al. Techniques for measuring the probability of adjacency between carved video fragments: The VidCarve approach
EP3348062A1 (en) Verification of error recovery with long term reference pictures for video coding
CN114630103A (en) Video processing method and device
CN111757115A (en) Video stream processing method and device
CN111966859A (en) Video data processing method and device and readable storage medium
CN109783475B (en) Method for constructing large-scale database of video distortion effect markers

Legal Events

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