Two-channel video synchronous recording and playback method

By collecting and encoding dual-channel VGA signals in real time in video admission equipment and using Ethernet communication to manage video files, the problem of out-of-synchronization of dual-channel video recording and playback is solved, and the synchronous admission and synchronous playback of videos is realized, and the admission is improved The convenience and reliability of the equipment.

CN118945432APending Publication Date: 2024-11-12TIANJIN JINHANG COMP TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410971096.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Existing video admission devices cannot guarantee the synchronization of dual-channel videos when recording and playing back video data, especially when the video input source signal is abnormal or the playback progress bar changes, resulting in the recording and playback being out of synchronization.

Method used

Through Ethernet communication between the console computer and the video admission device, dual-channel VGA signals are collected and stored in real time, and stored in H.264 encoding and MP4 format, video signals are monitored and pure blue pictures are supplemented when necessary to ensure dual channels Synchronous recording and playback of videos; at the same time, the generation and playback of video files are controlled through Ethernet, and the synchronous playback of dual-channel video files is realized.

Benefits of technology

It ensures that the recording time difference of dual-channel video files is within 500ms, ensures the synchronization and integrity of the video, and realizes synchronous fast forward, fast reversal and progress bar synchronization of dual-channel videos during playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945432A_ABST
    Figure CN118945432A_ABST
Patent Text Reader

Abstract

The invention relates to a two-channel video synchronous recording and playback method, and belongs to the technical field of Ethernet communication technology and video source coding. When the input source signal of the double-channel video is abnormal or the playing progress bar of any channel of video is changed when the double-channel video is played back, the method not only can completely and synchronously record the double-channel video data of the console, but also can ensure the synchronism when the double-channel video is played back. According to the double-channel video synchronous recording and playback method provided by the invention, the problem of asynchronous double-channel video recording or video playback caused by abnormal video input source signals or change of a playing progress bar of any channel of video is perfectly solved. The method provided by the invention not only can ensure that the playing duration difference of the recorded video files of the two displays is within 500ms, but also can realize synchronous fast forward, synchronous fast backward or synchronous dragging to the same moment when the recorded video files of the two displays are played, so that complete synchronization of playing of the two video files is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of Ethernet communication technology and video source coding technology, and in particular relates to a dual-channel video synchronous recording and playback method. Background Art

[0002] The console of a control system consists of two monitors, a mouse and keyboard operating platform, a console computer case, and a video recording device. Each monitor has a VGA interface and a DVI interface. The console computer outputs two DVI video signals that enter the two monitors respectively, and the console computer outputs two VGA video signals that enter the video recording device.

[0003] The video recording device is used to save the video images output by the two monitors of the console in a file, so as to facilitate the synchronous playback of the video content of the two monitors later. Existing video recording devices have certain drawbacks when recording and playing back video data. On the one hand, when the two-way video input source signal is abnormal and the video signal cannot be output normally, the duration of the two video files recorded by the video recording device is different, and the synchronization of the two-way video recording cannot be guaranteed. On the other hand, when playing back the stored two-way video files, when dragging the playback progress bar of one of the videos, the playback progress of the other video does not change, resulting in the two-way video playing different video images at the same time, and the synchronization of the two-way video playback cannot be guaranteed. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] The present invention provides a dual-channel video synchronous recording and playback method to solve the problem of "dual-channel video recording or video playback being out of sync due to abnormal video input source signals or changes in the playback progress bar of any video channel". The method can achieve complete recording and synchronous playback of videos output by two displays of a console by a video recording device.

[0006] (II) Technical solution

[0007] In order to solve the above technical problems, the present invention provides a dual-channel video synchronous recording and playback method, comprising the following steps:

[0008] S1: The console computer in the console notifies the video recording device in the console to start / stop video acquisition. The video recording device collects the dual-channel VGA signals output by the two displays in the console in real time, saves the dual-channel video files, and stores the video file list information;

[0009] S2: The console computer obtains the video file list information in the video recording device, and selects the stored video files to play and stop playing.

[0010] Preferably, in step S1, the console computer, the two displays of the console and the video recording device are powered on at the same time, and the video recording device starts to synchronously collect and store the dual-channel VGA video signals output by the two displays of the console after receiving the notification from the console computer; the video recording device names and stores the video files recorded by the two displays of the console separately, first compresses and encodes the collected VGA signals according to the H.264 standard, and then converts the video file format into MP4 format and stores it.

[0011] Preferably, the console computer sends the time of the console computer to the video recording device via Ethernet to keep the time of the two devices synchronized; when the video recording device starts to generate a new video file for storing MP4 format files, it obtains the current system time in the format of "xx year xx month xx day xx hour xx minute xx second", and the naming specification of the newly generated first display video file is: current system time + N001, that is, "xx year xx month xx day xx hour xx minute xx second N001"; the naming specification of the newly generated second display video file is: current system time + N002, that is, "xx year xx month xx day xx hour xx minute xx second N002".

[0012] Preferably, when the video recording device receives a "start recording video" command sent by the console computer via Ethernet, the video recording device generates two new video files named in the current system time format, and stores the video signals acquired in real time and converted in format in the video files; when the video recording device receives a "stop recording video" command sent by the console computer via Ethernet, the video recording device stops recording the two currently opened video files and closes the two video files;

[0013] Preferably, when the size of a single video file stored in the video recording device is greater than a certain value, the video recording device automatically generates a new video file named with the current system time, and can realize circular storage of video files; the principle of circular storage is: when generating a new video file, if the remaining storage space of the solid-state hard disk is within the range of (15%, 20%), delete the earliest stored video file until the remaining storage space of the solid-state hard disk is greater than 20%;

[0014] Preferably, when the video recording device receives a "start recording video" command sent by the console computer but does not receive a "stop recording video" command sent by the console computer, it monitors the two video source signals in real time; when it is detected that one of the input sources has a signal output and the other input source has no signal output, a pure blue picture is continuously encoded into a video stream in H264 format at the output end without a video signal using the ffmpeg command and outputted to the original captured video file F; when the input source changes from "no video signal output" to "video signal output", the real-time captured video data continues to be output to the current video file F, thereby realizing the synchronous recording of dual-channel video data.

[0015] Preferably, in step S2, when the console computer plays the dual-channel video file stored in the video recording device, it first sends a "stop recording video" command to the video recording device via Ethernet, and then accesses and retrieves the video file stored in the video recording device via "disk folder sharing"; wherein the retrieval condition is the complete video file name or part of the video file name.

[0016] Preferably, after the console computer retrieves the qualified video files, it selects any one of the video files for playing, and sends the file name information of the video file to the video recording device via Ethernet; the video recording device queries another video file in the same time period based on the file name information of the video file, and sends the file name information of the video file to the console computer via Ethernet; after the console computer receives the file name information of the other video file via Ethernet, it opens and plays the two video files in two players at the same time, respectively, to achieve synchronous playback of two video files in the same time period.

[0017] Preferably, when the console computer plays back the stored dual-channel video files, it is set to output any one of the video images through the player to a certain display of the console, and the other video image is output through the player to another display of the console, ensuring that video images are output on both displays and the content is not repeated.

[0018] Preferably, the console computer can realize synchronous playback of video content in two players; the console computer can control the two players to fast forward and rewind the video content at the same time, or control the complete synchronization of the playback of video content in the two players by dragging the playback progress bar on the console computer; the two players share the following playback components: a playback progress bar, a fast forward button, a fast rewind button, a play button, a pause button and a stop button; when the console computer has finished playing back the dual-channel video file content, the two players are automatically closed, and the console computer sends a "start recording video" command to the video recording device via Ethernet.

[0019] (III) Beneficial effects

[0020] The advantages of the present invention compared with the prior art are:

[0021] 1. This method can ensure that the playback time difference of the video files of the two recorded displays is within 500ms, ensuring the authenticity and synchronization of the two video files;

[0022] 2. The video files recorded on the two displays can be fast-forwarded, rewinded or dragged to the same time synchronously during playback, ensuring that the playback of the two video files is completely synchronized. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a connection diagram of a dual-channel video synchronous recording and playback device for implementing the method of the present invention;

[0024] Figure 2 It is an overall flow chart of the method of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0026] The present invention proposes a dual-channel video synchronous recording and playback method. When the input source signal of the dual-channel video is abnormal or the playback progress bar of any video changes during the dual-channel video playback, the method can not only completely and synchronously record the dual-channel video data of the console, but also ensure the synchronization of the dual-channel video playback.

[0027] Only by adopting the solution of the present invention can the problem of "dual-channel video recording or video playback being out of sync due to abnormal video input source signals or changes in the playback progress bar of any video channel" be perfectly solved. The present invention proposes a dual-channel video synchronous recording and playback method, which improves the convenience and reliability of video recording.

[0028] like Figure 1 , Figure 2 As shown, a dual-channel video synchronous recording and playback method proposed by the present invention comprises the following steps:

[0029] S1: The console computer in the console notifies the video recording device in the console to start / stop video acquisition. The video recording device collects the dual-channel VGA signals output by the two displays in the console in real time, saves the dual-channel video files, and stores the video file list information;

[0030] Among them, the console computer, the two displays of the console and the video recording device are powered on at the same time. After receiving the notification from the console computer, the video recording device starts to synchronously collect and store the dual-channel VGA video signals output by the two displays of the console; the video recording device names and stores the video files recorded by the two displays of the console separately, first compresses and encodes the collected VGA signals according to the H.264 standard, and then converts the video file format into MP4 format and stores it.

[0031] Among them, the console computer sends the time of the console computer to the video recording device via Ethernet to keep the time of the two devices (console computer, video recording device) synchronized; when the video recording device starts to generate a new video file for storing MP4 format files, it obtains the current system time in the format of "xx year xx month xx day xx hour xx minute xx second", and the naming specification of the newly generated first display video file is: current system time + N001, that is, "xx year xx month xx day xx hour xx minute xx second N001"; the naming specification of the newly generated second display video file is: current system time + N002, that is, "xx year xx month xx day xx hour xx minute xx second N002".

[0032] When the video recording device receives a "start recording video" command sent by the console computer via Ethernet, the video recording device generates two new video files named in the current system time format, and stores the video signals acquired in real time and converted in format in the video files; when the video recording device receives a "stop recording video" command sent by the console computer via Ethernet, the video recording device stops recording the two currently opened video files and closes the two video files.

[0033] Among them, when the size of a single video file stored in the video recording device is greater than 1000MB (software configurable), the video recording device automatically generates a new video file named with the current system time, and can realize circular storage of video files; the principle of circular storage is: when generating a new storage video file, if the remaining storage space of the solid-state hard disk is in the range of (15%, 20%), delete the earliest stored video file until the remaining storage space of the solid-state hard disk is greater than 20%.

[0034] Among them, when the video recording device receives the "start recording video" command sent by the console computer but does not receive the "stop recording video" command sent by the console computer, it monitors the signals of two video sources (input sources) in real time; when it is detected that one of the input sources has a signal output and the other input source has no signal (no video signal output for 500ms continuously), at the output end without video signal, a pure blue picture is continuously encoded into a video stream in H264 format using the ffmpeg command and output to the original collected video file F; when the input source changes from "no video signal output" to "video signal output", the real-time collected video data continues to be output to the current video file F, so as to realize the synchronous recording of dual-channel video data. There are three situations for blue screen filling: (1) filling at the beginning, (2) filling in the middle, and (3) filling at the end. In either case, when a start acquisition command is received but a stop acquisition command is not received, if real-time monitoring detects that there is no video signal output (no output for 500ms), a video file in H.264 encoding format is directly generated and superimposed on the original acquired video file. Before implementing video encoding, the input source signals of the two videos are monitored in real time. If one of the input sources has a signal and the other has no signal, the blue screen H.264 encoding format video file is added to the video file without the input source signal.

[0035] S2: The console computer obtains the video file list information in the video recording device, and selects the stored video file to play or stop playing;

[0036] When the console computer plays back the dual-channel video files stored in the video recording device, it first sends a "stop recording video" command to the video recording device via Ethernet, and then accesses and retrieves the video files stored in the video recording device via "disk folder sharing"; wherein the retrieval condition is the complete video file name or part of the video file name. During the retrieval, the video file list is retrieved, the VGA video list in the corresponding folder is queried through the shared disk, and displayed on the interface.

[0037] Among them, after the console computer retrieves the video files that meet the conditions, it selects any one of the video files to play, and sends the file name information of the video file to the video recording device via Ethernet; the video recording device queries another video file in the same time period based on the file name information of the video file, and sends the file name information of the video file to the console computer via Ethernet; after the console computer receives the file name information of the other video file via Ethernet, it opens and plays the two video files in two players at the same time, thereby realizing the synchronous playback of two video files in the same time period.

[0038] When the console computer plays back the stored dual-channel video files, it can be set to output any one of the video images through the player to a certain display of the console, and the other video image through the player to another display of the console, ensuring that video images are output on both displays and the content is not repeated.

[0039] The console computer can play video content synchronously in two players; the console computer can control the two players to play video content fast forward and fast rewind at the same time, or control the complete synchronization of playing video content in the two players by dragging the play progress bar on the console computer. The two players share the following play components: a play progress bar, a fast forward button, a fast rewind button, a play button, a pause button and a stop button. When the console computer finishes playing back the dual-channel video file content, the two players are automatically closed, and the console computer sends a "start recording video" command to the video recording device via Ethernet.

[0040] It can be seen that in the dual-channel video synchronous recording and playback method provided by the present invention, the start recording time and the stop recording time of the dual-channel video are consistent, the time difference of the recorded dual-channel video is no more than 500ms, and the dual-channel video can play back the video content recorded at the same time, thereby ensuring the synchronization of dual-channel video recording and video playback.

[0041] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A dual-channel video synchronous recording and playback method, characterized in that: The following steps are involved: S1: The console computer in the console notifies the video recording device in the console to start / stop video acquisition. The video recording device collects the dual-channel VGA signals output by the two displays in the console in real time, saves the dual-channel video files, and stores the video file list information; S2: The console computer obtains the video file list information in the video recording device, and selects the stored video files to play and stop playing.

2. The method according to claim 1, characterized in that In step S1, the console computer, the two displays of the console and the video recording device are powered on at the same time. After receiving the notification from the console computer, the video recording device starts to synchronously collect and store the dual-channel VGA video signals output by the two displays of the console; the video recording device names and stores the video files recorded by the two displays of the console respectively, first compresses and encodes the collected VGA signals according to the H.264 standard, and then converts the video file format into MP4 format and stores it.

3. The method according to claim 2, characterized in that The console computer sends the time of the console computer to the video recording device via Ethernet to keep the time of the two devices synchronized; when the video recording device starts to generate a new video file for storing MP4 format files, it obtains the current system time in the format of "xx year xx month xx day xx hour xx minute xx second", and the naming specification of the newly generated first display video file is: current system time + N001, that is, "xx year xx month xx day xx hour xx minute xx second N001"; the naming specification of the newly generated second display video file is: current system time + N002, that is, "xx year xx month xx day xx hour xx minute xx second N002".

4. The method according to claim 3, characterized in that When the video recording device receives a "start recording video" command sent by the console computer via Ethernet, the video recording device generates two new video files named in the current system time format, and stores the video signals acquired in real time and converted in format in the video files; when the video recording device receives a "stop recording video" command sent by the console computer via Ethernet, the video recording device stops recording the two currently opened video files and closes the two video files.

5. The method according to claim 4, characterized in that When the size of a single video file stored in the video recording device is greater than a certain value, the video recording device automatically generates a new video file named with the current system time, and can realize circular storage of video files; the principle of circular storage is: when generating a new storage video file, if the remaining storage space of the solid-state hard disk is within the range of (15%, 20%), delete the earliest stored video file until the remaining storage space of the solid-state hard disk is greater than 20%.

6. The method according to claim 5, characterized in that When the video recording device receives a "start recording video" command sent by the console computer but does not receive a "stop recording video" command sent by the console computer, it monitors the two video source signals in real time; when it is detected that one of the input sources has a signal output and the other input source has no signal output, a pure blue picture is continuously encoded into a video stream in H264 format at the output end without a video signal using the ffmpeg command and outputted to the original captured video file F; when the input source changes from "no video signal output" to "video signal output", the real-time captured video data continues to be output to the current video file F, thereby realizing the synchronous recording of dual-channel video data.

7. The method according to claim 6, characterized in that In step S2, when the console computer plays the dual-channel video file stored in the video recording device, it first sends a "stop recording video" command to the video recording device via Ethernet, and then accesses and retrieves the video file stored in the video recording device through "disk folder sharing"; wherein the retrieval condition is the complete video file name or a part of the video file name.

8. The method according to claim 7, characterized in that After the console computer retrieves the video files that meet the conditions, it selects any one of the video files for playing, and sends the file name information of the video file to the video recording device via Ethernet; the video recording device queries another video file in the same time period based on the file name information of the video file, and sends the file name information of the video file to the console computer via Ethernet; after the console computer receives the file name information of the other video file via Ethernet, it opens and plays the two video files in two players at the same time, thereby realizing the synchronous playback of the two video files in the same time period.

9. The method according to claim 8, characterized in that When the console computer plays back the stored dual-channel video files, it is set to display any one of the video images on a certain display of the console through the player output, and the other video image is displayed on another display of the console through the player output, ensuring that video images are output on both displays and the content is not repeated.

10. The method according to claim 9, characterized in that The console computer can realize synchronous playback of video content in two players; the console computer can control the two players to play video content simultaneously to fast forward and rewind, or control the complete synchronization of playing video content in two players by dragging the playback progress bar on the console computer; The two players share the following playback components: a playback progress bar, a fast forward button, a fast rewind button, a play button, a pause button and a stop button; when the console computer has finished playing back the contents of the dual-channel video files, the two players are automatically closed, and the console computer sends a "start recording video" command to the video recording device via Ethernet.