Audio to video synchronization
|Development of the music video|
Audio to video synchronization (also known as audio video sync, audio/video sync, AV-sync, lip sync, or by the lack of it: lip sync error, lip-flap) refers to the relative timing of audio (sound) and video (image) parts during creation, post-production (mixing), transmission, reception and play-back processing. When sound and video have a timing related cause and effect, AV-sync can be an issue in television, videoconferencing, or film.
Lip sync errors are most commonly noticed by average viewers, (i.e. persons not professionally involved in the broadcast television industry) when a close up of the face (also known in the broadcast industry as a head shot) of a performer such as a newscaster is viewed. In home television viewing experiences involving high definition programs displayed on a flat panel TV the sound heard by the viewer most commonly leads the video seen by the viewer by a significant and often noticeable amount of time. This timing error (i.e. lip sync error) can range from near zero up to several seconds. The error typically slowly varies by a significant amount throughout a television program and frequently varies from noticeable to unnoticeable amounts several times per hour. In industry terminology the lip sync error is expressed as an amount of time the audio departs from perfect synchronization with the video where a positive time number indicates the audio leads the video and a negative number indicates the audio lags the video. This terminology and standardization of the numeric lip sync error is utilized in the professional broadcast industry as evidenced by the various professional papers, standards such as ITU-R BT.1359-1, and other references below.
Digital or analog audio video streams or video files usually contain some sort of explicit AV-sync timing, either in the form of interleaved video and audio data or by explicit relative time-stamping of data. The processing of data must respect the relative data timing by e.g. stretching between or interpolation of received data. If the processing does not respect the AV-sync error, it will increase whenever data gets lost because of transmission errors or because of missing or mis-timed processing.
There are different ways in which the AV-sync can get incorrectly synchronized:
- During creation AV-sync errors happen because of
- Internal AV-sync error: Different signal processing delays between image and sound in video camera and microphone. The AV-sync delay is normally fixed.
- External AV-sync error: If a microphone is placed far away from the sound source, the audio will be out of sync because the speed of sound is much lower than the speed of light. If the sound source is 340 meters from the microphone, then the sound arrives approximately 1 second later than the light. The AV-sync delay increases with distance.
- During mixing of video clips normally either the audio or video needs to be delayed so they are synchronized. The AV-sync delay is static, but can vary with the individual clip.
- Video editing effects.
Examples of transmission (broadcasting), reception and playback that can get the AV-sync incorrectly synchronized:
- A video camera with built-in microphones or line-in may not delay sound and video paths by the same number of milliseconds. A video camera should have some sort of explicit AV-sync timing put into the video and audio streams. Solid state video cameras (e.g. Charge-coupled device (CCD) and CMOS image sensors) can delay the video signal by one or more frames.
- An AV-stream may get corrupted during transmission because of electrical glitches (wired) or wireless interruptions - this may cause it to become out of sync. The AV-sync delay normally increases with time.
- There is extensive use of audio and video signal processing circuitry with significant delays in television systems. Particular video signal processing circuitry which is widely used and contributes significant video delays include frame synchronizers, digital video effects processors, video noise reduction, format converters and MPEG pre-preprocessing.
- The video monitor processing circuit may delay the video stream. Pixelated displays require video format conversion and deinterlace processing which can add one or more frames of video delay.
- A video monitor with built-in speakers or line-out may not delay sound and video paths by the same amount of milliseconds. Some video monitors contain internal user-adjustable audio delays to aid in correction of errors.
- Some transmission protocols like RTP require an out-of-band method for synchronizing media streams. In RTP's case, each media stream has its own timestamp using an independent clock rate and per-stream randomized starting value. A RTCP Sender Report (SR) is needed for each stream in order to synchronize streams. The necessary RTCP packets might be lost (since RTP/RTCP does not guarantee delivery) or not sent until at least several seconds after the stream has begun. Many software clients do not send RTCP at all or send non-compliant data.
Effect of no explicit AV-sync timing
When a digital or analog audio video stream does not have some sort of explicit AV-sync timing these effects will cause the stream to become out of sync:
- In film movies these timing errors are most commonly caused by worn films skipping over the movie projector sprockets because the film has torn sprocket holes.
- Errors can also be caused by the projectionist misthreading the film in the projector, although this is rare with competent projectionists.
- Audio to Video Synchronization is commonly corrected and maintained with an audio synchronizer. Television industry standards organizations have established acceptable amounts of audio and video timing errors and suggested practices related to maintaining acceptable timing.
- A/V sync errors are becoming a significant problem in the digital television industry because of the use of large amounts of video signal processing in television production, television broadcasting and pixelated television displays such as LCD, DLP and plasma displays.
- In the television field, audio video sync problems are commonly caused when significant amounts of video processing is performed on the video part of the television program.
- Typical sources of significant video delays in the television field include video synchronizers and video compression encoders and decoders. Particularly troublesome encoders and decoders are used in MPEG compression systems utilized for broadcasting digital television and storing television programs on consumer and professional recording and playback devices.
- A source of significant video delay is found in pixelated television displays (LCD, Plasma display, DLP) which utilize complex video signal processing to convert the resolution of the incoming video signal to the native resolution of the pixelated display, for example converting standard definition video to be displayed on a high definition display. "Lip-flap" may exceed 200 ms at times.
- In broadcast television, it is not unusual for lip-sync error to vary by over 100 ms (several video frames) from time to time.
- The EBU Recommendation R37 “The relative timing of the sound and vision components of a television signal” states that end-to-end audio/video sync should be within +40ms and -60ms (audio before / after video, respectively) and that each stage should be within +5ms and -15ms.
Viewer experience of incorrectly synchronized AV-sync
The result typically leaves a filmed or televised character moving his or her mouth when there is no spoken dialog to accompany it, hence the term "lip flap" or "lip-sync error". The resulting audio video sync error can be annoying to the viewer and may even cause the viewer to not enjoy the program, decrease the effectiveness of the program, or lead to a negative perception of the speaker on the part of the viewer. The lack of effectiveness problems are of particular concern when product commercials and political candidates are viewed. Television industry standards organizations, such as the Advanced Television Systems Committee, have become involved in setting standards for audio video sync errors.
Because of these annoyances, AV-sync error is a concern to the television programming industry, including television stations, networks, advertisers and program production companies. Unfortunately, the advent of high definition flat panel display technologies (LCD, DLP, and plasma) which can delay video more than audio have moved the problem into the viewer's home and beyond control of the television programming industry alone. Consumer product companies now offer audio delay adjustments to compensate for video delay changes in TVs and A/V receivers, and several companies manufacture dedicated digital audio delays made exclusively for lip-sync error correction.
For television applications, the Advanced Television Systems Committee recommends that audio should lead video by no more than 15 milliseconds and audio should lag video by no more than 45 milliseconds. However, the ITU performed strictly controlled tests with expert viewers and found that the threshold for detectability is -125ms to +45ms. For film, acceptable lip sync is considered to be no more than 22 milliseconds in either direction.
SMPTE standard ST2064 published in 2015, provides technology to reduce or eliminate lip sync errors in digital television. The standard utilizes audio and video fingerprints which are taken from a television program. The fingerprints can be recovered and used to correct the accumulated lip sync error. When fingerprints have been generated for a TV program, and the required technology is incorporated the viewer's display device has the ability to continuously measure and correct any lip sync error when it displays the program.
Presentation time stamps (PTS) are embedded in MPEG transport stream to precisely signal when each audio and when each video is to be presented, avoid AV-sync errors. Unfortunately these time stamps are often added after the video undergoes frame synchronization, format conversion and pre-processing, thus those delays remain uncompensated.
The Real-time Transport Protocol clocks media using origination timestamps on an arbitrary timeline. A real-time clock such as one delivered by the Network Time Protocol and described in the Session Description Protocol associated with the media may be used to syntonize media. A server may then be used to for final synchronization to remove any residual offset.
- "ITU-R BT.1359-1, Relative Timing of Sound and Vision for Broadcasting" (PDF). ITU. 1998. Retrieved 30 May 2015.
- Patrick Waddell; Graham Jones; Adam Goldberg. "Audio/Video Standards and Solutions A Status Report" (PDF). ATSC. Retrieved 4 April 2012.
- RFC 3550
- IS-191: Relative Timing of Sound and Vision for Broadcast Operations, ATSC, 2003-06-26, archived from the original on 2011-07-27
- "The relative timing of the sound and vision components of a television signal" (PDF).
- Byron Reeves; David Voelker (October 1993). "Effects of Audio-Video Asynchrony on Viewer's Memory, Evaluation of Content and Detection Ability" (PDF). Archived (PDF) from the original on 2 October 2008. Retrieved 2008-10-19.
- Sara Kudrle; et al. (July 2011). "Fingerprinting for Solving A/V Synchronization Issues within Broadcast Environments". Motion Imaging Journal (SMPTE).
Appropriate A/V sync limits have been established and the range that is considered acceptable for film is +/- 22 ms. The range for video, according to the ATSC, is up to 15 ms lead time and about 45 ms lag time
- Consumer Electronics Association. "CEA-CEB20 R-2013: A/V Synchronization Processing Recommended Practice".
- ST 2064:2015 - SMPTE Standard - Audio to Video Synchronization Measurement, SMPTE, 2015
- SMPTE Standards Update: The Lip-Sync Challenge, SMPTE, 10 December 2013
- SMPTE Standards Update: The Lip-Sync Challenge (PDF), SMPTE, 10 December 2013
- MPEG-2 Systems FAQ: 19. Where are the PTSs and DTSs inserted?
- MPlayer-G2-dev: mpeg container's timing (PTS values)
- birds-eye.net: DTS - Decode Time Stamp
- svcd2dvd.com: Perfect AV Sync: Preparation is key...
- RFC 7273
- RFC 7272
- Cugnini, Aldo (Sep 1, 2007). "Managing lip sync". TV Technology, originally from Broadcast Engineering. Retrieved 2008-10-19.
- R.A. Salmon; Andrew Mason (January 2009). "Factors affecting perception of audio-video synchronisation in television". BBC Research & Development. Retrieved 2013-06-02.