[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Video Synchronization Issues
- To: libav-user@xxxxxxxxxxxx, pygame-users@xxxxxxxx
- Subject: [pygame] Video Synchronization Issues
- From: Tyler Laing <trinioler@xxxxxxxxx>
- Date: Fri, 5 Jun 2009 09:48:12 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 05 Jun 2009 12:48:15 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=gmRK8c5e1PzRTAu9jlfiIWe1BNccHwmNYH6RmDnBSPo=; b=m4GGnYtQBCkjkr1q9UNflt+rlZ2pbGSgze/5nhrFZEpOwFILy3WXJxoWtYp/54q9Ng hPZDXVcQlSETJPS1tH6gs0NsR+cAt34cStbwiZvas6l7fvrFZ0ZUqSwFnwITGmCopkoU Ye9zq2JBfxrTatojWqSI/HN8moWvN5c8nyG3w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eRQvBR127PV3Hh6hYaij3AVohePPNautsZ+AOegmdX6HhpSIAHvaa7CbeuI1GWliGQ vHtIglCSQL94ZYJhC2NL23lYRtkplKKfP3nby3NYUWRf1/3VOYhVGilrf2BlwZ+4YwE8 26M8DT0ChCTOaBJktzgwPxfU3nehRuuOTLNHM=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello to all concerned,
I am a GSOC student, currently working on writing an effective movie wrapper for Python/Pygame around the ffmpeg libraries.
However, I have run into some issues, for which I need assistance and/or information.
Short Problem: My video runs too fast.
Explanation: I am operating under specific constraints which are:
- No threads, or if possible no threads that manipulate the members of structures. The reason is that Python is not thread-safe, which ends up requiring a lot of threading primitives to do effective work.
- No audio information. The accepted method of audio for video players seems to be using SDL's audio primitives, like SDL_OpenAudio, and so on. This spawns a thread which manipulates structures out of my control, except for during the callback.
- I'd like to avoid placing events on or off the event queue, as the wrapper will be in use within games, which of course require the event queue to be left alone
If you have an idea on how to work around the constraints, or why the constraint doesn't matter, I'd of course be glad to hear it. I have successful, fluid video, which unfortunately runs just a bit too fast. I would like some information on if it is possible to do video synchronization without the audio information, or if its even recommended?
Thank you ahead of time,
Tyler
--
Visit my blog at http://oddco.ca/zeroth/zblog