spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


Album art not visible - 2008/04/29 03:02 Hi,

now that everything else in swisscenter is running fine I'd like to solve the problem I have seeing album art. When I select or play music I see all the information from the tags as it should be, but I don't see any album art. Most of my music tracks have an image included in their tags, many of them have a jpg in its folder named by the album title (which is usually the name of the folder) but I don't even see the dummy image. I rescanned the database and the metadata, but there is no change.

I'll attach the support.log to this post (debug level set to 9). This was logged when I selected and played one single track that has definetely an image included in its tag (verified it by mp3tag) as well as a .jpg named by the folder's name. As far as I understand the log there was a picture found in the database. I also made a try renaming the folder's jpg to "Folder.jpg" (as set in my swisscenter config) but the picture was not visible. The latter I did after the database scan so I'm not sure whether swisscenter should see it - where does it look for "Folder.jpg", in the folder itself or in its database?

EDIT: Sorry, I forgot to tell something about my system: Swisscenter 1.20 on a headless Linux server (Fedora) with Apache and Mysql

Any help is appreciated

Peanut

File Attachment:
File name: 85f5889cc3b52aa052de4ef33f75339e.
File size:147533 bytes
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/04/29 14:20 I don't even see the dummy image.
That's strange. What do you see?

- Is the picture missing completely?
- Is there an outline of where the picture should be?
- Is is a solid block of colour (black?) or is it just background?

as well as a .jpg named by the folder's name.
This won't be picked up. The image should be called "folder.jpg" (or a name you have defined in your config).

I also made a try renaming the folder's jpg to "Folder.jpg" (as set in my swisscenter config) but the picture was not visible.
This probably would have worked, however as Swisscenter finds an image within the mp3 (although it's failing to display it for some reason) then it's ignored. You'd have to delete the ID3 image from the database for this to happen.

The easiest way to do this would be to execute some SQL in the "config > expert > database" option. If you want to give it a go then the SQL is as follows (replace "<songname>" as appropriate for a trackto test it on).

Code:

 update mp3s set art_sha1=null where title like '%<songname>%';



where does it look for "Folder.jpg", in the folder itself or in its database?
In the folder at the time the image is required, so you wouldn't need to scan for new media to get this refreshed.

I suspect that the picture being fetched from the database is somehow corrupted and therefore it doesn't get used. But I can't think of an easy way to test this...

Rob
Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/04/30 04:00 Hello,

I tried the SQL thing you told me (I suppose on "References" I have to choose "mp3", right?) and I get an error message. Do I have to write the songname without the brackets and is it the title as shown in the tags, not the filename? Sorry, I don't have a clue about SQL.

Anyway, in either way I get an error message ("SQL Befehl fehlgeschlagen", in English it would be "SQL command failed" or similar)
The image exists as a tag and I can see it perfectly well when I play the song in Oxylbox or Linux MTPCenter. In Swisscenter on my Showcenter 200 I see nothing, just the bare background, not even a frame or a black image. In Mozilla Firefox I see the symbol you see if an image is missing (wrong URL or file missing)

Thanks for your help,
peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/05 12:21 Try the following:
1. Remove Cover from ID3-Tag (I found MP3Tag from mp3tag.de very usefull)
2. Load a new Cover (i.e. from cover-paradies.to) and save it into the Tag
3. Run Mediasearch (with Meta-Voodoo)
4. Album Art appears on the screen (?)

I had a lot of trouble with Album Art and only the solution above worked fine.
I'm not quiet sure if there is a problem with some jpg-formats.
Just try it with one file to see if it works.
And please tell me:
what's the source of your mp3-files? (i-Tunes?)
are you using winamp for editing ID3-Tags?
Maybe this will help me to understand where the problem is.

Good luck
................................................
so long and thanks for all the fish!

Equipment:
Player: Showcenter 1000 (totally wired)
Musicserver: HP e-PC 10, 256 MB RAM, 1000 MHz, 250 GB HD
Remote: Logitech Harmony 555
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/05 12:57 Hi, thanks for your reply. I'll try the procedure you suggested later on.

Most of my album art is from amazon.com/amazon.de. I collected it by a script running under Mediamonkey, a music software similar to itunes but non-commercial and with a lot more features.
As I said the images are accepted by other software without any problem, so if really the image format is the cause I think this should be seen as a bug within swisscenter.

Regards,
Peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/06 03:36 OK, it didn't work. Unfortunately I'm not quite sure if the database was updated about the track I changed because I had to interrupt the update after several hours (the whole database contains about 12000 music tracks) because on my server there were about 10 update processses running eating up all my cpu, although I had started the update only once and didn't touch swisscenter afterwards I suppose apart from the image problem there is something else going wrong.

peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/07 03:48 OK, on a second try the SQL command worked.

I managed to confirm that without images in tags I see the dummy image, with images included in tags I see nothing at all. I think it must have to do with the image format (the images are NOT broken as mentioned above). however, the same images included in the album folders work fine if there are no images in tags at the same time.
I'm now extracting all images from tags to folders, but since I have a bunch of tracks that don't belong to any albums or samplers I wish there was another solution. The mediamonkey batch script I mentioned can be set to look for images on js.audioscrobbler.com, albumart.org and other sources. I'll try if any of their images work. Can anybody tell me something about image formats swisscenter accepts? Or should I drop the whole database and set it up from scratch? Oh, and is there a possibility to simply refresh the album art part and not the whole database?

thanks
peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/07 05:48 Hi Peanut,

From what you've said it does sound like the images in the tags are causing the problem, but I have no idea why. I only have jpg's in my tags but other formats should work.

To avoid refreshing the whole database you can refresh only Music of All or individual Categories in Search For New Media in the Config, and ensure Refresh Metadata is selected.

I'd like to examine your problematic files if possible. So could you upload a few to my ftp here.

Nigel
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/07 06:53 Hi,
I think the problem is the ID3-Tag-Version. There are a lot of differences between version ID3v2.2, v2.3 and v2.4. Probably it has something to do with the UTF-8 or UTF-16-support. I don't know what version is supported by Swisscenter/Showcenter. This probably explains that Album Art works fine with WinAmp and Co. and not with SwissCenter/Showcenter.
I've tagged most of my mp3's with WinAmp and they didn't show Album Art in SwissCenter. Doing the same with MP3tag solved the problem in my case.
Maybe I'm wrong, but I can't find no other explanation.
Hope this will help to solve the problem.
................................................
so long and thanks for all the fish!

Equipment:
Player: Showcenter 1000 (totally wired)
Musicserver: HP e-PC 10, 256 MB RAM, 1000 MHz, 250 GB HD
Remote: Logitech Harmony 555
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/07 10:08 It is possible that the ID3 version of your files could be the problem. Again, can either of you upload some example failed files to my ftp (link in my previous post).

Thanks,
Nigel
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 06:57 I just uploaded a file to your ftp, Pernod.

Another question: how long should database update take? I started one on the mp3 part (12000 tracks) which was finished after about 16 hours. Is that normal? What is the max size of a database swisscenter can handle with a sensible performance? I also was not exactly sure if and when it was ready. After showing "100% complete" on the config website it dropped back to 99...95 ...97 % although I didn't add any tracks. Another strange matter is that my photos were being updated too although I'd updated only media type "music" and my photos clearly don't belong to that (just checked it, all configs are correct). Weird.

Swisscenter was extremely slowed down during the update process, each music search ended with a timeout. At last I restarted mysql to make it work again.

I admit I'm getting a bit tired with all these swisscenter problems, but given the great features this software offers I'll give it another try if anybody has some hints..

peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 07:26 Got the file, I'll take a look at it tonight.

Can you also upload your log, and the log.old?

An update should not take anywhere near 16 hours, hopefully your full log will give me some clues.

Are using Simese? If you are I suspect it is trying to run multiple searches at the same time, which it should not do. I had this problem in the past but not seen it recently. Anyway your log should be able to confirm what's happening.

Nigel

Edit: In the Simese log window how many times do you see 'Media update ended' after running a media search?
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 07:55 I'll upload the log files right away.

My Swisscenter is running on a headless Linux system with an apache serverand mysql. When I said the update had ended I was referring only to the swisscenter config screen (media update showing percentage as written above. Strangely it said ""update complete" underneath although it was not at 100 %)

Regards
peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 09:04 I've added your track to my database with no problems, so your mp3's are fine (btw good choice, saw it live in '98).

Your log shows that each mp3 is being added to the database 7 times!!! This is very wrong and is likely causing database inconsistancies!!

So this indicates an installation issue but I have never used Apache so cannot advise further. I'd recommend searching other threads for linux and apache issues.
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 12:36 *sigh* Ok. Thanks for looking at the files. Do you think deleting the database and creating a new one could help? How would I do this? As I said, I have no clue about mysql. I suppose simply deleting the directory is not the right way?

Peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 12:58 You might want to check your crontab entries - it's possible that somehow there are multiple updates scheduled (or they are occurring so frequently that they are overlapping). This would cause the slowdown and the duplication. Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 13:14 I don't have any crontab entries for swisscenter. At least I didn't create any; I suppose swisscenter won't do this on its own and place them somewhere??

EDIT: I just remembered the "automatic media search" part on the config page. I think that after installation I set that to make an update every day at 10 a.m., but now when I checked it I found no entries. Also when I re-entered the time and saved it didn't show the entries. Where are these values saved? I was looking for some kind of ini-file but didn't find any.

peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 13:15 Swisscenter creates them - but only if you use the scheduler built into the config pages. Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 14:42 Well, I used this scheduler, where are the values being stored? As mentioned I didn't find a swisscenter cronjob.

peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/08 18:45 The crontab jobs are submitted as whatever user apache is running as. You should be able to find out easily by doing a "ps -aef | grep http". It's likely to be a user such as "nobody" or "wwwrun", etc. Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/09 02:15 Apache is started as a service after booting by user "apache" (who has no home directory). Only in case I have to stop and restart it I start it as root.

If I create a cronjob manually I put it directly to /etc/cron.d/ etc.

So, now where would I find a cronjob created by swisscenter?

thanks
peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/09 03:11 You find it in /var/spool/cron. In that directory, you should find a file named apache (owner root). apache is the "user" that cron will use when executing the command.

My apache's contents is:
02 01 1-31 1-12 1-7 php "/usr/share/swisscenter/media_search.php"

meaning that cron executes this command at 01:02 every day in month (1-31), every month in year (1-12) every day at week (1-7).

This is a Fedora example, and I know that there exists also a way of configuring cron in /etc/conn.x (where x could be daily, monthly etc).

But, Swiss adds an entry to /var/spool/cron.

/Peter

Note: The contents of the apache file is not created by Swiss.
Player: Showcenter 200, LAN Connected
Server: Fedora C6, Celeron 2Ghz, 2GB RAM, 620GByte HD, Twinhan DVB-T, MythTV Backend.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/09 04:25 The easiest way to edit apache's crontab is to use the following command (as root):

Code:

 crontab -u apache -e



The crontab command is the normal way of editing cron jobs - the /etc/cron.d directories are an extension and not always available in every distribution of linux.
Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/09 04:42 Thanks, PeLoof! I have a Fedora Linux, too.

I found the file named apache (owner is apache:root) and the entry is:

12 10 * * * "/usr/bin/wget" -O /dev/null http://gondor:8002/media_search.php"

(8002 is swisscenter's port)

Looks quite different. I really don't understand why swisscenter put this wget stuff there and if it's required. Should I try editing the file manually?

I found, by the way, that there were three apache daemons running, one started by root and two by apache. Don't know how that did happen. So could that be the cause of swisscenter slowing down? Of couse I stopped them and now there's running only one apache.

But I still don't see album art

peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/09 04:59 I now (after making sure that apache and mysql were runing only once and no update was being processed) ran the folling command as root:

php "/home/www/swisscenter/media_search.php"
(equivalent to what PeLoof's cronjob does)

and got this output:

-------------------------------
PHP Warning: Call-time pass-by-reference has been deprecated; If you would lik
e to pass it by reference, modify the declaration of preg_match_all(). If you w
ould like to enable call-time pass-by-reference, you can set allow_call_time_pas
s_reference to true in your INI file. in /home/www/swisscenter/base/utils.php
on line 164
PHP Warning: Call-time pass-by-reference has been deprecated; If you would lik
e to pass it by reference, modify the declaration of preg_match_all(). If you w
ould like to enable call-time pass-by-reference, you can set allow_call_time_pas
s_reference to true in your INI file. in /home/www/swisscenter/base/utils.php
on line 191
PHP Warning: Call-time pass-by-reference has been deprecated; If you would lik
e to pass it by reference, modify the declaration of fsockopen(). If you would
like to enable call-time pass-by-reference, you can set allow_call_time_pass_ref
erence to true in your INI file. in /home/www/swisscenter/base/urls.php on lin
e 109
PHP Warning: Call-time pass-by-reference has been deprecated; If you would lik
e to pass it by reference, modify the declaration of fsockopen(). If you would
like to enable call-time pass-by-reference, you can set allow_call_time_pass_ref
erence to true in your INI file. in /home/www/swisscenter/base/urls.php on lin
e 109
PHP Notice: Undefined index: HTTP_USER_AGENT in /home/www/swisscenter/base/ser
ver.php on line 197
PHP Notice: Undefined index: HTTP_USER_AGENT in /home/www/swisscenter/base/ser
ver.php on line 199
PHP Notice: Undefined index: REMOTE_ADDR in /home/www/swisscenter/base/server.
php on line 201
PHP Notice: Undefined index: SERVER_PORT in /home/www/swisscenter/base/server.
php on line 202
PHP Notice: Undefined index: HTTP_USER_AGENT in /home/www/swisscenter/base/cap
abilities.php on line 68
PHP Notice: Undefined index: REMOTE_ADDR in /home/www/swisscenter/base/screen.
php on line 77
PHP Notice: Undefined offset: 0 in /home/www/swisscenter/base/screen.php on li
ne 93
PHP Notice: Undefined offset: 1 in /home/www/swisscenter/base/screen.php on li
ne 21
PHP Notice: Undefined offset: 1 in /home/www/swisscenter/base/screen.php on li
ne 94
PHP Notice: Undefined index: HTTP_HOST in /home/www/swisscenter/base/server.ph
p on line 120
PHP Notice: Undefined index: SERVER_SOFTWARE in /home/www/swisscenter/base/ser
ver.php on line 34
PHP Notice: Undefined index: SERVER_SOFTWARE in /home/www/swisscenter/base/ser
ver.php on line 36
PHP Notice: Undefined index: SERVER_SOFTWARE in /home/www/swisscenter/base/ser
ver.php on line 38
PHP Notice: Undefined index: SERVER_SOFTWARE in /home/www/swisscenter/base/ser
ver.php on line 34
PHP Notice: Undefined index: SERVER_SOFTWARE in /home/www/swisscenter/base/ser
ver.php on line 36
PHP Notice: Undefined index: SERVER_SOFTWARE in /home/www/swisscenter/base/ser
ver.php on line 38
PHP Notice: Undefined index: REMOTE_ADDR in /home/www/swisscenter/base/server.
php on line 143
PHP Warning: Call-time pass-by-reference has been deprecated; If you would lik
e to pass it by reference, modify the declaration of preg_match(). If you would
like to enable call-time pass-by-reference, you can set allow_call_time_pass_re
ference to true in your INI file. in /home/www/swisscenter/video_obtain_info.p
hp on line 17
PHP Warning: Call-time pass-by-reference has been deprecated; If you would lik
e to pass it by reference, modify the declaration of preg_match(). If you would
like to enable call-time pass-by-reference, you can set allow_call_time_pass_re
ference to true in your INI file. in /home/www/swisscenter/video_obtain_info.p
hp on line 27
---------------------

After that, nothing else seemed to happen.

EDIT: the script went on running, but kept producing error messages. I stopped it.

peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/09 18:58 Looks quite different. I really don't understand why swisscenter put this wget stuff there and if it's required. Should I try editing the file manually?

Many users in the past have experienced problems because they either did not have a CLI version, or the CLI version was built with different options to the apache module - so wget is used to simulate a web request, hence ensuring that the script is processed by the apache PHP module rather than a (possibly different) CLI version of PHP.

PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/www/swisscenter/base/utils.php on line 164

Ah..so you're using PHP5.. there is a little inconsistency between PHP4 and PHP5 where the runtime behavoir of PHP has changed. The warning is shown due to this change.

You can either set your error reporting to disable warnings in your php.ini file, or do as the message suggests and enable call-time pass-by-reference in the php.ini file.

The bottom line is that the media_search.php file should not echo anything to the screen. If you want to see what is happening then you should "tail -f" the swisscenter log file.

Rob
Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/10 05:49 Hi,

thanks, I adjusted php.ini, no more warnings now.

All this does not do anything to the album art problem, though.
The images are okay, but somehow they seem to be corrupted being integrated to the mysql swisscenter database. They cannot be shown there.

Another issue is that swisscenter seems to start a media search each time when I do anything with it and each media search takes a lot of time - this morning, there were 11 !! msyql threads running and consuming all cpu power. I had to do a restart.

I really appreciate your efforts and I also like swisscenter's features, some of them are pretty unique, but I can't get it to work properly and don't know why, I suppose it's a matter of imcompatibility of components. All I know is my media work fine with other showcenter software, so I'll stick with this and deinstall swisscenter.

Thanks for trying, though
peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/10 06:25 Another issue is that swisscenter seems to start a media search each time when I do anything with it and each media search takes a lot of time - this morning, there were 11 !! msyql threads running and consuming all cpu power. I had to do a restart.

Yeah, there's definitely something going very wrong, you're system shouldn't be getting hammered by lots of MySQL threads.

All I know is my media work fine with other showcenter software, so I'll stick with this and deinstall swisscenter.

Sorry to hear that... it's a shame we couldn't get it sorted out for you.

Rob
Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/10 15:47 Hi,
I gave swisscenter another go and compared the image from the database with the extracted image from the mp3. The image delivered to the web-browser still had \0 instead "null" in the binary data. After some consulting I added stripslashes() in image.php (Line 314) and now it works

bye
Peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/10 16:54 Hi again,
I found the solution of my second problem. I looked again at the wget call and read the man page. Two arguments have default values which lead to my problem:
-t number ... The default is to retry 20 times ...
--read-timeout=seconds ... The default read timeout is 900 seconds. ...

I have a large media library, but a slow processor. I think you can imagine what happened after 15 minutes, after 30, ...

I added "-t 1 --read-timeout=6" to run_background() in sched.php.

Now it runs fine
bye
Peanut
Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/11 13:31 Great - thanks for the feedback.

I'll incorporate your changes into the source control so that they don't get overwritten with the next release.
Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/18 18:32 Peanut,

The latest release (1.20.1) has better support for embedded images. Previous releases only recognised art in the ID3 APIC tag whereas we now also check the PIC tag. It may be worth you doing a Media Search with Refresh Metadata.

There is another issue that I've recently discovered where if the embedded image >2M in size then PHP will fail to retrieve it but SwissCenter still thinks it has it in the database. This 2M limit is a setting in php.ini.

Hope one of these suggestions explains your issue.

Nigel

Edit: Just noticed you've fixed your problem. These explainations may help someone else though.
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/22 11:50 Hello,
looks like that the "stripslashes" fix didn't made it into this release?
bye
Peanut

Code:

  function load_from_database($sql) ...     $this->image ImageCreateFromString( <strong>stripslashes</strong>(db_value($sql)) ); ...

Server: PIII 1 Ghz, 528 MB RAM, Linux Fedora 8, Apache 2 + MySql
Player: Showcenter 200, Swisscenter 1.21
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/05/26 20:31 Your stripslashes 'fix' was not included because it actually makes my images fail to show. No-one else has reported this issue either.

What are your magic quotes settings in your php.ini?

Here's mine:
Code:

 Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc On Magic quotes for runtime-generated datae.gdata from SQLfrom exec(), etc. magic_quotes_runtime Off     ; Use Sybase-style magic quotes (escape ' with '' instead of \'). magic_quotes_sybase Off


I suspect you have 'magic_quotes_runtime = On'.

Nigel
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: Album art not visible - 2008/10/06 09:27 Hi Pernod

I can confirm that the stripslashes 'fix' solved my problem of not showing cover arts of mp3 files too. I use Win Vista Ultimate running newest simse/SwissCenter, everything in german language. Clients: MS IE (on same machine) and PCH A-100. On both clients the same effect.

I checked php.ini, seems the same as yours (did not change anything after installation):
Code:

  Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc On Magic quotes for runtime-generated datae.gdata from SQLfrom exec(), etc. magic_quotes_runtime Off     ; Use Sybase-style magic quotes (escape ' with '' instead of \'). magic_quotes_sybase Off



So, there must be some circumstances in which this fix is needed, and some (Pernod) in which this fix exactly does the contrary.

Hope, my post helps solving this issue. Let me know, if you like to have more details.

Dave
  | | The administrator has disabled public write access.
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer