MPlayer from script
#1
Hi

I need to start MPlayer from within a script to take the output from RTMPDump.

This works on Linux:

Quote:rtmpdump --rtmp "rtmpe://bt.fcod.llnwd.net:1935/a800/o10/&" --flashVer "WIN 11,0,1,152"

--swfVfy "http://admin.brightcove.com/viewer/us20111026.1813/connection/ExternalConnection_2.swf" --conn Z: --playpath

"mp4:videos/19582164001/19582164001_1689951214001_b17-C5159720119A1-H264-1500-16x9.mp4?e=1340399144&h=24151f00

940e483cc51cfa2ff4ec284d&__nn__=659726446001" -o -| /usr/bin/mplayer -


So, I tried to build this into a string and send it to os.system:

Quote:PlayString = 'rtmpdump --rtmp "rtmpe://bt.fcod.llnwd.net:1935/a800/o10/&" --flashVer "WIN 11,0,1,152"

--swfVfy "http://admin.brightcove.com/viewer/us20111026.1813/connection/ExternalConnection_2.swf" --conn Z: --playpath

"mp4:videos/19582164001/19582164001_1689951214001_b17-C5159720119A1-H264-1500-16x9.mp4?e=1340399144&h=24151f00

940e483cc51cfa2ff4ec284d&__nn__=659726446001" -o -| /usr/bin/mplayer -'

os.system(PlayString) [quote]

Now, I can see (ps -eaf) that the rtmpdump starts and mplayer starts, but the screen stays at the XBMC page.

How do I bring MPlayer to the foreground ?

Thanks

David
Reply


Messages In This Thread
MPlayer from script - by dlake02 - 2012-06-25, 17:10
RE: MPlayer from script - by divingmule - 2012-06-25, 18:13
RE: MPlayer from script - by dlake02 - 2012-06-25, 18:34
Logout Mark Read Team Forum Stats Members Help
MPlayer from script0