WO2017005063A1 - 音视频同步的方法、装置及电视机 - Google Patents
音视频同步的方法、装置及电视机 Download PDFInfo
- Publication number
- WO2017005063A1 WO2017005063A1 PCT/CN2016/084228 CN2016084228W WO2017005063A1 WO 2017005063 A1 WO2017005063 A1 WO 2017005063A1 CN 2016084228 W CN2016084228 W CN 2016084228W WO 2017005063 A1 WO2017005063 A1 WO 2017005063A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio
- blanking
- video
- completion event
- signal
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/16—Analogue secrecy systems; Analogue subscription systems
- H04N7/173—Analogue secrecy systems; Analogue subscription systems with two-way working, e.g. subscriber sending a programme selection signal
Definitions
- the present invention relates to the field of television signal processing technologies, and in particular, to a method and device for synchronizing audio and video and a television set.
- the video decoding and display buffer, audio decoding and display buffer data are unstable and irregular, which will cause the flickering of the screen to be played, the screen, and the speaker. Or the popping noise of the headphones and other clutter.
- TV design manufacturers usually blank the audio and video during this switching process.
- the audio and video blanking driver interface function of the solution provider can be called in the developed software to implement the unlocking.
- Different scheme providers have two types of synchronous and asynchronous methods on the package interface of the driver.
- the synchronization mode is to return the result after completing the specific operation in the interface; the asynchronous mode only starts the function, and the function passes another thread in the background. Step by step.
- the unlocking of the audio is faster than the decoding of the video. Therefore, for the scheme of the asynchronous method, when the blanking is performed, the audio is first released after the blanking is completed for a period of time, and then the video is played for a certain period of time. The phenomenon that the video is played, causing the audio and video to be out of sync.
- the main object of the present invention is to provide a method and device for synchronizing audio and video and a television set, aiming at solving the technical problem that audio and video are not synchronized when asynchronous decoding is blanked.
- the present invention provides a method for synchronizing audio and video, and the method for synchronizing audio and video includes the following steps:
- the audio blanking driver interface function is called according to the first completion event to de-emphasize the audio signal, so that the unlocked audio and video are synchronized.
- the step of de-emphasizing the audio signal by calling the audio blanking driver interface function according to the first completion event comprises:
- the buffered video signal is sent to the display module for playing
- the method includes:
- the unmasked audio signal is sent to the audio play module for playback.
- the method before the step of de-emphasizing the audio signal by calling the audio blanking driver interface function according to the first completion event, the method further includes:
- the first completion event is reported to the video blanking driver interface
- the method further includes:
- the steps include:
- the audio blanking drive interface function is stopped from calling the audio signal to perform a blanking operation, and a state waiting for receiving the first completion event is entered.
- the present invention further provides an apparatus for synchronizing audio and video
- the apparatus for synchronizing audio and video includes a middleware module and a driving module
- the middleware module includes a detecting unit and a calling unit.
- the detecting unit is configured to detect, after performing an asynchronous de-emphasis on the audio and video signals in the television program signal, after performing a logical management operation on the audio signal, detecting whether the first generated by the driving module after the video signal is released by the blanking is completed. a completion event;
- the calling unit is configured to: when the first completion event is received, invoke an audio blanking driver interface function according to the first completion event to perform blanking on the audio signal, so as to cancel the hidden audio and video Synchronize.
- the driving module comprises a first sending unit and a second sending unit, wherein:
- the first sending unit is configured to: after the unlocking of the video signal is completed, send the decrypted video signal to the display module for playing;
- the second sending unit is configured to send the unlocked audio signal to the audio playing module for playing.
- the driving module further includes a first reporting unit and a second reporting unit, where:
- the first reporting unit is configured to report the first completion event to a video blanking drive interface after the blanking of the video signal is completed;
- the second reporting unit is configured to generate a second completion event after the audio signal is released by the blanking, and report the second completion event to the audio blanking driver interface.
- the middleware module further includes a stop calling unit, if the first completion event is not received, stopping calling the audio blanking drive interface function to perform a blanking operation on the audio signal, and waiting to enter Receiving a status of the first completion event.
- a stop calling unit if the first completion event is not received, stopping calling the audio blanking drive interface function to perform a blanking operation on the audio signal, and waiting to enter Receiving a status of the first completion event.
- the present invention also provides a television set comprising the above-described apparatus for synchronizing audio and video.
- the method, device and television set of the audio and video synchronization of the invention when the asynchronous signal is blanked, after the audio signal performs the logic management operation, the audio driver interface function is not directly called, but is in a waiting state, where the video signal is waiting.
- the first completion event generated after the completion of the blanking is completed.
- the driver layer After the final step of the video signal debounce is completed, the driver layer generates a first completion event, and the middleware layer continues to call the audio driver interface function after receiving the first completion event reported by the driver layer, and the driver layer unmasks the audio signal. Because the audio signal is cancelled very fast, the time difference between audio and video cancellation can be basically eliminated, and the audio and video cancellation blanking synchronization is achieved from the overall effect, and the phenomenon that the sound is played after playing the video for a certain period of time is avoided.
- FIG. 1 is a schematic flow chart of a first embodiment of a method for synchronizing audio and video according to the present invention
- FIG. 2 is a schematic diagram of a hardware architecture of the television of FIG. 1;
- FIG. 3 is a schematic flow chart of a second embodiment of a method for synchronizing audio and video according to the present invention.
- FIG. 4 is a schematic diagram of the refinement process of FIG. 3;
- FIG. 5 is a schematic diagram of functional modules of an apparatus for synchronizing audio and video according to the present invention.
- the present invention provides a method for synchronizing audio and video.
- the method for synchronizing audio and video includes:
- Step S101 When asynchronously releasing the audio and video signals in the television program signal, after performing the logic management operation on the audio signal, detecting whether the first completion event generated after the completion of the blanking of the video signal is received is received;
- the uppermost layer is the application layer.
- the application layer contains a variety of applications that can call the middleware layer for mute, switch, play, effect settings, and unlocking.
- the television after the television performs the operations of switching the source, changing the channel, switching the proportional mode, and not processing the signal through an application, the television performs audio and video blanking, and then performs corresponding control operations such as switching, playing, and effect setting. .
- the control operation After the control operation is completed, the video signal in the television signal needs to be blanked, and then the audio signal is unbaked.
- Step 1 the middleware layer calls a video driver interface function of the driver layer
- Step 2 The driver layer performs a blanking on the video signal
- Step 3 returning the execution result of s1 to the video driving interface (the subsequent return of the result of s2-sn to the video driving interface);
- Step 6 Return the first completion event generated after the completion of the video signal debounce (ie, after the execution of the sn) to the middleware layer.
- a logical management operation is performed on the audio signal, and the logical management operations include, for example, processing of flag bits, copying, clearing, and writing processing of intermediate data.
- the middleware layer detects whether the driver layer pair is received.
- Step S102 if yes, calling the audio blanking driver interface function according to the first completion event to perform debounce on the audio signal, so as to synchronize the audio and video after the decryption.
- the audio signal can be de-embedded, that is, when the middleware layer receives When the first completion event, the audio blanking drive interface function of the driver layer is continuously called to unlock the audio signal, as shown in FIG. 2:
- Step 8 the middleware layer calls the audio driver interface function of the driver layer
- Step 9 The driver layer performs unlocking on the audio signal.
- the audio signal debounce operation is relatively simple, the steps are small, and the speed is fast. After the audio drive interface function of the driver layer is called, the sound is quickly played.
- the audio driver interface function is not directly called, but is in a waiting state, where the first completion event generated after the completion of the video signal cancellation blanking is waited for.
- the driver layer After the final step of the video signal debounce is completed, the driver layer generates a first completion event, and the middleware layer continues to call the audio driver interface function after receiving the first completion event reported by the driver layer, and the driver layer unmasks the audio signal. Because the audio signal is cancelled very fast, the time difference between audio and video cancellation can be basically eliminated, and the audio and video cancellation blanking synchronization is achieved from the overall effect, and the phenomenon that the sound is played after playing the video for a certain period of time is avoided.
- step S201 is further included before step S102, and step S202 is further included after step S102.
- Step S201 after the unlocking of the video signal is completed, sending the decrypted video signal to the display module for playing;
- Step S202 Send the unlocked audio signal to the audio play module for playing.
- the decrypted video signal is directly sent to the display module in FIG. 2 for playing, and since the audio signal is released, the blanking speed is fast, and therefore, the video signal is played.
- the audio signal is also unlocked and the audio signal is played, so that the unmasked audio and video signals are synchronized.
- step S201 can also be performed simultaneously with step S102.
- the video driver issues a first completion event
- the audio signal after the unlocking is sent to the audio playing module for playing.
- j is executed after b is completed, that is, j and c-g are concurrently performed.
- j it does not directly perform subsequent operations but waits for c-g to complete.
- k confirms that c-g execution is completed, and then performs subsequent operations.
- the method before the step S102, further includes: reporting the first completion event to the video blanking after the unlocking of the video signal is completed.
- the method further includes: generating a second completion event after the audio signal is released by the blanking, and reporting the second completion event to the audio blanking driver interface.
- the first completion event is reported to the video blanking driver interface
- the second completion event is reported to the audio blanking driver interface, so that the television performs subsequent logical operations.
- the method further includes: if the first completion event is not received, stopping calling the audio blanking driver interface function to the audio signal Performing a decryption operation enters a state of waiting to receive the first completion event.
- the audio blanking drive interface function is stopped from calling the audio signal to perform the blanking operation, that is, the audio driver interface function is not directly called, but is in a waiting state. Waiting for is the first completion event that occurs after the completion of the video signal cancellation blanking. After the final step of the video signal debounce is completed, a first completion event is generated, and after receiving the first completion event reported by the driver layer, the middleware layer continues to call the audio driver interface function, and the driver layer unmasks the audio signal.
- the present invention also provides an apparatus for synchronizing audio and video.
- the apparatus for synchronizing audio and video includes a middleware module 10 and a driving module 20, and the middleware module 10 includes a detecting unit. 101 and calling unit 102,
- the detecting unit 101 is configured to: after performing the asynchronous de-emphasis on the audio and video signals in the television program signal, after performing the logic management operation on the audio signal, detecting whether the first generated after the driver module releases the blanking of the video signal is received Complete the event;
- the uppermost layer is the application layer.
- the application layer contains a variety of applications that can call the middleware layer for mute, switch, play, effect settings, and unlocking.
- the middleware module 10 is located in the middleware layer
- the driving module 20 is located in the driving layer.
- the television after the television performs the operations of switching the source, changing the channel, switching the proportional mode, and not processing the signal through an application, the television performs audio and video blanking, and then performs corresponding control operations such as switching, playing, and effect setting. .
- the video signal in the television signal needs to be blanked, and then the audio signal is unbaked.
- FIG. 2 For the video signal to be debounced, reference may be made to FIG. 2 above, and details are not described herein again.
- a logical management operation is performed on the audio signal, and the logical management operations include, for example, processing of flag bits, copying, clearing, and writing processing of intermediate data.
- the middleware layer detects whether the driver layer pair is received.
- the calling unit 102 is configured to: when the first completion event is received, cancel the audio signal by using an audio blanking driver interface function according to the first completion event, so as to synchronize the audio and video after the blanking is performed. .
- the audio signal can be de-embedded, that is, when the middleware layer receives When the first completion event, the audio blanking drive interface function of the driver layer is continuously called to unlock the audio signal.
- the debounce of the audio signal can be combined with reference to FIG. 2 above, and details are not described herein again.
- the audio signal debounce operation is relatively simple, the steps are small, and the speed is fast. After the audio drive interface function of the driver layer is called, the sound is quickly played.
- the audio driver interface function is not directly called, but is in a waiting state, where the first completion event generated after the completion of the video signal cancellation blanking is waited for.
- the driver layer After the final step of the video signal debounce is completed, the driver layer generates a first completion event, and the middleware layer continues to call the audio driver interface function after receiving the first completion event reported by the driver layer, and the driver layer unmasks the audio signal. Because the audio signal is cancelled very fast, the time difference between audio and video cancellation can be basically eliminated, and the audio and video cancellation blanking synchronization is achieved from the overall effect, and the phenomenon that the sound is played after playing the video for a certain period of time is avoided.
- the driving module includes a first sending unit and a second sending unit, where: the first sending unit is configured to After the signal solution blanking is completed, the unmasked video signal is sent to the display module for playing; and the second sending unit is configured to send the unlocked audio signal to the audio play module for playing.
- the decrypted video signal is directly sent to the display module in FIG. 2 for playing, and since the audio signal is released, the blanking speed is fast, and therefore, the video signal is played.
- the audio signal is also unlocked and the audio signal is played, so that the unmasked audio and video signals are synchronized.
- the driving module further includes a first reporting unit and a second reporting unit, wherein: the first reporting unit is configured to After the video signal is released, the first completion event is reported to the video blanking driver interface; the second reporting unit is configured to generate a second completion event after the audio signal is released by the blanking, The second completion event is reported to the audio blanking driver interface.
- the first completion event is reported to the video blanking driver interface
- the second completion event is reported to the audio blanking driver interface, so that the television performs subsequent logical operations.
- the middleware module further includes a stop calling unit, for stopping calling the audio blanking if the first completion event is not received.
- the driving interface function performs a debounce operation on the audio signal, and enters a state of waiting to receive the first completion event.
- the audio blanking drive interface function is stopped from calling the audio signal to perform the blanking operation, that is, the audio driver interface function is not directly called, but is in a waiting state. Waiting for is the first completion event that occurs after the completion of the video signal cancellation blanking. After the final step of the video signal debounce is completed, a first completion event is generated, and after receiving the first completion event reported by the driver layer, the middleware layer continues to call the audio driver interface function, and the driver layer unmasks the audio signal.
- the present invention also provides a television set comprising the above-described apparatus for synchronizing audio and video.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
一种音视频同步的方法、装置及电视机,所述音视频同步的方法包括以下步骤:在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到对视频信号解消隐完成后产生的第一完成事件;若是,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。本方法在异步解消隐时能够基本消除音视频解消隐的时间差异,达到音视频同步的效果,避免声音先播放一段时间视频才播放的现象的发生。
Description
技术领域
本发明涉及电视信号处理技术领域,尤其涉及一种音视频同步的方法、装置及电视机。
背景技术
电视在信源切换或节目切换等的过程中,视频解码及显示的缓存、音频解码及显示的缓存中的数据呈不稳定和无规律的特性,这会导致播放的画面的闪烁、花屏、扬声器或耳机的爆音杂音等杂乱现象。为避免这个切换过程导致的电视杂乱现象,电视设计生产商在这切换过程中通常将音视频进行消隐。
目前,设计生产商开发中间件软件和应用软件时,可以在所开发的软件中调用方案商的音视频消隐驱动接口函数来实现解消隐。不同的方案商在提供驱动的封装接口上,有同步方式及异步方式两种,同步方式是接口中完成了具体操作后再返回结果;异步方式是仅仅启动了功能,功能在后台通过另外的线程逐步执行。而通常音频的解消隐比视频的解消隐快,因此,对于异步方式封装的方案,在解消隐时,音频先解消隐完成一段时间后视频才解消隐完成,这样会出现声音先播放一段时间后,视频才播放的现象,造成音视频不同步。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于提供一种音视频同步的方法、装置及电视机,旨在解决音视频在异步解消隐时不同步的技术问题。
为实现上述目的,本发明提供一种音视频同步的方法,所述音视频同步的方法包括以下步骤:
在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到对视频信号解消隐完成后产生的第一完成事件;
若是,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
优选地,所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之前包括:
在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;
所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之后包括:
将解消隐后的音频信号发送至音频播放模块进行播放。
优选地,所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之前还包括:
在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;
所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之后还包括:
产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
优选地,所述在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到对视频信号解消隐完成后产生的第一完成事件的步骤之后包括:
若否,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
此外,为实现上述目的,本发明还提供一种音视频同步的装置,所述音视频同步的装置包括中间件模块及驱动模块,所述中间件模块包括检测单元及调用单元,
所述检测单元,用于在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到驱动模块对视频信号解消隐完成后产生的第一完成事件;
所述调用单元,用于若接收到所述第一完成事件时,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
优选地,所述驱动模块包括第一发送单元及第二发送单元,其中:
所述第一发送单元,用于在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;
所述第二发送单元,用于将解消隐后的音频信号发送至音频播放模块进行播放。
优选地,所述驱动模块还包括第一上报单元及第二上报单元,其中:
所述第一上报单元,用于在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;
所述第二上报单元,用于产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
优选地,所述中间件模块还包括停止调用单元,用于若未接收到所述第一完成事件时,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
此外,为实现上述目的,本发明还提供一种电视机,所述电视机包括上述的音视频同步的装置。
本发明音视频同步的方法、装置及电视机,在异步解消隐时,音频信号执行完逻辑管理操作后,并未直接调用音频驱动接口函数,而是处于等待状态,此处等待的是视频信号解消隐全部完成后产生的第一完成事件。在视频信号解消隐的最后一步完成后,驱动层产生第一完成事件,中间件层接收到驱动层上报的第一完成事件后,才继续调用音频驱动接口函数,驱动层对音频信号解消隐,因为音频信号解消隐非常快,能够基本消除音视频解消隐的时间差异,从整体效果上就达到了音视频解消隐同步,避免声音先播放一段时间视频才播放的现象的发生。
附图说明
图1为本发明音视频同步的方法第一实施例的流程示意图;
图2为图1中电视的硬件架构示意图;
图3为本发明音视频同步的方法第二实施例的流程示意图;
图4为图3的细化流程示意图;
图5为本发明音视频同步的装置一实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种音视频同步的方法,参照图1,在一实施例中,该音视频同步的方法包括:
步骤S101,在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到对视频信号解消隐完成后产生的第一完成事件;
结合参阅图2,在电视的硬件架构中,最上的一层是应用层。应用层中包含各种各样的应用,这些应用可以调用中间件层的消隐(mute)、切换、播放、效果设置及解消隐等功能。
本实施例中,电视通过某应用执行了切换信源、换台、比例模式切换、无信号处理等操作后,电视会进行音视频消隐,然后执行对应的切换、播放、效果设置等控制操作。当控制操作完成后,需要先对电视信号中的视频信号解消隐,然后对音频信号解消隐。
本实施例采用异步解消隐的方式,在异步解消隐时,如图2所示:
步骤1,中间件层调用驱动层的视频驱动接口函数;
步骤2,驱动层对视频信号进行解消隐;
步骤3,将s1的执行结果返回至视频驱动接口(后续会将s2-sn的结果返回至视频驱动接口);
步骤6,将视频信号解消隐全部完成后(即sn执行完后)产生的第一完成事件返回至中间件层。
本实施例在对视频信号进行解消隐的同时,对音频信号执行逻辑管理操作,该逻辑管理操作例如包括对标志位的处理、对中间数据进行拷贝、清除及写入处理等等。
本实施例在异步解消隐中,由于对音频信号进行解消隐较快,而对视频解消隐较慢,因此,在对音频信号执行完逻辑管理操作后,中间件层检测是否接收到驱动层对视频信号解消隐全部完成后产生的第一完成事件,也就是说,驱动层对视频信号解消隐完成后产生第一完成事件,中间件层检测是否接收到驱动层上报的第一完成事件。
步骤S102,若是,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
本实施例中,如果驱动层对视频信号解消隐完成并将所产生的第一完成事件上报至中间件层时,才能够继续对音频信号进行解消隐,也就是说,当中间件层接收到第一完成事件时,才继续调用驱动层的音频消隐驱动接口函数对音频信号进行解消隐,如图2所示:
步骤8,中间件层调用驱动层的音频驱动接口函数;
步骤9,驱动层对音频信号进行解消隐;
本实施例中,音频信号解消隐操作比较简单、步骤少、速度快,执行调用驱动层的音频驱动接口函数后声音很快就能播放出来。
本实施例中,音频信号执行完逻辑管理操作后,并未直接调用音频驱动接口函数,而是处于等待状态,此处等待的是视频信号解消隐全部完成后产生的第一完成事件。在视频信号解消隐的最后一步完成后,驱动层产生第一完成事件,中间件层接收到驱动层上报的第一完成事件后,才继续调用音频驱动接口函数,驱动层对音频信号解消隐,因为音频信号解消隐非常快,能够基本消除音视频解消隐的时间差异,从整体效果上就达到了音视频解消隐同步,避免声音先播放一段时间视频才播放的现象的发生。
在一优选的实施例中,如图3所示,在上述图1的实施例的基础上,在上述步骤S102之前还包括步骤S201,在上述步骤S102之后还包括步骤S202:
步骤S201,在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;
步骤S202,将解消隐后的音频信号发送至音频播放模块进行播放。
本实施例中,在对视频信号解消隐完成后,直接将解消隐后的视频信号发送至图2中的显示模块进行播放,而由于音频信号解消隐速度很快,因此,在播放视频信号的同时,音频信号也解消隐完成并执行播放音频信号,这样,使得解消隐后的音视频信号同步。
值得说明的是,步骤S201也可以与步骤S102同时执行。
结合图4说明本实施例,如图4所示,解消隐操作开始后:
a、执行视频消隐逻辑操作;
b、调用视频解消隐驱动接口;
c-g、采用异步的方式对视频信号解消隐;
h、视频驱动发出第一完成事件;
i、解消隐后的视频信号发送至显示模块进行播放;
j、音频消隐逻辑管理操作;
k、接收视频解消隐完成的第一完成事件;
l、调用音频解消隐驱动接口;
m、对音频信号解消隐;
n、解消隐后的音频信号发送至音频播放模块进行播放。
其中,j是在b完成后即执行,即j与c-g是并发进行的。当j执行完毕后,不直接进行后续操作而是等待c-g完成,由执行h,k确认c-g执行完成后,再进行后续操作。
在一优选的实施例中,在上述图1的实施例的基础上,在上述步骤S102之前还包括:在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;在上述步骤S102之后还包括:产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
本实施例中,在音视频解消隐完成后,将第一完成事件上报至视频消隐驱动接口,将第二完成事件上报至音频消隐驱动接口,以便电视执行后续的逻辑操作。
在一优选的实施例中,在上述图1的实施例的基础上,在上述步骤S101之后还包括:若未接收到第一完成事件,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
本实施例中,音频信号执行完逻辑管理操作后,停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,即并未直接调用音频驱动接口函数,而是处于等待状态,此处等待的是视频信号解消隐全部完成后产生的第一完成事件。在视频信号解消隐的最后一步完成后产生第一完成事件,中间件层接收到驱动层上报的第一完成事件后,才继续调用音频驱动接口函数,驱动层对音频信号解消隐。
本发明还提供一种音视频同步的装置,如图5所示,在一实施例中,所述音视频同步的装置包括中间件模块10及驱动模块20,所述中间件模块10包括检测单元101及调用单元102,
检测单元101,用于在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到驱动模块对视频信号解消隐完成后产生的第一完成事件;
结合参阅图2,在电视的硬件架构中,最上的一层是应用层。应用层中包含各种各样的应用,这些应用可以调用中间件层的消隐(mute)、切换、播放、效果设置及解消隐等功能。其中,中间件模块10位于中间件层中,驱动模块20位于驱动层中。
本实施例中,电视通过某应用执行了切换信源、换台、比例模式切换、无信号处理等操作后,电视会进行音视频消隐,然后执行对应的切换、播放、效果设置等控制操作。当控制操作完成后,需要先对电视信号中的视频信号解消隐,然后对音频信号解消隐。对视频信号进行解消隐可结合参阅上述图2,此处不再赘述。
本实施例在对视频信号进行解消隐的同时,对音频信号执行逻辑管理操作,该逻辑管理操作例如包括对标志位的处理、对中间数据进行拷贝、清除及写入处理等等。
本实施例在异步解消隐中,由于对音频信号进行解消隐较快,而对视频解消隐较慢,因此,在对音频信号执行完逻辑管理操作后,中间件层检测是否接收到驱动层对视频信号解消隐全部完成后产生的第一完成事件,也就是说,驱动层对视频信号解消隐完成后产生第一完成事件,中间件层检测是否接收到驱动层上报的第一完成事件。
调用单元102,用于若接收到所述第一完成事件时,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
本实施例中,如果驱动层对视频信号解消隐完成并将所产生的第一完成事件上报至中间件层时,才能够继续对音频信号进行解消隐,也就是说,当中间件层接收到第一完成事件时,才继续调用驱动层的音频消隐驱动接口函数对音频信号进行解消隐。对音频信号进行解消隐可结合参阅上述图2,此处不再赘述。
本实施例中,音频信号解消隐操作比较简单、步骤少、速度快,执行调用驱动层的音频驱动接口函数后声音很快就能播放出来。
本实施例中,音频信号执行完逻辑管理操作后,并未直接调用音频驱动接口函数,而是处于等待状态,此处等待的是视频信号解消隐全部完成后产生的第一完成事件。在视频信号解消隐的最后一步完成后,驱动层产生第一完成事件,中间件层接收到驱动层上报的第一完成事件后,才继续调用音频驱动接口函数,驱动层对音频信号解消隐,因为音频信号解消隐非常快,能够基本消除音视频解消隐的时间差异,从整体效果上就达到了音视频解消隐同步,避免声音先播放一段时间视频才播放的现象的发生。
在一优选的实施例中,在上述图5的实施例的基础上,所述驱动模块包括第一发送单元及第二发送单元,其中:所述第一发送单元,用于在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;所述第二发送单元,用于将解消隐后的音频信号发送至音频播放模块进行播放。
本实施例中,在对视频信号解消隐完成后,直接将解消隐后的视频信号发送至图2中的显示模块进行播放,而由于音频信号解消隐速度很快,因此,在播放视频信号的同时,音频信号也解消隐完成并执行播放音频信号,这样,使得解消隐后的音视频信号同步。
在一优选的实施例中,在上述图5的实施例的基础上,所述驱动模块还包括第一上报单元及第二上报单元,其中:所述第一上报单元,用于在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述第二上报单元,用于产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
本实施例中,在音视频解消隐完成后,将第一完成事件上报至视频消隐驱动接口,将第二完成事件上报至音频消隐驱动接口,以便电视执行后续的逻辑操作。
在一优选的实施例中,在上述图5的实施例的基础上,所述中间件模块还包括停止调用单元,用于若未接收到所述第一完成事件时,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
本实施例中,音频信号执行完逻辑管理操作后,停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,即并未直接调用音频驱动接口函数,而是处于等待状态,此处等待的是视频信号解消隐全部完成后产生的第一完成事件。在视频信号解消隐的最后一步完成后产生第一完成事件,中间件层接收到驱动层上报的第一完成事件后,才继续调用音频驱动接口函数,驱动层对音频信号解消隐。
本发明还提供一种电视机,该电视机包括上述的音视频同步的装置。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (17)
- 一种音视频同步的方法,其特征在于,所述音视频同步的方法包括以下步骤:在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到对视频信号解消隐完成后产生的第一完成事件;若是,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
- 如权利要求1所述的音视频同步的方法,其特征在于,所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之前包括:在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之后包括:将解消隐后的音频信号发送至音频播放模块进行播放。
- 如权利要求1所述的音视频同步的方法,其特征在于,所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之前还包括:在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之后还包括:产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
- 如权利要求2所述的音视频同步的方法,其特征在于,所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之前还包括:在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐的步骤之后还包括:产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
- 如权利要求1所述的音视频同步的方法,其特征在于,所述在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到对视频信号解消隐完成后产生的第一完成事件的步骤之后包括:若否,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
- 一种音视频同步的装置,其特征在于,所述音视频同步的装置包括中间件模块及驱动模块,所述中间件模块包括检测单元及调用单元,所述检测单元,用于在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到驱动模块对视频信号解消隐完成后产生的第一完成事件;所述调用单元,用于若接收到所述第一完成事件时,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
- 如权利要求6所述的音视频同步的装置,其特征在于,所述驱动模块包括第一发送单元及第二发送单元,其中:所述第一发送单元,用于在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;所述第二发送单元,用于将解消隐后的音频信号发送至音频播放模块进行播放。
- 如权利要求6所述的音视频同步的装置,其特征在于,所述驱动模块还包括第一上报单元及第二上报单元,其中:所述第一上报单元,用于在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述第二上报单元,用于产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
- 如权利要求7所述的音视频同步的装置,其特征在于,所述驱动模块还包括第一上报单元及第二上报单元,其中:所述第一上报单元,用于在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述第二上报单元,用于产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
- 如权利要求6所述的音视频同步的装置,其特征在于,所述中间件模块还包括停止调用单元,用于若未接收到所述第一完成事件时,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
- 一种电视机,其特征在于,所述电视机包括音视频同步的装置;所述音视频同步的装置包括中间件模块及驱动模块,所述中间件模块包括检测单元及调用单元,所述检测单元,用于在对电视节目信号中的音视频信号进行异步解消隐时,当对音频信号执行完逻辑管理操作后,检测是否接收到驱动模块对视频信号解消隐完成后产生的第一完成事件;所述调用单元,用于若接收到所述第一完成事件时,则根据所述第一完成事件调用音频消隐驱动接口函数对所述音频信号进行解消隐,以使解消隐后的音视频同步。
- 根据权利要求11所述的电视机,其特征在于,所述驱动模块包括第一发送单元及第二发送单元,其中:所述第一发送单元,用于在对所述视频信号解消隐完成后,将解消隐后的视频信号发送至显示模块进行播放;所述第二发送单元,用于将解消隐后的音频信号发送至音频播放模块进行播放。
- 根据权利要求11所述的电视机,其特征在于,所述驱动模块还包括第一上报单元及第二上报单元,其中:所述第一上报单元,用于在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述第二上报单元,用于产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
- 根据权利要求12所述的电视机,其特征在于,所述驱动模块还包括第一上报单元及第二上报单元,其中:所述第一上报单元,用于在对所述视频信号解消隐完成后,将所述第一完成事件上报至视频消隐驱动接口;所述第二上报单元,用于产生所述音频信号解消隐完成后的第二完成事件,将所述第二完成事件上报至音频消隐驱动接口。
- 根据权利要求11所述的电视机,其特征在于,所述中间件模块还包括停止调用单元,用于若未接收到所述第一完成事件时,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
- 根据权利要求12所述的电视机,其特征在于,所述中间件模块还包括停止调用单元,用于若未接收到所述第一完成事件时,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
- 根据权利要求13所述的电视机,其特征在于,所述中间件模块还包括停止调用单元,用于若未接收到所述第一完成事件时,则停止调用音频消隐驱动接口函数对所述音频信号进行解消隐的操作,进入等待接收所述第一完成事件的状态。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510392117.3A CN105025196B (zh) | 2015-07-06 | 2015-07-06 | 音视频同步的方法、装置及电视机 |
| CN201510392117.3 | 2015-07-06 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017005063A1 true WO2017005063A1 (zh) | 2017-01-12 |
Family
ID=54414871
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/084228 Ceased WO2017005063A1 (zh) | 2015-07-06 | 2016-06-01 | 音视频同步的方法、装置及电视机 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105025196B (zh) |
| WO (1) | WO2017005063A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105025196B (zh) * | 2015-07-06 | 2019-04-02 | 深圳Tcl数字技术有限公司 | 音视频同步的方法、装置及电视机 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030231866A1 (en) * | 2002-06-14 | 2003-12-18 | Edouard Ritz | Method of video display using a decoder |
| CN101166264A (zh) * | 2006-10-16 | 2008-04-23 | 中兴通讯股份有限公司 | 流媒体节目切换时的播放方法和系统 |
| CN101197962A (zh) * | 2008-01-03 | 2008-06-11 | Ut斯达康通讯有限公司 | Iptv机顶盒快速平滑切换频道的方法 |
| CN103313089A (zh) * | 2012-03-16 | 2013-09-18 | 三洋科技中心(深圳)有限公司 | 音唇同步检测装置及方法 |
| CN105025196A (zh) * | 2015-07-06 | 2015-11-04 | 深圳Tcl数字技术有限公司 | 音视频同步的方法、装置及电视机 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4575324B2 (ja) * | 2006-03-29 | 2010-11-04 | 株式会社東芝 | Av装置及びその制御方法 |
-
2015
- 2015-07-06 CN CN201510392117.3A patent/CN105025196B/zh active Active
-
2016
- 2016-06-01 WO PCT/CN2016/084228 patent/WO2017005063A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030231866A1 (en) * | 2002-06-14 | 2003-12-18 | Edouard Ritz | Method of video display using a decoder |
| CN101166264A (zh) * | 2006-10-16 | 2008-04-23 | 中兴通讯股份有限公司 | 流媒体节目切换时的播放方法和系统 |
| CN101197962A (zh) * | 2008-01-03 | 2008-06-11 | Ut斯达康通讯有限公司 | Iptv机顶盒快速平滑切换频道的方法 |
| CN103313089A (zh) * | 2012-03-16 | 2013-09-18 | 三洋科技中心(深圳)有限公司 | 音唇同步检测装置及方法 |
| CN105025196A (zh) * | 2015-07-06 | 2015-11-04 | 深圳Tcl数字技术有限公司 | 音视频同步的方法、装置及电视机 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105025196A (zh) | 2015-11-04 |
| CN105025196B (zh) | 2019-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017036209A1 (zh) | 基于智能电视的音频数据播放方法、智能电视及系统 | |
| WO2017014474A1 (en) | Display apparatus and display method | |
| WO2016192254A1 (zh) | 网络视频在线播放的方法和装置 | |
| WO2017177524A1 (zh) | 音视频同步播放的方法及装置 | |
| WO2019128174A1 (zh) | 音频播放方法、智能电视及计算机可读存储介质 | |
| WO2018028124A1 (zh) | 电视机及其信号源的切换方法 | |
| WO2019051902A1 (zh) | 终端控制方法、空调器及计算机可读存储介质 | |
| WO2017084301A1 (zh) | 音频数据播放方法、装置及智能电视机 | |
| WO2018161603A1 (zh) | 移动终端图像绘制的控制方法、装置、介质及电子设备 | |
| WO2021162267A1 (en) | Apparatus and method for converting audio output | |
| WO2017211009A1 (zh) | 智能电视的启动方法及系统 | |
| WO2017113594A1 (zh) | 数字电视应急广播的播放方法和数字电视终端 | |
| WO2017000729A1 (zh) | 音视频播放控制方法和装置 | |
| WO2016029502A1 (zh) | 信号源的切换方法及装置 | |
| WO2016206223A1 (zh) | 截图的方法及系统 | |
| WO2018023927A1 (zh) | 耳机接口的复用方法及装置 | |
| WO2019156435A1 (en) | Method and electronic device for playing audio data using dual speaker | |
| WO2018006581A1 (zh) | 智能电视的播放方法及装置 | |
| WO2019114255A1 (zh) | 语音采集方法、遥控器及计算机可读存储介质 | |
| WO2017016308A1 (zh) | 菜单背景颜色处理方法及装置 | |
| WO2019024472A1 (zh) | 数据操作方法、装置及计算机可读存储介质 | |
| WO2019051901A1 (zh) | 终端控制方法、装置及计算机可读存储介质 | |
| WO2018058830A1 (zh) | 定时器的计时方法和装置 | |
| WO2019128177A1 (zh) | 熄屏状态下的音乐播放控制方法、装置和计算机存储介质 | |
| WO2017041546A1 (zh) | 电视蓝牙连接方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16820714 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.06.2018) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16820714 Country of ref document: EP Kind code of ref document: A1 |