Skip to main content
Known Participant
December 19, 2011
Answered

multiple bitrate encoder creates 3 seperate events and streams instead of a single event.

  • December 19, 2011
  • 1 reply
  • 2115 views

I'm using the Niagara 4100 streaming appliance to encode a live multiple bitrate streams for an event. The problem is the Niagara encoder doesn't allow me to attach an event name to the stream url like - 'streamevent%i?adbe-live-event=liveevent', instead it only allows 'streamevent%i'. So in the end I get three seperate events with a stream for each event.

Like so:

Example:

/Events/streamevent1/MNMMNNMxxxxx.stream 

/Events/streamevent2/MNMMNNMxxxxx.stream

/Events/streamevent3/MNMMNNMxxxxx.stream

AND

/Streams/streamevent1/files…

/Streams/streamevent2/files…

/Streams/streamevent3/files…

Is it possible to make it work this way without using the 'adbe-live-event' parameter using the .f4m manifest file?

Thanks,

Dave


    This topic has been closed for replies.
    Correct answer

    There is a workaroud available but you can try using Flash Media Live Encoder, which is a free tool for better results. Surf to - C:\FMSHOME\samples\applications\livepkgr directory and you will find a main.asc file in there. This is the server side scripting file that is attached to the livepkgr application.

    In this, edit the var liveEventName variable and set it to the event you want to attach your streams to eg - "liveevent".

    Now create a separate copy of your livepkgr application inside C:\FMSHOME\applications\ like livepkgr_mbr and replace the main.far file with the main.asc you just edited. Now while publishing, connect to this application livepkgr_mbr and just specify the stream name - livestream%i. Check your permissions before starting the recording.

    This should work for you. But please remember that doing this will cause all your streams to be associated with the same event - liveevent as you are hard coding that inside the main.asc file. So its best to keep a separate application just for this purpose.

    1 reply

    Correct answer
    December 20, 2011

    There is a workaroud available but you can try using Flash Media Live Encoder, which is a free tool for better results. Surf to - C:\FMSHOME\samples\applications\livepkgr directory and you will find a main.asc file in there. This is the server side scripting file that is attached to the livepkgr application.

    In this, edit the var liveEventName variable and set it to the event you want to attach your streams to eg - "liveevent".

    Now create a separate copy of your livepkgr application inside C:\FMSHOME\applications\ like livepkgr_mbr and replace the main.far file with the main.asc you just edited. Now while publishing, connect to this application livepkgr_mbr and just specify the stream name - livestream%i. Check your permissions before starting the recording.

    This should work for you. But please remember that doing this will cause all your streams to be associated with the same event - liveevent as you are hard coding that inside the main.asc file. So its best to keep a separate application just for this purpose.

    Mr_DaveAuthor
    Known Participant
    December 21, 2011

    That did the trick. I created another livepkgr application like you mentioned and edited the main.asc to parse the event name to remove any extra parameters that were appended by the encoder. Seems to work good now.

    thanks again for all your help. It's a little tricky to get started.

    Dave

    December 21, 2011

    Good to see things working.

    Regards,

    Apoorva.