I need some info on how can I read the audio data from an .ogv video. I'm creating an in-game player and so far I'm only able to read and render the frames of the video (no audio). Tried splitting the video from the sound but it got out of synch really quickly. Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora/attachments/20110817/204f6494/attachment.htm
On 17 August 2011 11:10, Nuno Moreira <nscarnaut at hotmail.com> wrote:> I need some info on how can I read the audio data from an .ogv video. > I'm creating an in-game player and so far I'm only able to read and render > the frames of the video (no audio). Tried splitting the video from the sound > but it got out of synch really quickly.Sounds like you're reading the audio data correctly, and the problem is just in your synchronization code. Sound cards generally don't have very accurate clocks, so you need to schedule video playback based on the audio playback clock. For example, keep track of how often the audio engine requests a new playback buffer and update the visible video frame based on that. HTH, -r
Seemingly Similar Threads
- Multi-audio in OGV?
- can't demux with ogminfo / need to re-pac OGV to MKV
- Ogv file only plays in VLC / Can't be used by most tools.
- macro block artifacts of ogv file converted from mpeg(libthusnelda I 20090527)
- ffmpeg2theora bug: generation of a video from a series of images