[MPlayer-users] Playing an URL with special characters, charset problem

Onur Küçük onur at delipenguen.net
Sun Sep 12 12:28:06 CEST 2010


On Fri, 10 Sep 2010 23:56:53 -0300
"arthur at life.net.br" <arthur at life.net.br> wrote:

> So I also tried on python:
> address = 
> 'http://translate.google.com/translate_tts?tl='+TTS_language+'&q='+ 
> quote_plus(text.encode('utf-8'))

 Technically this is correct but it should not be needed

> I'm using this line to run mplayer on python
> subprocess.Popen(['mplayer', '-slave', address], stdin=PIPE, 
> stdout=PIPE, stderr=STDOUT)

 You are doing 

 a = subprocess.Popen....
 
 a.communicate()

 right ? It will not work if you don't do this. Also instead of just
running it,

 print a.communicate()[0]

 is your friend.

-- 
 Onur Küçük                                      Knowledge speaks,
 <onur.--.-.delipenguen.net>                     but wisdom listens



More information about the MPlayer-users mailing list