[go: up one dir, main page]

CN112053707B - Recording method and device for multimedia equipment, storage medium and electronic device - Google Patents

Recording method and device for multimedia equipment, storage medium and electronic device Download PDF

Info

Publication number
CN112053707B
CN112053707B CN202010948179.9A CN202010948179A CN112053707B CN 112053707 B CN112053707 B CN 112053707B CN 202010948179 A CN202010948179 A CN 202010948179A CN 112053707 B CN112053707 B CN 112053707B
Authority
CN
China
Prior art keywords
recording
target
burning
task
content
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
CN202010948179.9A
Other languages
Chinese (zh)
Other versions
CN112053707A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202010948179.9A priority Critical patent/CN112053707B/en
Publication of CN112053707A publication Critical patent/CN112053707A/en
Application granted granted Critical
Publication of CN112053707B publication Critical patent/CN112053707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B7/00Recording or reproducing by optical means, e.g. recording using a thermal beam of optical radiation by modifying optical properties or the physical structure, reproducing using an optical beam at lower power by sensing optical properties; Record carriers therefor
    • G11B7/004Recording, reproducing or erasing methods; Read, write or erase circuits therefor
    • G11B7/0045Recording
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B2020/10833Copying or moving data from one record carrier to another

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention provides a recording method and a device of multimedia equipment, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a burning instruction issued by a target platform and used for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction; determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file; and instructing the multimedia device to burn the content to be burned according to a burning mode matched with the target burning task, and solving the problems that a proper burning mode can not be selected according to the data to be burned of the target event and the like in the related technology by adopting the technical scheme.

Description

Recording method and device for multimedia equipment, storage medium and electronic device
Technical Field
The invention relates to the field of digital trial, in particular to a recording method and device of multimedia equipment, a storage medium and an electronic device.
Background
The trial digital video recorder is a video recording device which is used in the trial process and takes a hard disk as a storage medium, can store the trial video in the hard disk, and synchronously records the video data into an optical disk through a CD-ROM of the device.
In the related technology, a method and a device for video direct-cut fault tolerance in a digital hard disk video recorder are disclosed, wherein the technical scheme mainly comprises the steps of caching code stream data into a cache file, and when a recording error occurs, recording the code stream data into a new disk again; however, due to the requirement for recording stability, recording speed is often conservative, and a fast recording speed cannot be selected, so that related technologies execute a recording task by acquiring a real-time code stream during normal recording.
However, due to the continuous evolution of the interrogation device, the technology is continuously updated, the resolution and the code stream of the monitoring device are continuously improved, and an application scene of a mixed video (that is, video code streams of a plurality of channels are resynthesized into one channel) appears, the resolution and the code stream channel of the mixed video are more than files needing buffering compared with ordinary videos, so that the code stream needing to be recorded with data is too large, even the code stream size is far higher than the recording speed, and the recorded data is missed and lost.
Aiming at the problems that in the related technology, a proper recording mode cannot be selected according to the data to be recorded of a target event and the like, an effective technical scheme is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a recording method and device of multimedia equipment, a storage medium and an electronic device, which at least solve the problems that in the related art, a proper recording mode cannot be selected according to data to be recorded of a target event and the like.
The embodiment of the invention provides a recording method of multimedia equipment, which comprises the following steps: receiving a burning instruction issued by a target platform and used for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction; determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file; and instructing the multimedia equipment to burn the content to be burned according to a burning mode matched with the target burning task.
Optionally, determining a burning mode matched with the target burning task in the process of executing the target burning task includes: acquiring the recording speed of the multimedia equipment and the current code stream size of the target event; comparing the recording speed with the current code stream to obtain a comparison result; and determining a burning mode matched with the target burning task according to the comparison result.
Optionally, determining a burning mode matched with the target burning task according to the comparison result includes: under the condition that the comparison result indicates that the burning speed is larger than the size of the generated current code stream, determining that a burning mode matched with the target burning task is an internal memory burning mode, wherein the internal memory burning mode is used for indicating to obtain the content to be burned from an internal memory; and under the condition that the comparison result indicates that the burning speed is less than or equal to the size of the generated current code stream, determining that the burning mode matched with the target burning task is a video file burning mode, wherein the video file burning mode is used for indicating to acquire the content to be burned from a predetermined video file.
Optionally, after the target recording task is executed and a recording mode matched with the target recording task is selected, the method further includes: under the condition that the burning process of the target burning task is abnormal, acquiring the task content of the target burning task with the abnormal burning process; and executing the target burning task with abnormal burning process again according to the task content to recover.
Optionally, after determining a burning mode matched with the target burning task in the process of executing the target burning task, the method further includes: under the condition that the recording mode is determined to be that the content to be recorded is obtained from the memory, obtaining a recording time period corresponding to the target recording task; under the condition that the content to be recorded corresponding to the recording time period is located in the memory, directly obtaining the content to be recorded from the memory for recording; and under the condition that the content to be recorded corresponding to the recording time period is not located in the memory, acquiring a video file corresponding to the recording time period, and recording according to the video file.
Optionally, after determining a burning mode matched with the target burning task in the process of executing the target burning task, the method further includes: reading a first video file from a plurality of video files for recording under the condition that the recording mode is determined to be the condition of acquiring the content to be recorded from the predetermined video file; and determining whether the time of the last frame of data of the first video file is in the plurality of video files, and selecting a second video file corresponding to the time of the last frame of data to continue burning under the condition that the time of the last frame of data is in the plurality of video files.
Optionally, after the target recording task of the target event is established according to the recording command, the method further includes: judging whether a target recording instruction of the optical disc exists in the received recording instruction, wherein the target recording instruction is used for indicating that the identification information corresponding to the target recording task is recorded at the target position of the optical disc; and recording the identification information at the target position of the optical disc in response to the target recording instruction.
According to another embodiment of the present invention, there is also provided a recording apparatus for a multimedia device, including: the recording system comprises an establishing module, a recording module and a recording module, wherein the establishing module is used for receiving a recording instruction which is issued by a target platform and used for recording a target event, and establishing a target recording task corresponding to the target event according to the recording instruction; a first determining module, configured to determine a burning mode matched with the target burning task in the process of executing the target burning task, where the burning mode at least includes one of: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file; and the indicating module is used for indicating the multimedia equipment to record the content to be recorded according to a recording mode matched with the target recording task.
Optionally, the first determining module is further configured to obtain a recording speed of the multimedia device and a current code stream size of the target event; comparing the recording speed with the current code stream to obtain a comparison result; and determining a burning mode matched with the target burning task according to the comparison result.
Optionally, the first determining module is further configured to determine, when the comparison result indicates that the recording speed is greater than the size of the generated current code stream, that a recording mode matched with the target recording task is an internal memory recording mode, where the internal memory recording mode is used to indicate that the content to be recorded is obtained from an internal memory; and under the condition that the comparison result indicates that the burning speed is less than or equal to the size of the generated current code stream, determining that the burning mode matched with the target burning task is a video file burning mode, wherein the video file burning mode is used for indicating to acquire the content to be burned from a predetermined video file.
Optionally, the apparatus further comprises: the recovery module is used for acquiring the task content of the target recording task with abnormal recording process under the condition that the recording process of the target recording task is abnormal; and executing the target burning task with abnormal burning process again according to the task content to recover.
Optionally, the apparatus further comprises: a second determining module, configured to obtain a burning time period corresponding to the target burning task when it is determined that the burning manner is to obtain the content to be burned from the memory; under the condition that the content to be recorded corresponding to the recording time period is located in the memory, directly obtaining the content to be recorded from the memory for recording; and under the condition that the content to be recorded corresponding to the recording time period is not located in the memory, acquiring a video file corresponding to the recording time period, and recording according to the video file.
Optionally, the apparatus further comprises: a third determining module, configured to read the first video file from the multiple video files for recording when it is determined that the recording manner is to obtain the content to be recorded from the predetermined video file; and determining whether the time of the last frame of data of the first video file is in the plurality of video files, and selecting a second video file corresponding to the time of the last frame of data to continue burning under the condition that the time of the last frame of data is in the plurality of video files.
Optionally, the apparatus further comprises: a judging module, configured to judge whether a target recording instruction of the optical disc exists in the received recording instruction, where the target recording instruction is used to instruct recording of identification information corresponding to the target recording task at a target position of the optical disc; and recording the identification information at the target position of the optical disc in response to the target recording instruction.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a burning instruction which is issued by a target platform and used for burning a target event is received, and a target burning task corresponding to the target event is established according to the burning instruction; determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file; the multimedia device is instructed to burn the content to be burned according to the burning mode matched with the target burning task, namely the content to be burned of the target event is burned according to the target event matching burning mode by establishing the target burning task of the target event.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a recording method of a multimedia device according to an embodiment of the present invention;
FIG. 2 is a flowchart of a recording method of a multimedia device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a recording fault tolerant system of an interrogation apparatus according to an alternative embodiment of the present invention;
FIG. 4 is a flowchart illustrating a recording fault-tolerant method for an interrogation device according to an alternative embodiment of the present invention;
FIG. 5 is a flowchart illustrating a recording fault-tolerant method for an interrogation device using a memory recording method according to an alternative embodiment of the present invention;
FIG. 6 is a flowchart illustrating a recording fault-tolerant method for an interrogation device using a recording method for a video file according to an alternative embodiment of the present invention;
fig. 7 is a block diagram of a recording apparatus of a multimedia device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking the example of running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a recording method of a multimedia device according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1. The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the recording method of the multimedia device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
According to an embodiment of the present invention, there is provided a recording method of a multimedia device, applied to the computer terminal, and fig. 2 is a flowchart of the recording method of the multimedia device according to the embodiment of the present invention, as shown in fig. 2, including:
step S202, receiving a burning instruction issued by a target platform and used for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction;
step S204, determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file;
step S206, instructing the multimedia device to burn the content to be burned according to the burning mode matched with the target burning task.
Receiving a burning instruction which is issued by a target platform and used for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction; determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file; the multimedia device is instructed to burn the content to be burned according to the burning mode matched with the target burning task, namely the content to be burned of the target event is burned according to the target event matching burning mode by establishing the target burning task of the target event.
It should be noted that the size of the code stream is determined according to the number of files of audio and video data generated by the multimedia device; the recording speed is the processing speed of the multimedia equipment for the data to be recorded; the target platform is a task platform that can be used to distribute one or more multimedia devices, which is not limited by the invention.
The foregoing step S204 determines that there are multiple recording modes matching the target recording task, and in an optional embodiment, the following scheme may be implemented: acquiring the recording speed of the multimedia equipment and the current code stream size of the target event; comparing the recording speed with the current code stream to obtain a comparison result; and determining a burning mode matched with the target burning task according to the comparison result.
That is to say, when the multimedia device executes a corresponding target recording task established according to a recording instruction issued by the target platform, the recording of the target event corresponding to the target recording task is executed by selecting a corresponding recording mode according to a comparison result by obtaining the recording speed of the multimedia device and the current code stream size of the data to be recorded generated by the target event and comparing the size relationship between the two.
In an exemplary embodiment, determining the recording mode matching the target recording task according to the comparison result includes: under the condition that the comparison result indicates that the burning speed is larger than the size of the generated current code stream, determining that a burning mode matched with the target burning task is an internal memory burning mode, wherein the internal memory burning mode is used for indicating to obtain the content to be burned from an internal memory; and under the condition that the comparison result indicates that the burning speed is less than or equal to the size of the generated current code stream, determining that the burning mode matched with the target burning task is a video file burning mode, wherein the video file burning mode is used for indicating to acquire the content to be burned from a predetermined video file.
For example, when the recording speed is greater than the size of the generated code stream, a memory recording mode is executed, that is, the content to be recorded is obtained from the memory for recording; when the recording speed is less than or equal to the size of the generated code stream, the recording mode of the video file is selected, namely the content to be recorded is obtained from the predetermined video file for recording, and the two recording modes can be flexibly converted according to the comparison result of the recording speed and the size of the code stream.
Optionally, after the target recording task is executed and a recording mode matched with the target recording task is selected, the method further includes: under the condition that the burning process of the target burning task is abnormal, acquiring the task content of the target burning task with the abnormal burning process; and executing the target burning task with abnormal burning process again according to the task content to recover.
That is to say, an abnormality occurs in the process of recording the target event corresponding to the target recording task, the target event cannot be recorded, at this time, the abnormality can be recorded by the target recording task, meanwhile, some operation instructions for the multimedia device in the process of recording the target event can be recorded by the target recording task and executed, and further, the target event with the abnormality can be recovered by the target recording task.
Optionally, after determining a burning mode matched with the target burning task in the process of executing the target burning task, the method further includes: under the condition that the recording mode is determined to be that the content to be recorded is obtained from the memory, obtaining a recording time period corresponding to the target recording task; under the condition that the content to be recorded corresponding to the recording time period is located in the memory, directly obtaining the content to be recorded from the memory for recording; and under the condition that the content to be recorded corresponding to the recording time period is not located in the memory, acquiring a video file corresponding to the recording time period, and recording according to the video file.
That is, after matching the recording mode for the target event according to the target recording task, when it is determined that the target event needs to execute the recording mode for obtaining the content to be recorded from the memory, the recording time period of the target event is determined according to the target recording task, and then the start-stop time for recording the target event can be obtained.
Optionally, after determining a burning mode matched with the target burning task in the process of executing the target burning task, the method further includes: reading a first video file from a plurality of video files for recording under the condition that the recording mode is determined to be the condition of acquiring the content to be recorded from the predetermined video file; and determining whether the time of the last frame of data of the first video file is in the plurality of video files, and selecting a second video file corresponding to the time of the last frame of data to continue burning under the condition that the time of the last frame of data is in the plurality of video files.
That is, when the recording mode of the target event is determined according to the target recording task, the content to be recorded is obtained from the predetermined video file for recording, the first video file which is used as the initial recording is obtained from the plurality of video files existing in the video file for recording, and in order to ensure that the video files can be well continuous after recording, after the recording of the first video file is completed, the position information of the time of the last frame data of the first video file at the position of the plurality of video files is judged, the second video file corresponding to the time is selected for recording, and the continuity of the recorded files is further ensured.
Optionally, after the target recording task of the target event is established according to the recording command, the method further includes: judging whether a target recording instruction of the optical disc exists in the received recording instruction, wherein the target recording instruction is used for indicating that the identification information corresponding to the target recording task is recorded at the target position of the optical disc; and recording the identification information at the target position of the optical disc in response to the target recording instruction.
In short, in order to make the optical disc recording the target event easier to be identified, the recording instruction issued by the target platform may further include information for recording the identification information corresponding to the target recording task at the target position of the optical disc, and further, when the target event is recorded by the multimedia device, the identification information related to the target event is recorded at the target position on the optical disc which is convenient to be identified.
The following explains the flow of the recording method of the multimedia device with reference to several alternative embodiments, but is not intended to limit the technical solution of the embodiments of the present invention.
An alternative embodiment of the present invention provides a recording fault-tolerant system for an interrogation device, and fig. 3 is a schematic diagram of a recording fault-tolerant system for an interrogation device according to an alternative embodiment of the present invention, including: a video storage module 32, a memory cache module 34, a recording module 36, and a management platform 38.
The video storage module 32: the system is used for storing audio and video data generated by an audition hard disk video recorder device or a front-end monitoring camera (which is equivalent to the multimedia device in the embodiment of the invention); for each recording task (corresponding to the target recording task in the embodiment of the present invention), other commands related to the operation related to the current recording of the optical disc are also recorded in the record.
Optionally, the recording of the recording task may include command information of recording case-related information content on the cover of the optical disc.
The memory cache module 34: the method is used for caching audio and video data generated by the trial video recorder equipment or the front-end monitoring camera for a certain time (such as 30s) in the memory. The memory cache only caches the audio and video data at a certain time recently.
It should be noted that the buffering time may be set according to the actual needs of the user, which is not limited in this embodiment of the present invention.
The recording module 36: the method is used for recording the audio and video data generated by the trial video recorder equipment or the front-end monitoring camera on the optical disk.
Management platform 38 (equivalent to the target platform in the present embodiment): and the platform is used for carrying out unified scheduling management on the trial video recorder equipment or the front-end monitoring camera.
In an optional embodiment of the present invention, when the centralized recording is not adopted, the video storage module 32, the memory cache module 34, and the recording module 36 may be inside the same interrogation hard disk recorder device; when the centralized recording is adopted, the recording storage module 32 may be inside the trial hard disk recorder device, and the memory cache module 34 and the recording module 36 may be inside the centralized recording cabinet. The recording module 36 and the video storage module 32 can communicate (e.g., network communication), so as to realize information interaction between the recording module 36 and the video storage module 32, so as to report recording abnormality occurring in the recording task, query recording conditions of the video file, acquire information generated by transmitting video data and sending a signal to prompt the video file to be packaged as soon as possible, and the like.
An alternative embodiment of the present invention further provides a recording fault-tolerant method for an interrogation device, as shown in fig. 4, the specific steps are as follows:
firstly, a platform issues a burning command to an interrogation hard disk video recorder device;
step two, trial video recorder equipment establishes records including the start and stop time of recording for the recording task;
when the platform issues other commands related to the recording operation, the commands related to the recording operation are also recorded into the recording task, such as a command for recording the related information content of the record on the cover of the optical disc.
Thirdly, judging the size of the generated code stream and the recording speed by the trial video recorder equipment, and determining a default recording mode;
when the recording speed is larger than the generated code stream size, a memory recording mode is adopted by default, and code stream data is acquired from a memory cache module by default for recording; when the recording speed is less than or equal to the size of the generated code stream, a video file recording mode is adopted by default, and then code stream data is continuously acquired from the video file generated by packaging for recording, so that the stability of data recording is ensured; that is, under the condition of using the video file recording mode, when the size of the code stream is lower than the recording speed, since the data of the code stream is generated too fast, if the video file recording mode is switched to the internal memory recording mode, the situation that the recording is not in time may occur, and then the video file recording mode is switched back, therefore, in order to ensure the stability of the data recording and facilitate the management, the video file recording mode is continuously maintained.
It should be noted that, considering the security of the trial video file, the video file generated by the trial hard disk recorder device is often generated after a certain delay, which is not limited by the optional embodiment of the present invention.
And step four, judging that the recording mode is the internal memory recording mode by the trial video recorder equipment, and directly starting to fetch the audio and video data for recording from the corresponding initial time in the internal memory buffer module within the data of the internal memory buffer module at the recording time. If the recording time is not in the data of the memory buffer module, the recording file with the corresponding time needs to be inquired or waited for being generated by packaging, and the audio and video data is read from the packaged file for recording. And after reading a file, comparing the time of the last frame of video data, judging whether the time is in the data of the memory buffer module, and if so, switching to obtain the audio and video data from the memory buffer module for recording. If not, continuing searching and waiting for the packaging generation of the subsequent video files, if the subsequent video files are not generated at the moment, simultaneously triggering a signal to enable a video packaging module to judge whether the video files are suitable for packaging generation, and if so, generating the video packaging files as soon as possible;
if the recording mode of the video file is judged in the last step, the mode of obtaining the audio and video data from the video file for recording is continuously adopted, and similarly, when one video file is read, if the subsequent video file is not generated at the moment, a signal is triggered at the same time, so that the video packaging module judges whether the video file is suitable for packaging and generating, and if so, the video packaging file is generated as soon as possible.
It should be noted that the recording command has a recording start/stop time, if the start time is empty, it indicates that recording is started from the current time, and if the stop time is empty, it indicates that recording is stopped only when the recording stop command is received.
And step five, when the recording is abnormal, replacing a new recording optical disk by the user, and executing the related recording operation according to the recording task at this time, namely executing the step three to the step four. At the same time, the operation command, such as the command for recording case-related information onto the cover of the optical disc, is executed according to the other command offset time related to the operation for recording the optical disc recorded in the recording task. And the recording process before the complete copying can ensure the consistency of the recorded data.
Optionally, the above flow method is also applicable to a centralized recording method.
It should be noted that the platform may query the recording record to the trial video recorder device, and if the trial video in the record needs to be re-recorded, select the record, send a command to the trial video recorder device, and then perform a new one-time recording plan of the previously recorded recording data.
An alternative embodiment of the present invention further provides a recording fault tolerance method for an interrogation device using a memory recording method, as shown in fig. 5, specifically including the following steps:
step S502, judging whether the memory burning mode is the default burning mode;
step S504, carry out the memory and burn the way, judge and judge whether to obtain the audio and video data from the video file; when the video file is not acquired, acquiring audio and video data from the memory cache for recording and executing other recording related operations;
step S506, reading audio and video data from the video file for recording;
step S508, judge whether the recording is in error;
step S510, if the recording error is abnormal, the optical disc is put in again, and the recording task record is read to continue the recording;
step S512, completing the recording of the current video file, and determining whether to continue recording according to the selection.
An alternative embodiment of the present invention further provides a recording fault tolerance method for an interrogation device using a recording mode of a video file, as shown in fig. 6, the specific steps are as follows:
step S602, judging whether the recording mode of the video file is the default recording mode;
step S604, executing a video file recording mode, and reading audio and video data from the video file for recording;
step S606, judging whether the recording is in error;
step S608, if the recording error is abnormal, the optical disc is placed again, and the recording task record corresponding to the recording is read to continue the recording;
step S610, completing the recording of the current video file, and determining whether to continue recording according to selection; if yes, selecting to read the next video file and continuing recording; otherwise, the recording process is ended.
Through the steps, the optional embodiment of the invention determines a more reasonable recording mode through comparison of the recording speed and the size of the code stream, thereby ensuring the integrity of recorded data and the stability of the recording process, and further, because no new cache file is added, the write-in operation of redundant disk files can not be increased, and the increase of the performance burden of the disk is avoided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a recording apparatus for multimedia equipment is further provided, and the recording apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a recording apparatus of a multimedia device according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes:
the establishing module 72 is configured to receive a recording instruction issued by a target platform and used for recording a target event, and establish a target recording task corresponding to the target event according to the recording instruction;
a first determining module 74, configured to determine a recording manner matched with the target recording task in the process of executing the target recording task, where the recording manner at least includes one of: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file;
and an indicating module 76, configured to instruct the multimedia device to record the content to be recorded according to a recording manner matched with the target recording task.
Receiving a burning instruction which is issued by a target platform and used for burning a target event through the device, and establishing a target burning task corresponding to the target event according to the burning instruction; determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file; the multimedia device is instructed to burn the content to be burned according to the burning mode matched with the target burning task, namely the content to be burned of the target event is burned according to the target event matching burning mode by establishing the target burning task of the target event.
It should be noted that the size of the code stream is determined according to the number of files of audio and video data generated by the multimedia device; the recording speed is the processing speed of the multimedia equipment for the data to be recorded; the target platform is a task platform that can be used to distribute one or more multimedia devices, which is not limited by the invention.
Optionally, the first determining module is further configured to obtain a recording speed of the multimedia device and a current code stream size of the target event; comparing the recording speed with the current code stream to obtain a comparison result; and determining a burning mode matched with the target burning task according to the comparison result.
That is to say, when the multimedia device executes a corresponding target recording task established according to a recording instruction issued by the target platform, the recording of the target event corresponding to the target recording task is executed by selecting a corresponding recording mode according to a comparison result by obtaining the recording speed of the multimedia device and the current code stream size of the data to be recorded generated by the target event and comparing the size relationship between the two.
Optionally, the first determining module is further configured to determine, when the comparison result indicates that the recording speed is greater than the size of the generated current code stream, that a recording mode matched with the target recording task is an internal memory recording mode, where the internal memory recording mode is used to indicate that the content to be recorded is obtained from an internal memory; and under the condition that the comparison result indicates that the burning speed is less than or equal to the size of the generated current code stream, determining that the burning mode matched with the target burning task is a video file burning mode, wherein the video file burning mode is used for indicating to acquire the content to be burned from a predetermined video file.
For example, when the recording speed is greater than the size of the generated code stream, a memory recording mode is executed, that is, the content to be recorded is obtained from the memory for recording; when the recording speed is less than or equal to the size of the generated code stream, the recording mode of the video file is selected, namely the content to be recorded is obtained from the predetermined video file for recording, and the two recording modes can be flexibly converted according to the comparison result of the recording speed and the size of the code stream.
Optionally, the apparatus further comprises: the recovery module is used for acquiring the task content of the target recording task with abnormal recording process under the condition that the recording process of the target recording task is abnormal; and executing the target burning task with abnormal burning process again according to the task content to recover.
That is to say, an abnormality occurs in the process of recording the target event corresponding to the target recording task, the target event cannot be recorded, at this time, the abnormality can be recorded by the target recording task, meanwhile, some operation instructions for the multimedia device in the process of recording the target event can be recorded by the target recording task and executed, and further, the target event with the abnormality can be recovered by the target recording task.
Optionally, the apparatus further comprises: a second determining module, configured to obtain a burning time period corresponding to the target burning task when it is determined that the burning manner is to obtain the content to be burned from the memory; under the condition that the content to be recorded corresponding to the recording time period is located in the memory, directly obtaining the content to be recorded from the memory for recording; and under the condition that the content to be recorded corresponding to the recording time period is not located in the memory, acquiring a video file corresponding to the recording time period, and recording according to the video file.
That is, after matching the recording mode for the target event according to the target recording task, when it is determined that the target event needs to execute the recording mode for obtaining the content to be recorded from the memory, the recording time period of the target event is determined according to the target recording task, and then the start-stop time for recording the target event can be obtained.
Optionally, the apparatus further comprises: a third determining module, configured to read the first video file from the multiple video files for recording when it is determined that the recording manner is to obtain the content to be recorded from the predetermined video file; and determining whether the time of the last frame of data of the first video file is in the plurality of video files, and selecting a second video file corresponding to the time of the last frame of data to continue burning under the condition that the time of the last frame of data is in the plurality of video files.
That is, when the recording mode of the target event is determined according to the target recording task, the content to be recorded is obtained from the predetermined video file for recording, the first video file which is used as the initial recording is obtained from the plurality of video files existing in the video file for recording, and in order to ensure that the video files can be well continuous after recording, after the recording of the first video file is completed, the position information of the time of the last frame data of the first video file at the position of the plurality of video files is judged, the second video file corresponding to the time is selected for recording, and the continuity of the recorded files is further ensured.
Optionally, the apparatus further comprises: a judging module, configured to judge whether a target recording instruction of the optical disc exists in the received recording instruction, where the target recording instruction is used to instruct recording of identification information corresponding to the target recording task at a target position of the optical disc; and recording the identification information at the target position of the optical disc in response to the target recording instruction.
In short, in order to make the optical disc recording the target event easier to be identified, the recording instruction issued by the target platform may further include information for recording the identification information corresponding to the target recording task at the target position of the optical disc, and further, when the target event is recorded by the multimedia device, the identification information related to the target event is recorded at the target position on the optical disc which is convenient to be identified.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a burning instruction issued by a target platform for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction;
s2, determining a recording mode matched with the target recording task in the process of executing the target recording task, wherein the recording mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file;
and S3, instructing the multimedia device to record the content to be recorded according to the recording mode matched with the target recording task.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a burning instruction issued by a target platform for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction;
s2, determining a recording mode matched with the target recording task in the process of executing the target recording task, wherein the recording mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file;
and S3, instructing the multimedia device to record the content to be recorded according to the recording mode matched with the target recording task.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for recording in a multimedia device, comprising:
receiving a burning instruction issued by a target platform and used for burning a target event, and establishing a target burning task corresponding to the target event according to the burning instruction;
determining a burning mode matched with the target burning task in the process of executing the target burning task, wherein the burning mode at least comprises one of the following modes: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file;
instructing the multimedia device to burn the content to be burned according to a burning mode matched with the target burning task, wherein determining the burning mode matched with the target burning task in the process of executing the target burning task comprises:
acquiring the recording speed of the multimedia equipment and the current code stream size of the target event;
comparing the recording speed with the current code stream to obtain a comparison result;
determining a recording mode matched with the target recording task according to the comparison result, wherein,
and under the condition that the comparison result indicates that the burning speed is less than or equal to the size of the generated current code stream, determining that the burning mode matched with the target burning task is a video file burning mode, wherein the video file burning mode is used for indicating to acquire the content to be burned from a predetermined video file.
2. The method of claim 1, wherein determining a recording mode matching the target recording task based on the comparison comprises:
and under the condition that the comparison result indicates that the recording speed is greater than the size of the generated current code stream, determining that the recording mode matched with the target recording task is an internal memory recording mode, wherein the internal memory recording mode is used for indicating to acquire the content to be recorded from an internal memory.
3. The method of claim 1, wherein after performing the target recording task and selecting the recording mode matching the target recording task, the method further comprises:
under the condition that the burning process of the target burning task is abnormal, acquiring the task content of the target burning task with the abnormal burning process;
and executing the target burning task with abnormal burning process again according to the task content to recover.
4. The method of claim 1, wherein after determining the recording mode matching the target recording task during the execution of the target recording task, the method further comprises:
under the condition that the recording mode is determined to be that the content to be recorded is obtained from the memory, obtaining a recording time period corresponding to the target recording task;
under the condition that the content to be recorded corresponding to the recording time period is located in the memory, directly obtaining the content to be recorded from the memory for recording;
and under the condition that the content to be recorded corresponding to the recording time period is not located in the memory, acquiring a video file corresponding to the recording time period, and recording according to the video file.
5. The method of claim 1, wherein after determining the recording mode matching the target recording task during the execution of the target recording task, the method further comprises:
reading a first video file from a plurality of video files for recording under the condition that the recording mode is determined to be the condition of acquiring the content to be recorded from the predetermined video file;
and determining whether the time of the last frame of data of the first video file is in the plurality of video files, and selecting a second video file corresponding to the time of the last frame of data to continue burning under the condition that the time of the last frame of data is in the plurality of video files.
6. The method of claim 1, wherein after establishing a target burning task for the target event according to the burning command, the method further comprises:
judging whether a target recording instruction of the optical disc exists in the received recording instruction, wherein the target recording instruction is used for indicating that the identification information corresponding to the target recording task is recorded at the target position of the optical disc;
and recording the identification information at the target position of the optical disc in response to the target recording instruction.
7. A recording apparatus for a multimedia device, comprising:
the recording system comprises an establishing module, a recording module and a recording module, wherein the establishing module is used for receiving a recording instruction which is issued by a target platform and used for recording a target event, and establishing a target recording task corresponding to the target event according to the recording instruction;
a first determining module, configured to determine a burning mode matched with the target burning task in the process of executing the target burning task, where the burning mode at least includes one of: acquiring the content to be recorded from a memory, and acquiring the content to be recorded from a predetermined video file;
the indication module is used for indicating the multimedia equipment to record the content to be recorded according to a recording mode matched with the target recording task, wherein the first determination module is also used for acquiring the recording speed of the multimedia equipment and the current code stream size of the target event; comparing the recording speed with the current code stream to obtain a comparison result; and determining a recording mode matched with the target recording task according to the comparison result, wherein the first determination module is further configured to determine that the recording mode matched with the target recording task is a video file recording mode under the condition that the comparison result indicates that the recording speed is less than or equal to the size of the generated current code stream, and the video file recording mode is used for indicating to acquire the content to be recorded from a predetermined video file.
8. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202010948179.9A 2020-09-10 2020-09-10 Recording method and device for multimedia equipment, storage medium and electronic device Active CN112053707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010948179.9A CN112053707B (en) 2020-09-10 2020-09-10 Recording method and device for multimedia equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010948179.9A CN112053707B (en) 2020-09-10 2020-09-10 Recording method and device for multimedia equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112053707A CN112053707A (en) 2020-12-08
CN112053707B true CN112053707B (en) 2021-12-17

Family

ID=73610684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010948179.9A Active CN112053707B (en) 2020-09-10 2020-09-10 Recording method and device for multimedia equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112053707B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114512151B (en) * 2021-12-28 2024-03-22 奇安信科技集团股份有限公司 Method and system for auditing, managing and controlling optical disk writing
CN115840387B (en) * 2022-11-22 2025-06-24 长沙八思量信息技术有限公司 Service marking method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055729A (en) * 2006-04-11 2007-10-17 明基电通股份有限公司 Data recording method and device
CN101059978A (en) * 2006-04-20 2007-10-24 明基电通股份有限公司 Recording speed adjustment method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11110140A (en) * 1997-10-03 1999-04-23 Matsushita Electric Ind Co Ltd Data recording device and method
US20050226605A1 (en) * 2004-04-12 2005-10-13 Wang Kun S Method and system for seamless record of real-time video and audio data
CN101055728A (en) * 2006-04-11 2007-10-17 明基电通股份有限公司 Dynamic recording method and system
CN101409098B (en) * 2008-11-12 2011-11-09 杭州海康威视数字技术股份有限公司 Method for implementing real time CD-RW of digital HD video recorder
CN104123952B (en) * 2014-07-18 2017-01-11 武汉光忆科技有限公司 Cache-free disc burning method and device
CN105575409A (en) * 2015-12-16 2016-05-11 天津天地伟业数码科技有限公司 Method for writing MP4 file into optical disc under embedded host computer
CN107103919B (en) * 2016-02-23 2019-09-17 杭州海康威视数字技术股份有限公司 A kind of method, apparatus and system imprinted CDs

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055729A (en) * 2006-04-11 2007-10-17 明基电通股份有限公司 Data recording method and device
CN101059978A (en) * 2006-04-20 2007-10-24 明基电通股份有限公司 Recording speed adjustment method and device

Also Published As

Publication number Publication date
CN112053707A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN113595788B (en) API gateway management method and device based on plug-in
CN112053707B (en) Recording method and device for multimedia equipment, storage medium and electronic device
US11032584B2 (en) Picture storage method, apparatus and video monitoring system
CN104394380A (en) Video monitoring management system and playback method of video monitoring record
CN110943862B (en) Mutual exclusion service judgment method and device, electronic equipment and storage medium
CN107040576B (en) Information pushing method and device and communication system
EP3300355B1 (en) Program recording method and device, and set top box
CN106201811A (en) The fault recovery method of application program and terminal
CN113434184A (en) Equipment upgrading method and device, storage medium and electronic device
CN111400127A (en) Service log monitoring method and device, storage medium and computer equipment
CN105786539A (en) File downloading method and device
CN118051385A (en) File management method and device
CN107635109A (en) One kind video recording player method and device
CN118626439B (en) Data archiving method and electronic equipment
CN116415028A (en) Video data re-recording method, cloud storage server, system and storage medium
CN112423098B (en) Video processing method, electronic device and storage medium
CN114245052A (en) Video data storage method and device, storage medium and electronic device
JP2008257413A (en) System that automatically detects system failure information and automatically collects, encrypts, and transmits log files during installation, normal times, and failures
CN112799910A (en) Hierarchical monitoring method and device
CN111831954A (en) Content data updating method and device, computer equipment and storage medium
KR101584286B1 (en) System for smart travel recording based on user position
CN116015425B (en) Optical module control method and device, storage medium and electronic device
CN113157497B (en) Data storage method, device, equipment and medium
CN110851430B (en) Method for storing movement track information, server and computer storage medium
CN111405313B (en) Method and system for storing streaming media data

Legal Events

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