Author Topic: Python Frontend For Mplayer  (Read 5630 times)

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Python Frontend For Mplayer
« on: January 30, 2006, 11:42:28 am »
I found a pygtk frontend for mplayer, pymp. It is simple and easy to use. I compiled and packaged it.

pymp
"Pymp, formerly Gay Media Player, is a GTK2 based interface for the wonderful and ubiquitous MPlayer movie player. It is written in Python, and therefore uses PyGtk. I think that takes care of most of the plugs."

In details, see the project page: http://jdolan.dyndns.org/jaydolan/pymp.html
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #1 on: March 01, 2006, 01:35:32 pm »
Hey 2or0. I installed your package on my poodle under OZ-GPE test5 (as well as python-pygtk-dev, python-re, python-shell & python-stringold). I get the following error:

Code: [Select]
grog:$ pymp
Traceback (most recent call last):
  File "./pymp.py", line 3, in ?
ImportError: No module named fcntl
I'm not a python guy. Any idea what I'm missing? thks
GROG!

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #2 on: March 01, 2006, 01:42:22 pm »
Strike that. I had to install the python-fnctl ipk (DUH!). I'm now stuck on the error:

Code: [Select]
grog:$ pymp
Traceback (most recent call last):
  File "./pymp.py", line 3, in ?
ImportError: No module named pygtk
It must be a that there's doesn't seem to be a 'python-pygtk' ipk available. I'll work on it. thks
GROG!

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #3 on: March 01, 2006, 03:12:51 pm »
Quote
Strike that. I had to install the python-fnctl ipk (DUH!). I'm now stuck on the error:

Code: [Select]
grog:$ pymp
Traceback (most recent call last):
 Â File "./pymp.py", line 3, in ?
ImportError: No module named pygtk
It must be a that there's doesn't seem to be a 'python-pygtk' ipk available. I'll work on it. thks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=116573\"][{POST_SNAPBACK}][/a][/div]

In the feed, you can find 'pygtk_2.5.3_armv5tel.ipk'. But I don't know it works under OZ.
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #4 on: March 01, 2006, 04:29:24 pm »
Quote
In the feed, you can find 'pygtk_2.5.3_armv5tel.ipk'. But I don't know it works under OZ.[div align=\"right\"][a href=\"index.php?act=findpost&pid=116588\"][{POST_SNAPBACK}][/a][/div]
Probably wouldn't work. I had to tweak your ipk a bit before I could install it as well. I'm going to pm the maintainer of the -dev packages & see if he can supply a package for GPE.

Thanks for your help.
GROG!

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #5 on: December 03, 2006, 06:38:30 am »
I've got pygtk installed under pdaXii13 but when I try to run pymp it says

No module named fnmatch

Any ideas how I can fix that?
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #6 on: December 03, 2006, 11:23:18 am »
Quote
I've got pygtk installed under pdaXii13 but when I try to run pymp it says

No module named fnmatch

Any ideas how I can fix that?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147884\"][{POST_SNAPBACK}][/a][/div]

python-shell in the official feed contains fnmatch module. You should install it.
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Python Frontend For Mplayer
« Reply #7 on: December 03, 2006, 11:59:41 am »
This is handy I never saw it before- much lighter than using xmms as a frontend forX

If you install python_2.4.1_arm.ipk (6Mb) it has all the main python modules included and you will just need pygtk to go with it.

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #8 on: December 03, 2006, 03:55:24 pm »
Really nice alternative to XMMS ...
How to change the font size ?
What are the keyboard shortcuts ?

So far I found:
Enter/OK: play the song
Backspace: stop
ctrl + N: next in playlist
ctrl + P: previous in playlist
ctrl + O: open dialog
ctrl + Q: quit
y: pause/play again,  though needs to press cancel in between as pressing any letter activate the search utility
ctrl + A: select all songs in playlist
shift + arrow up/down or P/N: select multiple songs
ctrl + S: save dialog
ctrl + F: search utility
ctrl + H: help about dialog
ctrl + L: open location dialog
space: restarts the song from the beginning
ctrl + space: goes ~5s back
Fn + Up: 1st song in playlist
Fn + Down: last song in playlist

Icons and font too small
Percentage instead of time elapsed
Drag and drop files and folders from File Manager (nice)
Very basic search utility
No volume Up/Down ?

I don't understand how the Options/ Edit config works.
What can we put in it ?

Thanks
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #9 on: December 03, 2006, 04:37:47 pm »
Quote
Really nice alternative to XMMS ...
How to change the font size ?
What are the keyboard shortcuts ?

So far I found:
Enter/OK: play the song
Backspace: stop
ctrl + N: next in playlist
ctrl + P: previous in playlist
ctrl + O: open dialog
ctrl + Q: quit
y: pause/play again,  though needs to press cancel in between as pressing any letter activate the search utility
ctrl + A: select all songs in playlist
shift + arrow up/down or P/N: select multiple songs
ctrl + S: save dialog
ctrl + F: search utility
ctrl + H: help about dialog
ctrl + L: open location dialog
space: restarts the song from the beginning
ctrl + space: goes ~5s back
Fn + Up: 1st song in playlist
Fn + Down: last song in playlist

Icons and font too small
Percentage instead of time elapsed
Drag and drop files and folders from File Manager (nice)
Very basic search utility
No volume Up/Down ?

I don't understand how the Options/ Edit config works.
What can we put in it ?

Thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147936\"][{POST_SNAPBACK}][/a][/div]
imho the same sorts of mplayer options you'd feed it when launching, or in mplayer.conf
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Python Frontend For Mplayer
« Reply #10 on: December 03, 2006, 07:15:26 pm »
yes, command line arguments - see the mplayer docs for more info on that. To change the font size you can edit .gtkrc which will change for all gtk apps.

Darth_Sith

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Python Frontend For Mplayer
« Reply #11 on: December 04, 2006, 04:46:31 am »
I have installed pymp e python, but I can play anything.
Pymp run and I have a list of file, but don't work. Nothing happends.

SL-C1000 + cacko 1.23F + sd4GB + CFBT + CFWiFi
HTC Polaris

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #12 on: December 04, 2006, 04:51:03 am »
I also had to install a package called something like python-http to get a python urllib module to get pymp to run but for me (under pdaxii13) it took much longer than xmms to load, consumed all my RAM (it was the only open app) and then I only managed to get it to very, very jerkily play some .ogg files so I gave up on this one. No-one else experience this?
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

wowo123

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #13 on: December 05, 2006, 09:03:40 am »
The gui works fine for me for audio and video playback but the font of the playlist and icons are way too small so you cannot really use it. This isn't connected to the font size in .gtkrc-2.0 but must be part of the script. I went through the files in /usr/lib/gymp but found nothing so far...

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Python Frontend For Mplayer
« Reply #14 on: December 05, 2006, 11:31:00 am »
Quote
I also had to install a package called something like python-http to get a python urllib module to get pymp to run but for me (under pdaxii13) it took much longer than xmms to load, consumed all my RAM (it was the only open app) and then I only managed to get it to very, very jerkily play some .ogg files so I gave up on this one. No-one else experience this?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147979\"][{POST_SNAPBACK}][/a][/div]

Install python-html which has urllib module.


Quote
The gui works fine for me for audio and video playback but the font of the playlist and icons are way too small so you cannot really use it. This isn't connected to the font size in .gtkrc-2.0 but must be part of the script. I went through the files in /usr/lib/gymp but found nothing so far...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148101\"][{POST_SNAPBACK}][/a][/div]

The files in /usr/lib/pymp are already compiled. So you can download an attached file and replace playlist.pyc with this file. If you want to change font size. find "font = pango.FontDescription("14")" in the file and change "14" which is font size.
« Last Edit: December 05, 2006, 11:33:03 am by 2or0 »
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)