Skip to main content
Participant
December 1, 2011
Question

Cannot get HLS Live streaming to work

  • December 1, 2011
  • 1 reply
  • 10544 views

I'm struggling to get things going on the HTTP live streaming side.

I'm using FMLE 3.2 w/ Flash Media Server 4.5.

Format: H.264

Frame Rate: 29.97

Bit Rate: 800Kpbs

Profile: Main

Leven: 3.1

Keyframe Frequency: 4 Seconds

I'm streaming to:

FMS URL: rtmp://hostname/livepkgr

STREAM: livestream?adbe-live-event=liveevent

I have verified the stream is working by connecting via flash to

rtmp://<HOST-NAME>/livepkgr

livestream?adbe-live-event=liveevent

I can't get the stream to play in iOs/Safari. I've been trying using the instructions via this doc (http://help.adobe.com/en_US/flashmediaserver/devguide/WSd391de4d9c7bd609-52e437a812a3725dfa0-8000.html)

If I try to access the following file: http://<HOST-NAME>/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8 I get FILE NOT FOUND.

Looking on the FMS machine under /opt/adobe/fms/applications/livepkgr/events/_definst_/liveevent is see no files other than Event.xml and Manifest.xml

So...it seems like no stream is being created in the livepkgr. What can I do to troubleshoot?

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    December 2, 2011

    1. Check Event.xml is fine. Open in a browser and see its a valid file.

    2. Check livepkgr application error logs. You may find them in opt/adobe/fms/logs/_defaultVHost_\livepkgr\_definst_ . See if it reports anything wrong.

    3. Check core logs inside logs folder. Does it report any error.

    4. In case you have touched Event.xml, I would suggest just provide stream name as "livestream" .. Don't associate any event. Check whether stream is being building at /opt/adobe/fms/applications/livepkgr/events/_definst_/livestream. In that case, you can subscribe to

    http://<HOST-NAME>/hls-live/livepkgr/_definst_/livestream/livestream.m3u8             (in case event is not specfied, an event with stream name is created)

    5. Check whether application.xml inside livepkgr folder is fine (same test as in step 1)

    6. Check if you have configured any virtual directory setting for the livepkgr application.

    Participant
    December 2, 2011

    #1 Fails (see below)

    I get a 404 not found.

    http://<HOST-NAME>/hls-live/livepkgr/_definst_/liveevent/Event.xml

    http://<HOST-NAME>/hls-live/livepkgr/_definst_/liveevent/readme.html (test file I created)

    Sounds like the hls-live alias isn't working? Off to check Apache. That alias is supposed to be set up by default isn't it?

    #2

    Here's my  application.00.log from opt/adobe/fms/logs/_defaultVHost_\livepkgr\_definst_

    #Version: 1.0

    #Start-Date: 2011-12-02 12:01:32

    #Software: Adobe Flash Media Server 4.5.0 r297 x64

    #Date: 2011-12-02

    #Fields: date   time    x-pid   x-status        x-ctx   x-comment

    2011-12-02      12:01:29        12262   (s)2641173      f4f:livestream - NetStream.Play.UnpublishNotify -

    2011-12-02      12:01:29        12262   (s)2641173      onUnpublish : livestream        -

    2011-12-02      12:01:29        12262   (s)2641173      f4f:livestream - NetStream.Play.Stop    -

    2011-12-02      12:01:29        12262   (s)2641173      f4f:livestream - NetStream.Unpublish.Success    -

    2011-12-02      12:01:32        12262   (s)2641173      onPublish : livestream  -

    2011-12-02      12:01:32        12262   (s)2641173      Stream name is: livestream and live event is: liveevent -

    2011-12-02      12:01:32        12262   (i)2611173      Event level recording configuration: General[flags: 3, keyframe interval: 60000, max size: -1, max length: -1, io buffer size: 0], Fragment[frag duration: 4000, seg duration: 400000, duration precision: 100, allowed drift: 1000, frame rate: 0.000000, frames per interval: 0, intervals per frag: 1, frame precision: 1, disk management duration: 3.000000], ContentProtection[enabled=false(overridable)]        -

    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - record failed. -

    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Publish.Start        -

    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Data.Start   -

    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Play.Reset   -

    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Record.NoAccess      -

    2011-12-02      13:23:31        12262   (s)2641173      f4f:livestream - NetStream.Play.UnpublishNotify -

    2011-12-02      13:23:31        12262   (s)2641173      onUnpublish : livestream        -

    2011-12-02      13:23:31        12262   (s)2641173      f4f:livestream - NetStream.Play.Stop    -

    2011-12-02      13:23:31        12262   (s)2641173      f4f:livestream - NetStream.Unpublish.Success    -

    2011-12-02      13:23:40        12262   (s)2641173      onPublish : livestream  -

    2011-12-02      13:23:40        12262   (s)2641173      Stream name is: livestream and live event is: liveevent -

    2011-12-02      13:23:40        12262   (i)2611173      Event level recording configuration: General[flags: 3, keyframe interval: 60000, max size: -1, max length: -1, io buffer size: 0], Fragment[frag duration: 4000, seg duration: 400000, duration precision: 100, allowed drift: 1000, frame rate: 0.000000, frames per interval: 0, intervals per frag: 1, frame precision: 1, disk management duration: 3.000000], ContentProtection[enabled=false(overridable)]        -

    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - record failed. -

    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Publish.Start        -

    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Play.Reset   -

    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Data.Start   -

    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Record.NoAccess      -

    ~    

    #3

    I get the following error in my core.00.log file in opt/adobe/fms/logs

    Error from libf4f.so: Couldn't create directory for new record : /opt/adobe/fms/applications/livepkgr/streams/_definst_/livestream

    Nikhil_Kalyan
    Participating Frequently
    December 6, 2011

    Hi,

    Did you make sure the applications directory and the sub dirs are having sufficient privileges to write files to disk ? The livepkgr application records files on to the disk and if it does not have the required permissions, it fails, even when your live stream works on RTMP. Please take a look at this and see if that helps you.

    Thank you !