Video coding information extraction method and device, electronic equipment and storage medium
By comparing the target area and counting the video files collected by the camera, the problem of large performance overhead or low accuracy during video file analysis in the prior art is solved, and more efficient and accurate coding quality detection is achieved to ensure that Smooth playback of video files.
Patent Information
- Application Number
- CN202310667479.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2024-12-06
AI Technical Summary
The prior art either increases the performance overhead of the camera when analyzing video files, or cannot accurately quantify the encoding quality of the video files, resulting in lags in video files during playback or difficulty in ensuring the encoding quality.
By obtaining the video file generated by the camera's image acquisition and encoding of the display changing target, extracting the target area frame by frame and comparing the picture of adjacent frames, counting the image frame parameter information within the preset range, including picture comparison results and time stamps and frame rate to detect the encoding quality of video files.
It reduces the camera performance overhead, improves the accuracy of encoding quality detection, and ensures the audio and video synchronization and picture fluency of video files during playback.
Smart Images

Figure CN119094761A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of video technology, and in particular to a method, device, electronic device and storage medium for extracting video coding information. Background Art
[0002] The process of video data acquisition by the camera is a comprehensive processing process in which light passes through the lens to the photosensitive chip, the photosensitive chip converts the photoelectric signal, and the video acquisition module captures the electrical signal to generate a video image. The video acquisition module can perform processing such as cutting, scaling, and mirroring on the video image, and output one channel of image data or multiple channels of image data with different resolutions to the image processing subsystem according to actual application needs. After receiving the image data, the image processing subsystem can perform processing such as denoising, image enhancement, and sharpening on the image data, and can realize the same-source output of multiple channels of image data with the same or different resolutions for encoding, previewing, or capturing. The encoding is completed by the encoding module, and the corresponding bit stream is output, which can be used to transfer and save video files through various video transmission protocols.
[0003] Under normal conditions, the encoding process is strictly executed according to the encoding protocol, and the corresponding video file can be played normally, showing the effect of synchronized audio and video and smooth video playback. However, during the actual image encoding process of the camera, the video file output by the camera for image acquisition may not achieve normal playback effect during decoding and playback due to the limitations of the hardware performance and status, or changes in the amount of data processing. To ensure the playback effect of the generated video file, it is usually necessary to run a detection tool inside the camera to analyze and count the video file, or observe the smoothness of the picture when the video file is decoded and played with the naked eye to ensure the encoding quality of the generated video file. The existing analysis of video files either increases the performance overhead of the camera or cannot accurately quantify the encoding quality of the video file. Summary of the invention
[0004] The present invention provides a video coding information extraction method, device, electronic device and storage medium to solve the technical problems that the existing analysis of video files either increases the performance overhead of the camera or fails to accurately quantify the coding quality of the video files.
[0005] In a first aspect, an embodiment of the present invention provides a method for extracting video coding information, the method comprising:
[0006] Obtain a video file generated by encoding an image of a display change target by a camera, wherein the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera;
[0007] Extract the target area from the image frames of the video file frame by frame, and compare the target areas of two adjacent image frames in turn, where the target area is the imaging area showing the changed target in the image frame;
[0008] Parameter information of image frames in the video file within a preset range is counted, and the statistical dimension of the parameter information at least includes the number of identical results of picture comparison.
[0009] In a second aspect, an embodiment of the present invention further provides a video coding information processing device, the video coding information processing device comprising:
[0010] A file acquisition unit is used to acquire a video file generated by a camera performing image acquisition and encoding on a display change target, wherein the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera;
[0011] The region extraction unit is used to extract the target region from the image frames of the video file frame by frame, and to compare the target regions of two adjacent image frames in sequence, wherein the target region is an imaging region showing the changed target in the image frame;
[0012] The parameter statistics unit is used to count the parameter information of the image frames in the video file within a preset range, and the statistical dimension of the parameter information at least includes the number of the same results of the picture comparison.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0014] one or more processors;
[0015] a memory for storing one or more computer programs;
[0016] When one or more computer programs are executed by one or more processors, the electronic device implements the video coding information extraction method as described in the first aspect.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the video coding information extraction method of the first aspect is implemented.
[0018] In the above-mentioned video coding information extraction method, device, electronic device and storage medium, a video file generated by a camera performing image acquisition and encoding on a display change target is obtained, and the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera; the target area is extracted from the image frames of the video file frame by frame, and the target area of two adjacent image frames is compared in turn, and the target area is the imaging area of the display change target in the image frame; the parameter information of the image frames in the video file within a preset range is counted, and the statistical dimension of the parameter information at least includes the number of the same results of the picture comparison. When it is necessary to perform quality detection on the video file captured by the camera, the camera is used to perform image acquisition and encoding on the display change target to generate a video file for detection, and the camera sends the generated video file to an external device for detection. The detection process is completed on the basis of local comparison of adjacent image frames of the video file, which reduces the performance overhead of the camera and improves the accuracy of coding quality detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A method flow chart of a video coding information extraction method provided by an embodiment of the present invention.
[0020] Figure 2 A schematic diagram of displaying a change target provided by an embodiment of the present invention.
[0021] Figure 3 The embodiment of the present invention provides Figure 2 The diagram shown is a schematic diagram of an image frame generated by performing image acquisition on a display changing target.
[0022] Figure 4 A schematic diagram of the types of image frames of a video file.
[0023] Figure 5 A schematic diagram of the structure of a video coding information extraction device provided by an embodiment of the present invention.
[0024] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0026] It should be noted that the present application specification does not enumerate all optional implementation modes. After reading the present application specification, those skilled in the art should be able to understand that as long as the technical features do not contradict each other, any combination of the technical features can constitute an optional implementation mode.
[0027] The following describes in detail the embodiments of the present invention.
[0028] Figure 1 This is a method flow chart of a video coding information extraction method provided by an embodiment of the present invention, and the video coding information extraction method is implemented by an electronic device. Figure 1 The video coding information extraction method includes steps S110 to S130:
[0029] Step S110: obtaining a video file generated by encoding an image of a display change target by a camera, wherein the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera.
[0030] When the encoding quality of the camera is tested based on this solution, the camera lens is first adjusted toward a display change target to perform image acquisition encoding to generate a video file. The display change target refers to a screen whose display content continuously changes, such as a stopwatch, a counter that accumulates one by one, a changing pattern, etc. The specific device used to present the display change target can be determined according to the environment in which the camera is located. For example, the detection on the production line can be displayed through a dedicated display; the detection after normal installation and use can be displayed through an on-site display device or a display device temporarily arranged in front of the lens. When generating a video file for detection, the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera, and the change of the display change target is a uniform change. Under this premise, if the camera performs image acquisition encoding normally, the content of the display change target corresponding to each image frame in the generated video file is different, at least the content of the display change target corresponding to adjacent image frames is different, and then the change of the display content can be distinguished whether the image acquisition encoding is normal.
[0031] Please refer to Figure 2 Taking a conference room or classroom equipped with an interactive tablet 10 as an example, the interactive tablet 10 is usually set in front of the conference room or classroom, and the camera is set at the back of the conference room or classroom, that is, the camera lens faces the interactive tablet 10. When detection is required, the interactive tablet 10 is set to display a stopwatch 11, and the stopwatch can change at the millisecond level as a display change target. When the camera faces the interactive tablet 10 for image acquisition and encoding, the general change process of the display change target (that is, the stopwatch 11) can be recorded. In the final generated video file, such as Figure 3As shown, each image frame 20 may include an interactive tablet area 210, and a stopwatch is displayed in the interactive tablet area 210. Of course, before the camera performs image acquisition and encoding to generate a video file, the focal length or shooting distance may also be adjusted. The interactive tablet 10 is not entirely within the shooting range of the camera, but the stopwatch 11 in the interactive tablet 10 is entirely within the shooting range of the camera to ensure complete acquisition of the display change target. On the basis of complete acquisition of the display change target, it can be determined whether adjacent image frames have changed, thereby confirming the degree of jamming of the final encoded video. The specific determination process is implemented through steps S120 and S130.
[0032] Step S120: extracting the target area from the image frames of the video file frame by frame, and performing image comparison on the target areas of two adjacent image frames in turn, wherein the target area is an imaging area showing the changed target in the image frame.
[0033] In the actual processing process, after the camera and the shooting range are determined, only the local changes of the display change target are taken into consideration. In order to improve the processing efficiency, the entire image frame can be compared, but the target area of the image frame of the video file can be extracted frame by frame, that is, the imaging area of the display change target in the image frame is extracted. For the target area of two adjacent image frames, this part is compared to determine whether the image content of the two adjacent image frames is the same. Specifically, the target area of two adjacent image frames is compared by the average hash method, or other schemes such as MD5 that can be used to confirm the degree of image similarity are used for comparison.
[0034] Step S130: Counting parameter information of image frames in the video file within a preset range, where the statistical dimension of the parameter information at least includes the number of images with the same comparison results.
[0035] Based on the setting of the image change frequency of the display change target described in the previous text, the speed of image change is faster than the speed of image acquisition. Under normal circumstances, the shooting content of the two adjacent image frames is not the same. Through this imaging law, when the parameter information of the image frames in the video file is counted, the degree of jamming can be confirmed by the same number of results of picture comparison. The more the number of the same results of picture comparison is, the more serious the jamming is. In this way, the video file is placed outside the camera, and the image recognition method is used to quantify and count the jamming degree, which reduces the performance overhead of the camera and improves the accuracy of encoding quality detection. In the specific implementation process, in order to avoid the actual jamming that cannot be accurately detected, the image change frequency is greater than the image acquisition frequency of the camera, and should be within a relatively small range, for example, the image change frequency is greater than the image acquisition frequency of the camera within a preset difference range, such as no more than 10%, 20%, etc., so as to avoid the actual jamming. However, because the display change target changes too fast, adjacent image frames can always collect different picture contents from the display change target, resulting in the jamming that cannot be captured in the video file.
[0036] For a video file, the encoding quality can be characterized by parameter information in multiple different dimensions. Correspondingly, the parameter information can be counted in multiple statistical dimensions.
[0037] In addition to the picture comparison results, the parameter information of the image frames in the video file within a preset range is counted in step S130, and step S131 may be further included, and step S132 and / or step S133 may be further included to realize the statistics of the parameter information related to the timestamp.
[0038] Step S131: obtaining the timestamps of the image frames in the video file within a preset range.
[0039] The camera will add a timestamp to each image frame during the encoding process, which can be read according to the specific encoding protocol.
[0040] Step S132: Count the number of image frames between time stamps of unit duration to obtain parameter information corresponding to the actual frame rate.
[0041] The frame rate is used to represent the number of image frames encoded within a unit time length. When confirming the actual frame rate, the number of image frames between timestamps of the unit time length is counted according to the specific moment corresponding to the timestamp, so as to obtain the parameter information corresponding to the actual frame rate.
[0042] Step S133: Count the number of timestamp differences of adjacent image frames within a preset freeze range.
[0043] Based on the timestamps read, the timestamp differences of adjacent image frames can also be counted. From the perspective of encoding, the larger the timestamp difference, the longer the display time corresponding to a frame, and the more likely it is that there will be negative playback effects such as stuttering and asynchrony between audio and video. The stuttering range is based on the empirical value of the timestamp difference required for the human eye to perceive video stuttering. When the timestamp difference is within the stuttering range, the stuttering is more obvious. Through timestamp-based processing, the encoding quality in the time dimension can be quickly and accurately confirmed.
[0044] The step S130 of counting the parameter information of the image frames in the video file within a preset range may further include steps S134 and S135 to implement the statistics of FPS (Frames Per Second) related parameter information.
[0045] Step S134: Read parameter information corresponding to the preset FPS carried in the file header information of the video file.
[0046] Step S135: Count the number of P frames between any two adjacent I frames in the video file within a preset range, and confirm parameter information corresponding to the actual FPS according to the number of P frames.
[0047] The statistics of FPS related parameter information and the statistical target of frame rate have a certain correlation, but the statistical methods of the two are different. The frame rate in step S132 is statistically calculated based on the unit duration. FPS is usually related to GOP (Group of Pictures). Generally, FPS is the same as GOP. Of course, it can also be presented that FPS is an integer multiple of GOP. GOP is a definition of the image frame encoding method in a video file, such as Figure 4 As shown, a video file may include multiple GOPs, and each GOP includes 1 I frame 221 and multiple P frames 222 (for example, 1 I frame 221 and 29 P frames 222). Generally speaking, the first frame of a video file is usually an I frame. The number of P frames a GOP can have is constrained by the encoding protocol during the encoding process. This constraint is a static and unchanging preset value. The specific value is recorded in the video file and can be directly extracted from the file header information of the video file through step S134, that is, the preset FPS. However, there may be deviations in the actual encoding. The sum of 1 I frame 221 and its subsequent P frames 222 may be different from the preset FPS, or it may be the same as the preset FPS. Steps S134 and S135 can be used to quickly confirm whether there is a deviation between the established GOP and the actual GOP. It should also be noted that Figure 4 And based on Figure 4In the description, only I frame 221 and P frame 222 appear. In fact, other types of frames (such as B frames) may exist, but this does not affect the implementation of this solution and does not deviate from the protection scope of this solution.
[0048] In an optional implementation, the step of counting the parameter information of the image frames in the video file within a preset range in step S130 may also include steps S136 and S137 to accurately determine the data neatness of the image frames.
[0049] Step S136: confirming the length difference between the I frame and the associated P frame in the video file within a preset range, and the length difference between two adjacent P frames in the continuous P frames.
[0050] Step S137: Count the number of length differences exceeding the corresponding difference threshold.
[0051] In the actual encoding process, whether the lengths of I frames and P frames are uniform is also a measure of encoding quality. Here, by confirming the length difference and counting the number of large length differences, a more comprehensive detection and judgment of the video file can be performed. Generally speaking, the length difference between I frames and P frames is less than 3 times, that is, the length of an I frame does not exceed 4 times the length of the associated P frame. A P frame associated with an I frame refers to a P frame that belongs to the same GOP as the I frame. The length difference between two adjacent P frames is less than 2 times, that is, the length of a P frame does not exceed 3 times the length of adjacent P frames.
[0052] Through the above processing, the camera's image acquisition and coding information can be accurately quantified while reducing the camera's performance overhead, so as to provide accurate analysis of the camera and further upgrade and optimize the camera. In the actual processing process, it is not required that all parameter information is flawless. For example, if the length difference between two adjacent P frames exceeds the corresponding difference threshold only once in a video file of 1 minute, the image acquisition and coding can be considered normal. In other words, when the statistics of negative results reach a certain level, it can be considered that there are more serious problems with the camera's image acquisition and coding, and software and hardware optimization is required. The specific optimization method is not an improvement point of this solution and will not be described in detail here. In fact, the existing targeted optimization method can be used for processing, and finally the optimized camera performs image acquisition and coding, and the obtained video file plays with synchronized audio and video and smooth picture playback.
[0053] In the above-mentioned video coding information extraction method, a video file generated by a camera performing image acquisition and encoding on a display change target is obtained, and the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera; the target area is extracted from the image frames of the video file frame by frame, and the target areas of two adjacent image frames are compared in turn, and the target area is the imaging area of the display change target in the image frame; the parameter information of the image frames in the video file within a preset range is counted, and the statistical dimension of the parameter information at least includes the number of identical results of the picture comparison. When it is necessary to perform quality inspection on the video file acquired by the camera, the camera is used to perform image acquisition and encoding on the display change target to generate a video file for inspection, and the camera sends the generated video file to an external device for inspection. The inspection process is completed on the basis of local comparison of adjacent image frames of the video file, which reduces the performance overhead of the camera and improves the accuracy of encoding quality inspection.
[0054] Figure 5 A schematic diagram of the structure of a video coding information extraction device provided by an embodiment of the present invention. Figure 5 The video coding information extraction device includes a file acquisition unit 310, a region extraction unit 320 and a parameter statistics unit 330.
[0055] The file acquisition unit 310 is used to acquire a video file generated by the camera performing image acquisition and encoding of a display change target, wherein the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera; the area extraction unit 320 is used to extract the target area from the image frames of the video file frame by frame, and to perform image comparison on the target areas of two adjacent image frames in turn, wherein the target area is an imaging area of the display change target in the image frame; the parameter statistics unit 330 is used to count the parameter information of the image frames in the video file within a preset range, wherein the statistical dimension of the parameter information includes at least the number of identical results of the image comparison.
[0056] Based on the above embodiment, the target areas of two adjacent image frames are compared by using the average hashing method.
[0057] Based on the above embodiment, the parameter statistics unit 330 includes:
[0058] A timestamp acquisition module, used to acquire the timestamps of image frames in a video file within a preset range;
[0059] The actual frame rate confirmation module is used to count the number of image frames between time stamps of a unit time interval to obtain parameter information corresponding to the actual frame rate, and / or,
[0060] The timestamp interval statistics module is used to count the number of timestamp differences between adjacent image frames within a preset jamming range.
[0061] Based on the above embodiment, the parameter statistics unit 330 includes:
[0062] A preset information reading module is used to read parameter information corresponding to the preset FPS carried in the file header information of the video file;
[0063] The actual information confirmation module is used to count the number of P frames between any two adjacent I frames in a video file within a preset range, and confirm parameter information corresponding to the actual FPS according to the number of P frames.
[0064] Based on the above embodiment, the parameter statistics unit 330 includes:
[0065] A length difference confirmation module is used to confirm the length difference between an I frame and an associated P frame in a video file within a preset range, and the length difference between two adjacent P frames in a continuous P frame;
[0066] The difference quantity confirmation module is used to count the number of length differences exceeding the corresponding difference threshold.
[0067] The video coding information processing device provided in the embodiment of the present invention is included in an electronic device and can be used to execute any video coding information processing method provided in the above embodiments, and has corresponding functions and beneficial effects.
[0068] It is worth noting that in the embodiment of the above-mentioned video encoding information processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0069] Figure 6 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 6 As shown, the electronic device includes a processor 410 and a memory 420, and may also include an input device 430, an output device 440, and a communication device 450; the number of processors 410 in the electronic device may be one or more, Figure 6 A processor 410 is taken as an example; the processor 410, the memory 420, the input device 430, the output device 440 and the communication device 450 in the electronic device can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0070] The memory 420, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the video coding information extraction method in the embodiment of the present invention. The processor 410 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 420, that is, implements the above-mentioned video coding information extraction method.
[0071] The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 420 may further include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0072] The input device 430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 440 may include a display device such as a display screen.
[0073] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to perform relevant operations in the video coding information extraction method provided in any embodiment of the present application, and has corresponding functions and beneficial effects.
[0074] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0075] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0076] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0077] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0078] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0079] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for extracting video coding information, It is characterized in that include: Acquire a video file generated by encoding an image of a display change target by a camera, wherein the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera; Extracting the target area from the image frames of the video file frame by frame, and comparing the target areas of two adjacent image frames in turn, the target area being the imaging area of the display change target in the image frame; Parameter information of image frames in the video file within a preset range is counted, and the statistical dimension of the parameter information at least includes the number of identical results of the picture comparison.
2. The video coding information extraction method according to claim 1, It is characterized in that The target areas of the two adjacent image frames are compared by using the average hashing method.
3. The video coding information extraction method according to claim 1 or 2, It is characterized in that The parameter information of the image frames in the video file within the preset statistical range includes: Obtaining the timestamps of the image frames in the video file within the preset range; Counting the number of image frames between time stamps of unit duration to obtain parameter information corresponding to the actual frame rate, and / or, Count the number of timestamp differences between adjacent image frames within a preset freeze range.
4. The video coding information extraction method according to claim 1 or 2, It is characterized in that The parameter information of the image frames in the video file within the preset statistical range includes: Read parameter information corresponding to the preset FPS carried in the file header information of the video file; The number of P frames between any two adjacent I frames in a video file within a preset range is counted, and parameter information corresponding to the actual FPS is confirmed according to the number of P frames.
5. The video coding information extraction method according to claim 1 or 2, It is characterized in that The parameter information of the image frames in the video file within the preset statistical range includes: Determine the length difference between an I frame and an associated P frame in a video file within a preset range, and the length difference between two adjacent P frames in a continuous P frame; The number of length differences exceeding the corresponding difference threshold is counted.
6. A video coding information processing device, It is characterized in that include: A file acquisition unit, used for acquiring a video file generated by a camera performing image acquisition and encoding on a display change target, wherein the image change frequency of the display change target is greater than or equal to the image acquisition frequency of the camera; A region extraction unit, used to extract a target region from each image frame of the video file, and to perform image comparison on the target regions of two adjacent image frames in sequence, wherein the target region is an imaging region of the display change target in the image frame; The parameter statistics unit is used to count the parameter information of the image frames in the video file within a preset range, and the statistical dimension of the parameter information at least includes the number of the same results of the picture comparison.
7. The video coding information processing device according to claim 6, It is characterized in that The target areas of the two adjacent image frames are compared by using the average hashing method.
8. The video coding information processing device according to claim 6 or 7, It is characterized in that The parameter statistics unit includes: A timestamp acquisition module, used to acquire the timestamps of image frames in the video file within the preset range; The actual frame rate confirmation module is used to count the number of image frames between time stamps of a unit time interval to obtain parameter information corresponding to the actual frame rate, and / or, The timestamp interval statistics module is used to count the number of timestamp differences between adjacent image frames within a preset jamming range.
9. An electronic device, It is characterized in that include: one or more processors; a memory for storing one or more computer programs; When one or more computer programs are executed by one or more processors, the electronic device implements the video coding information extraction method as described in any one of claims 1-5.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the video coding information extraction method according to any one of claims 1 to 5.
Citation Information
Cited By
Video processing method and device, electronic equipment and storage medium
CN119364110A
Video processing method and apparatus, and electronic device and storage medium
WO2026137793A1
