Signal synchronization method and device for broadcast vehicle

By calculating the processing and transmission delays of video and audio signals on the OB truck and performing time compensation, the problem of asynchrony during signal switching is solved and the playback quality and user experience are improved.

CN118400555BActive Publication Date: 2024-09-20诸暨市融媒体中心
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410853412.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-20
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In the field of modern television broadcasting, the differences in signal transmission paths and processing times of multiple cameras cause the video and audio signals to be out of sync when switching on the broadcast truck, affecting the audience's viewing experience.

Method used

By receiving video and audio signal switching requests, the processing delay and transmission delay between signals are determined, the total delay is calculated, and time compensation is performed based on the total delay to ensure the synchronization of signal switching.

Benefits of technology

It effectively avoids time misalignment and desynchronization during signal switching, improves the overall synchronization and coherence of video and audio signals, and provides a smoother and more stable audio-visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400555B
    Figure CN118400555B
Patent Text Reader

Abstract

The present application provides a signal synchronization method and device for an OB vehicle, wherein the method comprises: receiving a switching request to switch the currently played content from a first audio-visual signal among multiple audio-visual signals to a second audio-visual signal among multiple audio-visual signals; determining the processing delay between the first audio-visual signal and the second audio-visual signal based on the switching request, and determining the transmission delay between the first audio-visual signal and the second audio-visual signal using the first timestamp of the first audio-visual signal and the second timestamp of the second audio-visual signal; superimposing the transmission delay and the processing delay to obtain a total delay, and based on the total delay, time-compensating the currently played content to obtain a target timestamp after time compensation, and then switching the currently played content to the second audio-visual signal based on the target timestamp. The present application solves the technical problem of asynchronism between audio-visual signals when switching audio-visual signals in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image communication technology, and in particular to a signal synchronization method and device for an broadcast vehicle. Background Art

[0002] In the field of modern television broadcasting, multiple cameras are usually deployed at different locations on the scene (such as a concert). The OB van receives the signals from each camera via optical cables and sends the processed signals to the TV audience. Since the signal transmission path of each camera is of different lengths, the time it takes for the signal to reach the OB van will be different. In addition, the signal needs to be processed on the OB van, which also takes different amounts of time. This time difference can cause the audio and video signals to be out of sync when switching between them, affecting the audience's viewing experience.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a signal synchronization method and device for an OB vehicle, so as to at least solve the technical problem of asynchronism between audio and video signals when switching audio and video signals in the prior art.

[0005] According to one aspect of an embodiment of the present application, a signal synchronization method for an broadcast vehicle is provided, comprising: receiving a switching request to switch a currently played content from a first audio-visual signal among a plurality of audio-visual signals to a second audio-visual signal among the plurality of audio-visual signals; determining a processing delay between the first audio-visual signal and the second audio-visual signal based on the switching request, and determining a transmission delay between the first audio-visual signal and the second audio-visual signal using a first timestamp of the first audio-visual signal and a second timestamp of the second audio-visual signal; superimposing the transmission delay and the processing delay to obtain a total delay, and based on the total delay, time-compensating the currently played content to obtain a target timestamp after time compensation, and then switching the currently played content to the second audio-visual signal based on the target timestamp.

[0006] According to another aspect of an embodiment of the present application, a signal synchronization device for a broadcast vehicle is also provided, including: a receiving module, configured to receive a switching request to switch the currently playing content from a first audio-visual signal among multiple audio-visual signals to a second audio-visual signal among the multiple audio-visual signals; a determining module, configured to determine the processing delay between the first audio-visual signal and the second audio-visual signal based on the switching request, and determine the transmission delay between the first audio-visual signal and the second audio-visual signal using the first timestamp of the first audio-visual signal and the second timestamp of the second audio-visual signal; a compensation module, configured to perform time compensation on the currently playing content according to the transmission delay and the processing delay, and switch the currently playing content to the second audio-visual signal after completing the time compensation.

[0007] According to another aspect of the embodiment of the present application, an OB vehicle is provided, comprising the above-mentioned signal synchronization device for an OB vehicle.

[0008] In an embodiment of the present application, a switching request is received to switch the currently playing content from a first audio-visual signal among a plurality of audio-visual signals to a second audio-visual signal among the plurality of audio-visual signals; based on the switching request, a processing delay between the first audio-visual signal and the second audio-visual signal is determined, and a transmission delay between the first audio-visual signal and the second audio-visual signal is determined using a first timestamp of the first audio-visual signal and a second timestamp of the second audio-visual signal; the transmission delay and the processing delay are superimposed to obtain a total delay, and based on the total delay, the currently playing content is time-compensated to obtain a target timestamp after time compensation, and then, based on the target timestamp, the currently playing content is switched to the second audio-visual signal. The above method solves the technical problem of asynchronism between audio-visual signals when switching audio-visual signals in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0010] Figure 1 is a flow chart of a signal synchronization method for an OB vehicle according to an embodiment of the present application;

[0011] Figure 2 is a flow chart of a method for determining processing delay and transmission delay according to an embodiment of the present application;

[0012] Figure 3is a flow chart of another signal synchronization method for an OB vehicle according to an embodiment of the present application;

[0013] Figure 4 is a flow chart of a method for determining processing delay according to an embodiment of the present application;

[0014] Figure 5 is a structural schematic diagram of a signal synchronization device for an OB vehicle according to an embodiment of the present application;

[0015] Figure 6 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0016] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0017] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0018] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0019] Example 1

[0020] The present application embodiment provides a signal synchronization method for an OB vehicle, such as Figure 1 As shown, the method includes:

[0021] Step S102: receiving a switching request for switching a currently played content from a first video / audio signal among a plurality of video / audio signals to a second video / audio signal among the plurality of video / audio signals.

[0022] Step S104: Based on the switching request, determine the processing delay between the first audio-visual signal and the second audio-visual signal, and determine the transmission delay between the first audio-visual signal and the second audio-visual signal using the first timestamp of the first audio-visual signal and the second timestamp of the second audio-visual signal.

[0023] like Figure 2 As shown, the method for determining the processing delay and the transmission delay includes the following steps:

[0024] Step S1042: determining a processing delay between the first video and audio signal and the second video and audio signal.

[0025] Obtain a synchronization reset signal, and generate a timing signal based on the synchronization reset signal; process the first audio-visual signal and the second audio-visual signal based on the timing signal, and during the processing, simultaneously insert a pulse signal into the first audio-visual signal and the second audio-visual signal as a synchronization event.

[0026] This application effectively achieves accurate synchronous processing of the first audio-visual signal and the second audio-visual signal by acquiring a synchronous reset signal and generating a timing signal. Inserting a synchronous event pulse signal during the processing can accurately calibrate the processing time and ensure the timing consistency and accuracy between the two signals. This not only helps to improve the accuracy and stability of signal processing, but also ensures the synchronization of audio-visual signals during broadcasting and recording, thereby improving the overall playback quality and user experience.

[0027] Afterwards, based on the synchronization event, common-mode processing is performed on the first audio-visual signal and the second audio-visual signal to separate the common processing time component; based on the common processing time component, the individual processing delays of the first audio-visual signal and the second audio-visual signal are calculated respectively; based on the individual processing delays, the processing delay between the first audio-visual signal and the second audio-visual signal is dynamically determined.

[0028] This application uses synchronization events for common mode processing, which can accurately separate the common processing time components of the first audio and video signal and the second audio and video signal. By calculating the individual processing delay of each signal, the processing delay between the two can be dynamically determined, thereby ensuring real-time and accuracy in environments such as broadcast vehicles. This application not only helps to eliminate uncertainty and delays in the signal processing process, but also effectively improves the synchronization and playback quality of audio and video signals, providing users with a more stable and consistent audio-visual experience.

[0029] Step S1044: determine a transmission delay between the first video and audio signal and the second video and audio signal.

[0030] Calculate the difference between the first timestamp of the first audiovisual signal and the second timestamp of the second audiovisual signal, and use the difference as the delay value at the current moment; use the weighted moving average method to smooth the delay value at the current moment to obtain the smoothed delay value at the current moment. For example, obtain the smoothed delay value at the previous moment and a preset weight factor; use the weight factor to weight the smoothed delay value at the previous moment and the delay value at the current moment to obtain the smoothed delay value at the current moment. Finally, use the smoothed delay value at the current moment as the transmission delay.

[0031] This application calculates the difference between the timestamps of the first audio-visual signal and the second audio-visual signal as the delay value at the current moment, and then applies the weighted moving average method to smooth it, which can effectively reduce the volatility and instability of the transmission delay. This application uses preset weight factors to dynamically adjust and optimize the transmission delay value, ensure the synchronization and continuity of the audio-visual signals during the broadcast and recording process, and provide viewers with a smooth and high-quality audio-visual experience.

[0032] Step S106, superimpose the transmission delay and the processing delay to obtain a total delay, and based on the total delay, time compensate the currently playing content to obtain a target timestamp after time compensation, and then switch the currently playing content to the second audio and video signal based on the target timestamp.

[0033] The transmission delay and the processing delay are superimposed to obtain a total delay, and based on the total delay, the current playback content is time-compensated to obtain a time-compensated target timestamp. Before the target timestamp arrives, the second video and audio signal is pre-loaded into a buffer area; when the target timestamp arrives, the current playback content is switched to the second video and audio signal in the buffer area.

[0034] This application can accurately calculate and adjust the target timestamp by adding the transmission delay and the processing delay to obtain the total delay, and then perform time compensation based on the total delay, so as to ensure that the second audio and video signal is loaded into the buffer at the right time. In this way, time dislocation and asynchrony during playback can be effectively avoided, and the overall synchronization and coherence of the audio and video signals can be improved. Through such processing, the audience can enjoy a smoother and more seamless audio-visual experience, whether in live broadcast, recorded broadcast or other multimedia playback scenarios.

[0035] Example 2

[0036] The present application embodiment provides another signal synchronization method for an OB vehicle, such as Figure 3As shown, the method includes:

[0037] Step S302: receiving a switching request.

[0038] The OB vehicle system receives a switching request indicating that the currently playing content needs to be switched from the first video and audio signal to the second video and audio signal. The switching request can be manually initiated by a staff member in the OB vehicle, or can be automatically triggered by the system according to preset conditions.

[0039] Step S304, determining the transmission delay.

[0040] Both the first audio-visual signal and the second audio-visual signal have timestamps, namely, the first timestamp and the second timestamp. The timestamp records the moment of each frame of the audio-visual signal in the signal stream, and is used to ensure that the audio-visual signals from different sources can be accurately synchronized and adjusted during the transmission of the audio-visual signals. The first timestamp is obtained from the first audio-visual signal, and the second timestamp is obtained from the second audio-visual signal, and then the difference between them is calculated as the delay value at the current moment, and the difference reflects the time offset between the two signals.

[0041] In order to obtain a more stable and accurate transmission delay value, a weighted moving average method can be used for smoothing. For example, the smoothed delay value of the previous moment and the preset weight factor are obtained, and the smoothed delay value of the previous moment and the delay value of the current moment are weighted averaged according to the weight factor. In this way, a balance point can be found between the smoothed delay value of the previous moment and the delay value of the current moment, so that the final transmission delay value is closer to the actual transmission delay, while maintaining a certain memory of past delay changes.

[0042] In this way, the transmission delay can be dynamically calibrated and adjusted to ensure accurate time compensation when switching audio and video signals, achieving a seamless signal switching and playback experience.

[0043] Step S306, determining the processing delay.

[0044] like Figure 4 As shown, the method for determining processing delay includes the following steps:

[0045] Step S3062, obtaining a synchronous reset signal and generating a timing signal.

[0046] First, the clock oscillator on the OB vehicle provides the clock oscillating from the same source as the master clock to the host controller, and the host controller generates a synchronous reset signal based on the master clock. The synchronous reset signal is used to provide a unified starting point for the entire system, ensuring that all subsequent operations can be performed according to the same time reference, thereby ensuring the synchronization of all audio and video signal processing.

[0047] After that, based on the synchronization reset signal, the system generates a timing signal. The timing signal is derived from the synchronization reset signal. It maintains the time accuracy and stability of the synchronization reset signal, but the frequency and phase can be adjusted dynamically. The timing signal plays the role of coordinating the various audio and video processing modules in the system to ensure that the processing steps of different audio and video signals can be carried out in the same time frame, thereby avoiding synchronization problems caused by time differences.

[0048] Specifically, the timing signal is passed to various audio and video processing modules, such as encoders, decoders, signal conditioners, etc. These modules use the timing signal as a reference to perform their respective processing tasks. For example, when processing the first audio and video signal and the second audio and video signal, the timing signal ensures that the frame processing of the two signals can be performed at the same time point, thereby ensuring their alignment on the time axis.

[0049] By using the synchronization reset signal and the timing signal generated based on it, the system can achieve highly accurate time synchronization. This is especially important for application scenarios with high real-time requirements, such as signal synchronization in broadcast vehicles. Whether switching signal sources or synthesizing and processing multiple signals, with a unified time reference, the system can significantly reduce time offset and delay, ensuring smooth and synchronized output signals.

[0050] Step S3064, processing the video and audio signals based on the timing signal and inserting synchronization events.

[0051] During the processing, the system processes the first audio and video signal and the second audio and video signal simultaneously. To ensure their precise synchronization in time, the system inserts pulse signals as synchronization events in each signal stream. These pulse signals are emitted at specific time points in each signal, marking key time nodes in the processing flow, such as the beginning of a frame or the occurrence of an important event.

[0052] By marking synchronization events, the system can accurately control and monitor the status and processing progress of each signal, thereby ensuring that different audio and video signals can be aligned and processed on the same timeline in the OB vehicle's internal processing system, thus avoiding asynchrony or misalignment problems caused by time differences.

[0053] Step S3066, common mode processing and separation of processing time components.

[0054] When the system processes the first audio-visual signal and the second audio-visual signal, common mode processing is achieved by inserting synchronization events. The synchronization events are marker points that exist simultaneously in the processing flow of each signal and are used to identify the status of the two signals at a specific time point.

[0055] The main purpose of common mode processing is to separate the common processing time components of the first and second audio and video signals. In this way, the system can identify the processing delay that the two signals share during processing, rather than focusing on their unique processing time differences. In this way, the system can dynamically measure and scale the actual processing delay between the two signals, which is due to the inherent time delays introduced by the processing equipment and algorithms.

[0056] Common mode processing uses the insertion point of the synchronization event as a reference to align and compare each signal on the time axis. The system can accurately calculate the processing delay of the two signals, ensuring smooth transition with minimal delay when the signal switches.

[0057] Step S3068, calculate individual processing delays and dynamically determine processing delays.

[0058] Once the common processing time component is obtained, the system then calculates the individual processing delays of the first audiovisual signal and the second audiovisual signal respectively. The individual processing delay is the time each signal takes in the processing device or algorithm, which includes the sum of all processing steps from input to output.

[0059] Specifically, using the previously separated common processing time component, the system strips this part of the common time from the total processing time of each audio and video signal to eliminate the common time experienced by the two signals in the shared processing step, ensuring that the calculated delay only reflects their respective unique processing time.

[0060] This application can dynamically adjust and calibrate the time relationship between two signals by accurately measuring and analyzing the processing time delay of each signal. This is very important for applications that require precise synchronization and real-time response, such as ensuring seamlessness and accuracy of signal switching and mixing operations in broadcast vehicles, multi-camera live broadcasts, and real-time video processing.

[0061] The individual processing delay of the first audio and video signal and the individual processing delay of the second audio and video signal are subjected to multiple iterative differential processing to offset the noise signal and obtain an accurate processing delay. Differential processing is achieved by calculating the difference between the two individual processing delays. The purpose of multiple iterations is to offset and weaken the influence of the noise signal through continuous differentiation, so that the result is closer to the actual processing delay. In this process, filtering and signal processing techniques are used to gradually offset the noise signal, thereby obtaining a more stable and accurate processing delay. After obtaining the processing delay, ensure that its amplitude is an integer multiple of the clock amplitude of the first audio and video signal or the clock amplitude of the second audio and video signal. In this way, the processing delay can be matched with the system clock to ensure the accuracy of the synchronous processing. In this way, the system can effectively calibrate and adjust the processing delay between different audio and video signals, thereby achieving accurate synchronization and seamless signal switching.

[0062] Step S308, determine the target timestamp and perform switching.

[0063] The transmission delay and the processing delay are superimposed to obtain the total delay. The total delay includes the delay in signal transmission and signal processing. After obtaining the total delay, the system performs time compensation on the currently playing content based on the total delay. The purpose of time compensation is to adjust the time reference of the playing content so that it can maintain synchronization and smoothness when switching audio and video signals. By performing time compensation on the total delay, the system calculates a target timestamp, which is used to identify the best time to switch audio and video signals.

[0064] Before the target timestamp arrives, the system preloads the second audio and video signal into the buffer so that it can be quickly read and played when switching. When the target timestamp arrives, the system switches the current playback content to the second audio and video signal in the buffer. This method ensures that the continuity and synchronization of the playback content will not be affected during the switching process, thereby achieving seamless signal switching and smooth playback experience. Through precise time compensation and synchronization processing, the system can effectively manage the switching of multiple audio and video signals, improving the quality and reliability of audio and video signal transmission.

[0065] Example 3

[0066] The present application embodiment provides a signal synchronization device for an OB vehicle, such as Figure 5As shown, it includes: a receiving module 52, which is configured to receive a switching request for switching the currently playing content from a first audio-visual signal among a plurality of audio-visual signals to a second audio-visual signal among the plurality of audio-visual signals; a determining module 54, which is configured to determine the processing delay between the first audio-visual signal and the second audio-visual signal based on the switching request, and determine the transmission delay between the first audio-visual signal and the second audio-visual signal using the first timestamp of the first audio-visual signal and the second timestamp of the second audio-visual signal; a compensation module 56, which is configured to perform time compensation on the currently playing content according to the transmission delay and the processing delay, and switch the currently playing content to the second audio-visual signal after completing the time compensation.

[0067] It should be noted that: the signal synchronization device for an OB vehicle provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the signal synchronization device for an OB vehicle provided in the above embodiment and the signal synchronization method embodiment for an OB vehicle belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0068] Example 4

[0069] Figure 6 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0070] like Figure 6 As shown, the electronic device includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0071] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0072] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the method and apparatus of the present application are executed. In some embodiments, the electronic device may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0073] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0074] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0075] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0076] As another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.

[0077] The computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement each step of the method embodiment.

[0078] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0079] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0080] In the several embodiments provided in the present application, it should be understood that the disclosed terminal device can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0082] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

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

Claims

1. A signal synchronization method for an OB vehicle, characterized in that: include: Receiving a switching request to switch the currently played content from a first video / audio signal among a plurality of video / audio signals to a second video / audio signal among the plurality of video / audio signals; Determine, based on the switching request, a processing delay between the first video and audio signal and the second video and audio signal, and determine, using a first timestamp of the first video and audio signal and a second timestamp of the second video and audio signal, a transmission delay between the first video and audio signal and the second video and audio signal; The transmission delay and the processing delay are superimposed to obtain a total delay, and based on the total delay, the current playback content is time-compensated to obtain a time-compensated target timestamp, and then, based on the target timestamp, the current playback content is switched to the second video and audio signal; Before determining the processing delay between the first video and audio signal and the second video and audio signal, the method further includes: obtaining a synchronization reset signal and generating a timing signal based on the synchronization reset signal; processing the first video and audio signal and the second video and audio signal based on the timing signal, and during the processing, inserting a pulse signal into the first video and audio signal and the second video and audio signal respectively as a synchronization event; Wherein, determining the processing delay between the first audio-visual signal and the second audio-visual signal includes: based on the synchronization event, performing common-mode processing on the first audio-visual signal and the second audio-visual signal to separate the common processing time component; based on the common processing time component, respectively calculating the individual processing delays of the first audio-visual signal and the second audio-visual signal; based on the individual processing delays, dynamically determining the processing delay between the first audio-visual signal and the second audio-visual signal.

2. The method according to claim 1, characterized in that Determining a transmission delay between the first video and audio signal and the second video and audio signal using a first timestamp of the first video and audio signal and a second timestamp of the second video and audio signal includes: Calculate the difference between the first timestamp of the first video and audio signal and the second timestamp of the second video and audio signal, and use the difference as the delay value at the current moment; The delay value at the current moment is smoothed by using a weighted moving average method to obtain the smoothed delay value at the current moment, and the smoothed delay value at the current moment is used as the transmission delay.

3. The method according to claim 2, characterized in that Using a weighted moving average method to smooth the delay value at the current moment to obtain the smoothed delay value at the current moment, including: Obtain the smoothed delay value and preset weight factor of the previous moment; The smoothed delay value at the previous moment and the delay value at the current moment are weighted by using the weight factor to obtain the smoothed delay value at the current moment.

4. The method according to claim 1, characterized in that: Switching the currently played content to the second video and audio signal based on the target timestamp includes: Before the target timestamp arrives, pre-loading the second video and audio signal into a buffer area; When the target timestamp is reached, the currently played content is switched to the second video and audio signal in the buffer area.

5. A signal synchronization device for an OB vehicle, characterized in that: include: A receiving module configured to receive a switching request for switching a currently played content from a first video / audio signal among a plurality of video / audio signals to a second video / audio signal among the plurality of video / audio signals; a determination module configured to determine a processing delay between the first video and audio signal and the second video and audio signal based on the switching request, and determine a transmission delay between the first video and audio signal and the second video and audio signal using a first timestamp of the first video and audio signal and a second timestamp of the second video and audio signal; A compensation module is configured to add the transmission delay and the processing delay to obtain a total delay, and based on the total delay, perform time compensation on the current playback content to obtain a time-compensated target timestamp, and then switch the current playback content to the second video and audio signal based on the target timestamp; The signal synchronization device is further configured to: obtain a synchronization reset signal, and generate a timing signal based on the synchronization reset signal; process the first video and audio signal and the second video and audio signal based on the timing signal, and during the processing, insert a pulse signal into the first video and audio signal and the second video and audio signal respectively as a synchronization event; Wherein, the determination module is further configured to: based on the synchronization event, perform common-mode processing on the first audio-visual signal and the second audio-visual signal to separate the common processing time component; based on the common processing time component, respectively calculate the individual processing delays of the first audio-visual signal and the second audio-visual signal; based on the individual processing delays, dynamically determine the processing delay between the first audio-visual signal and the second audio-visual signal.

6. An OB vehicle, characterized in that: Comprising the signal synchronization device as claimed in claim 5.

7. An electronic device, characterized in that: include: a memory configured to store a computer program; A processor, configured to cause a computer to execute the method according to any one of claims 1 to 4 when the program is executed.

8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed, the computer is caused to execute the method according to any one of claims 1 to 4.