Hi,
I have been looking into this and ffmpeg should now be able to
extract the MP3 from an FLV - a recent update includes the Nelly Moser
codec. All my bookmarks are at work, but I will forward them tomorrow
and if you are still stuck, I will post them.
If you google "flv mp3 ffmpeg" you may get some hits. I am guessing
that if you are running Red5, you have shell access to the server - you
will need this to setup ffmpeg, but you can use PHP to call server side
scripts - be careful of this because you are potentially opening
security holes if you allow "user input" to name your files - you may
also be able to get a Red5 application to do the same. If I remember,
some of the Red5 samples show saving audio, but as FLV's. Maybe you can
"tap" into these app's to see if you can call command line stuff. If
it's Java, it may be trickier, because Java will probably enforce some
kind of sandbox, whereas PHP is pretty loose about what you do.
HTH
Glen
Juan Pablo Califano wrote:
I think you can use exec, passthru, shell_exec or some other similiar
function from the php side to run the program on the server as an external
process (I never did that, but with the proper permissions, I believe it's
possible). So, you would tell this program to extract the audio data to some
file and when it returns, you could pass the path of the new mp3 to the
flash app for it to load it.
Cheers
Juan Pablo Califano
2008/10/8, BOYD SPEER <[EMAIL PROTECTED]>:
Thanks , Juan!
can a php script interact with this converter (or how would you hook into
this from a .swf that is running on a client machine?) I would like to save
a streaming audio on Red5 streaming server and then quickly do the
conversion and play it as an.mp3 so I can use the new sound api to draw an
image of the sound. (I can't seem to get this to happen with the native
nelly moser / flv files. )
-Boyd
----- Original Message -----
From: Juan Pablo Califano <[EMAIL PROTECTED]>
Date: Wednesday, October 8, 2008 11:20 am
Subject: Re: [Flashcoders] can audio be extracted from .flv (audio only)
and converted to .mp3 using AS3?
To: Flash Coders List <[email protected]>
I've tried (but not used extensively) Moyea FLV Converter SDK
for extracting
Nellymoser encoded audio. I has a command line interface so you can
use it programmatically
from the server side. I tried with .NET and I think it's Windows only,
though, so if you're running php on Linux, it's probably not an
option. I
think the trial limits the extracted sample to 30 secs or
something like
that.
http://www.flvsoft.com/flv_converter_sdk/
Cheers
Juan Pablo Califano
2008/10/8, BOYD SPEER <[EMAIL PROTECTED]>:
Can audio be extracted from .flv (audio only) and converted to
.mp3 using
AS3 / php?
alternately...
Is it possible to play a streaming sound from an .flv
file on FMS or Red5
and use SpectrumAnalyzer class to display an image created
from the
byteArrays in the sound channels? How could you pass the data
from the
streaming sound to the spectrum analyzer instance? (Does not
seem to work
when passing a stream... needs a URLLoader ...).
-Boyd
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders