CN103237203B - Audio and video synchronization method and system based on mobile terminal - Google Patents
Audio and video synchronization method and system based on mobile terminal Download PDFInfo
- Publication number
- CN103237203B CN103237203B CN201310121734.0A CN201310121734A CN103237203B CN 103237203 B CN103237203 B CN 103237203B CN 201310121734 A CN201310121734 A CN 201310121734A CN 103237203 B CN103237203 B CN 103237203B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- display terminal
- audio
- frame picture
- camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种基于移动终端的音视频同步方法及系统。The present invention relates to the communication field, in particular to an audio and video synchronization method and system based on a mobile terminal.
背景技术Background technique
目前,越来越多的移动终端,例如手机、平板电脑等都支持HDMI、MHL或WIFIDisplay等技术,可以将移动终端上的音频数据和视频数据传输到电视上进行播放显示。在应用这些技术时,由于数据传输的原因,以及电视对接收到的音频数据和视频数据进行处理造成的延时不同,最终电视上显示的图像和播放出来的声音会不同步(比如人的声音和嘴型对不上)。At present, more and more mobile terminals, such as mobile phones and tablet computers, support technologies such as HDMI, MHL or WIFI Display, which can transmit audio data and video data on the mobile terminal to a TV for playback and display. When applying these technologies, due to the reasons of data transmission and the delay caused by the processing of the received audio data and video data by the TV, the final image displayed on the TV and the sound played will be out of sync (such as human voice does not match the shape of the mouth).
现有的常用方法是个人根据实际看到的和听到的效果,在移动终端上手动调整声音的延时时间,使得电视端的图像和声音达到同步。The existing common method is that the individual manually adjusts the delay time of the sound on the mobile terminal according to the effect actually seen and heard, so that the image and the sound on the TV end are synchronized.
然而,现有的这种处理方法操作起来比较繁琐,而且精确度也不高。However, the existing processing method is relatively cumbersome to operate, and the accuracy is not high.
因此,亟需设计一种操作简单而且精确度高的方式,使得移动终端发送给电视的音视频数据在电视进行播放时达到同步的效果。Therefore, there is an urgent need to design a method with simple operation and high precision, so that the audio and video data sent by the mobile terminal to the TV can be synchronized when the TV plays them.
发明内容Contents of the invention
有鉴于此,本发明实施例的目的在于提供一种基于移动终端的音视频同步方法及系统,旨在解决现有技术中处理音视频数据同步的方法操作繁琐而且精确度不高的问题。In view of this, the purpose of the embodiments of the present invention is to provide a method and system for synchronizing audio and video based on a mobile terminal, aiming at solving the problems of cumbersome operation and low accuracy of the method for synchronizing audio and video data in the prior art.
本发明实施例是这样实现的,一种基于移动终端的音视频同步方法,所述方法包括:The embodiment of the present invention is achieved in this way, a method for synchronizing audio and video based on a mobile terminal, the method comprising:
开启所述移动终端的摄像头以及麦克风,并提示用户将所述摄像头对准与所述移动终端通信的显示终端设备的显示屏;Turn on the camera and microphone of the mobile terminal, and prompt the user to align the camera with the display screen of the display terminal device communicating with the mobile terminal;
同时发送预设帧画面视频信号以及一段预设音频信号至所述显示终端设备;Simultaneously send a video signal of a preset frame picture and a preset audio signal to the display terminal device;
通过所述摄像头捕捉所述预设帧画面视频信号在所述显示终端设备的显示屏出现的时间,并记录为第一时间点;Capture the time when the video signal of the preset frame picture appears on the display screen of the display terminal device through the camera, and record it as the first time point;
通过所述麦克风捕捉所述预设音频信号在所述显示终端设备开始播放的时间,并记录为第二时间点;capturing the time at which the preset audio signal starts playing on the display terminal device through the microphone, and recording it as a second time point;
通过所述第一时间点与所述第二时间点的差值调整所述移动终端发送给所述显示终端设备的音频数据以及视频数据的时间差。The time difference between the audio data and the video data sent by the mobile terminal to the display terminal device is adjusted according to the difference between the first time point and the second time point.
优选的,所述开启所述移动终端的摄像头以及麦克风,并提示用户将所述摄像头对准与所述移动终端通信的显示终端设备的显示屏的步骤之前还包括:Preferably, before the step of turning on the camera and microphone of the mobile terminal and prompting the user to align the camera with the display screen of the display terminal device communicating with the mobile terminal, the step further includes:
开启所述移动终端的音视频同步配置功能。Enable the audio and video synchronization configuration function of the mobile terminal.
优选的,所述同时发送预设帧画面视频信号以及一段预设音频信号至所述显示终端设备的步骤之前还包括:Preferably, before the step of simultaneously sending a preset frame picture video signal and a preset audio signal to the display terminal device, the step further includes:
发送识别帧画面视频信号至所述显示终端设备进行显示;sending the video signal of the identified frame picture to the display terminal device for display;
判断通过所述摄像头是否捕捉到在所述显示终端设备显示的识别帧画面;judging whether the recognition frame picture displayed on the display terminal device is captured by the camera;
如果没有捕捉到在所述显示终端设备显示的识别帧画面,则提示用户调整所述摄像头的位置重新捕捉在所述显示终端设备显示的识别帧画面。If the recognition frame picture displayed on the display terminal device is not captured, the user is prompted to adjust the position of the camera to recapture the recognition frame picture displayed on the display terminal device.
优选的,所述判断通过所述摄像头是否捕捉到在所述显示终端设备显示的识别帧画面的步骤之后还包括:Preferably, after the step of judging whether the camera captures the identification frame picture displayed on the display terminal device, it further includes:
如果捕捉到在所述显示终端设备显示的识别帧画面,则提示用户识别帧画面已成功捕捉到可以进行下一步操作。If the identification frame picture displayed on the display terminal device is captured, the user is prompted that the identification frame picture has been successfully captured and the next operation can be performed.
另一方面,本发明还提供一种基于移动终端的音视频同步系统,与显示终端设备交互,其中,所述系统包括:On the other hand, the present invention also provides an audio and video synchronization system based on a mobile terminal to interact with a display terminal device, wherein the system includes:
对准模块,用于开启所述移动终端的摄像头以及麦克风,并提示用户将所述摄像头对准与所述移动终端通信的所述显示终端设备的显示屏;an alignment module, configured to turn on the camera and microphone of the mobile terminal, and prompt the user to align the camera with the display screen of the display terminal device communicating with the mobile terminal;
第一发送模块,用于同时发送预设帧画面视频信号以及一段预设音频信号至所述显示终端设备;A first sending module, configured to simultaneously send a preset frame picture video signal and a preset audio signal to the display terminal device;
第一记录模块,用于通过所述摄像头捕捉所述预设帧画面视频信号在所述显示终端设备的显示屏出现的时间,并记录为第一时间点;The first recording module is used to capture the time when the video signal of the preset frame picture appears on the display screen of the display terminal device through the camera, and record it as the first time point;
第二记录模块,用于通过所述麦克风捕捉所述预设音频信号在所述显示终端设备开始播放的时间,并记录为第二时间点;The second recording module is configured to use the microphone to capture the time when the preset audio signal starts playing on the display terminal device, and record it as a second time point;
时间差调整模块,用于通过所述第一时间点与所述第二时间点的差值调整所述移动终端发送给所述显示终端设备的音频数据以及视频数据的时间差。A time difference adjusting module, configured to adjust the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device through the difference between the first time point and the second time point.
优选的,所述系统还包括:Preferably, the system also includes:
同步开启模块,用于开启所述移动终端的音视频同步配置功能。The synchronous opening module is used to open the audio and video synchronous configuration function of the mobile terminal.
优选的,所述系统还包括:Preferably, the system also includes:
第二发送模块,用于发送识别帧画面视频信号至所述显示终端设备进行显示;The second sending module is used to send the identification frame picture video signal to the display terminal device for display;
判断模块,用于判断通过所述摄像头是否捕捉到在所述显示终端设备显示的识别帧画面;A judging module, configured to judge whether the recognition frame picture displayed on the display terminal device is captured by the camera;
位置调整模块,用于如果没有捕捉到在所述显示终端设备显示的识别帧画面,则提示用户调整所述摄像头的位置重新捕捉在所述显示终端设备显示的识别帧画面。The position adjustment module is configured to prompt the user to adjust the position of the camera to recapture the recognition frame picture displayed on the display terminal device if the recognition frame picture displayed on the display terminal device is not captured.
优选的,所述系统还包括:Preferably, the system also includes:
确认模块,用于如果捕捉到在所述显示终端设备显示的识别帧画面,则提示用户识别帧画面已成功捕捉到可以进行下一步操作。The confirming module is used for prompting the user that the identification frame picture has been successfully captured and the next operation can be performed if the identification frame picture displayed on the display terminal device is captured.
在本发明实施例中,本发明提供的技术方案,通过计算音视频数据在传输和经过显示终端设备处理后的延时来自动调整移动终端发送给显示终端设备的音频数据与视频数据的时间差值,可以使得移动终端发送给显示终端设备的音视频数据在显示终端设备进行播放时达到同步的效果,而且不需要用户进行手动操作,同时还具有精确度高的优点,进而提高用户的体验。In the embodiment of the present invention, the technical solution provided by the present invention automatically adjusts the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device by calculating the delay of audio and video data after transmission and processing by the display terminal device The value can make the audio and video data sent by the mobile terminal to the display terminal device achieve synchronization effect when the display terminal device plays, and does not require manual operation by the user, and also has the advantage of high accuracy, thereby improving the user experience.
附图说明Description of drawings
图1为本发明一实施方式中基于移动终端的音视频同步方法流程图;以及Fig. 1 is the flow chart of the audio-video synchronization method based on mobile terminal in one embodiment of the present invention; And
图2为本发明一实施方式中基于移动终端的音视频同步系统的结构示意图。FIG. 2 is a schematic structural diagram of an audio-video synchronization system based on a mobile terminal in an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明具体实施方式提供了一种基于移动终端的音视频同步方法,如图1所示,主要包括如下步骤:The specific embodiment of the present invention provides a kind of audio-video synchronous method based on mobile terminal, as shown in Figure 1, mainly comprises the following steps:
S101、开启所述移动终端的摄像头以及麦克风,并提示用户将所述摄像头对准与所述移动终端通信的显示终端设备的显示屏;S101. Turn on the camera and microphone of the mobile terminal, and prompt the user to align the camera with the display screen of the display terminal device communicating with the mobile terminal;
S102、同时发送预设帧画面视频信号以及一段预设音频信号至所述显示终端设备;S102. Simultaneously send a preset frame video signal and a preset audio signal to the display terminal device;
S103、通过所述摄像头捕捉所述预设帧画面视频信号在所述显示终端设备的显示屏出现的时间,并记录为第一时间点;S103. Use the camera to capture the time when the video signal of the preset frame picture appears on the display screen of the display terminal device, and record it as a first time point;
S104、通过所述麦克风捕捉所述预设音频信号在所述显示终端设备开始播放的时间,并记录为第二时间点;S104. Use the microphone to capture the time when the preset audio signal starts playing on the display terminal device, and record it as a second time point;
S105、通过所述第一时间点与所述第二时间点的差值调整所述移动终端发送给所述显示终端设备的音频数据以及视频数据的时间差。S105. Adjust the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device according to the difference between the first time point and the second time point.
本发明所提供的一种基于移动终端的音视频同步方法,通过计算音视频数据在传输和经过显示终端设备处理后的延时来自动调整移动终端发送给显示终端设备的音频数据与视频数据的时间差值,可以使得移动终端发送给显示终端设备的音视频数据在显示终端设备进行播放时达到同步的效果,而且不需要用户进行手动操作,同时还具有精确度高的优点,进而提高用户的体验。An audio-video synchronization method based on a mobile terminal provided by the present invention automatically adjusts the ratio between the audio data and the video data sent by the mobile terminal to the display terminal device by calculating the delay of the audio-video data after transmission and processing by the display terminal device. The time difference can make the audio and video data sent by the mobile terminal to the display terminal device achieve a synchronous effect when the display terminal device plays, and does not require manual operation by the user, and also has the advantage of high accuracy, thereby improving the user's experience.
以下将对本发明所提供的一种基于移动终端的音视频同步方法进行详细说明。A mobile terminal-based audio-video synchronization method provided by the present invention will be described in detail below.
请参阅图1,为本发明一实施方式中基于移动终端的音视频同步方法流程图。在本实施方式中,该方法由移动终端来实现。Please refer to FIG. 1 , which is a flowchart of a method for synchronizing audio and video based on a mobile terminal in an embodiment of the present invention. In this embodiment, the method is implemented by a mobile terminal.
在步骤S101中,开启移动终端的摄像头以及麦克风,并提示用户将摄像头对准与移动终端通信的显示终端设备的显示屏。In step S101, the camera and the microphone of the mobile terminal are turned on, and the user is prompted to aim the camera at the display screen of the display terminal device communicating with the mobile terminal.
在本实施方式中,在步骤S101之前还包括开启移动终端的音视频同步配置功能的步骤,在其他实施方式中,开启移动终端的音视频同步配置功能也可以用开启移动终端的摄像头以及麦克风来实现,也就是说,当用户开启移动终端的摄像头以及麦克风时,移动终端的音视频同步配置功能也自动开启并被激活,这样就可以简化用户的操作步骤。In this embodiment, the step of enabling the audio and video synchronization configuration function of the mobile terminal is also included before step S101. Realize, that is to say, when the user turns on the camera and microphone of the mobile terminal, the audio and video synchronization configuration function of the mobile terminal is also automatically turned on and activated, so that the user's operation steps can be simplified.
在本实施方式中,显示终端设备与移动终端一直保持通信连接,在移动终端的摄像头以及麦克风被用户开启后,可以通过弹出对话框的方式提示用户将摄像头对准与移动终端通信的显示终端设备的显示屏,这样以方便于摄像头能捕捉到显示终端设备所显示的画面。In this embodiment, the display terminal device and the mobile terminal maintain a communication connection all the time. After the camera and microphone of the mobile terminal are turned on by the user, the user may be prompted to point the camera at the display terminal device communicating with the mobile terminal by popping up a dialog box. The display screen, so that the camera can capture the screen displayed by the display terminal device.
在步骤S102中,同时发送预设帧画面视频信号以及一段预设音频信号至显示终端设备。In step S102, a preset frame picture video signal and a preset audio signal are sent to the display terminal device at the same time.
在本实施方式中,在步骤S102之前还包括调整摄像头位置的步骤,即:发送识别帧画面视频信号至显示终端设备进行显示;判断通过摄像头是否捕捉到在显示终端设备显示的识别帧画面;如果没有捕捉到在显示终端设备显示的识别帧画面,则提示用户调整摄像头的位置重新捕捉在显示终端设备显示的识别帧画面。在本实施方式中,识别帧画面可以为单一颜色的帧画面,例如一帧蓝色画面,将这一帧蓝色画面发送至显示终端设备进行显示,然后利用摄像头捕捉在显示终端设备上显示的蓝色画面,并判断摄像头是否捕捉到,如果没有捕捉到则表明移动终端的摄像头位置没有正对着显示终端设备的显示屏,这时就要提示用户调整摄像头的位置以重新捕捉在显示终端设备显示的蓝色画面,具体的提示方式亦可以用弹出对话框的方式提示用户进行调整。在本实施方式中,所述判断通过摄像头是否捕捉到在显示终端设备显示的识别帧画面的步骤之后还包括:如果捕捉到在显示终端设备显示的识别帧画面,则提示用户识别帧画面已成功捕捉到可以进行下一步操作。在本实施方式中,调整摄像头位置的步骤可以帮助用户及时并准确的摆正移动终端的定位。In this embodiment, the step of adjusting the position of the camera is also included before step S102, that is: sending the identification frame picture video signal to the display terminal device for display; judging whether the camera captures the identification frame picture displayed on the display terminal device; if If the recognition frame picture displayed on the display terminal device is not captured, the user is prompted to adjust the position of the camera to recapture the recognition frame picture displayed on the display terminal device. In this embodiment, the identification frame picture can be a frame picture of a single color, such as a frame of blue picture, and this frame of blue picture is sent to the display terminal device for display, and then the camera is used to capture the picture displayed on the display terminal device. If it is not captured, it means that the camera position of the mobile terminal is not directly facing the display screen of the display terminal device. At this time, the user should be prompted to adjust the position of the camera to recapture the display screen of the display terminal device. For the blue screen displayed, the specific prompting method can also prompt the user to make adjustments in the form of a pop-up dialog box. In this embodiment, after the step of judging whether the camera has captured the identification frame picture displayed on the display terminal device, it further includes: if the identification frame picture displayed on the display terminal device is captured, prompting the user that the identification frame picture has been successfully identified Captured can proceed to the next step. In this embodiment, the step of adjusting the position of the camera can help the user to position the mobile terminal in a timely and accurate manner.
在本实施方式中,步骤S102同时发送预设帧画面视频信号以及一段预设音频信号至显示终端设备,其中,预设帧画面亦可以为单一颜色的帧画面,不过预设帧画面与识别帧画面应为不同的颜色,例如预设帧画面为一帧红色画面。In this embodiment, step S102 simultaneously sends a preset frame picture video signal and a preset audio signal to the display terminal device, wherein the preset frame picture can also be a single-color frame picture, but the preset frame picture and the identification frame The pictures should be in different colors, for example, the preset frame picture is a frame of red picture.
在步骤S103中,通过摄像头捕捉预设帧画面视频信号在显示终端设备的显示屏出现的时间,并记录为第一时间点。In step S103, the camera captures the time when the video signal of the preset frame picture appears on the display screen of the display terminal device, and records it as the first time point.
在本实施方式中,如果通过摄像头捕捉预设帧画面视频信号在显示终端设备的显示屏出现的时间为12时20分12秒,则记录下的第一时间点就为12时20分12秒,当然,为了进一步提高测试的精确度,还可以将移动终端的时间的最小单位调整到为毫秒级别,例如,记录下的第一时间点可以为12时20分12秒20毫秒。In this embodiment, if the video signal of the preset frame picture is captured by the camera and appears on the display screen of the display terminal device at 12:20:12, the first recorded time point is 12:20:12 Of course, in order to further improve the accuracy of the test, the minimum unit of time of the mobile terminal can also be adjusted to millisecond level, for example, the first time point recorded can be 12:20:12:20 milliseconds.
在步骤S104中,通过麦克风捕捉预设音频信号在显示终端设备开始播放的时间,并记录为第二时间点。In step S104, the time at which the preset audio signal starts to be played by the display terminal device is captured by the microphone, and recorded as a second time point.
在本实施方式中,如果通过麦克风捕捉预设音频信号在显示终端设备开始播放的时间为12时20分15秒,则记录下的第二时间点就为12时20分15秒,同样的,为了进一步提高测试的精确度,也可以将移动终端的时间的最小单位调整到为毫秒级别,例如,记录下的第二时间点可以为12时20分15秒50毫秒。In this embodiment, if the time when the preset audio signal is captured by the microphone and played on the display terminal device is 12:20:15, the second recorded time point is 12:20:15. Similarly, In order to further improve the accuracy of the test, the minimum unit of time of the mobile terminal may also be adjusted to millisecond level, for example, the recorded second time point may be 12:20:15:50 milliseconds.
在步骤S105中,通过第一时间点与第二时间点的差值调整移动终端发送给显示终端设备的音频数据以及视频数据的时间差。In step S105, the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device is adjusted according to the difference between the first time point and the second time point.
在本实施方式中,如果记录下的第一时间点可以为12时20分12秒20毫秒,记录下的第二时间点可以为12时20分15秒50毫秒,则移动终端自动计算第一时间点与第二时间点的差值,即为3秒30毫秒,这样就得到了在显示终端设备上播放的声音相对于画面的延时为3秒30毫秒,然后移动终端根据计算到的差值自动调整发送给显示终端设备的音频数据以及视频数据的时间差,也就是说将视频数据延后3秒30毫秒发送,使之与对应的音频数据在显示终端设备播放时保持同步。In this embodiment, if the recorded first time point can be 12:20:12:20 milliseconds, and the recorded second time point can be 12:20:15:50 milliseconds, the mobile terminal automatically calculates the first The difference between the time point and the second time point is 3 seconds and 30 milliseconds, so that the delay of the sound played on the display terminal device relative to the picture is 3 seconds and 30 milliseconds, and then the mobile terminal will The value automatically adjusts the time difference between the audio data and video data sent to the display terminal device, that is to say, the video data is sent after 3 seconds and 30 milliseconds, so that it is synchronized with the corresponding audio data when it is played by the display terminal device.
在其他实施方式中,为了进一步提高音视频同步播放的精确度,还可以通过多次测试获取平均值的方式来提高计算第一时间点与第二时间点差值的精确度,从而提高用户的体验,多次测试的方式也就是重复测试步骤S102至步骤S105,在此就不作重复叙述。In other implementations, in order to further improve the accuracy of synchronous playback of audio and video, the accuracy of calculating the difference between the first time point and the second time point can also be improved by obtaining the average value through multiple tests, thereby improving the user's For experience, the way of multiple tests is to repeat the test steps S102 to S105, which will not be repeated here.
本发明所提供的一种基于移动终端的音视频同步方法,通过计算音视频数据在传输和经过显示终端设备处理后的延时来自动调整移动终端发送给显示终端设备的音频数据与视频数据的时间差值,可以使得移动终端发送给显示终端设备的音视频数据在显示终端设备进行播放时达到同步的效果,而且不需要用户进行手动操作,同时还具有精确度高的优点,进而提高用户的体验。An audio-video synchronization method based on a mobile terminal provided by the present invention automatically adjusts the ratio between the audio data and the video data sent by the mobile terminal to the display terminal device by calculating the delay of the audio-video data after transmission and processing by the display terminal device. The time difference can make the audio and video data sent by the mobile terminal to the display terminal device achieve a synchronous effect when the display terminal device plays, and does not require manual operation by the user, and also has the advantage of high accuracy, thereby improving the user's experience.
本发明具体实施方式还提供一种基于移动终端的音视频同步系统20,与显示终端设备30交互,如图2所示,其中,所述基于移动终端的音视频同步系统主要包括:The specific embodiment of the present invention also provides an audio-video synchronization system 20 based on a mobile terminal, which interacts with a display terminal device 30, as shown in FIG. 2 , wherein the audio-video synchronization system based on a mobile terminal mainly includes:
对准模块201,用于开启所述移动终端的摄像头以及麦克风,并提示用户将所述摄像头对准与所述移动终端通信的所述显示终端设备的显示屏;An alignment module 201, configured to turn on the camera and microphone of the mobile terminal, and prompt the user to align the camera with the display screen of the display terminal device communicating with the mobile terminal;
第一发送模块202,用于同时发送预设帧画面视频信号以及一段预设音频信号至所述显示终端设备;The first sending module 202 is configured to simultaneously send a preset frame picture video signal and a preset audio signal to the display terminal device;
第一记录模块203,用于通过所述摄像头捕捉所述预设帧画面视频信号在所述显示终端设备的显示屏出现的时间,并记录为第一时间点;The first recording module 203 is configured to use the camera to capture the time when the video signal of the preset frame picture appears on the display screen of the display terminal device, and record it as a first time point;
第二记录模块204,用于通过所述麦克风捕捉所述预设音频信号在所述显示终端设备开始播放的时间,并记录为第二时间点;The second recording module 204 is configured to use the microphone to capture the time when the preset audio signal starts playing on the display terminal device, and record it as a second time point;
时间差调整模块205,用于通过所述第一时间点与所述第二时间点的差值调整所述移动终端发送给所述显示终端设备的音频数据以及视频数据的时间差。The time difference adjusting module 205 is configured to adjust the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device according to the difference between the first time point and the second time point.
本发明所提供的基于移动终端的音视频同步系统20,通过计算音视频数据在传输和经过显示终端设备处理后的延时来自动调整移动终端发送给显示终端设备的音频数据与视频数据的时间差值,可以使得移动终端发送给显示终端设备的音视频数据在显示终端设备进行播放时达到同步的效果,而且不需要用户进行手动操作,同时还具有精确度高的优点,进而提高用户的体验。The audio and video synchronization system 20 based on the mobile terminal provided by the present invention automatically adjusts the time of audio data and video data sent by the mobile terminal to the display terminal device by calculating the delay of the audio and video data after transmission and processing by the display terminal device The difference can make the audio and video data sent by the mobile terminal to the display terminal device achieve a synchronous effect when the display terminal device plays, and does not require manual operation by the user. It also has the advantage of high accuracy, thereby improving the user experience. .
以下将对本发明所提供的一种基于移动终端的音视频同步系统20进行详细说明。A mobile terminal-based audio-video synchronization system 20 provided by the present invention will be described in detail below.
请参阅图2,所示为本发明一实施方式中基于移动终端的音视频同步系统20的结构示意图。在本实施方式中,基于移动终端的音视频同步系统20与显示终端设备30交互,其中,基于移动终端的音视频同步系统20包括对准模块201、第一发送模块202、第一记录模块203、第二记录模块204、时间差调整模块205、同步开启模块206、第二发送模块207、判断模块208、位置调整模块209以及确认模块210。在本实施方式中,移动终端可以为手机、平板电脑等,在此不做限定。Please refer to FIG. 2 , which is a schematic structural diagram of an audio-video synchronization system 20 based on a mobile terminal in an embodiment of the present invention. In this embodiment, the mobile terminal-based audio and video synchronization system 20 interacts with the display terminal device 30, wherein the mobile terminal-based audio and video synchronization system 20 includes an alignment module 201, a first sending module 202, and a first recording module 203 , a second recording module 204 , a time difference adjusting module 205 , a synchronization enabling module 206 , a second sending module 207 , a judging module 208 , a position adjusting module 209 and a confirming module 210 . In this implementation manner, the mobile terminal may be a mobile phone, a tablet computer, etc., which is not limited here.
对准模块201,用于开启移动终端的摄像头以及麦克风,并提示用户将摄像头对准与基于移动终端的音视频同步系统20通信的显示终端设备30的显示屏。The alignment module 201 is configured to turn on the camera and microphone of the mobile terminal, and prompt the user to align the camera with the display screen of the display terminal device 30 communicating with the audio-video synchronization system 20 based on the mobile terminal.
在本实施方式中,同步开启模块206用于开启移动终端的音视频同步配置功能,在其他实施方式中,开启移动终端的音视频同步配置功能也可以用开启移动终端的摄像头以及麦克风来实现,也就是说,当用户开启移动终端的摄像头以及麦克风时,移动终端的音视频同步配置功能也自动开启并被激活,这样就可以简化用户的操作步骤。In this embodiment, the synchronization opening module 206 is used to enable the audio and video synchronization configuration function of the mobile terminal. In other embodiments, enabling the audio and video synchronization configuration function of the mobile terminal may also be realized by turning on the camera and the microphone of the mobile terminal. That is to say, when the user turns on the camera and the microphone of the mobile terminal, the audio and video synchronization configuration function of the mobile terminal is also automatically turned on and activated, thus simplifying the user's operation steps.
在本实施方式中,显示终端设备30与基于移动终端的音视频同步系统20一直保持通信连接,在移动终端的摄像头以及麦克风被用户开启后,可以通过弹出对话框的方式提示用户将摄像头对准与基于移动终端的音视频同步系统20通信的显示终端设备30的显示屏,这样以方便于摄像头能捕捉到显示终端设备30所显示的画面。In this embodiment, the display terminal device 30 maintains a communication connection with the audio-video synchronization system 20 based on the mobile terminal. After the camera and the microphone of the mobile terminal are turned on by the user, the user may be prompted to align the camera with a pop-up dialog box. The display screen of the display terminal device 30 communicates with the audio-video synchronization system 20 based on the mobile terminal, so that the camera can capture the picture displayed by the display terminal device 30 conveniently.
第二发送模块207,用于发送识别帧画面视频信号至显示终端设备30进行显示。The second sending module 207 is configured to send the video signal of the identified frame picture to the display terminal device 30 for display.
判断模块208,用于判断通过摄像头是否捕捉到在显示终端设备30显示的识别帧画面。The judging module 208 is configured to judge whether the identification frame picture displayed on the display terminal device 30 is captured by the camera.
位置调整模块209,用于如果没有捕捉到在显示终端设备30显示的识别帧画面,则提示用户调整摄像头的位置重新捕捉在显示终端设备30显示的识别帧画面。The position adjustment module 209 is configured to prompt the user to adjust the position of the camera to recapture the recognition frame picture displayed on the display terminal device 30 if the recognition frame picture displayed on the display terminal device 30 is not captured.
在本实施方式中,识别帧画面可以为单一颜色的帧画面,例如一帧蓝色画面,第二发送模块207将这一帧蓝色画面发送至显示终端设备30进行显示,然后利用摄像头捕捉在显示终端设备30上显示的蓝色画面,判断模块208判断摄像头是否捕捉到,如果没有捕捉到则表明移动终端的摄像头位置没有正对着显示终端设备30的显示屏,这时就要提示用户调整摄像头的位置以重新捕捉在显示终端设备30显示的蓝色画面,具体的提示方式亦可以用弹出对话框的方式提示用户进行调整。在本实施方式中,位置调整模块209调整摄像头位置可以帮助用户及时并准确的摆正移动终端的定位。In this embodiment, the identification frame picture can be a frame picture of a single color, such as a frame of blue picture, and the second sending module 207 sends this frame of blue picture to the display terminal device 30 for display, and then uses the camera to capture The blue picture displayed on the display terminal device 30, the judging module 208 judges whether the camera captures it, if not, it indicates that the camera position of the mobile terminal is not facing the display screen of the display terminal device 30, and the user will be prompted to adjust The position of the camera is to recapture the blue picture displayed on the display terminal device 30, and the specific prompting method can also prompt the user to adjust by means of a pop-up dialog box. In this embodiment, the position adjustment module 209 adjusts the position of the camera to help the user adjust the position of the mobile terminal in a timely and accurate manner.
确认模块210,用于如果捕捉到在显示终端设备30显示的识别帧画面,则提示用户识别帧画面已成功捕捉到可以进行下一步操作。The confirmation module 210 is configured to prompt the user that the identification frame picture has been successfully captured and proceed to the next operation if the identification frame picture displayed on the display terminal device 30 is captured.
第一发送模块202,用于同时发送预设帧画面视频信号以及一段预设音频信号至显示终端设备30。在本实施方式中,预设帧画面亦可以为单一颜色的帧画面,不过预设帧画面与识别帧画面应为不同的颜色,例如预设帧画面为一帧红色画面。The first sending module 202 is configured to send a preset frame picture video signal and a preset audio signal to the display terminal device 30 at the same time. In this embodiment, the preset frame picture can also be a frame picture of a single color, but the preset frame picture and the identification frame picture should be of different colors, for example, the default frame picture is a frame of red picture.
第一记录模块203,用于通过摄像头捕捉预设帧画面视频信号在显示终端设备30的显示屏出现的时间,并记录为第一时间点。The first recording module 203 is configured to capture the time when the video signal of the preset frame picture appears on the display screen of the display terminal device 30 through the camera, and record it as the first time point.
在本实施方式中,如果通过摄像头捕捉预设帧画面视频信号在显示终端设备30的显示屏出现的时间为12时20分12秒,则记录下的第一时间点就为12时20分12秒,当然,为了进一步提高测试的精确度,还可以将移动终端的时间的最小单位调整到为毫秒级别,例如,记录下的第一时间点可以为12时20分12秒20毫秒。In this embodiment, if the video signal of the preset frame picture is captured by the camera and appears on the display screen of the display terminal device 30 at 12:20:12, the first recorded time point is 12:20:12 Seconds, of course, in order to further improve the accuracy of the test, the smallest unit of time of the mobile terminal can also be adjusted to the millisecond level, for example, the first recorded time point can be 12:20:12:20 milliseconds.
第二记录模块204,用于通过麦克风捕捉预设音频信号在显示终端设备30开始播放的时间,并记录为第二时间点。The second recording module 204 is configured to capture the time when the preset audio signal starts to be played by the display terminal device 30 through a microphone, and record it as a second time point.
在本实施方式中,如果通过麦克风捕捉预设音频信号在显示终端设备30开始播放的时间为12时20分15秒,则记录下的第二时间点就为12时20分15秒,同样的,为了进一步提高测试的精确度,也可以将移动终端的时间的最小单位调整到为毫秒级别,例如,记录下的第二时间点可以为12时20分15秒50毫秒。In this embodiment, if the time when the preset audio signal is captured by the microphone and played on the display terminal device 30 is 12:20:15, the second recorded time point is 12:20:15. Similarly , in order to further improve the accuracy of the test, the minimum unit of time of the mobile terminal may also be adjusted to millisecond level, for example, the recorded second time point may be 12:20:15:50 milliseconds.
时间差调整模块205,用于通过第一时间点与第二时间点的差值调整移动终端发送给显示终端设备30的音频数据以及视频数据的时间差。The time difference adjusting module 205 is configured to adjust the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device 30 through the difference between the first time point and the second time point.
在本实施方式中,如果记录下的第一时间点可以为12时20分12秒20毫秒,记录下的第二时间点可以为12时20分15秒50毫秒,则移动终端自动计算第一时间点与第二时间点的差值,即为3秒30毫秒,这样就得到了在显示终端设备30上播放的声音相对于画面的延时为3秒30毫秒,然后移动终端根据计算到的差值自动调整发送给显示终端设备30的音频数据以及视频数据的时间差,也就是说将视频数据延后3秒30毫秒发送,使之与对应的音频数据在显示终端设备30播放时保持同步。In this embodiment, if the recorded first time point can be 12:20:12:20 milliseconds, and the recorded second time point can be 12:20:15:50 milliseconds, the mobile terminal automatically calculates the first The difference between the time point and the second time point is 3 seconds and 30 milliseconds, so that the delay of the sound played on the display terminal device 30 relative to the picture is 3 seconds and 30 milliseconds, and then the mobile terminal calculates the The difference automatically adjusts the time difference between the audio data and video data sent to the display terminal device 30 , that is to say, the video data is sent after 3 seconds and 30 milliseconds, so that it is synchronized with the corresponding audio data when it is played by the display terminal device 30 .
在其他实施方式中,为了进一步提高音视频同步播放的精确度,还可以通过多次测试获取平均值的方式来提高计算第一时间点与第二时间点差值的精确度,从而提高用户的体验,多次测试的方式也就是多次重复模块202至205的运作,在此就不作重复叙述。In other implementations, in order to further improve the accuracy of synchronous playback of audio and video, the accuracy of calculating the difference between the first time point and the second time point can also be improved by obtaining the average value through multiple tests, thereby improving the user's Experience, the way of multiple tests is to repeat the operation of the modules 202 to 205 multiple times, which will not be repeated here.
本发明所提供的一种基于移动终端的音视频同步系统20,通过计算音视频数据在传输和经过显示终端设备30处理后的延时来自动调整移动终端发送给显示终端设备30的音频数据与视频数据的时间差值,可以使得移动终端发送给显示终端设备30的音视频数据在显示终端设备30进行播放时达到同步的效果,而且不需要用户进行手动操作,同时还具有精确度高的优点,进而提高用户的体验。A mobile terminal-based audio-video synchronization system 20 provided by the present invention automatically adjusts the audio data and audio data sent by the mobile terminal to the display terminal device 30 by calculating the delay of the audio-video data after transmission and processing by the display terminal device 30. The time difference of the video data can make the audio and video data sent by the mobile terminal to the display terminal device 30 achieve a synchronous effect when the display terminal device 30 plays, and does not require manual operation by the user, and also has the advantage of high accuracy , thereby improving the user experience.
在本发明实施例中,本发明提供的技术方案,通过计算音视频数据在传输和经过显示终端设备处理后的延时来自动调整移动终端发送给显示终端设备的音频数据与视频数据的时间差值,可以使得移动终端发送给显示终端设备的音视频数据在显示终端设备进行播放时达到同步的效果,而且不需要用户进行手动操作,同时还具有精确度高的优点,进而提高用户的体验。In the embodiment of the present invention, the technical solution provided by the present invention automatically adjusts the time difference between the audio data and the video data sent by the mobile terminal to the display terminal device by calculating the delay of audio and video data after transmission and processing by the display terminal device The value can make the audio and video data sent by the mobile terminal to the display terminal device achieve synchronization effect when the display terminal device plays, and does not require manual operation by the user, and also has the advantage of high accuracy, thereby improving the user experience.
值得注意的是,上述实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments, the units included are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are also It is only for the convenience of distinguishing each other, and is not intended to limit the protection scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. Storage media, such as ROM/RAM, magnetic disk or optical disk, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310121734.0A CN103237203B (en) | 2013-04-09 | 2013-04-09 | Audio and video synchronization method and system based on mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310121734.0A CN103237203B (en) | 2013-04-09 | 2013-04-09 | Audio and video synchronization method and system based on mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103237203A CN103237203A (en) | 2013-08-07 |
| CN103237203B true CN103237203B (en) | 2016-03-02 |
Family
ID=48885216
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310121734.0A Active CN103237203B (en) | 2013-04-09 | 2013-04-09 | Audio and video synchronization method and system based on mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103237203B (en) |
Families Citing this family (26)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103647995A (en) * | 2013-11-14 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Data-resource transmission method and device |
| KR102156467B1 (en) * | 2014-01-31 | 2020-09-15 | 인터디지털 씨이 페턴트 홀딩스 | Method and apparatus for synchronizing playbacks at two electronic devices |
| EP3100458B1 (en) | 2014-01-31 | 2018-08-15 | Thomson Licensing | Method and apparatus for synchronizing the playback of two electronic devices |
| GB2526330B (en) * | 2014-05-21 | 2017-01-04 | Canon Kk | Method and apparatus for synchronizing the display of video data on two display devices |
| CN104243850B (en) * | 2014-09-15 | 2018-04-17 | 苏州佳世达电通有限公司 | The method that data is played simultaneously |
| CN106550248B (en) * | 2015-09-18 | 2020-05-01 | 中国移动通信集团公司 | Audio and video synchronization method and device |
| CN106875759A (en) * | 2017-03-10 | 2017-06-20 | 重庆工业职业技术学院 | A kind of foreign language multimedia teaching Non-connecting audio/video of mobile phone amplifying device and its application method |
| CN107277296B (en) * | 2017-07-03 | 2020-05-05 | 中国舰船研究设计中心 | Audio and video signal synchronization device and method suitable for bubble acoustic research |
| CN107734378B (en) * | 2017-10-31 | 2019-11-01 | 维沃移动通信有限公司 | A kind of audio and video synchronization method, device and mobile terminal |
| CN107920245B (en) * | 2017-11-22 | 2019-08-30 | 北京奇艺世纪科技有限公司 | A method and device for detecting video playback start time |
| CN109379619B (en) * | 2018-11-20 | 2021-05-18 | 海信视像科技股份有限公司 | Sound and picture synchronization method and device |
| CN110427805B (en) * | 2019-06-20 | 2024-03-19 | 平安科技(深圳)有限公司 | Video display method, apparatus, computer device and storage medium |
| CN110830832B (en) * | 2019-10-31 | 2022-06-14 | 广州市百果园信息技术有限公司 | Audio playing parameter configuration method of mobile terminal and related equipment |
| CN110753165A (en) * | 2019-11-07 | 2020-02-04 | 金华深联网络科技有限公司 | Method for synchronizing remote control video data and audio data of bulldozer |
| CN110798591A (en) * | 2019-11-07 | 2020-02-14 | 金华深联网络科技有限公司 | Method for synchronizing remote control video data and audio data of excavator |
| CN110830677A (en) * | 2019-11-07 | 2020-02-21 | 金华深联网络科技有限公司 | Method for remote control of video data and audio data synchronization of rock drilling robot |
| CN110753166A (en) * | 2019-11-07 | 2020-02-04 | 金华深联网络科技有限公司 | Method for remotely controlling video data and audio data to be synchronous by dredging robot |
| CN111988647A (en) * | 2020-08-27 | 2020-11-24 | 广州视源电子科技股份有限公司 | Audio and video synchronization adjustment method, device, equipment and medium |
| CN112040225B (en) * | 2020-09-02 | 2022-08-05 | 广州市百果园信息技术有限公司 | Playing delay difference measuring method, device, equipment, system and storage medium |
| CA3203735A1 (en) | 2020-12-31 | 2022-07-07 | Dominic Sinclair COLLINS | Audio synchronisation |
| GB2602474B (en) * | 2020-12-31 | 2024-10-23 | Darabase Ltd | Audio synchronisation |
| CN114827581A (en) * | 2021-01-28 | 2022-07-29 | 华为技术有限公司 | Synchronization delay measuring method, content synchronization method, terminal device, and storage medium |
| CN116033204B (en) * | 2022-07-08 | 2023-10-20 | 荣耀终端有限公司 | Screen recording method, electronic equipment and storage medium |
| CN115657347A (en) * | 2022-10-26 | 2023-01-31 | 锦花电子(镇江)有限公司 | Display screen running state intelligent monitoring system and method based on multivariate information |
| CN115811628A (en) * | 2022-11-03 | 2023-03-17 | 深圳创维-Rgb电子有限公司 | Synchronous processing method of sound and picture and related device |
| CN116682450A (en) * | 2023-06-28 | 2023-09-01 | 重庆欣音新电医疗科技有限公司 | Method, device, system and storage medium for synchronizing heart sound and electrocardiosignals |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101394469A (en) * | 2008-10-29 | 2009-03-25 | 北京创毅视讯科技有限公司 | Audio and video synchronization method, device and a digital television chip |
| CN101635848A (en) * | 2008-07-22 | 2010-01-27 | 北大方正集团有限公司 | Method and device for editing video file |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR19980016366U (en) * | 1996-09-17 | 1998-06-25 | 박병재 | Cylinder head cover with rib |
| US20020097419A1 (en) * | 2001-01-19 | 2002-07-25 | Chang William Ho | Information apparatus for universal data output |
-
2013
- 2013-04-09 CN CN201310121734.0A patent/CN103237203B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101635848A (en) * | 2008-07-22 | 2010-01-27 | 北大方正集团有限公司 | Method and device for editing video file |
| CN101394469A (en) * | 2008-10-29 | 2009-03-25 | 北京创毅视讯科技有限公司 | Audio and video synchronization method, device and a digital television chip |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103237203A (en) | 2013-08-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103237203B (en) | Audio and video synchronization method and system based on mobile terminal | |
| KR102284721B1 (en) | Method and apparatus for displaying application data in wireless communication system | |
| US9794451B2 (en) | Cloud server, control equipment and method for audio and video synchronization | |
| US10142578B2 (en) | Method and system for communication | |
| JP2023519291A (en) | Method for resuming playback of multimedia content between devices | |
| US20140118468A1 (en) | Method and system for adapting a television for multimedia conferencing | |
| CN103501408B (en) | A kind of use mobile terminal shoots the method and system of video clip | |
| CN105120331A (en) | Method and apparatus of processing live audio and video | |
| CN104519397A (en) | Audio and video screen-projection playing method, set-top box and terminal device | |
| CN109379613A (en) | Audio and video synchronization adjustment method, television, computer-readable storage medium and system | |
| WO2017071073A1 (en) | Method and device for media synchronization | |
| WO2017000554A1 (en) | Audio and video file generation method, apparatus and system | |
| WO2016004858A1 (en) | Data processing method and apparatus and mobile terminal device | |
| CN102998880A (en) | Projector with function of camera and shooting method | |
| TW201735651A (en) | Method of real time playing the recorded multimedia and related devices | |
| CN103220425B (en) | A kind of way of recording based on multiple mobile terminal and system | |
| CN100556151C (en) | A video terminal and an audio stream processing method | |
| CN103596063B (en) | Method for setting terminal, TV, multi-screen interactive system and screen capture parameters | |
| US9838584B2 (en) | Audio/video synchronization using a device with camera and microphone | |
| CN105959614A (en) | Method and system for processing video conference | |
| US9247191B2 (en) | Wireless external multi-microphone system for mobile device environment | |
| CN105912295A (en) | Method and device for processing audio data | |
| WO2017113695A1 (en) | Video communication method for smart television, terminal equipment and smart television | |
| WO2016169228A1 (en) | Fusion equipment supporting multimedia telephony, communication method and user equipment | |
| CN108377402A (en) | A kind of TV screen video recorder suitable for set-top box based on bluetooth |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |