Skip to main content
Participating Frequently
Feb 20, 2011 4:37 AM UTC
Question

how to record a Live Stream

I didn't find a straight forward answer to how i can record a live stream.

I need a very simple app that will connect to rtmp and record it. The app will be on the same server as the live stream.

How can i do this ?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    14 replies

    Participant
    Jul 19, 2011 8:04 AM UTC

    If you want to record a live stream audio but without videos, perhaps i can pull my ideas here. I find this alternative to

    record live streaming audio, seems working well so far. i get its free trial version and also get things done. Besides, if you use windows system, here is the quick guide: directly recording with windows media player, it comes with computer itself.

    Translate
    Participating Frequently
    Feb 21, 2011 6:12 AM UTC

    I did not get your use case clearly. Can you elaborate?

    If you want to record directly from publisher - if you are using Flash Player publish you can publish using "record" mode.

    Now if you are using FMLE and you want to record the incoming live stream, you can record using application.onPublish handler something like below:

    application.onPublish = function(myclient,mystream){

         mystream.record();

    }

    Translate
    sumon86Author
    Participating Frequently
    Feb 21, 2011 12:11 PM UTC

    I want to use FMS to record on the server side, where exactly i would put this code ?

    my encoder is streaming to a app called "liveme" which is a exact copy of "live" app.

    Translate
    Participating Frequently
    Feb 21, 2011 12:32 PM UTC

    If you are using exact copy of "live" application then you migth have to place "main.asc" from samples (<installdir>/samples/applications/live) in your liveme as live application does not allow recording.

    You can put the code which i have given you in main.asc, anywhere in main.asc should work.

    Translate