Please,

Please,

am 23.09.2010 01:24:26 von fzarabozo

Hello All,

I will really appreciate any ideas or suggestions with this problem, if
anyone can help, please help. :-)


I'm working on a website (everything is working with mod_perl 2 and Perl
5.10 on Windows Server 2003 with Apache 2.2) that hosts thousands of midi
files and I need to create a way for the visitors to be able to hear such
midi files.

However, the midi files are for sale by their creators, so the website
cannot use the midi file itself for a "preview" since that would mean anyone
can just save the midi file to their computers.

So, I need to create a mp3 with the recorded midi file on it. Right now, I'm
using a command line utility that can convert midi files to wav and another
command line utility that converts the wav file to mp3. Then I can place
that mp3 file in the HTML as a demo.

Although this may seem a good solution, it's not for this website: the
server has only about 300 GB of space for this and creating an audio preview
of about 700,000 midi files would represent about 3 TB in mp3 storage.

So, I'm trying to get some ideas for this. Right now, I can only think of
finding some way to stream the midi file as audio, though I really don't
know how to do that. I want to keep this in Perl as much as possible, but if
it has to be done other way, I'll try it too.

Thank you all in advance for your time!

Francisco

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Please, I need help/suggestions/ideas with audio streaming for

am 23.09.2010 08:08:32 von Michael Ludwig

Hi Francisco,

this doesn't seem to have much (or anything) to do with Perl, but read
my comments below.

Francisco Zarabozo schrieb am 22.09.2010 um 18:24 (-0500):

> So, I need to create a mp3 with the recorded midi file on it. Right
> now, I'm using a command line utility that can convert midi files to
> wav and another command line utility that converts the wav file to
> mp3. Then I can place that mp3 file in the HTML as a demo.
>
> Although this may seem a good solution, it's not for this website: the
> server has only about 300 GB of space for this and creating an audio
> preview of about 700,000 midi files would represent about 3 TB in mp3
> storage.

I'd look into:

* find a more efficient preview format (WAV is not compacted IIRC)
* tuning the conversion to create smaller files, lowering quality
* creating files on demand and then store (many files will probably
never see a preview request)
* buy more storage

> So, I'm trying to get some ideas for this. Right now, I can only think
> of finding some way to stream the midi file as audio, though I really
> don't know how to do that. I want to keep this in Perl as much as
> possible, but if it has to be done other way, I'll try it too.

I might be wrong, but I think you need something called a "streaming
server" in order to do streaming.

Best,
--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Please,

am 23.09.2010 08:12:29 von fzarabozo

Thank you very much for your comments Michael.

Francisco

--------------------------------------------------
From: "Michael Ludwig"
Sent: Thursday, September 23, 2010 1:08 AM
To:
Subject: Re: Please, I need help/suggestions/ideas with audio streaming
forMIDI preview

> Hi Francisco,
>
> this doesn't seem to have much (or anything) to do with Perl, but read
> my comments below.
>
> Francisco Zarabozo schrieb am 22.09.2010 um 18:24 (-0500):
>
>> So, I need to create a mp3 with the recorded midi file on it. Right
>> now, I'm using a command line utility that can convert midi files to
>> wav and another command line utility that converts the wav file to
>> mp3. Then I can place that mp3 file in the HTML as a demo.
>>
>> Although this may seem a good solution, it's not for this website: the
>> server has only about 300 GB of space for this and creating an audio
>> preview of about 700,000 midi files would represent about 3 TB in mp3
>> storage.
>
> I'd look into:
>
> * find a more efficient preview format (WAV is not compacted IIRC)
> * tuning the conversion to create smaller files, lowering quality
> * creating files on demand and then store (many files will probably
> never see a preview request)
> * buy more storage
>
>> So, I'm trying to get some ideas for this. Right now, I can only think
>> of finding some way to stream the midi file as audio, though I really
>> don't know how to do that. I want to keep this in Perl as much as
>> possible, but if it has to be done other way, I'll try it too.
>
> I might be wrong, but I think you need something called a "streaming
> server" in order to do streaming.
>
> Best,
> --
> Michael Ludwig
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Please,

am 23.09.2010 13:51:43 von Brett.Carroll

This is a multipart message in MIME format.
--===============1287578985==
Content-Type: multipart/alternative;
boundary="=_alternative 00412886852577A7_="

This is a multipart message in MIME format.
--=_alternative 00412886852577A7_=
Content-Type: text/plain; charset="US-ASCII"

Check out http://timidity.sourceforge.net/#download (convert midi to wav)
and http://lame.sourceforge.net/ (convert wav to mp3).

Thanks,
Brett Carroll
IT Specialist
Bureau of the Public Debt
(304)480-7731
brett.carroll@bpd.treas.gov

"By asking for the impossible we achieve the best possible" - Italian
Proverb



"Francisco Zarabozo"
Sent by: activeperl-bounces@listserv.ActiveState.com
09/22/2010 07:24 PM
Please respond to
Francisco Zarabozo


To
"Active State Perl Mailing List"
cc

Subject
Please, I need help/suggestions/ideas with audio streaming for MIDI
preview






Hello All,

I will really appreciate any ideas or suggestions with this problem, if
anyone can help, please help. :-)


I'm working on a website (everything is working with mod_perl 2 and Perl
5.10 on Windows Server 2003 with Apache 2.2) that hosts thousands of midi
files and I need to create a way for the visitors to be able to hear such
midi files.

However, the midi files are for sale by their creators, so the website
cannot use the midi file itself for a "preview" since that would mean
anyone
can just save the midi file to their computers.

So, I need to create a mp3 with the recorded midi file on it. Right now,
I'm
using a command line utility that can convert midi files to wav and
another
command line utility that converts the wav file to mp3. Then I can place
that mp3 file in the HTML as a demo.

Although this may seem a good solution, it's not for this website: the
server has only about 300 GB of space for this and creating an audio
preview
of about 700,000 midi files would represent about 3 TB in mp3 storage.

So, I'm trying to get some ideas for this. Right now, I can only think of
finding some way to stream the midi file as audio, though I really don't
know how to do that. I want to keep this in Perl as much as possible, but
if
it has to be done other way, I'll try it too.

Thank you all in advance for your time!

Francisco

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


--=_alternative 00412886852577A7_=
Content-Type: text/html; charset="US-ASCII"



Check out
(convert midi to wav) and

(convert wav to mp3).




Thanks,

Brett Carroll

IT Specialist

Bureau of the Public Debt

(304)480-7731

brett.carroll@bpd.treas.gov



"By asking for the impossible we achieve the best possible" -
Italian Proverb









"Francisco Zarabozo"
<fzarabozo@hotmail.com>


Sent by: activeperl-bounces@listserv.ActiveState.com

09/22/2010 07:24 PM




Please respond to

Francisco Zarabozo <fzarabozo@hotmail.com>









To

"Active State Perl Mailing List"
<activeperl@listserv.activestate.com>


cc



Subject

Please,        I
need help/suggestions/ideas with audio streaming for MIDI preview














Hello All,



I will really appreciate any ideas or suggestions with this problem, if


anyone can help, please help. :-)





I'm working on a website (everything is working with mod_perl 2 and Perl


5.10 on Windows Server 2003 with Apache 2.2) that hosts thousands of midi


files and I need to create a way for the visitors to be able to hear such


midi files.



However, the midi files are for sale by their creators, so the website


cannot use the midi file itself for a "preview" since that would
mean anyone

can just save the midi file to their computers.



So, I need to create a mp3 with the recorded midi file on it. Right now,
I'm

using a command line utility that can convert midi files to wav and another


command line utility that converts the wav file to mp3. Then I can place


that mp3 file in the HTML as a demo.



Although this may seem a good solution, it's not for this website: the


server has only about 300 GB of space for this and creating an audio preview


of about 700,000 midi files would represent about 3 TB in mp3 storage.



So, I'm trying to get some ideas for this. Right now, I can only think
of

finding some way to stream the midi file as audio, though I really don't


know how to do that. I want to keep this in Perl as much as possible, but
if

it has to be done other way, I'll try it too.



Thank you all in advance for your time!



Francisco



_______________________________________________

ActivePerl mailing list

ActivePerl@listserv.ActiveState.com

To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs




--=_alternative 00412886852577A7_=--

--===============1287578985==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1287578985==--