Copy link to clipboard
Copied
I have a live stream running 24/7 via ALME to FMS 4.5 that works perfectly and shows in real-time when viewing on a PC or an Android phone (via RTMP). But when I view it on an iPad (via HTTP Live Streaming) all I get is a small chuck (a few seconds) of a video that would have been from many hours before (i.e viewed the stream at 10pm and all I saw was a few-second clip of daylight).
I am on a tight deadline to complete this project and am totally baffled with what I am seeing.
Any ideas from anyone?
Copy link to clipboard
Copied
Can you request the m3u8 file and let know the content you are seeing in it?
Copy link to clipboard
Copied
Here's the HTTP stream link:
http://66.118.69.146/hls-live/livepkgr/_definst_/liveevent/camera1.m3u8
And here's the link for the same stream via RTMP:
http://www.connect-bridgeport.com/videoPlayer.cfm?feed=7251E4B3CDB82B29BFFC8671FB2AA62E
Copy link to clipboard
Copied
The m3u8 file looks fine to me.
Can you request the playback once from ipad and check the contents of apache logs (access_log and error_log) in Apache2.2 logs dir.
Also check the core.00.log file in FMS logs dir for any errors or warnings (x-status fields starting with (e) or (w) )
Copy link to clipboard
Copied
When you viewed the m3u8 files, did you see a guy on a riding lawn mower cutting a baseball field, or did you ONLY see the baseball field?
Copy link to clipboard
Copied
I didn’t play the stream. Don’t have an iDevice with me right now ☹
We can do one more thing, check the HDS playback.
Can you play this URI http://66.118.69.146/hds-live/livepkgr/_definst_/liveevent/camera1.f4m
using this player http://www.osmf.org/configurator/fmp/#
and see if its fine?
You will have to provide a crossdomain.xml in your webroot dir to allow osmf.org
Copy link to clipboard
Copied
Just tried, and the Strobe player reads: "We are having problems with playback. We apologize for the inconvenience".
So I don't know if that means their page or my stream is having "problems"
Copy link to clipboard
Copied
Most probably it is looking for crossdomain.xml file.
Can you create one with following content,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.osmf.org" secure="false"/>
</cross-domain-policy>
and place in webroot folder please and check the playback again?
Copy link to clipboard
Copied
Ok, I created the file and placed it in "drive letter:\Program Files\Adobe\Flash Media Server 4.5\webroot", but Strobe still won't play it
Copy link to clipboard
Copied
File is not accessible.
Try this URI http://66.118.69.146/crossdomain.xml . It’s not working.
Copy link to clipboard
Copied
Did I put it in the wrong place?
Copy link to clipboard
Copied
Ok, I see what I did - try to hit it now: http://66.118.69.146/crossdomain.xml
File is now found, but Strobe still gives same error
Copy link to clipboard
Copied
Playback is not working.
It’s not recommended but just for debugging this, can you change the crossdomain.xml file to read domain="" instead of domain=".osmf.org" and check once.
Copy link to clipboard
Copied
Ok, made the change to crossdomain.xml and now Strobe plays it. But, I am seeing the same thing I saw on the iPad (i.e small chunk of old video, not in real time)
Copy link to clipboard
Copied
When ask about restarting the recording, do you mean exactly? If I restarted the encoder?
Not sure I understand "can you set to bigger value than 2 days" - set what? And how much bigger should it be?
I'm using FMS 4.5.2
Copy link to clipboard
Copied
Yes. I wanted to know if you restarted your Flash Media live Encoder.
Recording is no more happening on server and that’s why you are not able to play the stream anymore.
Copy link to clipboard
Copied
Yes, we have the encoder running on a VM and for some reason it just dies every couple of days and we have to restart it.
If recording is not happening anymore, then how do I fix it? What were you refering to in the earlier post about changing something to more than "2 days"?
Copy link to clipboard
Copied
I would suggest removing the old content from server if you don’t need them.
This would require clearing the livepkgr\streams\_definst_\camera1 directory of all files (*.f4f, f4x, bootstrap etc)
Once you do that, you should be able to record once again and should be able to play also.
Copy link to clipboard
Copied
Should I also add something like <MaxRestartGap>10</MaxRestartGap> to my Event file so this won't happen again?
Copy link to clipboard
Copied
Cannot suggest you a good value but have seen errors which says,
“Restarting the recording after 10.000000 days is not allowed.”
A little bigger value should be more safer.
Copy link to clipboard
Copied
Like maybe <MaxRestartGap>4</MaxRestartGap>?
Also, my Event file currently doesnt have the <MaxRestartGap> tag in it. Is it OK to simply add it?
Copy link to clipboard
Copied
Here's what my current Event file looks like:
<Event>
<EventID>liveevent</EventID>
<Recording>
<FragmentDuration>4000</FragmentDuration>
<SegmentDuration>400000</SegmentDuration>
<DiskManagementDuration>3</DiskManagementDuration>
</Recording>
</Event>
Is it safe to add <MaxRestartGap>4</MaxRestartGap> to the above?
I also read on another post to append this into the stream path in LME:
&adbe-record-mode=record
...so it will start a fresh recording on every encoder restart instead of "appending" to the old recording. Good idea to do this?
Copy link to clipboard
Copied
Please go ahead and add the entry to the file.
Copy link to clipboard
Copied
Done. I added it and I also appended this into the stream path in LME: &adbe-record-mode=record. Restarted everything, stream back up and working via RTMP and in the remote Strobe player. Guess we'll just have to wait and see if this fixes the issue.
Can't thank you enough for all your help, vijay.das. MUCH appreciated!
Copy link to clipboard
Copied
Good to know it’s working in strobe media player.
As long as HDS is playing, HLS should also work fine. Do let know if you face any issues.
Thanks