Answers.Body: <p>This tool is impossible. Almost.</p>
  
  <p>To check sync of audio/video, you need something what appeared in both streams, what can be used as sync points. In old days used Clapperboard during film shooting. In television there was hidden timecode at border of frame, in zone of overscan which not displayed on TV</p>
  
  <p>If you writing professional software, include timecodes to both streams. If not, just stream your video and audio in a single container, it enough.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-12T20:23:53.807Z
Answers.LastActivityDate: 2017-10-16T13:39:41.983Z
Answers.LastEditDate: 2017-10-16T13:39:41.983Z
Answers.UserDisplayName: bukkojot
Body: <p>I'm working on a script that live streams 3 hours of video to several servers. Is there a command (or tool... maybe using something else like wireshark?) that I could run on each of the streams to automate a check for glaring audio/video sync issues?</p>
  
  <p>If so, at least please point me to the relevant reading materials/documentation. Thanks in advance!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-13T00:33:23.437Z
Comments.Text: What kind of stream and what is your budget? There are some options for SMPTE 2022 or SMPTE 2110 at the network level. There are also options if you can insert a fingerprint. I'd also seen a product a few years back that was using facial recognition to detect mouth shapes to see if they lined up with the sounds in the audio. But all of those require a not insignificant budget.
Comments.UserDisplayName: Michael Liebman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-14T14:11:01.883Z
Comments.Text: Michael, I'm focusing on rtmp at the moment. Also, the script is using ffmpeg to launch the streams. I don't think I need anything quite that fancy. Is it possible to use ffmpeg to encode some sort of tag (perhaps at intervals of say, every 10 minutes) into the stream's audio and video that I can use as a sanity check?
Comments.UserDisplayName: bitterman
Tags: <video><ffmpeg><software-recommendation><sync>
Title: ffprobe/ffplay/ffmpeg command for checking audio/video sync
UserDisplayName: bitterman
ThreadText: # ffprobe/ffplay/ffmpeg command for checking audio/video sync
  
  (Asked by: username_0 on 2017-10-12)
  
  I'm working on a script that live streams 3 hours of video to several servers. Is there a command (or tool... maybe using something else like wireshark?) that I could run on each of the streams to automate a check for glaring audio/video sync issues?
  
  If so, at least please point me to the relevant reading materials/documentation. Thanks in advance!
  
  **Tags:** video, ffmpeg, software-recommendation, sync
  
  > **Comments:**
  > **username_1**: What kind of stream and what is your budget? There are some options for SMPTE 2022 or SMPTE 2110 at the network level. There are also options if you can insert a fingerprint. I'd also seen a product a few years back that was using facial recognition to detect mouth shapes to see if they lined up with the sounds in the audio. But all of those require a not insignificant budget.  
  > **username_0**: username_1, I'm focusing on rtmp at the moment. Also, the script is using ffmpeg to launch the streams. I don't think I need anything quite that fancy. Is it possible to use ffmpeg to encode some sort of tag (perhaps at intervals of say, every 10 minutes) into the stream's audio and video that I can use as a sanity check?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-10-12. Score: 1 | Accepted answer
  
  This tool is impossible. Almost.
  
  To check sync of audio/video, you need something what appeared in both streams, what can be used as sync points. In old days used Clapperboard during film shooting. In television there was hidden timecode at border of frame, in zone of overscan which not displayed on TV
  
  If you writing professional software, include timecodes to both streams. If not, just stream your video and audio in a single container, it enough.
  
  
  ---
  
  