CN112069356B - Video file storage method and device, electronic equipment and readable storage medium - Google Patents

Video file storage method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112069356B
CN112069356B CN202010754281.5A CN202010754281A CN112069356B CN 112069356 B CN112069356 B CN 112069356B CN 202010754281 A CN202010754281 A CN 202010754281A CN 112069356 B CN112069356 B CN 112069356B
Authority
CN
China
Prior art keywords
file
video
data
archive
video archive
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.)
Active
Application number
CN202010754281.5A
Other languages
Chinese (zh)
Other versions
CN112069356A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010754281.5A priority Critical patent/CN112069356B/en
Publication of CN112069356A publication Critical patent/CN112069356A/en
Application granted granted Critical
Publication of CN112069356B publication Critical patent/CN112069356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding

Abstract

The embodiment of the application provides a storage method and device of video files, electronic equipment and a readable storage medium. The method comprises the following steps: determining whether a file format of a first video file to be stored meets a preset condition; if not, performing format conversion on the first video file to obtain a second video file; determining whether the second video archive file satisfies that the moov data in the file data is located behind mdat data; if yes, the second video archive file is subjected to data conversion to obtain a third video archive file, and the third video archive file is sent to the video archive provider, so that the video archive provider associates the stream information of the first video archive with the third video archive file and then sends the video archive file to the archive manager, and the archive manager stores the stream information in association with the third video archive file. Based on the scheme, the video file can be ensured to be normally played through the IE browser, the playing problem is avoided, and the use requirement of a user is met.

Description

Video file storage method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for storing a video file, an electronic device, and a readable storage medium.
Background
Video files refer to video format files stored by devices such as computer disks. At present, video files are stored in a file management system, and video file management and retrieval functions are provided for users.
The existing file management system is mostly developed based on a Browser/Server (Browser/Server) structure, and an IE Browser is generally used for browsing when the video file is referred to by the file management system, but because video files from different sources may have multiple file formats, and the IE Browser uses a Flash player or an H5 player to play video, and has certain requirements on the video formats, various playing problems may exist when the video file is played by the IE Browser.
Disclosure of Invention
The object of the present application is to solve at least one of the technical drawbacks mentioned above. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for storing a video file, where the method includes:
determining whether a file format of a first video file to be stored meets a preset condition;
if not, performing format conversion on the first video file to obtain a second video file;
determining whether a location of moov data in file data of the second video archive file is behind mdat data;
if the moov data is located behind mdat data, performing data conversion on the second video archive file to obtain a third video archive file, and sending the third video archive file to a video archive provider, so that the video archive provider can correlate the streaming information of the first video archive with the third video archive file and then send the streaming information to an archive manager, and the archive manager can correlate and store the streaming information with the third video archive file.
Optionally, determining whether the file format of the first video file to be stored meets a preset condition includes:
determining whether a first video file to be stored belongs to an MP4 file;
determining whether the video encoding format of the first video archive is H264 video encoding or AVC video encoding; the method comprises the steps of,
it is determined whether the audio encoding format of the first video archive is AVC audio encoding.
Optionally, determining whether the file format of the first video file to be stored meets a preset condition includes:
and determining whether the file format of the first video file to be stored meets a preset condition or not through the VLC video playing plug-in.
Optionally, format converting the first video file to obtain a second video file, including:
and performing format conversion on the first video file through ffmpeg. Exe to obtain a second video file.
Optionally, determining whether the moov data is located after mdat data in the file data of the second video archive file includes:
it is determined by mp4info.exe whether the position of moov data in the file data of the second video archive file is behind mdat data.
Optionally, performing data conversion on the second video archive to obtain a third video archive, including:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data to obtain a third video archive file.
Optionally, converting the moov data position in the file data of the second video archive file to the front of mdat data to obtain a third video archive file, including:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data through ffmpeg.
In a second aspect, an embodiment of the present application provides a storage device for a video file, including:
the file format determining module is used for determining whether the file format of the first video file to be stored meets preset conditions;
the file format conversion module is used for carrying out format conversion on the first video file to obtain a second video file when the file format of the first video file does not meet the preset condition;
a file data determining module, configured to determine whether a location of moov data in file data of the second video archive file is behind mdat data;
and the video archive storage module is used for carrying out data conversion on the second video archive file to obtain a third video archive file when the position of the moov data is positioned behind the mdat data, and sending the third video archive file to the video archive provider so that the video archive provider can correlate the stream information of the first video archive with the third video archive file and then send the correlated stream information to the archive manager, and the archive manager can correlate and store the stream information with the third video archive file.
Optionally, the file format determining module is specifically configured to:
determining whether a first video file to be stored belongs to an MP4 file;
determining whether the video encoding format of the first video archive is H264 video encoding or AVC video encoding; the method comprises the steps of,
it is determined whether the audio encoding format of the first video archive is AVC audio encoding.
Optionally, the file format determining module is specifically configured to:
and determining whether the file format of the first video file to be stored meets a preset condition or not through the VLC video playing plug-in.
Optionally, the file format conversion module is specifically configured to:
and performing format conversion on the first video file through ffmpeg. Exe to obtain a second video file.
Optionally, the file data determining module is specifically configured to:
it is determined by mp4info.exe whether the position of moov data in the file data of the second video archive file is behind mdat data.
Optionally, the video archive storage module is specifically configured to, when performing data conversion on the second video archive to obtain the third video archive:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data to obtain a third video archive file.
Optionally, the video archive storage module is specifically configured to, when converting the moov data position in the file data of the second video archive file to the front of mdat data to obtain the third video archive file:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data through ffmpeg.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
a memory for storing operation instructions;
a processor for executing the video archive storage method as shown in any of the embodiments of the first aspect of the present application by invoking the operation instruction.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of storing a video file as shown in any of the embodiments of the first aspect of the present application.
The beneficial effects that technical scheme that this application embodiment provided brought are:
according to the scheme provided by the embodiment of the application, whether the file format of the video file to be stored meets the preset condition or not is determined, and file format conversion is performed on the video file to be stored, wherein the file format of the video file to be stored does not meet the preset condition; and determining whether the moov data position in the file data of the video file to be stored is behind the mdat data, converting the file data of the video file to be stored, of which the moov data position is behind the mdat data, transmitting the file format converted and the file data converted file to be stored to a video file provider, associating the streaming information of the file to be stored with the file to be stored, and transmitting the streaming information to a file manager, wherein the file manager stores the streaming information in association with the video file. Based on the scheme, after the video files to be stored in the file management system are subjected to file format conversion and file data conversion respectively, the video files to be stored can be normally played by the IE browser, so that the file management system is ensured to be capable of carrying out centralized and unified management on various video files, and the video files are normally played by the IE browser when the video files are called up by a user, so that the playing problem is avoided, and the use requirement of the user is met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a flowchart illustrating a method for storing a video file according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a storage device for video files according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart illustrating a method for storing video files according to an embodiment of the present application, and as shown in fig. 1, the method may mainly include:
step S110: determining whether a file format of a first video file to be stored meets a preset condition;
step S120: if not, performing format conversion on the first video file to obtain a second video file;
step S130: determining whether a location of moov data in file data of the second video archive file is behind mdat data;
step S140: if the moov data is located behind mdat data, performing data conversion on the second video archive file to obtain a third video archive file, and sending the third video archive file to a video archive provider, so that the video archive provider can correlate the streaming information of the first video archive with the third video archive file and then send the streaming information to an archive manager, and the archive manager can correlate and store the streaming information with the third video archive file.
In the embodiment of the application, the video file is provided by a video file provider, for example, the video file provider may be a monitoring system of a certain area, and the video file is a monitoring video of a certain period collected by the monitoring system.
Because the IE browser has a certain requirement on the file format of the played video file, a preset condition can be set according to the file format requirement of the IE browser on the played video file, when the video file is archived, whether the file format of the video file to be stored meets the preset condition is determined, and the video file which does not meet the preset condition is subjected to format conversion, so that the file format of the video file to be stored meets the preset condition.
Because the moov data in the file data of the video file is located behind mdat data, the IE browser needs to wait for the video file to be completely loaded before starting to play, and can not realize playing and downloading at the same time, so that the waiting time is long for a user, and the user experience is poor. It is thus possible to check whether the position of moov data in the file data of the video archive file is behind mdat data, and to convert the video archive in which the position of moov data is behind mdat data.
After the file format conversion and the file data conversion, the video file to be stored can be normally played by an IE browser, and the downloading while playing is supported, so that the method has better user experience.
In this embodiment of the present application, the video archive after completing the file format conversion and the file data conversion may be sent to a video archive provider, where the video archive provider associates the corresponding stream information with the video archive file and then sends the video archive file to an archive manager, where the archive manager stores the stream information in association with the video archive file.
According to the method provided by the embodiment of the application, whether the file format of the video file to be stored meets the preset condition or not is determined, and file format conversion is carried out on the video file to be stored, wherein the file format of the video file to be stored does not meet the preset condition; and determining whether the moov data position in the file data of the video file to be stored is behind the mdat data, converting the file data of the video file to be stored, of which the moov data position is behind the mdat data, transmitting the file format converted and the file data converted file to be stored to a video file provider, associating the streaming information of the file to be stored with the file to be stored, and transmitting the streaming information to a file manager, wherein the file manager stores the streaming information in association with the video file. Based on the scheme, after the video files to be stored in the file management system are subjected to file format conversion and file data conversion respectively, the video files to be stored can be normally played by the IE browser, so that the file management system is ensured to be capable of carrying out centralized and unified management on various video files, the video files are normally played by the IE browser when the video files are called up by a user, the use requirement of the user is met, the video files are supported to be played and downloaded simultaneously, and better user experience is achieved.
In an optional manner of this embodiment, determining whether the file format of the first video file to be stored meets a preset condition includes:
determining whether a first video file to be stored belongs to an MP4 file;
determining whether the video encoding format of the first video archive is H264 video encoding or AVC video encoding; the method comprises the steps of,
it is determined whether the audio encoding format of the first video archive is AVC audio encoding.
In the embodiment of the present application, the preset condition may be set according to a video file format supported by the IE browser for playing. In particular, the preset condition may include that the video archive belongs to an MP4 file, and the video archive video encoding format is H264 video encoding or AVC video encoding, and the audio encoding format is AVC audio encoding.
In an optional manner of this embodiment, determining whether the file format of the first video file to be stored meets a preset condition includes:
and determining whether the file format of the first video file to be stored meets a preset condition or not through the VLC video playing plug-in.
In the embodiment of the application, whether the file format of the video file meets the preset condition can be judged through the VLC video playing plug-in.
In an optional manner of this embodiment, format conversion is performed on the first video file to obtain a second video file, including:
and performing format conversion on the first video file through ffmpeg. Exe to obtain a second video file.
In this embodiment of the present application, the format conversion may be performed on the first video file by ffmpeg. Exe, specifically, the first video file may be converted into an MP4 file, and the video encoding format of the video file may be converted into H264 video encoding or AVC video encoding, and the audio encoding format may be converted into AVC audio encoding.
In an optional manner of this embodiment, determining whether the moov data is located behind mdat data in the file data of the second video archive file includes:
it is determined by mp4info.exe whether the position of moov data in the file data of the second video archive file is behind mdat data.
In this embodiment of the present application, the file data of the second video archive file may be checked through mp4info. Exe, to determine whether the moov data in the file data of the second video archive file is located behind mdat data.
In an optional manner of this embodiment, performing data conversion on the second video archive file to obtain a third video archive file includes:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data to obtain a third video archive file.
In this embodiment of the present invention, for a video file in which the moov data is located at the back of mdat data in the file data, the file data of the video file may be converted, so that the moov data is located at the front of mdat data in the file data.
In actual use, the location of moov data in the file data of the second video archive file may be converted to the front of mdat data by ffmpeg.
Based on the same principle as the method shown in fig. 1, fig. 2 shows a schematic structural diagram of a storage device for video files according to an embodiment of the present application, and as shown in fig. 2, the storage device 20 for video files may include:
a file format determining module 210, configured to determine whether a file format of a first video file to be stored meets a preset condition;
the file format conversion module 220 is configured to perform format conversion on the first video file to obtain a second video file when the file format of the first video file does not meet a preset condition;
a file data determining module 230, configured to determine whether the moov data is located behind mdat data in the file data of the second video archive file;
the video archive storage module 240 is configured to, when the moov data is located at the back of mdat data, perform data conversion on the second video archive file to obtain a third video archive file, and send the third video archive file to the video archive provider, so that the video archive provider associates the streaming information of the first video archive with the third video archive file and then sends the streaming information to the archive manager, so that the archive manager stores the streaming information in association with the third video archive file.
According to the device provided by the embodiment of the application, whether the file format of the video file to be stored meets the preset condition or not is determined, and file format conversion is performed on the video file to be stored, wherein the file format of the video file to be stored does not meet the preset condition; and determining whether the moov data position in the file data of the video file to be stored is behind the mdat data, converting the file data of the video file to be stored, of which the moov data position is behind the mdat data, transmitting the file format converted and the file data converted file to be stored to a video file provider, associating the streaming information of the file to be stored with the file to be stored, and transmitting the streaming information to a file manager, wherein the file manager stores the streaming information in association with the video file. Based on the scheme, after the video files to be stored in the file management system are subjected to file format conversion and file data conversion respectively, the video files to be stored can be normally played by the IE browser, so that the file management system is ensured to be capable of carrying out centralized and unified management on various video files, and the video files are normally played by the IE browser when the video files are called by a user, and the use requirement of the user is met.
Optionally, the file format determining module is specifically configured to:
determining whether a first video file to be stored belongs to an MP4 file;
determining whether the video encoding format of the first video archive is H264 video encoding or AVC video encoding; the method comprises the steps of,
it is determined whether the audio encoding format of the first video archive is AVC audio encoding.
Optionally, the file format determining module is specifically configured to:
and determining whether the file format of the first video file to be stored meets a preset condition or not through the VLC video playing plug-in.
Optionally, the file format conversion module is specifically configured to:
and performing format conversion on the first video file through ffmpeg. Exe to obtain a second video file.
Optionally, the file data determining module is specifically configured to:
it is determined by mp4info.exe whether the position of moov data in the file data of the second video archive file is behind mdat data.
Optionally, the video archive storage module is specifically configured to, when performing data conversion on the second video archive to obtain the third video archive:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data to obtain a third video archive file.
Optionally, the video archive storage module is specifically configured to, when converting the moov data position in the file data of the second video archive file to the front of mdat data to obtain the third video archive file:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data through ffmpeg.
It will be appreciated that the above modules of the storage device for video files in this embodiment have the function of implementing the corresponding steps of the storage method for video files in the embodiment shown in fig. 1. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For a functional description of each module of the above-mentioned storage device for video files, reference may be made specifically to a corresponding description of a storage method for video files in the embodiment shown in fig. 1, which is not repeated herein.
The embodiment of the application provides electronic equipment, which comprises a processor and a memory;
a memory for storing operation instructions;
and the processor is used for executing the video file storage method provided in any embodiment of the application by calling the operation instruction.
As an example, fig. 3 shows a schematic structural diagram of an electronic device to which the embodiment of the present application is applied, and as shown in fig. 3, the electronic device 2000 includes: a processor 2001 and a memory 2003. The processor 2001 is coupled to a memory 2003, such as via a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that, in practical applications, the transceiver 2004 is not limited to one, and the structure of the electronic device 2000 is not limited to the embodiments of the present application.
The processor 2001 is applied in the embodiment of the present application, and is used to implement the method shown in the method embodiment. The transceiver 2004 may include a receiver and a transmitter, and the transceiver 2004 is employed in embodiments of the present application to perform functions that enable the electronic device of embodiments of the present application to communicate with other devices.
The processor 2001 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 2002 may include a path to transfer information between the components. Bus 2002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The bus 2002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The Memory 2003 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
Optionally, a memory 2003 is used for storing application code for executing the aspects of the present application and is controlled for execution by the processor 2001. Processor 2001 is operative to execute application code stored in memory 2003 to implement the method of storing video files provided in any of the embodiments of the present application.
The electronic device provided in the embodiment of the present application is applicable to any embodiment of the foregoing method, and is not described herein again.
Compared with the prior art, the embodiment of the application provides the electronic equipment, which performs file format conversion on the video files to be stored, wherein the file formats of the video files to be stored do not meet preset conditions by determining whether the file formats of the video files to be stored meet the preset conditions; and determining whether the moov data position in the file data of the video file to be stored is behind the mdat data, converting the file data of the video file to be stored, of which the moov data position is behind the mdat data, transmitting the file format converted and the file data converted file to be stored to a video file provider, associating the streaming information of the file to be stored with the file to be stored, and transmitting the streaming information to a file manager, wherein the file manager stores the streaming information in association with the video file. Based on the scheme, after the video files to be stored in the file management system are subjected to file format conversion and file data conversion respectively, the video files to be stored can be normally played by the IE browser, so that the file management system is ensured to be capable of carrying out centralized and unified management on various video files, and the video files are normally played by the IE browser when the video files are called by a user, and the use requirement of the user is met.
The present application provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the method for storing a video file as shown in the method embodiment described above.
The computer readable storage medium provided in the embodiments of the present application is applicable to any one of the embodiments of the above method, and is not described herein again.
Compared with the prior art, the embodiment of the application provides a computer readable storage medium, which is used for carrying out file format conversion on a video file to be stored, wherein the file format of the video file to be stored does not meet preset conditions by determining whether the file format of the video file to be stored meets the preset conditions; and determining whether the moov data position in the file data of the video file to be stored is behind the mdat data, converting the file data of the video file to be stored, of which the moov data position is behind the mdat data, transmitting the file format converted and the file data converted file to be stored to a video file provider, associating the streaming information of the file to be stored with the file to be stored, and transmitting the streaming information to a file manager, wherein the file manager stores the streaming information in association with the video file. Based on the scheme, after the video files to be stored in the file management system are subjected to file format conversion and file data conversion respectively, the video files to be stored can be normally played by the IE browser, so that the file management system is ensured to be capable of carrying out centralized and unified management on various video files, and the video files are normally played by the IE browser when the video files are called by a user, and the use requirement of the user is met.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of storing a video archive, comprising:
determining whether a file format of a first video file to be stored meets a preset condition;
if not, performing format conversion on the first video file to obtain a second video file;
determining whether a position of moov data in file data of the second video archive file is behind mdat data;
if the moov data is located behind mdat data, performing data conversion on the second video archive file to obtain a third video archive file, and sending the third video archive file to a video archive provider, so that the video archive provider associates the streaming information of the first video archive with the third video archive file and then sends the streaming information to an archive manager, and the archive manager stores the streaming information in association with the third video archive file.
2. The method of claim 1, wherein determining whether the file format of the first video archive to be stored meets a preset condition comprises:
determining whether a first video file to be stored belongs to an MP4 file;
determining whether the video coding format of the first video archive is H264 video coding or AVC video coding; the method comprises the steps of,
it is determined whether an audio encoding format of the first video archive is AVC audio encoding.
3. The method of claim 1, wherein determining whether the file format of the first video archive to be stored meets a preset condition comprises:
and determining whether the file format of the first video file to be stored meets a preset condition or not through the VLC video playing plug-in.
4. The method of claim 1, wherein said converting the format of the first video file to obtain a second video file comprises:
and performing format conversion on the first video file through ffmpeg. Exe to obtain a second video file.
5. The method of claim 1, wherein determining whether the location of moov data in the file data of the second video archive is subsequent to mdat data comprises:
and determining whether the moov data in the file data of the second video archive file is positioned behind mdat data or not through mp4info.
6. The method of claim 1, wherein the converting the second video archive data to a third video archive comprises:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data to obtain a third video archive file.
7. The method of claim 6, wherein said converting the moov data position in the file data of the second video archive to the front of mdat data to obtain a third video archive includes:
and converting the position of moov data in the file data of the second video archive file to the front of mdat data through ffmpeg.exe to obtain a third video archive file.
8. A storage device for video files, comprising:
the file format determining module is used for determining whether the file format of the first video file to be stored meets preset conditions;
the file format conversion module is used for carrying out format conversion on the first video file to obtain a second video file when the file format of the first video file does not meet the preset condition;
a file data determining module, configured to determine whether a moov data position in file data of the second video archive file is behind mdat data;
and the video archive storage module is used for carrying out data conversion on the second video archive file to obtain a third video archive file when the position of the moov data is positioned behind the mdat data, and sending the third video archive file to a video archive provider so that the video archive provider can associate the streaming information of the first video archive with the third video archive file and then send the streaming information to an archive manager so that the archive manager can store the streaming information in association with the third video archive file.
9. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is configured to execute the method of any one of claims 1-7 by invoking the operation instruction.
10. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-7.
CN202010754281.5A 2020-07-30 2020-07-30 Video file storage method and device, electronic equipment and readable storage medium Active CN112069356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010754281.5A CN112069356B (en) 2020-07-30 2020-07-30 Video file storage method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010754281.5A CN112069356B (en) 2020-07-30 2020-07-30 Video file storage method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112069356A CN112069356A (en) 2020-12-11
CN112069356B true CN112069356B (en) 2024-03-22

Family

ID=73656813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010754281.5A Active CN112069356B (en) 2020-07-30 2020-07-30 Video file storage method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112069356B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019121963A1 (en) * 2017-12-22 2019-06-27 Canon Kabushiki Kaisha Prioritized transmission of predetermined portions of encapsulated media content
CN110545456A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Synchronous playing method and device of media files and storage medium
CN110545491A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Network playing method, device and storage medium of media file
CN111083410A (en) * 2019-12-30 2020-04-28 珠海全志科技股份有限公司 Audio and video stream processing method and device for DVR

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2538997A (en) * 2015-06-03 2016-12-07 Nokia Technologies Oy A method, an apparatus, a computer program for video coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019121963A1 (en) * 2017-12-22 2019-06-27 Canon Kabushiki Kaisha Prioritized transmission of predetermined portions of encapsulated media content
CN110545456A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Synchronous playing method and device of media files and storage medium
CN110545491A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Network playing method, device and storage medium of media file
CN111083410A (en) * 2019-12-30 2020-04-28 珠海全志科技股份有限公司 Audio and video stream processing method and device for DVR

Also Published As

Publication number Publication date
CN112069356A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN108989885B (en) Video file transcoding system, segmentation method, transcoding method and device
CN102710789B (en) Interaction method, system and device for data between intelligent terminals
CN108377406B (en) Method and device for adjusting sound and picture synchronization
CN110401858B (en) Video playing method and device, electronic equipment and storage medium
CN104572966A (en) Zip file unzipping method and device
US20170168660A1 (en) Voice bullet screen generation method and electronic device
CN111093094A (en) Video transcoding method, device and system, electronic equipment and readable storage medium
CN113225538A (en) Monitoring video playing method and device and service equipment
CN103945284A (en) Information processing method and information processing device
CN108230487A (en) The method and apparatus of shared camera resource
CN112069356B (en) Video file storage method and device, electronic equipment and readable storage medium
CN116261021B (en) Video stream playing method and device, electronic equipment and storage medium
CN111918074A (en) Live video fault early warning method and related equipment
CN107342981B (en) Sensor data transmission method and device and virtual reality head-mounted equipment
CN114257879B (en) Method and system for playing video
CN113055350B (en) Data transmission method, device, equipment and readable storage medium
CN110309662A (en) Acoustic signal processing method, electronic equipment, server and storage medium
JP2005110024A (en) Data transmitter, data transmission/reception system, and data transmission/reception method
JP7104819B1 (en) Video data transmission device, video data transmission program and video data transmission method
CN113747200B (en) Video processing method and device, electronic equipment and readable storage medium
CN114422831B (en) Media playing method and device, electronic equipment and readable storage medium
CN113225583B (en) Cloud game progress processing method and device and electronic equipment
CN114363221B (en) Heartbeat detection method, storage medium, electronic equipment and system based on micro-service system
US20230089154A1 (en) Virtual and index assembly for cloud-based video processing
CN115098442B (en) Intelligent automobile dynamic photo generation, conversion and analysis method and system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220907

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant