Thanks! I upgraded ffmpeg to v1.0, avbin to the latest, and pyglet down to latest stable. Didn't seem to affect much, but I do think I get less data corruption problems with bad audio packets.
Ultimately, I found a format that "just works". I'm just converting everything to that format. After building ffmpeg with --enable-libx264 and --enable-gpl: cmd = '''ffmpeg -i \"%s\" -strict experimental -vcodec libx264 -vprofile high \\ -preset slow -b:v 5000k -maxrate 5000k -bufsize 5000k -acodec ac3 \"%s\"''' % (in_video, out_video) does the trick. On Monday, November 5, 2012 11:53:39 AM UTC-5, Claudio Canepa wrote: > > Maybe trying different versions of avbin (which pyglet uses for video) ? > > http://avbin.github.com/AVbin/Home/Home.html > > > > On Fri, Nov 2, 2012 at 7:07 PM, Blaine <[email protected] <javascript:>>wrote: > >> Hi guys, >> >> My video layer plays video great, and the audio plays great too, just not >> in sync w/ the video. Got any tips? >> >> My video layer: >> http://pastebin.com/J8bMXGhQ >> >> It's like the audio is about a half second ahead of the video. I >> obviously have the above sample on mute (player.volume=0) for now, so >> please mind that. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "cocos2d discuss" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/cocos-discuss/-/943ifXa1HIgJ. >> To post to this group, send email to [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/cocos-discuss?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/cocos-discuss/-/wPCgs_WRnLAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
