Hello : ) I have tried to upload some mp3 music files to my zope 2.6.1. To do this I have both tried the "add file" option in the management interface and used the product "CMF-friendly Audio object" found here: http://zope.org/Members/bowerymarc/CMFAudio However when i play (view) these mp3 songs or embed them in a web page, some of the songs get a silent moment (about a second) just a few seconds after I start to play them. Now I wonder what could be the reason for this? I have tried to modify/compress an mp3 song using lame, but this does not help. I have also used winamp to study the diferences between the mp3 files that play well and those who does not. A difference I notice is that the well played songs are encoded by "Exact Audio Copy (Secure mode)", whereas the unsuccessful songs have no information about encoding. I do not know if this matters. Thanks! Børge
This is unlikely a Zope problem. -aj --On Freitag, 28. November 2003 11:25 Uhr +0100 Børge Kjeldstad <borge.kjeldstad@whiteflower.no> wrote:
Hello : )
I have tried to upload some mp3 music files to my zope 2.6.1. To do this I have both tried the "add file" option in the management interface and used the product "CMF-friendly Audio object" found here: http://zope.org/Members/bowerymarc/CMFAudio
However when i play (view) these mp3 songs or embed them in a web page, some of the songs get a silent moment (about a second) just a few seconds after I start to play them. Now I wonder what could be the reason for this?
I have tried to modify/compress an mp3 song using lame, but this does not help. I have also used winamp to study the differences between the mp3 files that play well and those who does not. A difference I notice is that the well played songs are encoded by "Exact Audio Copy (Secure mode)", whereas the unsuccessful songs have no information about encoding. I do not know if this matters.
Thanks!
Børge
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
This is unlikely a Zope problem. -aj Yes, you were right : ) I thought I had been clever and polite and tried all posibilities before I posted this question. But after your answer I tried a song on a php based webpage, and I got the same problem there. Sorry for having bothered.. (there was some standard comment in your email about posting in html... I hope it is not me again? I really don't want to mess up : ) ) Thanks! Børge
On Friday 28 November 2003 04:25 am, Børge Kjeldstad wrote:
I have tried to upload some mp3 music files to my zope
This is probably not directly related, but I had a lot of trouble when I tried to do this (the files were just too big for Zope File objects to handle reliably -- at least on the hardware I was working with). I found it to be a lot easier to set up a LocalFS and access such large files from the filesystem. My first thought was that your problem was related to server-load issues like this. Your follow-up suggests that's not true, but I still recommend LocalFS for this kind of thing. There's also a *Streaming* version of LocalFS, which, IIRC, is the one I'm using. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
I would guess your problem has only to do with TMP file handling (e.g. the partition used by TMP is too small)... I've had no problem with song-length mp3's on my record company site, using Audio. On Friday, November 28, 2003, at 02:53 PM, Terry Hancock wrote:
On Friday 28 November 2003 04:25 am, Børge Kjeldstad wrote:
I have tried to upload some mp3 music files to my zope
This is probably not directly related, but I had a lot of trouble when I tried to do this (the files were just too big for Zope File objects to handle reliably -- at least on the hardware I was working with). I found it to be a lot easier to set up a LocalFS and access such large files from the filesystem.
My first thought was that your problem was related to server-load issues like this. Your follow-up suggests that's not true, but I still recommend LocalFS for this kind of thing.
There's also a *Streaming* version of LocalFS, which, IIRC, is the one I'm using.
Cheers, Terry
-- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Friday 05 December 2003 11:26 am, Marc Lindahl wrote:
I would guess your problem has only to do with TMP file handling (e.g. the partition used by TMP is too small)... I've had no problem with song-length mp3's on my record company site, using Audio.
Yeah, I wouldn't expect so. But by "song-length", do you include 77 minutes? Obviously there will always be a limit. I had a similar problem with a 33 MB software package download. Both seem to benefit from a LocalFS approach (not sure what difference the streaming part makes). Of course, I wasn't using CMFAudio, either -- I was just talking about handling these kind of large files in Zope's ZMI. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
On Friday, December 5, 2003, at 12:57 PM, Terry Hancock wrote:
On Friday 05 December 2003 11:26 am, Marc Lindahl wrote:
I would guess your problem has only to do with TMP file handling (e.g. the partition used by TMP is too small)... I've had no problem with song-length mp3's on my record company site, using Audio.
Yeah, I wouldn't expect so. But by "song-length", do you include 77 minutes?
About 3.5-4MB.
Obviously there will always be a limit.
Yes, but quite larger than that.
I had a similar problem with a 33 MB software package download.
33MB is not a big file. I'd guess it has more to do with whatever's at the front end of your zope. For me I run zope behind Squid. I like that because I don't have the single-threaded pcgi bottleneck and I get the superior caching of squid (compared to apache).
Both seem to benefit from a LocalFS approach (not sure what difference the streaming part makes).
I don't think LocalFS guarantees streaming or makes a difference there anyway, it depends on the front end - apache, zserver, squid, whatever. Real streaming is something like quicktime streaming server or shoutcast, since IP streaming has its own set of protocols compared to http.
Of course, I wasn't using CMFAudio, either -- I was just talking about handling these kind of large files in Zope's ZMI.
Cheers, Terry
-- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hello Terry and thanks for your answer! On Friday, November 28, 2003, at 02:53 PM, Terry Hancock wrote:
On Friday 28 November 2003 04:25 am, Børge Kjeldstad wrote:
I have tried to upload some mp3 music files to my zope
This is probably not directly related, but I had a lot of trouble when
I tried to do this (the files were just too big for Zope File objects to handle reliably -- at least on the hardware I was working with). I
found it to be a lot easier to set up a LocalFS and access such large files from the filesystem.
My first thought was that your problem was related to server-load issues like this. Your follow-up suggests that's not true, but I still recommend LocalFS for this kind of thing.
There's also a *Streaming* version of LocalFS, which, IIRC, is the one I'm using.
Cheers, Terry
Now I have installed LocalFS and tried to play the songs from the file system, but unfortunately that did not solve my problem with a short silence in the song shortly after it started to play.. I have also followed Marc's advices (thanks for those!) and increased the size of my TMP file. Further I tried to see if and how my IE clients loading of the plugin to play back mp3 format could affect the playing of the song, but I was unable to find out anything about this plugin or how it worked.. However, you mentioned a *Streaming* version of LocalFS you were using. Could you please tell me which one that is? I tried to use this one: http://zope.org/Members/morphex/media_file_system_1_0 but this one did not seem to reckognize any mp3 files on my filesystem.. Best! Børge
I'm pretty sure it's this one that I'm using: http://zope.org/Members/johanc/StreamingFS It's actually just a hacked version of LocalFS (I believe it installs *as* LocalFS in your Products directory). It also says "version 0.0.0" so it might be kind of experimental. ;-) (I don't think I've ever seen a "0.0.0" before). I was using it on a kind of "toy" site, so I wasn't too concerned about that issue.
Yeah, I found that one too, but I don't know what the relationship is. I have never tried it, though. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
Hey Børge ;) Børge Kjeldstad wrote:
http://zope.org/Members/morphex/media_file_system_1_0
but this one did not seem to reckognize any mp3 files on my filesystem..
It should work if you upload files through the ZMI.. the Media FS was created so that users could have a Zope based interface for adding and streaming media over HTTP. It should be used with for example Apache, since Zope doesn't handle large files well. I guess there should be a howto for how to use it, but there's not any time to get that done now.. Cheers, Morten -- Phone: (+47) 45 44 00 69 Personal blog: http://www.blogologue.com Company website: http://www.nidelven-it.no
Hei Morten! Børge Kjeldstad wrote:
http://zope.org/Members/morphex/media_file_system_1_0
but this one did not seem to reckognize any mp3 files on my filesystem..
Morten wrote:
It should work if you upload files through the ZMI.. the Media FS was created so that users could have a Zope based interface for adding and streaming media over HTTP. It should be used with for example Apache, since Zope doesn't handle large files well.
This worked as you said! However, I have not managed to play the songs that I upload with Media FS, but that was maybe not the intention with the product either? : ) Best! Børge
On Friday, November 28, 2003, at 05:25 AM, Børge Kjeldstad wrote:
Hello : )
I have tried to upload some mp3 music files to my zope 2.6.1. To do this I have both tried the "add file" option in the management interface and used the product "CMF-friendly Audio object" found here: http://zope.org/Members/bowerymarc/CMFAudio
However when i play (view) these mp3 songs or embed them in a web page, some of the songs get a silent moment (about a second) just a few seconds after I start to play them. Now I wonder what could be the reason for this?
It's not Audio/CMFAudio. Those are based on File, and just try to call whatever generic plugin your browser client uses to play back audio. They just feed the audio data to your client.
I have tried to modify/compress an mp3 song using lame, but this does not help. I have also used winamp to study the diferences between the mp3 files that play well and those who does not. A difference I notice is that the well played songs are encoded by "Exact Audio Copy (Secure mode)", whereas the unsuccessful songs have no information about encoding. I do not know if this matters.
Currently (unless someone else updated it) Audio only recognizes id3 version 1 tags, but that only affects cataloging, not the playing of the file at all. I would guess that, unless you have silence in front of your file, what you're seeing is a delay of your client loading the plugin to play back mp3 format.
Thanks!
Børge
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Andreas Jung -
Børge Kjeldstad -
Marc Lindahl -
Morten W. Petersen -
Terry Hancock