Hm, I'm testing on Linux, bug was like you've described, and fixed
with this change.

Sounds on OS X work badly (same app that in runs smoothly on linux),
so may be OS X have it's own issues because of different memory
management or something else. Will test on OS X later.

On Sun, Sep 29, 2013 at 1:37 AM, Nathan <[email protected]> wrote:
> That change has absolutely no effect on my testing on OS 10.8, 64-bit.  Odd.
>
> I'm looking at jwpIntro.mov, specifically.  The sound plays normally, but
> the video starts with a green screen, resolves to a mostly normal picture
> less than a second later, and plays sort of correctish, just behind the
> audio and some glitches here and there.
>
> ~ Nathan
>
>
> On Sat, Sep 28, 2013 at 4:01 PM, Paul Colomiets <[email protected]> wrote:
>>
>> Hi Nathan,
>>
>> On Sat, Sep 28, 2013 at 9:02 PM, Nathan <[email protected]> wrote:
>> > I created a new issue (#54) for it:
>> > https://github.com/AVbin/AVbin/issues/54
>> >
>> > In the issue I put a link to the three files that I have personally used
>> > to
>> > see the bad behavior and test my fix attempts.  All three of these files
>> > were given to me by actual users who were frustrated that they were not
>> > decoding and playing correctly.
>>
>> Although, AVPacket usage in avbin is wrong, and there are other memory
>> management errors. The actual cause of bad playback is skipping
>> packets. The following patch fixes the issues with both videos (not
>> sure why audio fails yet):
>>
>> diff -r 056abb79c86b pyglet/media/avbin.py
>> --- a/pyglet/media/avbin.py     Thu Aug 15 23:58:18 2013 +0300
>> +++ b/pyglet/media/avbin.py     Sun Sep 29 00:51:14 2013 +0300
>> @@ -374,12 +374,13 @@
>>
>>          if self._packet.stream_index == self._video_stream_index:
>>              if self._packet.timestamp < 0:
>> +                print("TIMESTAMP", self._packet.timestamp)
>>                  # XXX TODO
>>                  # AVbin needs hack to decode timestamp for B frames in
>>                  # some containers (OGG?).  See
>>                  # http://www.dranger.com/ffmpeg/tutorial05.html
>>                  # For now we just drop these frames.
>> -                return None, None
>> +            #    return None, None
>>
>>              video_packet = VideoPacket(self._packet)
>>
>> I may investigate more later. Just keeping you informed.
>>
>>
>> --
>> Paul
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pyglet-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/pyglet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
Paul

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to