Search

CN-121985165-A - Method, equipment and medium for automatically and synchronously combining and archiving audio and video of rail flaw detection

CN121985165ACN 121985165 ACN121985165 ACN 121985165ACN-121985165-A

Abstract

The invention relates to the technical field of rail detection and maintenance, and discloses a method, equipment and medium for automatically and synchronously combining and archiving audio and video of rail flaw detection. The method comprises the steps of S1, obtaining multi-channel audio and video files with standardized identification information through a processing end, S2, establishing position grouping, time grouping and type grouping after analyzing the standardized identification information, S3, establishing a file global time reference in the same time grouping, respectively completing time intervals of the audio and video files in the group, S4, merging the multi-channel audio and video files after completing the time intervals to generate output files, generating merged file names comprising the standardized identification information, S5, uploading the output files to a server, and binding and archiving the output files and corresponding flaw detection operation records. According to the invention, the traditional low-efficiency mode of manually copying and splicing the audio and video is replaced through full-flow automatic operation, so that the labor cost can be saved, and the processing efficiency is improved.

Inventors

  • ZHANG JIE
  • YE HONGBING
  • LIANG DONG
  • ZHU XIALE
  • YU GANG
  • SONG JIAWEI

Assignees

  • 四川旷谷信息工程有限公司

Dates

Publication Date
20260505
Application Date
20260407

Claims (12)

  1. 1. The automatic synchronous merging and archiving method for the flaw detection of the steel rail is characterized by comprising the following steps of: s1, acquiring a plurality of paths of audio and video files which are generated by flaw detection operation and are configured with standardized identification information through a processing end; S2, after analyzing the standardized identification information, establishing a position group, a time group and a type group; s3, establishing a global time reference of the files in the same time group, calculating time offset of each file in the group relative to the global time reference, and respectively filling time intervals for the audio and video files in the group; S4, merging the multi-channel audio and video files after completing the time interval to generate an output file, and generating a merged file name comprising the standardized identification information; S5, uploading the output file to a server, and binding and archiving the output file and a corresponding flaw detection operation record based on the standardized identification information.
  2. 2. The method for automatically and synchronously merging and archiving the flaw detection of the steel rail according to claim 1, wherein when the processing end is a non-video recording device, the step S1 further comprises: Identifying an accessed video device, performing depth traversal on a storage path of the video device, and screening out an audio/video file containing the standardized identification information; and generating unique file fingerprints based on the file path, the file size and the file modification time, comparing the file fingerprints with fingerprints of locally stored files, copying newly added files to non-video equipment for storage, and renaming original audio and video files in the video equipment.
  3. 3. The method for automatically and synchronously merging and archiving the flaw detection of the steel rail according to claim 1, wherein when the processing end is video equipment, the step S1 further comprises: Scanning locally stored audio and video files according to a preset local storage path; When the audio and video files with the processed marks not configured are detected, the audio and video files are judged to be new files to be processed, and standardized identification information of the new files is directly read.
  4. 4. The method for automatically synchronizing and merging and archiving the steel rail flaw detection audio and video according to claim 1, wherein the step of establishing a position group, a time group and a type group after analyzing the standardized identification information comprises the steps of: Extracting the operation position parameters, time intervals and media types of the file; And carrying out position grouping on the files based on the operation position parameters, grouping the files in the same position grouping according to the overlapping relation of time intervals, and carrying out type grouping on the files in the same time grouping according to the media types.
  5. 5. The method for automatically synchronizing and merging and archiving the audio and video of the steel rail flaw detection according to claim 4, wherein the grouping of the files in the same position group according to the overlapping relationship between time intervals comprises grouping by adopting a union algorithm, wherein the grouping rule comprises: for any two files in the same position group, if the starting time of the first file is less than or equal to the ending time of the second file and the starting time of the second file is less than or equal to the ending time of the first file, judging that the files are overlapped in time and are classified into the same group.
  6. 6. The method for automatically and synchronously merging and archiving the steel rail flaw detection audio and video according to claim 4, wherein when the audio and video files in the group are complemented with time intervals, the processing of the video files comprises the steps of calculating the complemented time intervals of the video files by adopting chain time differences; The chained time difference calculation includes: Defining the earliest starting time of all files in the same time group as global earliest starting time and the latest ending time as global latest ending time; For the first video of the same media type, the time offset is the difference between the self start time and the global earliest start time; for the subsequent video of the same media type, the time offset is the difference between the self start time and the previous video end time; for the last video of the same media type, its end offset is the difference between the global latest end time and its own end time.
  7. 7. The method for automatically synchronizing and merging and archiving the audio and video of the steel rail flaw detection according to claim 4, wherein when the audio and video files in the group are complemented with time intervals, the processing of the audio files comprises the following steps: Calculating the time offset of the audio file relative to the global time reference, generating a mute segment with the duration consistent with the time offset, and splicing the mute segment to the front end of the audio file to complete time interval completion; wherein, the silence section is zero value audio signal, and sampling rate, sound channel number are consistent with corresponding audio file.
  8. 8. The method for automatically synchronizing and merging and archiving the steel rail flaw detection audio and video according to claim 6, wherein if a certain media type has no corresponding file, generating a compensation video: and generating a background video according to a preset resolution, displaying a video-free identification character corresponding to the media type, wherein the time length of the compensation video is consistent with the difference value between the global latest ending time and the global earliest starting time.
  9. 9. The method for automatically and synchronously merging and archiving the flaw detection of the steel rail and the audio and the video according to claim 1, wherein the uploading the output file to the server comprises the following steps: Splitting the output file into a plurality of fragments according to a preset size to generate a fragment information list; Sequentially uploading fragments according to the fragment information list and recording the uploading completion state of each fragment; after all the fragments are uploaded, the server merges the fragments based on the fragment information list to obtain a complete output file.
  10. 10. The method for automatically and synchronously merging and archiving the flaw detection audios and videos of the steel rail according to claim 1, wherein the steps of binding and archiving the output file with the corresponding flaw detection operation record are performed comprise the following steps: extracting a device serial number, an operation position parameter and a global time interval in standardized identification information of an output file; inquiring a flaw detection operation record database, and matching flaw detection operation records which contain the same equipment serial numbers and operation position parameters and the operation time covers the global time interval; Writing the storage path of the output file and the file name into the matched flaw detection operation record in an associated mode; The output file and the corresponding flaw detection operation record are marked as archive.
  11. 11. An electronic device, characterized by comprising a memory for storing a computer program, and a processor for implementing the steps of the method for automatically synchronizing and merging and archiving rail flaw detection audio and video according to any one of claims 1-10 when the computer program is executed.
  12. 12. A storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the rail flaw detection audio/video automatic synchronous merging and archiving method according to any one of claims 1 to 10 are realized.

Description

Method, equipment and medium for automatically and synchronously combining and archiving audio and video of rail flaw detection Technical Field The invention relates to the technical field of rail detection and maintenance, in particular to a method, equipment and medium for automatically and synchronously combining and archiving audio and video of rail flaw detection. Background In the operation process of rail flaw detection, two types of audio and video files are usually generated synchronously, one type is waveform data video which is output by special video equipment for flaw detection and used for reflecting the internal flaw information of the rail, and the other type is on-site multi-view operation video which is used for positioning the physical position corresponding to the flaw, such as probe position video, endoscope video and the like. After the multi-channel audio and video are collected, synchronous playback, association comparison and accurate rail damage judgment can be completed. At present, manual intervention is adopted to process the audio and video of the steel rail flaw detection, the audio and video files recorded by all equipment are manually copied to a computer, then a video editing tool is used for manually carrying out time axis alignment and picture splicing on multiple paths of audio and video, and finally the combined video and flaw detection operation record are manually associated and stored. A large amount of audios and videos are recorded for each flaw detection position in one steel rail flaw detection operation process, and the audios and videos are difficult to sort, file and combine according to management requirements of flaw detection positions, flaw detection time and the like by means of manpower. In addition, the current mainstream playback adopts a plurality of players to simultaneously play flaw detection waveform video and multi-path video recorded in the same operation batch. Due to network delays, network fluctuations, computer performance limitations, etc., delays of several seconds or tens of seconds may occur between these videos. Disclosure of Invention In view of the above, the invention provides a method, a device and a medium for automatically and synchronously merging and archiving the flaw detection of the steel rail and the audio and the video, so as to solve the problems. In order to solve the technical problems, the invention provides a method for automatically and synchronously merging and archiving the audio and video of the flaw detection of the steel rail, which comprises the following steps: s1, acquiring a plurality of paths of audio and video files which are generated by flaw detection operation and are configured with standardized identification information through a processing end; S2, after analyzing the standardized identification information, establishing a position group, a time group and a type group; S3, establishing a global time reference of the files in the same time group, calculating time offset of each file in the group relative to the global time reference, and respectively filling time intervals for the audio and video files in the group; s4, merging the multi-channel audio and video files after completing the time interval to generate an output file, and generating a merged file name comprising standardized identification information; S5, uploading the output file to a server, and binding and archiving the output file and a corresponding flaw detection operation record based on standardized identification information. As an alternative, when the processing end is a non-video recording device, S1 further includes: identifying an accessed video device, performing depth traversal on a storage path of the video device, and screening out an audio and video file containing standardized identification information; And generating unique file fingerprints based on the file path, the file size and the file modification time, comparing the file fingerprints with fingerprints of locally stored files, copying the newly added files to non-video equipment for storage, and renaming the original audio/video files in the video equipment. As an alternative, when the processing end is a video recording device, S1 further includes: Scanning locally stored audio and video files according to a preset local storage path; When the audio and video files with the processed marks not configured are detected, the audio and video files are judged to be new files to be processed, and standardized identification information of the new files is directly read. As an alternative, establishing the location group, the time group and the type group after parsing the standardized identification information includes: Extracting the operation position parameters, time intervals and media types of the file; And carrying out position grouping on the files based on the operation position parameters, grouping the files in the same position grouping according to the o