Video file generation method and device

Through the combination of a microprocessor module and a digital camera interface module, frame compression of video data is implemented based on hardware, which solves the problem of high video compression cost in the existing technology and realizes low-cost video file generation.

CN118678077APending Publication Date: 2024-09-20GIGADEVICE SEMICON (BEIJING) INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310265118.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing video compression technology relies on codec chips with high computing power, resulting in high costs and high chip performance requirements, making it difficult to reduce compression costs.

Method used

The image acquisition module is controlled by the microprocessor module to collect video data. The digital camera interface module is used to extract the target video image from the continuous video images. The frame compression is implemented based on hardware, which simplifies the processing process and reduces the computing power of the microprocessor module. requirements to avoid relying on high-performance chips.

Benefits of technology

It realizes the hardware of video compression, reduces the cost of video file generation, simplifies the processing process, realizes video compression without high-performance chips, and reduces compression costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678077A
    Figure CN118678077A
Patent Text Reader

Abstract

The invention provides a video file generation method and device, which are applied to a video file generation device, and the video file generation device comprises a microprocessor module, and an image acquisition module and a digital camera interface module which are electrically connected with the microprocessor module. The method comprises the steps that the microprocessor module controls the image acquisition module to perform video data acquisition to obtain multiple frames of continuous first video images, and the first video images are video images in a first format; extracting multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module; through the microprocessor module, the video file is generated according to the multiple frames of target video images, so that frame extraction and compression of video data can be realized based on hardware instead of depending on a pure software program running on the microprocessor module, and the performance requirement on the microprocessor module is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of image processing, and in particular to a method and device for generating a video file. [Background technology]

[0002] Video is a continuous sequence of images, consisting of continuous frames, one frame is an image. Due to the persistence of vision of the human eye, when the frame sequence is played at a certain rate, what we see is a video with continuous action.

[0003] Video compression technology is the prerequisite for computer processing of video. After the video signal is digitized, the data bandwidth is very high, usually more than 20MB / second, so it is difficult for the computer to save and process it. Compression technology can usually reduce the data bandwidth to 1-10MB / second, so that the video signal can be saved in the computer and processed accordingly.

[0004] However, existing video compression technology mainly relies on high-computing power codec chips, which have high requirements on chip performance and are not conducive to reducing costs. [Summary of the invention]

[0005] The purpose of this application is to provide a method and device for generating a video file, which can realize video compression without the aid of a high-performance chip, thereby helping to reduce costs.

[0006] On the one hand, an embodiment of the present application provides a video file generation method, which is applied to a video file generation device, wherein the video file generation device includes a microprocessor module, and an image acquisition module and a digital camera interface module electrically connected to the microprocessor module, and the image acquisition module and the digital camera interface module are electrically connected, and the method includes:

[0007] Controlling the image acquisition module to acquire video data through the microprocessor module to obtain a plurality of continuous first video images, wherein the first video images are video images in a first format;

[0008] Extracting multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module;

[0009] A video file is generated according to the multiple frames of target video images through the microprocessor module.

[0010] On the other hand, an embodiment of the present application provides a video file generation device, including a microprocessor module, and an image acquisition module and a digital camera interface module electrically connected to the microprocessor module, and the image acquisition module and the digital camera interface module are electrically connected;

[0011] Wherein, the video file generating device executes any one of the above-mentioned video file generating methods.

[0012] The video file generation method and device provided in the embodiment of the present application, the video file generation device includes a microprocessor module, an image acquisition module and a digital camera interface module, wherein the image acquisition module is controlled by the microprocessor module to perform video data acquisition to obtain multiple frames of continuous first video images, and the first video images are video images of a first format; multiple frames of target video images are extracted from the multiple frames of continuous first video images by the digital camera interface module; and a video file is generated according to the multiple frames of target video images by the microprocessor module, so that frame extraction and compression of video data can be achieved based on hardware, rather than relying on a pure software program running on the microprocessor module to achieve it, which simplifies the processing flow, reduces the computing power requirements of the microprocessor module, and can achieve video compression without the help of high-performance chips, which is beneficial to reducing compression costs.

Brief Description of the Drawings

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 It is a structural schematic diagram of a video file generating device provided in an embodiment of the present application;

[0015] Figure 2 It is a flowchart of a method for generating a video file provided in an embodiment of the present application;

[0017] Figure 3 is another flow chart of the method for generating a video file provided in an embodiment of the present application;

[0018] Figure 4 is another structural schematic diagram of the video file generating device provided in an embodiment of the present application;

[0019] Figure 5 It is a structural diagram of a digital camera interface module provided in an embodiment of the present application. [Specific implementation method]

[0020] The present application is further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present application, but are not intended to limit the scope of the present application. Similarly, the following examples are only some embodiments of the present application rather than all embodiments, and all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0021] In the description herein, it should be understood that the terms "center", "lateral", "upper", "lower", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of such features.

[0022] In the description of this article, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0023] It will be understood that the meanings of “on,” “over,” and “over” in the description herein should be interpreted in the broadest manner, so that “on” not only means “on” something with no intervening features or layers (i.e., directly on something), but also includes the meaning of “on” something with intervening features or layers.

[0024] The terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments. Unless the context clearly indicates otherwise, the singular forms "one", "one" and "item" used herein are also intended to include plural numbers. The meaning of "multiple" is two or more. It should also be understood that the terms "include" and / or "comprise" used herein specify the existence of stated features, integers, steps, operations, units and / or components, without excluding the existence or addition of one or more other features, integers, steps, operations, units, components and / or combinations thereof.

[0025] The embodiments of the present application provide a method and device for generating a video file.

[0026] See also Figure 1 and Figure 2 , Figure 1 is a flow chart of a method for generating a video file provided in an embodiment of the present application, Figure 2 1 is a schematic diagram of the structure of a video file generation device provided in an embodiment of the present application. The video file generation method is applied to a video file generation device 10, which includes a microprocessor module 11, and an image acquisition module 12 and a digital camera interface module 13 electrically connected to the microprocessor module 11, and the image acquisition module 12 and the digital camera interface module 13 are electrically connected.

[0027] Specifically, the video file generation method includes the following steps S101-S103, wherein:

[0028] Step S101. The microprocessor module 11 controls the image acquisition module 12 to acquire video data to obtain a plurality of continuous first video images, wherein the first video images are video images in a first format;

[0029] Step S102. Extracting multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module 13;

[0030] Step S103: Generate a video file according to the multiple frames of target video images through the microprocessor module 11.

[0031] Among them, the microprocessor module 11 can be a processor module of a system on chip (SOC) for executing software programs. The system on chip can be, for example, a microcontroller unit chip MCU. The image acquisition module 12 mainly includes a digital camera, such as a CMOS camera, which is used to shoot videos and output digital signals of video data. For example, in a CMOS camera, a CCD (charge coupled device) array scans and outputs the original R, G, B color image signals, which are then converted into digital signals of various image formats according to output requirements after exposure, correction, white level adjustment and other processing. The first format can be a compressed image format, such as a lossy compressed JPEG format, or it can be an original image format, such as an RGB format.

[0032] The digital camera interface module 13 can be integrated into the system on chip SOC, which is equivalent to a peripheral module of the system on chip, and can support images in multiple color spaces including YCbCr422 / RGB565, and also supports images in compressed formats, such as JPEG images. The digital camera interface module 13 can capture the image data output by the image acquisition module 12, but does not perform pixel format conversion or data processing. The target video image is extracted from the first video image through the digital camera interface module 13, which is a part of the first video image, which is equivalent to compressing the first video image once, reducing the amount of image data for subsequent processing.

[0033] From the above, it can be seen that, on the one hand, the embodiment of the present application uses a digital camera to realize image acquisition, so compared with other solutions using analog cameras, the step of converting analog signals into digital signals is omitted. On the other hand, the embodiment of the present application uses a digital camera interface module to capture the first video image, that is, a one-time compression of the video image is realized through hardware, rather than relying on a pure software program running on the microprocessor module. Therefore, the processing flow is simplified, the computing power requirements of the microprocessor module are reduced, and video compression can be achieved without the help of high-performance chips, which is conducive to reducing compression costs.

[0034] It should be understood that the steps shown in the above-mentioned video file generation method are not exclusive, and other steps may be performed before, after or between any of the steps shown.

[0035] See also Figure 3 , Figure 3 This is another flow chart of the method for generating a video file provided in the embodiment of the present application. Figures 1 to 3 The above steps S101-S103 are further described.

[0036] Step S101: The microprocessor module 11 controls the image acquisition module 12 to acquire video data to obtain a plurality of continuous frames of first video images, where the first video images are video images in a first format.

[0037] The image acquisition module 12 may be a digital camera, which is used to shoot video and output a digital signal of video data. The first format may be a compressed image format, such as a lossy compressed JPEG format, or an original image format, such as an RGB format, that is, the image data output by the image acquisition module 12 may be an uncompressed video digital signal or a compressed video digital signal.

[0038] In some embodiments, see Figure 4 , Figure 41 is another structural diagram of the video file generating device 10 provided in an embodiment of the present application. The image acquisition module 12 includes an image acquisition unit 121 and an image encoding unit 122. At this time, the above step S101 may specifically include:

[0039] S1011. The microprocessor module 11 controls the image acquisition unit 121 to acquire video data to obtain a plurality of continuous frames of a second video image, wherein the second video image is a video image in a second format;

[0040] S1012. Encode multiple consecutive frames of the second video image through the image encoding unit 122 to obtain multiple consecutive frames of the first video image.

[0041] The first format is different from the second format, the first format may be an encoded image format, such as a JPEG format, and the second format may be an unencoded image format, such as an RGB format.

[0042] In some implementations, the above step S1011 may specifically include:

[0043] The microprocessor module 11 sends a shooting instruction to the image acquisition unit 121, so that the image acquisition unit 121 performs a corresponding shooting operation according to the shooting instruction. The shooting instruction includes a start shooting instruction and an end shooting instruction.

[0044] The microprocessor module 11 can generate a start shooting instruction and an end shooting instruction, and send these instructions to the image acquisition unit 121. When the image acquisition unit 121 receives the start shooting instruction, it can start the shooting operation, and when it receives the end shooting instruction, it can terminate the shooting operation.

[0045] In some embodiments, see Figure 4 The video file generating device 10 further includes a serial bus interface module 14, such as an I2C interface module, and the serial bus interface module 14 can be integrated in the system on chip. The microprocessor module 11 and the image acquisition module 12 communicate data through the serial bus interface module 14. For example, through the serial bus interface module 14, the microprocessor module 11 can perform initialization settings related to shooting on the image acquisition unit 121, such as the resolution and shooting frequency of the shot image, and the shooting frequency refers to the number of frames shot per second. The microprocessor module 11 can also perform relevant settings on the encoding format of the image encoding unit 122.

[0046] For example, before the above step S1012, the video file generation method may further include:

[0047] The encoding format of the image encoding unit 122 is set to the first format by the microprocessor module 11 via the serial bus interface module 14 and the serial camera control bus.

[0048] Among them, the serial camera control bus is SCCB (Serial Camera Control Bus), and the user can set JPEG as the first format to set the encoding format of the image encoding unit 122, so that the video data generated by the subsequent image acquisition unit 121 can be directly JPEG encoded by the image encoding unit 122 to achieve one-time compression of the video data.

[0049] Step S102 . Extracting multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module 13 .

[0050] Among them, the digital camera interface (DCI) module 13 is mainly used to perform inter-frame extraction while capturing the video data output by the image acquisition module 12, that is, to extract a part of the image frames from the output video data for subsequent processing to reduce the amount of data and achieve another compression of the video data.

[0051] In some embodiments, see Figure 3 Before executing the above step S102 , the video file generation method further includes: setting the sampling frequency of the digital camera interface module 13 through the microprocessor module 11 .

[0052] At this time, the above step S102 may specifically include: sampling from the multiple frames of continuous first video images according to the sampling frequency through the digital camera interface module 13 to obtain multiple frames of target video images.

[0053] The sampling frequency can be set by the user through the microprocessor module 11 (for example, through a software program), and the sampling frequency is usually less than the shooting frequency of the video data, such as sampling once every one or two frames, that is, downsampling. The user can set the sampling frequency of the digital camera interface module 13 in advance, so that when the video is subsequently shot, the digital camera interface module 13 can directly sample the shooting data based on the sampling frequency.

[0054] Specifically, the downsampling function of the digital camera interface module 13 is implemented based on hardware, see Figure 5 , Figure 51 is a schematic diagram of the structure of a digital camera interface module 13 provided in an embodiment of the present application, wherein the digital camera interface module 13 includes a control register 131, a signal processing unit 132, a pixel first input first output (FIFO) first-in first-out unit 133, and a FIFO control unit 134, the signal processing unit 132 is electrically connected to the pixel FIFO unit 133, and the FIFO control unit 134, and the FIFO control unit 134 is also electrically connected to the control register 131 and the pixel FIFO unit 133.

[0055] The signal processing unit 132 can generate useful signal information for use by other internal units based on external input signals. The pixel FIFO unit 133 is used to store pixel data of an image, which is equivalent to a first-in-first-out buffer, that is, the first pixel data entering it is removed first, and usually has a small storage space.

[0056] The control register 131 may be used to set the sampling frequency. For example, the above step of “setting the sampling frequency of the digital camera interface module 13 by the microprocessor module 11” specifically includes:

[0057] The microprocessor module 11 sets the value of the target bit field in the control register 131 as a target value, and the target value corresponds to the sampling frequency.

[0058] Among them, the control register 131 corresponds to a bit field structure, and the access to the bit field structure is equivalent to the access to the control register 131. Different bit fields in the bit field structure can set different function items, depending on the specific needs. For example, if the control register 131 corresponds to a 32-bit structure, bits 0-31 can be divided into multiple bit fields, each bit field includes at least one bit, such as bit fields 9:8, 0, 1, etc., among which bit field 1 can be a snap item for setting the snapshot mode (sampling mode), and bit fields 9:8 can be FR[1:0] items for setting the capture (sampling) frequency.

[0059] For example, when the snap item is set to 1, the snapshot mode is non-continuous capture (interval capture), and when the snap item is set to 0, the snapshot mode is continuous capture. When the FR[1:0] item is set to 00, it means capturing all frames, when the FR[1:0] item is set to 01, it means capturing every other frame, when the FR[1:0] item is set to 10, it means capturing every third frame, and so on.

[0060] Among them, the target bit field refers to the bit field related to the sampling frequency. For example, the bit field corresponding to the above snap item and FR[1:0] item is used as the target bit field. If the sampling frequency needs to be set to capture once every frame, the value of the snap item can be set to 1, and the value of the FR[1:0] item can be set to 01, that is, 1 and 01 are the target values ​​of the corresponding target bit field.

[0061] Furthermore, the above step S102 may specifically include:

[0062] S1021. Acquire an input signal through the signal processing unit 132, wherein the input signal includes the first video image;

[0063] S1022. Control the pixel FIFO unit 133 to sample from the plurality of frames of continuous first video images according to the target value of the control register 131 through the FIFO control unit 134.

[0064] The signal processing unit 132 is electrically connected to the microprocessor module 11 and the image acquisition module 12, and can capture the image data (pixel data) output by the image acquisition module 12 and receive the signal sent by the microprocessor module 11. The FIFO control unit 134 can control the pixel FIFO unit 133 to selectively push the pixel data into it according to the signal received by the signal processing unit 132 and the setting of the control register 131.

[0065] Specifically, the microprocessor module 11 may send image frame related signals, such as a frame start signal and a frame end signal, to the signal processing unit 132. That is, the input signal also includes a frame start signal and a frame end signal. At this time, the above step of "controlling the pixel FIFO unit 133 to sample from the plurality of continuous first video images through the FIFO control unit 134 according to the target value of the control register 131" specifically includes:

[0066] The pixel FIFO unit 133 is controlled to extract the target video image from the first video image through the FIFO control unit 134 according to the target value of the control register 131 , the frame start signal and the frame end signal.

[0067] Among them, the relevant signals of the image frame may include a row synchronization signal HS, a column synchronization signal VS (which can be regarded as a frame start signal), a pixel clock signal DCLK, a frame end signal, etc. The FIFO control unit 134 can set the cap bit of the control register 131 according to the frame start signal, the frame end signal and the target value, wherein the cap bit is a bit field in the bit field structure corresponding to the control register 134, which is used to enable or disable the frame capture operation. For example, the value of the cap bit is set to 1 at the initial moment, and 1 represents enabling frame capture. At this time, the FIFO control unit 134 detects the frame start signal. Once the frame start signal is detected, the pixel FIFO unit 133 is controlled to store the image data by frame. When the frame end signal is detected, that is, when a frame ends, if the sampling frequency represented by the target value is captured once every other frame, the pixel FIFO unit 133 is controlled to stop data storage, and the value of the cap bit is set to 0, and 0 represents disabling frame capture, until the next time the frame start signal is detected, the cap bit is set to 1 again.

[0068] Step S103: Generate a video file according to the multiple frames of target video images through the microprocessor module 11.

[0069] The video file may be a file in MJPEG format, and the target video image may be directly encapsulated as a video file, or a portion thereof may be selected and encapsulated to achieve a third compression of the video data.

[0070] In some embodiments, see Figure 4 and Figure 3 , the video file generating device 10 further includes a direct memory access (DAM) module 15 and a memory module 16. At this time, the above step S103 specifically includes the following steps S1031-S1035, wherein:

[0071] Step S1031 . Control the digital camera interface module 13 through the microprocessor module 11 to store the multiple frames of target video images into the memory module 16 through the DMA module 15 .

[0072] The memory module 16 may be a RAM that can provide read and write functions at any time, and the DMA module 15 is electrically connected to the microprocessor module 11 and the digital camera interface module 13. When the pixel FIFO unit 133 is not empty, the DMA module 15 sends a DMA request to the digital camera interface module 13 to transfer the data in the pixel FIFO unit 133 to the memory module 16 in real time.

[0073] Step S1032: Acquire the first pixel data and the second pixel data of two frames of the target video image stored in the memory module 16 at adjacent moments.

[0074] Step S1033: Determine a mean square error value between the first pixel data and the second pixel data.

[0075] Step S1034. Filter multiple frames of the target video image according to the mean square error value to obtain multiple frames of filtered images.

[0076] The image data stored in the memory module 16 can be further screened by a mean square error function, which is: mean square error value Among them, y i is the pixel value of the i-th pixel in the target video image of the current frame, y i ' is the pixel value of the i-th pixel in the next frame of the target video image, and n is the total number of pixels in the target video image.

[0077] When the mean square error value MSE(y,y′) is relatively large, for example, greater than or equal to the specified threshold, it can be considered that the content difference between the two frames of target video images is relatively large, and both need to be retained (that is, both are retained as filtered images) to ensure the smoothness of the video. When the mean square error value MSE(y,y′) is less than the specified threshold, it can be considered that the content difference between the two frames of target video images is relatively small, and the target video image corresponding to the latter storage moment of the two frames can be discarded (that is, only the target video image corresponding to the previous storage moment is used as the filtered image), thereby not affecting the video smoothness, but also reducing the amount of data, thereby achieving another compression of the video data.

[0078] Step S1035: Generate a video file based on the multiple-frame screening images.

[0079] The filtered image may be added to a format required by, for example, an MJPEG file and encapsulated into a video file.

[0080] In some embodiments, see Figure 4 , the video file generating device 10 further includes a secure digital input and output (SDIO) module 17 electrically connected to the microprocessor module 11, and the SDIO module 17 is electrically connected to the external memory 18. At this time, the above step S1035 further includes:

[0081] The multiple frames of screened images are packaged into a preset video file format through the microprocessor module 11 , and the packaged screened images are sequentially written into the external memory 18 through the SDIO module 17 .

[0082] The external memory 18 may be an SD card, the SDIO module 17 may be integrated in the system on chip, and the preset video file format may include an MJPEG format or other video formats. By integrating the SDIO module 17 in the system on chip, after the screened images are packaged, they can be sequentially written into the SD card through the file system, and the data stored in the memory module 16 can be deleted, thereby solving the problem of insufficient storage space of the MCU, and the duration and frame rate of the video file can be controlled when writing into the SD card.

[0083] Based on the above-mentioned video file generation method embodiment, accordingly, the present application embodiment also provides a video file generation device. Figure 1 and Figure 4 , wherein the video file generating device 10 includes a microprocessor module 11, and an image acquisition module 12 and a digital camera interface module 13 electrically connected to the microprocessor module 11, and the image acquisition module 12 and the digital camera interface module 13 are electrically connected; wherein the video file generating device 10 executes the video file generating method provided in any of the above embodiments.

[0084] In some implementations, the microprocessor module 11 , the digital camera interface module 13 , the serial bus interface module 14 , the DMA module 15 , and the SDIO module 17 are all included in a system on chip.

[0085] It should be understood that the various structures involved in the video file generating device 10 provided in the embodiment of the present application can refer to the above-mentioned video file generating method embodiment, and will not be repeated here.

[0086] In summary, the video file generation method and device provided in the embodiment of the present application, the video file generation device 10 includes a microprocessor module 11, an image acquisition module 12 and a digital camera interface module 13, wherein the microprocessor module 11 controls the image acquisition module 12 to perform video data acquisition to obtain multiple frames of continuous first video images, and the first video images are video images of a first format; the digital camera interface module 13 extracts multiple frames of target video images from the multiple frames of continuous first video images; the microprocessor module 11 generates a video file according to the multiple frames of target video images, so that the frame extraction and compression of the video data can be realized based on hardware, rather than relying on a pure software program running on the microprocessor module 11 to achieve it, which simplifies the processing flow, reduces the computing power requirements of the microprocessor module 11, and can achieve video compression without the help of high-performance chips, which is beneficial to reducing compression costs.

[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating a video file, characterized in that: Applied to a video file generating device, the video file generating device comprises a microprocessor module, and an image acquisition module and a digital camera interface module electrically connected to the microprocessor module, and the image acquisition module and the digital camera interface module are electrically connected, and the method comprises: Controlling the image acquisition module to acquire video data through the microprocessor module to obtain a plurality of continuous first video images, wherein the first video images are video images in a first format; Extracting multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module; A video file is generated according to the multiple frames of target video images through the microprocessor module.

2. The video file generation method according to claim 1, characterized in that: The image acquisition module includes an image acquisition unit and an image encoding unit. The microprocessor module controls the image acquisition module to acquire video data to obtain a plurality of continuous first video images, including: Controlling the image acquisition unit to acquire video data through the microprocessor module to obtain a plurality of continuous frames of second video images, wherein the second video images are video images in a second format; The image encoding unit encodes multiple frames of continuous second video images to obtain multiple frames of continuous first video images.

3. The video data processing method according to claim 2, characterized in that: The step of controlling the image acquisition unit to acquire video data by the microprocessor module includes: The microprocessor module sends a shooting instruction to the image acquisition unit so that the image acquisition unit performs a corresponding shooting operation according to the shooting instruction. The shooting instruction includes a start shooting instruction and an end shooting instruction.

4. The video file generation method according to claim 2, characterized in that The video file generating device further includes a serial bus interface module, and before encoding the second video image through the image encoding unit, it also includes: The encoding format of the image encoding unit is set to the first format by the microprocessor module via the serial bus interface module and the serial camera control bus.

5. The video file generation method according to claim 1, characterized in that , before extracting multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module, it also includes: Setting the sampling frequency of the digital camera interface module by the microprocessor module; The extracting of multiple frames of target video images from the multiple frames of continuous first video images through the digital camera interface module includes: sampling from the multiple frames of continuous first video images according to the sampling frequency through the digital camera interface module to obtain multiple frames of target video images.

6. The video file generation method according to claim 5, characterized in that: The digital camera interface module includes a control register, a signal processing unit, a pixel FIFO first-in first-out unit, and a FIFO control unit. The signal processing unit is electrically connected to the pixel FIFO unit and the FIFO control unit. The FIFO control unit is also electrically connected to the control register and the pixel FIFO unit. The step of setting the sampling frequency of the digital camera interface module by the microprocessor module comprises: setting the value of the target bit field in the control register as a target value by the microprocessor module, wherein the target value corresponds to the sampling frequency; The method of sampling from the plurality of frames of continuous first video images according to the sampling frequency through the digital camera interface module further includes: Acquire an input signal through the signal processing unit, wherein the input signal includes the first video image; The pixel FIFO unit is controlled to perform sampling from the plurality of frames of continuous first video images according to the target value of the control register through the FIFO control unit.

7. The video file generation method according to claim 6, characterized in that: The input signal also includes a frame start signal and a frame end signal, and the pixel FIFO unit is controlled by the FIFO control unit to sample from the plurality of frames of continuous first video images according to the target value of the control register, including: The pixel FIFO unit is controlled to extract the target video image from the first video image through the FIFO control unit according to the target value of the control register, the frame start signal and the frame end signal.

8. The method for generating a video file according to claim 5, characterized in that: The video file generating device further includes a DAM direct memory access module and a memory module. The video file is generated according to the multiple frames of target video images through the microprocessor module, including: Controlling the digital camera interface module to store the multiple frames of target video images into the memory module through the DMA module via the microprocessor module; Acquire first pixel data and second pixel data of two frames of the target video image stored in the memory module at adjacent moments; determining a mean square error value between the first pixel data and the second pixel data; Screening multiple frames of the target video image according to the mean square error value to obtain multiple frames of screened images; A video file is generated according to the plurality of filtered images.

9. The video file generation method according to claim 8, characterized in that: The video file generating device further comprises an SDIO secure digital input and output module electrically connected to the microprocessor module, the SDIO module is electrically connected to an external memory, wherein generating a video file according to the multi-frame screening image further comprises: The multiple frames of screened images are packaged into a preset video file format through the microprocessor module, and the packaged screened images are sequentially written into the external memory through the SDIO module.

10. A video file generating device, characterized in that: It includes a microprocessor module, and an image acquisition module and a digital camera interface module electrically connected to the microprocessor module, and the image acquisition module and the digital camera interface module are electrically connected; Wherein, the video file generating device executes the video file generating method as described in any one of claims 1-9.

11. The video file generating device according to claim 10, characterized in that: The microprocessor module, the digital camera interface module, the serial bus interface module, the DMA module, and the SDIO module are all included in a system on chip.