CN109215690A - The way of recording and device - Google Patents

The way of recording and device Download PDF

Info

Publication number
CN109215690A
CN109215690A CN201710531664.4A CN201710531664A CN109215690A CN 109215690 A CN109215690 A CN 109215690A CN 201710531664 A CN201710531664 A CN 201710531664A CN 109215690 A CN109215690 A CN 109215690A
Authority
CN
China
Prior art keywords
recording file
recording
file
end instruction
court
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.)
Pending
Application number
CN201710531664.4A
Other languages
Chinese (zh)
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710531664.4A priority Critical patent/CN109215690A/en
Publication of CN109215690A publication Critical patent/CN109215690A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals

Abstract

The invention discloses a kind of way of recording and devices.This method comprises: repeating step S1 to step S3 until receiving END instruction, wherein END instruction, which is used to indicate court's trial, to be terminated: S1, establishes recording file and using recording file as target recording file;S2 by the audio data write-in target recording file in collected court trial process and carries out timing when starting write-in;S3 closes target recording file and saves, obtain the first recording file in the case where timing time reaches preset time;First recording file of all preservations is merged when receiving END instruction, obtains the second recording file by S4.Through the invention, achieved the effect that reduce court's trial recording file entirety probability of damage.

Description

The way of recording and device
Technical field
The present invention relates to recording fields, in particular to a kind of way of recording and device.
Background technique
The court's trial of case, it is few then spend more than ten minutes, it is more to be then up to four or five hours.When court's trial case is recorded at present All it is to establish a recording file, still, records for the case court's trial taken a long time, if taking simple skill Art is realized, is exactly when starting court's trial recording, a newly-built recording file is simultaneously opened, then constantly by sound in court trial process Frequency data stream is written in the recording file, at the end of court's trial, closes the recording file.The generation of entire recording file, With the generation of ordinary file, do not have difference.
Existing simple court's trial recording implementation, although can satisfy the demand of court's trial recording, the court's trial time is got over Long, recording file is naturally bigger, and the risk of recording file damage is also bigger.Court's trial is not over, and entire recording file is just not It can close, in this course, if inadequate, the final record of unknown exception or computer disk space has occurred in recorded program Sound file is just imperfect, causes recording file that can not play out.So, the audio data of entire court trial process, with regard to face Face the risk that can not be restored.
Aiming at the problem that court's trial recording file in the related technology, which is easily damaged, to restore, effective solution is not yet proposed at present Certainly scheme.
Summary of the invention
The main purpose of the present invention is to provide a kind of way of recording and devices, are easily damaged with solving court's trial recording file The problem of can not restoring.
To achieve the goals above, according to an aspect of the invention, there is provided a kind of way of recording, this method comprises: Step S1 to step S3 is repeated until receiving END instruction, wherein the END instruction, which is used to indicate court's trial, to be terminated: S1 establishes recording file and using the recording file as target recording file;S2, by the audio in collected court trial process Data are written the target recording file and carry out timing when starting write-in;S3 reaches the feelings of preset time in timing time Under condition, closes the target recording file and save, obtain the first recording file;S4, will when receiving the END instruction First recording file of all preservations merges, and obtains the second recording file.
Further, before step S3, the method also includes: do not reach preset time in the timing time In the case of, judge whether to receive the END instruction, wherein when not receiving the END instruction, step S3 is executed, It when receiving the END instruction, closes the target recording file and saves, obtain third recording file, execute step S4; Wherein, after obtaining second recording file, the method also includes: second recording file and the third are recorded Sound file mergences obtains the 4th recording file.
Further, after obtaining the 4th recording file, the method also includes: judge whether to reach preset File uplink time;When reaching the preset file uplink time, the 4th recording file is uploaded onto the server.
Further, the target recording file is being written into the audio data in collected court trial process and is being started Before carrying out timing when write-in, the method also includes: the court trial process is acquired by Windows audio session api interface In audio data;Including: by first recording file merging of all preservations will be described in all preservation by ffmpeg First recording file merges, and it includes: by FTP by the 4th recording file that the 4th recording file, which is uploaded onto the server, It uploads onto the server.
Further, after obtaining first recording file, the method also includes: according to record length to each First recording file is numbered, and obtains the number of each first recording file;By first recording file of all preservations Merging includes: to merge first recording file of all preservations according to the number, obtains second recording file.
To achieve the goals above, according to another aspect of the present invention, a kind of recording device is additionally provided, the device packet It includes: execution unit, for repeating step S1 to step S3 until receiving END instruction, wherein the END instruction is used Terminate: S1 in instruction court's trial and establishes recording file and using the recording file as target recording file;S2, will be collected Audio data in court trial process is written the target recording file and carries out timing when starting write-in;S3, in timing time In the case where reaching preset time, closes the target recording file and save, obtain the first recording file;Combining unit is used In executing step S4, first recording file of all preservations is merged when receiving the END instruction, obtains second Recording file.
Further, described device further include: the first judging unit is used for before step S3, in the timing time In the case where not reaching preset time, judge whether to receive the END instruction, wherein refer to not receiving the end It when enabling, executes step S3 and closes the target recording file when receiving the END instruction and save, obtain third record Sound file executes step S4;Wherein, the combining unit is also used to after obtaining second recording file, by described Two recording files merge with the third recording file, obtain the 4th recording file.
Further, described device further include: second judgment unit, for after obtaining the 4th recording file, Judge whether to reach preset file uplink time;Uploading unit is used for when reaching the preset file uplink time, will 4th recording file is uploaded onto the server.
To achieve the goals above, according to another aspect of the present invention, a kind of storage medium, storage medium packet are additionally provided Include the program of storage, wherein equipment where controlling the storage medium in described program operation executes recording side of the invention Method.
To achieve the goals above, according to another aspect of the present invention, a kind of processor is additionally provided, processor is for transporting Line program, wherein described program executes the way of recording of the invention when running.
The present invention is by establishing recording file and using recording file as target recording file, then by collected front yard Recording data write-in target recording file during examining and the timing when starting write-in, reach preset time in timing time In the case of, it closes recording file and saves, the first recording file is obtained, due to will be merged into after court's trial recording file piecewise acquisition One file, solving the problems, such as that court's trial recording file is easily damaged can not restore, and then reach reduction court's trial recording file The effect of whole probability of damage.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the way of recording according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the way of recording according to a second embodiment of the present invention;And
Fig. 3 is the schematic diagram of recording device according to an embodiment of the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
For ease of description, below to the invention relates to term be illustrated:
Ffmpeg: be it is a set of can be used to record, converted digital audio, video, and the open source meter of stream can be translated into Calculation machine program.
The embodiment of the invention provides a kind of ways of recording.
Fig. 1 is the flow chart of the way of recording according to a first embodiment of the present invention, as shown in Figure 1, this method includes following Step:
Step S1 to step S3 is repeated until receiving END instruction, wherein END instruction is used to indicate court's trial knot Beam: S1 establishes recording file and using recording file as target recording file;S2, by the audio in collected court trial process Data write-in target recording file simultaneously carries out timing when starting write-in;S3, in the case where timing time reaches preset time, It closes target recording file and saves, obtain the first recording file.
First recording file of all preservations is merged when receiving END instruction, obtains the second recording file by S4.
The improvement of the way of recording of the embodiment of the present invention is to be segmented entire court trial process according to certain time interval and record The recording of fragmented storage is all being merged into a file after terminating by sound storage, court's trial, the recording text as court trial process It the problem of part, can prevent one in Recording Process section of recording from going wrong causes entire file corruption that can not restore, reduces Recording file damages the probability that can not restore.
END instruction can be the instruction that instruction court's trial terminates, and END instruction can be sound pick-up outfit and receive staff After triggering scheduled mark, the END instruction of sending.Preset time can be the preset time, such as can be 15 points Clock is also possible to 30 minutes, and during audio data collecting, every preset time period establishes a recording file as target Target recording file is written, the timing when starting write-in, when timing time reaches default in the audio data of acquisition by recording file Time closes target recording file and saves, obtains the first recording file.Then restart a circulation, for example, court's trial Journey is 60 minutes, then one four the first recording files is obtained, four the first recording files are spliced into a recording file, are obtained To the second recording file.
Optionally, before step S3, in the case where timing time does not reach preset time, judge whether to receive END instruction, wherein when not receiving END instruction, step S3 is executed, when continuing to judge whether timing time reaches default Between, when receiving END instruction, illustrate that reaching a complete set period of time court's trial not yet has terminated, and closes target record Sound file simultaneously saves, and obtains third recording file, executes step S4;Wherein, after obtaining the second recording file, by the second record Sound file merges with third recording file, obtains the 4th recording file.
It optionally,, can will be complete after all recording files are merged into a file after each court's trial terminates Whole court's trial recording file, which uploads in preset file server, to be stored, to prevent from losing, when can upload setting for file Between, the time of setting can be the daily non-court's trial time, for example, the file uplink time of setting can be every night 10 Point.After obtaining the 4th recording file, judge whether to reach preset file uplink time.File upload can be every the sky Pass the same day whole court's trial recording file, can also with when each court's trial terminate after, upload the court's trial recording file just terminated.
Optionally, by the audio data write-in target recording file in collected court trial process and when starting write-in Carry out timing before, can by Windows audio session api interface (Windows Audio Session API, referred to as WASAPI the audio data in court trial process) is acquired;The first recording file merging of all preservations can be and pass through ffmpeg First recording file of all preservations is merged, in addition to the first recording file, third recording file can also by ffmpeg into Row merges, and the 4th recording file, which is uploaded onto the server, can be uploaded onto the server the 4th recording file by FTP.
Optionally, after obtaining the first recording file, each first recording file is numbered according to record length, Obtain the number of each first recording file;First recording file of all preservations is merged can be according to number by all preservations The first recording file merge, obtain the second recording file.By to obtain recording file number can splicing when it is accurate Splicing, prevents splicing sequence entanglement.
The damage of court's trial recording data effectively can be reduced to minimum by the way of recording of the embodiment of the present invention, regardless of front yard How long is the careful time, can guarantee the integrality of court's trial audio data, while worrying computer disk insufficient space without excessive.
Fig. 2 is the flow chart of the way of recording according to a second embodiment of the present invention, which can be used as above-mentioned first The preferred embodiment of embodiment, the technical solution of the embodiment of the present invention mainly include three parts, 1) recording file is raw at times At 2) recording file synthesis at times, 3) periodically packing is uploaded to file server to recording file.As shown in Fig. 2, the recording side Method includes:
Step S201 creates recording file.
Audio data is written in step S202.
The audio data in court trial process is written in newly-built recording file.
Step S203 judges whether to reach a time slice.
Judgement starts to be written to whether current time reaches a time slice, and time slice can be 15 minutes.If Judging result be it is yes, then follow the steps S205, judging result be it is no, then follow the steps S204.
Step S204, judges whether court's trial terminates.
Judge whether court's trial terminates can be to judge, if it is determined that court's trial terminates, then by whether receiving END instruction Step S205 is executed, if it has not ended, thening follow the steps S202.
Step S205 closes recording file.
If court's trial terminates, current recording file is closed.
Step S206 saves recording file.
It closes current recording file and saves current recording file later.
Step S207, judges whether court's trial terminates.
If it is judged that court's trial terminates, S208 is thened follow the steps, if it has not ended, thening follow the steps S201, is built again Vertical recording file.
Step S208 merges recording file.
After court's trial terminates, all recording files are merged into a file.
Step S209, is uploaded to file server.
The file generated after merging is uploaded to file server storage.
Whole flow process are as follows: after starting court's trial, program will create a recording file, and audio data is constantly written, (such as 15 minutes, i.e., according to one recording file of storage in every 15 minutes) may turn off recording file simultaneously after one time slice reaches It saves, the storage that 15 minutes recording file carries out audio data then will be from the beginning created, until court's trial terminates.
After court's trial, program can sequentially in time, by all recording file at times (recording file 1, recording text Part 2 ... ..., recording file n) synthesize a single big recording file.Program itself has a timed task, daily The non-court's trial time, the packing of the recording file of court's trial is uploaded to file server.
The technical solution of the embodiment of the present invention can be applied in prolonged court trial process, according to certain time interval By entire court trial process, recording storage is carried out at times, again carries out each recording file at times without suture at the end of court's trial At a complete big recording file.Finally, timing will be stored in local recording file and be uploaded to file server automatically, Discharge the disk space resource of local computer.
In this embodiment it is possible to using WASAPI, (full name is the i.e. Windows of Windows Audio Session API Audio session API) interface records.The merging of recording file is carried out using ffmpeg.Recording file is uploaded to using FTP File server.
Technical solution of the present invention is mainly used in long-time court's trial, and entire court trial process is split segmentation record Sound, in this way segment at regular intervals enable court's trial audio data to continue with regard to carrying out the generation of a court's trial recording file Progressive preserves.Each at times recording file be in time it is continuous, be again in terms of content it is relatively independent, do not do mutually It disturbs.Even if exception has occurred in some subsequent period, the recording of the period, the sound of other times section have also been only affected Frequency is according to still being able to normally preserve, thus the damage range shorter of court's trial recording data to lesser range.If The recording of entire court trial process, stores without segmentation, is only simply written to a big file, once intermediate sometime record Interval sequence is abnormal, it would be possible to lead to the damage of entire recording file.By using first subsection record, the side that finally synthesizes again Formula solves the problems, such as that entire court's trial recording file is caused to damage when occurring abnormal in long-time Recording Process.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
The embodiment of the invention provides a kind of recording device, which can be used for executing the recording side of the embodiment of the present invention Method.
Fig. 3 is the schematic diagram of recording device according to an embodiment of the present invention, as shown in figure 3, the device includes:
Execution unit 10, for repeating step S1 to step S3 until receiving END instruction, wherein END instruction Being used to indicate court's trial terminates: S1, establishes recording file and using recording file as target recording file;S2, by collected front yard Audio data during examining is written target recording file and carries out timing when starting write-in;S3 reaches pre- in timing time If in the case where the time, closing target recording file and saving, obtain the first recording file.
Combining unit 20, for executing step S4, when receiving END instruction by the first recording file of all preservations Merge, obtains the second recording file.
Optionally, the device further include: the first judging unit, for not reaching before step S3 in timing time In the case where preset time, judge whether to receive END instruction, wherein when not receiving END instruction, step S3 is executed, When receiving END instruction, closes target recording file and save, obtain third recording file, execute step S4;Wherein, it closes And unit 20 is also used to after obtaining the second recording file, and the second recording file is merged with third recording file, obtains Four recording files.
Optionally, the device further include: second judgment unit, for judging whether after obtaining the 4th recording file Reach preset file uplink time;Uploading unit is used for when reaching preset file uplink time, by the 4th recording file It uploads onto the server.
The embodiment repeats step S1 to step S3 until receiving END instruction using execution unit 10, wherein END instruction, which is used to indicate court's trial, to be terminated: S1, establishes recording file and using recording file as target recording file;S2 will be adopted Audio data in the court trial process collected is written target recording file and carries out timing when starting write-in;S3, in timing Between reach preset time in the case where, close target recording file simultaneously save, obtain the first recording file, combining unit 20 is connecing The first recording file of all preservations is merged when receiving END instruction, the second recording file is obtained, so as to prevent from recording One section of recording during sound goes wrong the problem of causing entire file corruption that can not restore, and reducing recording file damage can not The probability of recovery.
The recording device includes processor and memory, above-mentioned execution unit, combining unit, the first judging unit, Two judging units and uploading unit etc. store in memory as program unit, execute storage in memory by processor Above procedure unit realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, the probability that can not restore is damaged by adjusting kernel parameter to reduce recording file.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The existing way of recording.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The way of recording described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
Step S1 to step S3 is repeated until receiving END instruction, wherein END instruction is used to indicate court's trial knot Beam: S1 establishes recording file and using recording file as target recording file;S2, by the audio in collected court trial process Data write-in target recording file simultaneously carries out timing when starting write-in;S3, in the case where timing time reaches preset time, It closes target recording file and saves, obtain the first recording file;S4, when receiving END instruction by the first of all preservations Recording file merges, and obtains the second recording file.
In the case where timing time does not reach preset time, judge whether to receive END instruction, wherein do not connecing When receiving END instruction, step S3 is executed, when receiving END instruction, target recording file is closed and saves, obtain third Recording file executes step S4;After obtaining the second recording file, the second recording file is merged with third recording file, Obtain the 4th recording file.
After obtaining the 4th recording file, judge whether to reach preset file uplink time;Reach preset text When part uplink time, the 4th recording file is uploaded onto the server.
Target recording file is being written into audio data in collected court trial process and is being counted when starting write-in When before, pass through Windows audio session api interface acquire court trial process in audio data;By ffmpeg by all guarantors The first recording file deposited merges, and the 4th recording file is uploaded onto the server by FTP.
After obtaining the first recording file, each first recording file is numbered according to record length, is obtained every The number of a first recording file;The first recording file of all preservations is merged according to number, obtains the second recording file.This Equipment in text can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
Step S1 to step S3 is repeated until receiving END instruction, wherein END instruction is used to indicate court's trial knot Beam: S1 establishes recording file and using recording file as target recording file;S2, by the audio in collected court trial process Data write-in target recording file simultaneously carries out timing when starting write-in;S3, in the case where timing time reaches preset time, It closes target recording file and saves, obtain the first recording file;S4, when receiving END instruction by the first of all preservations Recording file merges, and obtains the second recording file.
In the case where timing time does not reach preset time, judge whether to receive END instruction, wherein do not connecing When receiving END instruction, step S3 is executed, when receiving END instruction, target recording file is closed and saves, obtain third Recording file executes step S4;After obtaining the second recording file, the second recording file is merged with third recording file, Obtain the 4th recording file.
After obtaining the 4th recording file, judge whether to reach preset file uplink time;Reach preset text When part uplink time, the 4th recording file is uploaded onto the server.
Target recording file is being written into audio data in collected court trial process and is being counted when starting write-in When before, pass through Windows audio session api interface acquire court trial process in audio data;By ffmpeg by all guarantors The first recording file deposited merges, and the 4th recording file is uploaded onto the server by FTP.
After obtaining the first recording file, each first recording file is numbered according to record length, is obtained every The number of a first recording file;The first recording file of all preservations is merged according to number, obtains the second recording file.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of way of recording characterized by comprising
Step S1 to step S3 is repeated until receiving END instruction, wherein the END instruction is used to indicate court's trial knot Beam:
S1 establishes recording file and using the recording file as target recording file;
Audio data in collected court trial process is written the target recording file and counted when starting write-in by S2 When;
S3 closes the target recording file and saves, obtain the first recording in the case where timing time reaches preset time File;
S4 merges first recording file of all preservations when receiving the END instruction, obtains the second recording text Part.
2. the method according to claim 1, wherein
Before step S3, the method also includes:
In the case where the timing time does not reach preset time, judge whether to receive the END instruction, wherein When not receiving the END instruction, executes step S3 and close the target recording file when receiving the END instruction And save, third recording file is obtained, step S4 is executed;
Wherein, after obtaining second recording file, the method also includes: by second recording file and described the Three recording files merge, and obtain the 4th recording file.
3. according to the method described in claim 2, it is characterized in that, after obtaining the 4th recording file, the method Further include:
Judge whether to reach preset file uplink time;
When reaching the preset file uplink time, the 4th recording file is uploaded onto the server.
4. according to the method described in claim 3, it is characterized in that,
The target recording file is being written into audio data in collected court trial process and is being counted when starting write-in When before, the method also includes: the audio data in the court trial process is acquired by Windows audio session api interface;
It includes: by ffmpeg that first recording of all preservations is literary that first recording file of all preservations, which is merged, Part merges,
It includes: that the 4th recording file is uploaded onto the server by FTP that 4th recording file, which is uploaded onto the server,.
5. the method according to claim 1, wherein
After obtaining first recording file, the method also includes: according to record length to each first recording file It is numbered, obtains the number of each first recording file;
It includes: that described the first of all preservations records according to the number that first recording file of all preservations, which is merged, File mergences obtains second recording file.
6. a kind of recording device characterized by comprising
Execution unit, for repeating step S1 to step S3 until receiving END instruction, wherein the END instruction is used Terminate: S1 in instruction court's trial and establishes recording file and using the recording file as target recording file;S2, will be collected Audio data in court trial process is written the target recording file and carries out timing when starting write-in;S3, in timing time In the case where reaching preset time, closes the target recording file and save, obtain the first recording file;
Combining unit, for executing step S4, when receiving the END instruction by the first recording text of all preservations Part merges, and obtains the second recording file.
7. device according to claim 6, which is characterized in that
Described device further include:
First judging unit, in the case where the timing time does not reach preset time, judging before step S3 Whether the END instruction is received, wherein when not receiving the END instruction, step S3 is executed, it is described receiving It when END instruction, closes the target recording file and saves, obtain third recording file, execute step S4;
Wherein, the combining unit is also used to after obtaining second recording file, by second recording file and institute The merging of third recording file is stated, the 4th recording file is obtained.
8. device according to claim 7, which is characterized in that described device further include:
Second judgment unit, when for after obtaining the 4th recording file, judging whether that reaching preset file uploads Between;
Uploading unit, for when reaching the preset file uplink time, the 4th recording file to be uploaded to service Device.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 1 to 5 described in the way of recording.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 5 described in the way of recording.
CN201710531664.4A 2017-06-30 2017-06-30 The way of recording and device Pending CN109215690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710531664.4A CN109215690A (en) 2017-06-30 2017-06-30 The way of recording and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710531664.4A CN109215690A (en) 2017-06-30 2017-06-30 The way of recording and device

Publications (1)

Publication Number Publication Date
CN109215690A true CN109215690A (en) 2019-01-15

Family

ID=64992553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710531664.4A Pending CN109215690A (en) 2017-06-30 2017-06-30 The way of recording and device

Country Status (1)

Country Link
CN (1) CN109215690A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162967A (en) * 2019-12-25 2020-05-15 北京东土科技股份有限公司 Offline court-opening processing method, device, terminal, server and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753947A (en) * 2008-12-08 2010-06-23 北京中星微电子有限公司 Method and device for video-on-demand playback of video monitoring recording
CN103646654A (en) * 2013-12-12 2014-03-19 深圳市金立通信设备有限公司 Recording data sharing method and terminal
CN105681714A (en) * 2016-02-26 2016-06-15 北京金山安全软件有限公司 Video shooting method and device and electronic equipment
CN106531167A (en) * 2016-11-18 2017-03-22 北京云知声信息技术有限公司 Speech information processing method and device
CN106534793A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Supervisory video recording method and device
CN106791549A (en) * 2016-11-21 2017-05-31 建荣半导体(深圳)有限公司 A kind of videotape storage means, system and drive recorder

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753947A (en) * 2008-12-08 2010-06-23 北京中星微电子有限公司 Method and device for video-on-demand playback of video monitoring recording
CN103646654A (en) * 2013-12-12 2014-03-19 深圳市金立通信设备有限公司 Recording data sharing method and terminal
CN105681714A (en) * 2016-02-26 2016-06-15 北京金山安全软件有限公司 Video shooting method and device and electronic equipment
CN106531167A (en) * 2016-11-18 2017-03-22 北京云知声信息技术有限公司 Speech information processing method and device
CN106791549A (en) * 2016-11-21 2017-05-31 建荣半导体(深圳)有限公司 A kind of videotape storage means, system and drive recorder
CN106534793A (en) * 2016-11-29 2017-03-22 努比亚技术有限公司 Supervisory video recording method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162967A (en) * 2019-12-25 2020-05-15 北京东土科技股份有限公司 Offline court-opening processing method, device, terminal, server and storage medium

Similar Documents

Publication Publication Date Title
CN108073349A (en) The transmission method and device of data
CN108076377A (en) A kind of storage of video, playback method, device, electronic equipment and storage medium
CN109275012A (en) A kind of live streaming barrage display methods and device
CN109901408A (en) A kind of control method of smart machine, device and system
CN109743579A (en) A kind of method for processing video frequency and device, storage medium and processor
CN103974014B (en) A kind of video falls back playback method and device
CN104023176A (en) Method and device of processing audio frequency and image information as well as terminal equipment
CN109215690A (en) The way of recording and device
CN106231413B (en) A kind of automatic division processing method of audio, video data based on intelligent terminal and system
CN106682021A (en) Database migration method and device
CN106128460A (en) A kind of record labels method and device
US11226993B2 (en) Method and apparatus for clustering data stream
CN110248205B (en) Method and device for packing video recording data
Spagnolo et al. The (mis) conception of average Quaternary conditions
CN104581398B (en) Data cached management system and method
US11398091B1 (en) Repairing missing frames in recorded video with machine learning
CN109077671A (en) A kind of sweeping robot motion control method and device
CN110377262B (en) Data storage method and device, storage medium and processor
CN111611433B (en) Video processing method, device, equipment and medium
CN106291692B (en) The detection method and device of blind focus earthquake wave field micro-seismic event
CN107391708A (en) The method and device that performance statistics file stores in a kind of storage system
CN107193881A (en) Upload files to method, device and the equipment of distributed file system
MX2021010056A (en) Adaptive retrieval of objects from remote storage.
CN109587548B (en) Video playing data calculation method and device
CN109033817A (en) Bundled software hold-up interception method, device and equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115