Skip to main content
Participant
June 9, 2010
Question

creating streamable audio content from short multiple input files

  • June 9, 2010
  • 1 reply
  • 678 views

Hello Members,

My question is how possible creating streamable audio files /mp3/flv/ from multiple input files.
The server is vps linux without soundcard,  installed flash media server 3.5.
My task is creating mixed mp3 output file.
The input files are 2 mp3 file = 2 channel , uploaded to a server by the user.
Controls : volume pitch, equalizer, fading that is controlled from client side flash app
The problem it should be in real time, when the user control the volume pitcher channels  etc  could be heard the result in the client's flash player on client side.
For that purpose I tried to split the audio files into 1 sec pieces, and changing the splits only, and when done joining them together.
Feeding them to flash media server there was more problem:
-the server streamed not the actual file but probably from cache
-the streaming was always stopped after 1-2 seconds
-using client side dynamic streaming /without joining the files/ only the last file was played
-using server side playlist playing more files was not played all the files
So the question which way possible creating streamable files, or is there a better solution than splitting them.
Thanks for the answers,
Regards,
Zol

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 10, 2010

    I did not get your problem clearly but let me try to answer it. I suppose you want to create a single file / live play combining short multiple mp3's which are present on server-side. If that's the case , you can use server-side playlist combined with some server-side calls to make run-time switch. Can you show me your server-side and client-side code (one which you used for doing server-side playlist) .

    webthingsAuthor
    Participant
    June 10, 2010

    Hi,

    Thanks here's an example.

    With that server side playlist the problem was that : these files are 1 sec long audio files  sometimes more of them was skipped.

    Regards,

    Zol

    application.onAppStart = function()

    {

    trace(" *** test  Started *** ");

    application.myStream = Stream.get("foo");

    }

    application.onConnect = function(client)

    {

    trace("onconnect")

    application.acceptConnection(client);

    if(application.myStream) {

    trace("mystream")

    application.myStream.play("mp3:out1", 0,-1, false);

    application.myStream.play("mp3:out2", 0,-1, false);

    application.myStream.play("mp3:out3", 0,-1, false);

    application.myStream.play("mp3:out4", 0,-1, false);

    application.myStream.play("mp3:out5", 0,-1, false);

    application.myStream.play("mp3:out6", 0,-1, false);

    ...

    }

    }

    Participating Frequently
    June 14, 2010

    Can you try one thing, instead of application.myStream.play(<filename>, 0,1, false); i.e. playing for 1 second explicitly instead of playing for whole file. Try this out and see if this also gives same result