Hey All,<br><br>I am starting to think about how to accomplish audio/video synching, so I would like to get some input. I have been using the &#39;How to Write a Video Player in Less Than 1000 Lines&#39; tutorial (<a href="http://www.dranger.com/ffmpeg/">
http://www.dranger.com/ffmpeg/</a>) to learn more about ffmpeg and AV synching (sections 5 and 6 are relevant to synching). In this tutorial, the author presents techniques for defining reference &#39;clocks&#39; to determine how to adjust the streams when they get out of sync. Currently I am leaning toward an approach based on synching the video stream to a constant audio stream for two reasons:
<br><br>1. From my experience with audio/video data manipulation, it is much easier to create audible artifacts than visual ones.<br>2. The audio updates happen more quickly than video, meaning that an audio clock would be updated more frequently, leaving less error when trying to interpolate what its value means.
<br><br>Now that we have support for audio with videos, I think that the &#39;fps&#39; property should become a more general &#39;speed&#39; property which would represent a scalar of both the sample rate and fps. The &#39;speed&#39; property would scale both the sample rate of the audio stream used for resampling as well as the fps property for video.
<br><br>So, what do you guys think?<br><br>Nick<br>