Problems with looping video

12 views
Skip to first unread message

Drew Smathers

unread,
Apr 23, 2008, 12:34:04 PM4/23/08
to pyglet...@googlegroups.com
Is there a bug with video looping, or is this not supported? From my
tests, after the initial run, the video seems to flicker and only show
the first frame of the video. Apply attached patch to
examples/video.py to reproduce the issue.

I have also tried:

@player.event
def on_eos():
player.seek(0)

.. to no avail.

--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
d.p.s

video.py.diff

Alex Holkner

unread,
Apr 24, 2008, 7:43:34 AM4/24/08
to pyglet...@googlegroups.com
> Index: examples/video.py
> ===================================================================
> --- examples/video.py (revision 1990)
> +++ examples/video.py (working copy)
> @@ -59,6 +59,7 @@
> sys.exit(1)
>
> player = pyglet.media.Player()
> +player.eos_action = pyglet.media.Player.EOS_LOOP
> player.queue(source)
> player.play()
>
>
>
>

What platform / audio environment do yo get this problem on?

Alex.

Drew Smathers

unread,
Apr 24, 2008, 10:48:58 AM4/24/08
to pyglet...@googlegroups.com

Linux/Alsa (though the video doean't have any sound). You can grab
the video I tested with from here:

http://www.channel4.com/learning/microsites/I/ideasfactory/pixnmix/vidlib/4L_industrial_landscape_damage_04_cpk.avi

Thanks,
-Drew

Reply all
Reply to author
Forward
0 new messages