| 1   2     3   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   New Media player for N800 / IT 770 (https://talk.maemo.org/showthread.php?t=5488)

konttori 2007-03-26 10:18

New Media player for N800 / IT 770
 
Grab while it's hot!

Screenshot here:
http://bp0.blogger.com/_oSU7o6fFfUU/.../UKMPshot1.png

More info and install instructions here:
http://konttoristhoughts.blogspot.co...00-it-770.html

It's a public preview release. Not everything goes as smoothly as it should, but I am very proud of it as it is.

Shout aloud your comments suggestions and critics here!

**LATEST VERSION can be found here:

https://garage.maemo.org/frs/?group_id=234

If you don't have python installed, grab python 2.4 form here:https://garage.maemo.org/frs/downloa...untime.install

konttori 2007-03-26 21:00

Re: New Media player for N800 / IT 770
 
New updated version:
https://garage.maemo.org/frs/downloa....0preview2.deb

Improves:
Faster startup time (ignores hidden folders).
Bigger fonts
UI improvements
Slighly faster
a few minor bug fixes

jnack95 2007-03-26 21:18

Re: New Media player for N800 / IT 770
 
Looks nice. I'll give it a try later. Nice work.

konttori 2007-03-26 21:23

Re: New Media player for N800 / IT 770
 
Updated again. Fixes critical bug.
http://konttoristhoughts.blogspot.co...00-it-770.html

Direct download. If you havent tested the any version, please see blog for instructions.
https://garage.maemo.org/frs/downloa....0preview3.deb

rok 2007-03-26 21:33

Re: New Media player for N800 / IT 770
 
It looks great!
Unfortunately it won't start.
I installed Python 2.5. It is working e.g. Lybniz is running.

konttori 2007-03-26 22:56

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by rok (Post 41227)
It looks great!
Unfortunately it won't start.
I installed Python 2.5. It is working e.g. Lybniz is running.

Can you try opening it from xterm with command:
python /usr/bin/MediaCenter

You should be able to paste me what went wrong.

I'm fixing bugs as soon as I get them.

Thanks!

YoDude 2007-03-26 23:01

Re: New Media player for N800 / IT 770
 
Does this support playlist creation?

konttori 2007-03-26 23:06

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by YoDude (Post 41241)
Does this support playlist creation?

Not in this version. I do have wicked plans for that in the future.

rok 2007-03-26 23:31

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by konttori (Post 41239)
Can you try opening it from xterm with command:
python /usr/bin/MediaCenter

You should be able to paste me what went wrong.

I'm fixing bugs as soon as I get them.

Thanks!

Here we go:
Code:

~ $ python /usr/bin/MediaCenter
Traceback (most recent call last):
  File "/usr/bin/MediaCenter", line 22, in <module>
    os.makedirs(coverlocation)
  File "/usr/lib/python2.5/os.py", line 166, in makedirs
OSError: [Errno 13] Permission denied: '/media/mmc1/covers/'

I had my 8gb sdhc sd card in mmc1. :-) And the new firmware dosn't support sdhc.
A short test with the 128mb Nokia card was successful. At least the programm started. (The card doesn't store any mp3's).

konttori 2007-03-27 00:09

Re: New Media player for N800 / IT 770
 
New bug fix version:
https://garage.maemo.org/frs/downloa....0preview9.deb

konttori 2007-03-27 00:47

Re: New Media player for N800 / IT 770
 
rok: I added a check to the system that will create the covers dir on mmc2 if mmc1 isn't working properly. Hopefully it works. It'll appear in the next version (preview10) on.

lbattraw 2007-03-27 00:53

Re: New Media player for N800 / IT 770
 
I am not having much luck installing it. It never creates a icon to start it with and it doesn't copy things correctly when installing. Here's the output from dpkg:
dpkg -i Urho-Konttoris-MediaCenter-1.0preview9.deb
Selecting previously deselected package mediacenter.
(Reading database ... 15990 files and directories currently installed.)
Unpacking mediacenter (from Urho-Konttoris-MediaCenter-1.0preview9.deb) ...
Setting up mediacenter (1.0.9) ...
Cache file created successfully.
cp: MediaCenter.py: No such file or directory
cp: MediaCenter: No such file or directory
chmod: /usr/bin/MediaCenter: No such file or directory
cp: ./ID3.py: No such file or directory
cp: ./id3reader.py: No such file or directory
cp: ./MediaCenter.desktop: No such file or directory
cp: ./MediaCenter.service: No such file or directory
cp: ./data/*.png: No such file or directory
cp: ./data/*.jpg: No such file or directory

Am I missing something here? I have the python 2.5 runtime installed and I can even run it manually when I extract it to a directory with dpkg -X.

Larry

konttori 2007-03-27 06:38

Re: New Media player for N800 / IT 770
 
Indeed. Looks odd. Did you try installing it from the application installer?

uNtouched 2007-03-27 06:52

Re: New Media player for N800 / IT 770
 
Konttori,

I'm trying to load up 184 albums and get the following.

Code:

Traceback (most recent call last):
  File "/usr/bin/MediaCenter", line 1271, in <module>
    if __name__ == '__main__': main()
  File "/usr/bin/MediaCenter", line 1080, in main
    if (not os.path.exists(filename)):
  File "/usr/lib/python2.5/posixpath.py", line 171, in exists
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str


luketoh 2007-03-27 07:26

Re: New Media player for N800 / IT 770
 
Hi,

Suggestion that to keep the thread cleaner, perhaps links to the latest and greatest versions be put only on the 1st post (by the author of the software) so that everyone can find the link easily, instead of links embedded in other posts, which can lead to confusion over which is the latest version of the software. Just an idea....


Luke

konttori 2007-03-27 09:28

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by luketoh (Post 41293)
Hi,

Suggestion that to keep the thread cleaner, perhaps links to the latest and greatest versions be put only on the 1st post (by the author of the software) so that everyone can find the link easily, instead of links embedded in other posts, which can lead to confusion over which is the latest version of the software. Just an idea....


Luke

I updated the first post. Thanks for the tip.

uNtouched 2007-03-27 16:53

Re: New Media player for N800 / IT 770
 
Konttori,

here is some more output...

Cover not found based on ARTIST. TRYING WITH TITLE ONLY
openinghttp://images.search.yahoo.com/search/images?p=%7E%2AJOSEFINA%2A%7E+cd&ei=UTF-8&fr=sfp&imgsz=small
found image: http://re3.mm-a4.yimg.com/image/3047554880
saving image/media/mmc1/covers/~*JOSEFINA*~.jpg
unable to get socket
<type 'exceptions.IOError'>
Cover not found based on ALBUM. TRYING WITH ARTIST ONLY
Problem opening file/media/mmc1/covers/Bone_ft._Eazy_E.jpg
Problem opening file
Problem opening file/media/mmc1/covers/Boostie_Collins_.jpg
Problem opening file
Problem opening file/media/mmc1/covers/Canibus_&_Jurrassic_5.jpgProblem opening file
^[[DProblem opening file/media/mmc1/covers/Huston,_W._&_Iglesias,_E.tney.jpgProblem opening file
Traceback (most recent call last):
File "/usr/bin/MediaCenter", line 1271, in <module>
if __name__ == '__main__': main()
File "/usr/bin/MediaCenter", line 1080, in main
if (not os.path.exists(filename)):
File "/usr/lib/python2.5/posixpath.py", line 171, in exists
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str

uNtouched 2007-03-27 17:31

Re: New Media player for N800 / IT 770
 
It's because the albums were listed as "Unknown Album"...I deleted the ones listed as such, and had no issue.

This was from my iTunes library.

konttori 2007-03-27 19:20

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by uNtouched (Post 41374)
Konttori,

here is some more output...

Cover not found based on ARTIST. TRYING WITH TITLE ONLY
openinghttp://images.search.yahoo.com/search/images?p=%7E%2AJOSEFINA%2A%7E+cd&ei=UTF-8&fr=sfp&imgsz=small
found image: http://re3.mm-a4.yimg.com/image/3047554880
saving image/media/mmc1/covers/~*JOSEFINA*~.jpg
unable to get socket
<type 'exceptions.IOError'>
Cover not found based on ALBUM. TRYING WITH ARTIST ONLY
Problem opening file/media/mmc1/covers/Bone_ft._Eazy_E.jpg
Problem opening file
Problem opening file/media/mmc1/covers/Boostie_Collins_.jpg
Problem opening file
Problem opening file/media/mmc1/covers/Canibus_&_Jurrassic_5.jpgProblem opening file
^[[DProblem opening file/media/mmc1/covers/Huston,_W._&_Iglesias,_E.tney.jpgProblem opening file
Traceback (most recent call last):
File "/usr/bin/MediaCenter", line 1271, in <module>
if __name__ == '__main__': main()
File "/usr/bin/MediaCenter", line 1080, in main
if (not os.path.exists(filename)):
File "/usr/lib/python2.5/posixpath.py", line 171, in exists
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str

Thanks!
Latest version may solve it:
https://garage.maemo.org/frs/downloa...0preview11.deb

konttori 2007-03-27 19:23

Re: New Media player for N800 / IT 770
 
Unknown albums were those that it had problem in saving artwork retrieved from the net. Latest version *should* help in that respect a bit.

uNtouched 2007-03-27 20:12

Re: New Media player for N800 / IT 770
 
damn it, I deleted them, lol. I just wanted to see the program work, I'll keep you posted after work.

neiljerram 2007-03-27 20:23

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by konttori (Post 41062)
Screenshot here:

It looks fantastic!

Quote:

Shout aloud your comments suggestions and critics here!
However, for me I'm afraid it's just Yet-Another-Media-Player-That-Doesn't-Support-Ogg-Vorbis.

I don't mean to criticise you for this. It's clearly up to us Ogg-ophiles to sort ourselves out, and we have no reason to expect the MP3 majority to do our work for us. But that's the situation as I see it.

- Neil

konttori 2007-03-28 06:24

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by neiljerram (Post 41452)
It looks fantastic!



However, for me I'm afraid it's just Yet-Another-Media-Player-That-Doesn't-Support-Ogg-Vorbis.

I don't mean to criticise you for this. It's clearly up to us Ogg-ophiles to sort ourselves out, and we have no reason to expect the MP3 majority to do our work for us. But that's the situation as I see it.

- Neil

I hear you bro!

I should be able to add ogg support as well, but ATM I'm focusing on bug fixing and after that I'll try to get the ogg support working.

konttori 2007-03-28 06:51

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by lbattraw (Post 41263)
I am not having much luck installing it. It never creates a icon to start it with and it doesn't copy things correctly when installing. Here's the output from dpkg:
dpkg -i Urho-Konttoris-MediaCenter-1.0preview9.deb
Selecting previously deselected package mediacenter.
(Reading database ... 15990 files and directories currently installed.)
Unpacking mediacenter (from Urho-Konttoris-MediaCenter-1.0preview9.deb) ...
Setting up mediacenter (1.0.9) ...
Cache file created successfully.
cp: MediaCenter.py: No such file or directory
cp: MediaCenter: No such file or directory
chmod: /usr/bin/MediaCenter: No such file or directory
cp: ./ID3.py: No such file or directory
cp: ./id3reader.py: No such file or directory
cp: ./MediaCenter.desktop: No such file or directory
cp: ./MediaCenter.service: No such file or directory
cp: ./data/*.png: No such file or directory
cp: ./data/*.jpg: No such file or directory

Am I missing something here? I have the python 2.5 runtime installed and I can even run it manually when I extract it to a directory with dpkg -X.

Larry

I tested installing from command line and that doesn't work. Use the application installer instead!

neiljerram 2007-03-28 08:01

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by konttori (Post 41546)
I should be able to add ogg support as well, but ATM I'm focusing on bug fixing and after that I'll try to get the ogg support working.

Thank you. I appreciate your consideration.

To add a bit more detail on what I believe is needed: there are three aspects to it.

First is the GStreamer / Media Player / mime type support for categorizing and playing an .ogg file. This has already been done successfully by N770-Freak and Jussik (in this forum), but never 100% completed and published. I'm now working on finishing this part off.

Second is support for reading Ogg tags (also known as comments). As far as I know, no one has written or ported code to do this yet.

Third is the detail of each media application's implementation, in particular:

(i) whether the application even considers *.ogg files, when scanning for available music

(ii) whether the application will play a file that it can't read any tags for.

As an example of (i), Canola refuses to see .ogg files in the UPnP information from my media server, even when I have all the correct GStreamer-level support in place. Media Streamer sees and plays the .ogg files with no problem, so I presume there's just a filter somewhere in Canola that excludes .ogg.

As an example of (ii): once the GStreamer-level support is in place, the 770 Audio Player will happily play .ogg files. The N800 Media Player will not, however, and I believe the reason is that it has been "improved" so as to organize the library by tags, and will no longer try to play any file whose tags it hasn't read.

OK, that was actually a lot more detail. Sorry :)

In summary, so far as UK MP is concerned, it would be great if you could

- have, somewhere, the ability to play an untagged file (even though I appreciate that UK MP's primary interface is album-based; perhaps there could be a dummy "album" for untagged songs: "Live and Untagged" :) )

- include *.ogg in the files that you scan for

- allow someone to contribute an Ogg comment-reading patch in the future.

How do you do the actual playing? Do you use the same GStreamer pipeline config from GConf, that the standard players use? If you do, that part should Just Work. (Once the GStreamer-level support is installed, I mean.)

Thanks for your attention; I hope some of this has been useful and/or interesting!

- Neil

SeRi@lDiE 2007-03-28 16:15

Re: New Media player for N800 / IT 770
 
I am not sure if this been posted but your deb packege after installation it wont register on the "Show Installed Applications" so I had to remove it manually...

SeRi@lDiE 2007-03-29 03:25

Re: New Media player for N800 / IT 770
 
I am having major problems uninstalling this application.... can you please tell me where the icon reside? Is not in /usr/share/applications/hildon

Thank You.

konttori 2007-03-29 06:24

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by SeRi@lDiE (Post 41654)
I am not sure if this been posted but your deb packege after installation it wont register on the "Show Installed Applications" so I had to remove it manually...

I've never had that issue. Did you install through the application installer?

To answer your second question, there is actually no icon, but if you want to remove everything, just run the following:

rm /usr/bin/ID3.py
rm /usr/bin/id3reader.py
rm /usr/share/applications/hildon/MediaCenter.desktop
rm /usr/share/dbus-1/services/MediaCenter.service
rm /usr/share/pixmaps/bg.png
rm /usr/share/pixmaps/song.png
rm /usr/share/pixmaps/test.png
rm /usr/share/pixmaps/UNKNOWN_UNKNOWN.jpg

That's all in the prerm script, but if your application install malfunctioned somehow, that may be corrupt somehow.

You might also just try to re-install a later version over it and then have a look if you can see that in the application installer.

konttori 2007-03-29 06:34

Re: New Media player for N800 / IT 770
 
@neiljerram:

Yep. I, of course, would need to have access to ogg comments. Although another solution would be to assume the folder the song is in to be the album name. That might work well enough. And then just pass the artist to be ogg ... or something ;)

and yah, UK MP uses gstreamer for playback, so I assume / hope there would be no need to do anything else than pass the file to gstreamer. Anyway, I'm sure all that stuff will be solved. And if there is no vorbis comment lib, I'm sure there is a way to extract that data.

konttori 2007-03-29 07:32

Re: New Media player for N800 / IT 770
 
https://garage.maemo.org/frs/downloa...0preview14.deb
New version released.

SeRi@lDiE 2007-03-29 08:09

Re: New Media player for N800 / IT 770
 
Thanks Konttori I have try several times to reinstall the packege but I get the same out come.. dont get me wrong the application work as it suppost... And yes I did use the application manager...

Thanks for the tip.

konttori 2007-03-29 11:11

Re: New Media player for N800 / IT 770
 
I'll test the uninstallation today and try to make a fix if I am able to replicate the problem.

If possible, let me know of any problems you people have on the media player so that I can find fixes for them. Also, status reports like: I just tried latest version and stuff X is still not working, would be much appreciated.

Contact me here or by mail.

I bug reports seem to be easening, I'll next go for implementing a few small features to the player in the following order:
- shuffle (this weekend - first random play, later real shuffle)
- volume control (within a week - if someone helps me with gstreamer calls for this)
- chinese support (within week - if possible easily)
- experiemental ogg support (within two weeks)
- Party list (within two weeks)
- Play lists (within a month)
- upnp support (within a month)

If you have comments / suggestions, please let me know.

neiljerram 2007-03-29 11:47

Re: New Media player for N800 / IT 770
 
Quote:

Originally Posted by konttori (Post 41766)
I, of course, would need to have access to ogg comments.

It looks as though you would get this automatically if you used taglib for tag access instead of id3lib, and there is (apparently) a Python binding for taglib. See http://developer.kde.org/~wheeler/taglib.html. The snag is (of course!) that it appears no one has built these for the 770/N800 yet.

If I could build and package taglib (+ Python binding) for the 770/N800, would using it instead of id3lib be an option for you?

Quote:

and yah, UK MP uses gstreamer for playback, so I assume / hope there would be no need to do anything else than pass the file to gstreamer.
We're OK on that point, then.

- Neil

konttori 2007-03-29 12:07

Re: New Media player for N800 / IT 770
 
neiljerram:

I had a look at the taglib and if it's the only way to read ogg stuff, I may rely on that. Of course, provided that it is fast enough. I already use two id3 libs, so I could always use a third as well.

I'm curious why there is no purely python based lib for reading the comments.

neiljerram 2007-03-29 12:16

Re: New Media player for N800 / IT 770
 
Quote:

I had a look at the taglib and if it's the only way to read ogg stuff, I may rely on that. Of course, provided that it is fast enough.
I don't know if it's the only way, but it claims to be "6 times faster than id3lib and 3 times faster than libvorbisfile at reading tags". (libvorbisfile is the kind-of-official library for accessing ogg vorbis files.)

Quote:

I already use two id3 libs, so I could always use a third as well.
I suggested taglib, rather than libvorbisfile, because I believe that taglib also covers all the MP3 tags that are handled by id3lib. Hence, if you wanted, you could just use one library (taglib) to handle all kinds of files. Out of interest, what are the _two_ id3 libs that you are already using?

Quote:

I'm curious why there is no purely python based lib for reading the comments.
I'm only guessing, but perhaps that would be too slow, given that a tag/comment library is often used when scanning large numbers of media files?

- Neil

konttori 2007-03-29 13:02

Re: New Media player for N800 / IT 770
 
I use http://id3-py.sourceforge.net/
ID V1 tags
and
http://nedbatchelder.com/code/modules/id3reader.html
for the rest.

Neither is perfect, but both are lightning fast and together they are pretty good. I first try with the ID3 and if it's not successfull, then with the other.

I've also found some ogg libs in pure python. Might be easier to use than a separate component. I'll try them first and if it's a nogo, then perhaps we could investigate use of taglib. Pure python always translates nicely to absolute portability between platforms. As, e.g. I currently develop purely on osx and test it by running it in a window. (music playing is then done through pygame -(which, by the way, also supports ogg).

neiljerram 2007-03-29 22:32

Re: New Media player for N800 / IT 770
 
Aha, I see! I had assumed incorrectly that you would be using libid3, as I believe that is pre-installed on the N800.

Quote:

I've also found some ogg libs in pure python. Might be easier to use than a separate component. I'll try them first ...
Thank you!

Quote:

Pure python always translates nicely to absolute portability between platforms. As, e.g. I currently develop purely on osx and test it by running it in a window. (music playing is then done through pygame -(which, by the way, also supports ogg).
Yes, I can see the attraction of a pure Python approach.

- Neil

konttori 2007-03-31 11:04

Re: New Media player for N800 / IT 770
 
Preview version 16 released!

New features include shuffle, much better support for people with odd file systems, Albums with various artists are now listed with album name instead of the albums first songs artist name (although sort still uses the artist name, will be fixed soon enough).

Download here:
https://garage.maemo.org/frs/downloa...0preview16.deb

konttori 2007-03-31 14:12

Re: New Media player for N800 / IT 770
 
In preparation for the final 1.0 version, I have created a python 2.4 install file that will install python for N800 as well as 770.
So, if you want to test UK MP, install python first from the link below:
https://garage.maemo.org/frs/downloa...untime.install

lbattraw 2007-03-31 14:32

Re: New Media player for N800 / IT 770
 
Ok, it looks like version pre16 installed without a problem and I'm able to start it. It scans for albums, finds nothing, and I'm presented with a blank screen (and the shuffle icon). Is there any way to tell it where to find the files? There are no menus, no obviously way to exit (short of going to windowed mode and clicking the X), and no way to make any configuration changes. All my MP3 files are located in a subdirectory a couple levels down on /media/mmc3.

Update: adding /media/mmc3 to the code fixed that problem.
if (os.path.exists('/media/mmc3')):
self.getOSDir("/media/mmc3", filelist)

Looks very nice with all the cover art. I'd recommend scanning mmc1-mmc4 and /home/user/MyDocs/.sounds by default in case someone else has two partitions per card (one FAT and one ext2) or symlinks to their music as I've done.

Larry


| 1   2     3   | Next
All times are GMT. The time now is 07:17.

vBulletin® Version 3.8.8