Skip to main content
February 1, 2013
Answered

Problems with Default Livepgkr; Can see RTMP, Can't see HLS/HDS (Dev Edition)

  • February 1, 2013
  • 1 reply
  • 2149 views

Hi Everyone,

I am new to Adobe Media Server, but hopefully will pick up quick.  Trying to find help with an issue of viewing the HDS/HLS of the live stream I'm encoding.  Although, I can view the RTMP output via the demo page just fine.  The setup is very very basic.  AMS 5.01 Dev Edition installed on CentOS 5.8.  Everything has been left at default.

The URL is working (http://internal-ip-address/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8) because it did play out a few segments I recorded right after first install.  I since then deleted the .f4f trying to see it would write new ones with no joy.  As a test I am just embedding these using HTML 5 video tag and using Safari, Android, and iOS for testing.  I am getting the error below as well, but not sure if its related.

Apache Errors after deleting:

[Thu Jan 31 12:18:37 2013] [error] mod_hlshttp [403]: No access to /opt/adobe/ams/applications/livepkgr/streams/_definst_/livestream/livestreamSeg2.f4f.

[Thu Jan 31 12:19:28 2013] [error] mod_hlshttp [403]: No access to /opt/adobe/ams/applications/livepkgr/streams/_definst_/livestream/livestreamSeg2.f4f.

[Thu Jan 31 12:21:53 2013] [error] mod_hlshttp [403]: No access to /opt/adobe/ams/applications/livepkgr/streams/_definst_/livestream/livestreamSeg2.f4f.

Errors in Core.00.log

2013-01-3112:51:525362(e)2611178Error from libf4f.so: [Fragmenter] [livestream] Failed to open the file /opt/adobe/ams/applications/livepkgr/streams/_definst_/livestream/livestreamSeg2.f4x
2013-01-3112:51:525362(e)2611178Error from libf4f.so: [Utils] [livestream] Error while opening the file : /opt/adobe/ams/applications/livepkgr/streams/_definst_/livestream/livestreamSeg2.f4x
2013-01-3112:51:525362(e)2611178Error from libf4f.so: [Utils] [livestream] Packager::InitAppend failed: Cannot open the file
2013-01-3112:51:525362(e)2611178Error from libf4f.so: Failed to initialize f4f Packager. Error: Cannot open the file.

    

Application.00.log:

2013-01-3112:24:265362(s)2641173onUnpublish : livestream-
2013-01-3112:24:265362(s)2641173f4f:livestream - NetStream.Play.UnpublishNotify-
2013-01-3112:24:265362(s)2641173f4f:livestream - NetStream.Play.Stop-
2013-01-3112:24:265362(s)2641173f4f:livestream - NetStream.Unpublish.Success-
2013-01-3112:30:575362(s)2641173onPublish : livestream-
2013-01-3112:30:575362(s)2641173Stream name is: livestream and live event is: liveevent-
2013-01-3112:30:575362(i)2611173Event 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: 1000, allowed drift: 0, frame rate: 100.000000, frames per interval: 1, intervals per frag: 1, frame precision: 0, disk management duration: 0.000000], ContentProtection[enabled=false(overridable)]-
2013-01-3112:30:575362(s)2641173f4f:livestream - record failed.-
2013-01-3112:30:575362(e)2641173Sending error message: Method not found (DVRSetStreamInfo).-
2013-01-3112:30:575362(s)2641173f4f:livestream - NetStream.Data.Start-
2013-01-3112:30:575362(s)2641173f4f:livestream - NetStream.Publish.Start-
2013-01-3112:30:575362(s)2641173f4f:livestream - NetStream.Play.Reset-
2013-01-3112:40:325362(e)2641173Sending error message: Method not found (DVRSetStreamInfo).-
2013-01-3112:40:355362(s)2641173f4f:livestream - NetStream.Play.UnpublishNotify-
2013-01-3112:40:355362(s)2641173onUnpublish : livestream-
2013-01-3112:40:355362(s)2641173f4f:livestream - NetStream.Play.Stop-
2013-01-3112:40:355362(s)2641173f4f:livestream - NetStream.Unpublish.Success-
2013-01-3112:51:525362(s)2641173onPublish : livestream-
2013-01-3112:51:525362(s)2641173Stream name is: livestream and live event is: liveevent-
2013-01-3112:51:525362(i)2611173Event 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: 1000, allowed drift: 0, frame rate: 100.000000, frames per interval: 1, intervals per frag: 1, frame precision: 0, disk management duration: 0.000000], ContentProtection[enabled=false(overridable)]-
2013-01-3112:51:525362(s)2641173f4f:livestream - record failed.-
2013-01-3112:51:525362(s)2641173f4f:livestream - NetStream.Data.Start-
2013-01-3112:51:525362(s)2641173f4f:livestream - NetStream.Publish.Start-
2013-01-3112:51:525362(s)2641173f4f:livestream - NetStream.Play.Reset-

Any thoughts on why I can see the RTMP Stream, but not the HLS?

Appreciate the input!

This topic has been closed for replies.
Correct answer Manish_K_A

Once you stop recording you need to delete the entire "streams" directory and not just the f4f files. Also you need to delete .stream file from liveevent directory.

So delete the streams directory and .stream file and start publishing again.

1 reply

Manish_K_ACorrect answer
Participating Frequently
February 1, 2013

Once you stop recording you need to delete the entire "streams" directory and not just the f4f files. Also you need to delete .stream file from liveevent directory.

So delete the streams directory and .stream file and start publishing again.

February 1, 2013

Thanks Manish, worked perfect.  Is there an automated way (other making a script myself) to remove the directory after a livestream occurs?  Maybe a bit I need to flip?

Thanks in advance!

-jason

Participating Frequently
February 1, 2013

If you do not want to append the recording to the existing record stream then you can use the following option in the stream name of FMLE : livestream?adbe-live-event=liveevent&adbe-record-mode=record.

Note : This is useful only if you are republishing with the same stream name. In other scenarios there is no configuration to enable automated deletion of the stream files.