[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] calling Mplayer with pygame
- To: pygame-users@xxxxxxxx
- Subject: [pygame] calling Mplayer with pygame
- From: İzzet Aykut KOÇAK <izzetaykutkocak@xxxxxxxxx>
- Date: Thu, 18 May 2006 11:17:24 +0300
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 18 May 2006 04:17:34 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=cQStHIkUdA0OserWIEPYxM3XGPlZyPPs78OdE9oEiHS5SQFBCfrFGHBHO58ITj5AWywSzZanLRyCdXQ+rbg9ll47fOry0FKhvckZsWljoQQzwFY4Nm7mp1Ylv6ehH+uj/7XGXxO9ig/7TLdtoVHTJc5uW2MaiFl108u2CaDSOp8=
- In-reply-to: <446C21D4.2060309@xepher.net>
- References: <446C21D4.2060309@xepher.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Debian Thunderbird 1.0 (X11/20050116)
Hello all,
I am planning to play multimedia files with "mplayer" while doing some
stuff with pygame. You can find the python function that calls "mplayer"
below. It is working with SDL in X environ without any problem(of course
in seperate windows).But, I intend to go for fbdev somehow. So, would
you suggest to use such a method with fbdev or any other plug&play
solution for pygame and fbdev?
Aykut KOCAK
izzetaykutkocak@xxxxxxxxx
def play_(file):
dbg=Debug('play')
r=false
try:
cmd='/usr/bin/mplayer %s 2>&1 >/dev/null' % str(file)
ret=Popen4(cmd)
r=ret.wait()
except Exception,inst:
dbg.debug(str(inst))
try:
del(ret)
except:
pass
return r