• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Need a hand to configure FMS 4.5 to output HTTP stream...

Community Beginner ,
Apr 26, 2012 Apr 26, 2012

Copy link to clipboard

Copied

Hi folks!

I'm trying to setup Flash Media Server (Streaming server) and I'm having issues with outputting HTTP stream.

The system works very well with the Flash ooutput, but for some reason the livepkgr won't work. Tried several things over the past two weeks, I've went thru docs and I don't know anymopre what else I can try... The source of the video feed is upstreamed from my own home computer, via Flash Live Encoder.

I operate a dedicated server, running Windows 2008 Server. The default web site is IIS. I configured the ports so that port 80 is the default IIS inetpub/webroot, and the FMS 4.5 install is accessed via port 8134. So the IP http://184.107.48.113 opens the default Windows IIS, and http://184.107.48.113:8134 takes the request to the FMS install.

The video stream is live on the Flash server, I can see it in the console, the livepkgr appears to be working, and I do see the .STREAM file being generated in the _definst_/livebroadcast/livestream folder. So the server works, and process the HTTP output.

I believe the URL I should use to access the output HLS stream is: http://184.107.48.113:8134/livepkgr/_definst_/livebroadcast/livestream.f4m.m3u8

but it returns a file not found message. Is there something wrong with the URL syntax? Or there is something else in the .conf files I must tweak? Or is it an issue with Apache 2.2 configuration?

You can see the live Flash stream from my web site http://www.blackflag.tv I want to change this Flash stream to HTTP stream.

Thanks for your help folks!!!

-sv bell

Views

3.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

May 01, 2012 May 01, 2012

Ok. Here are a few things which I'd like you to do.

1. Stop the publishing.

2. Go to the FMS applications folder and delete everything uder applications/livepkgr/streams and also remove the *.stream file.

3. Now Restart the publishing.

4. Create crossdomain.xml with the below content, and place this xml in your webroot.

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

          <allow-access-from domain="*" />

<

...

Votes

Translate

Translate
Apr 30, 2012 Apr 30, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 30, 2012 Apr 30, 2012

Copy link to clipboard

Copied

Ah-haa... Thanks for your reply ShivenK !

I can see a sign of life now, thought it still won't work and video stream is not displaying. But the HLS link you give

http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8

instead of displaying a video, it downloads a .m3u8 file on my desktop. I tried to open in Quicktime, out of curiosity, but it's not recognized. Here's the full content of the .m3u8 file, in case it gives a hint on the solution:

#EXTM3U

#EXT-X-MEDIA-SEQUENCE:217957

#EXT-X-ALLOW-CACHE:NO

#EXT-X-VERSION:2

#EXT-X-TARGETDURATION:8

#EXTINF:8,

../../../../hls-live/streams/livepkgr/events/_definst_/livebroadcast/livestreamNum217957.ts

(The server is broadcasting continuously since last week - you can test the HLS URL anytime)

Thanks for your help!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 30, 2012 Apr 30, 2012

Copy link to clipboard

Copied

And out of curiosity, I entered in Quicktime player the link

http://184.107.48.113:8134/hls-live/streams/livepkgr/events/_definst_/livebroadcast/livestreamNum217...

and the player does displays a message saying it's load the stream, but nothing else.

It's missing a little piece in the puzzle, somewhere, for it to work...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Ok. Here are a few things which I'd like you to do.

1. Stop the publishing.

2. Go to the FMS applications folder and delete everything uder applications/livepkgr/streams and also remove the *.stream file.

3. Now Restart the publishing.

4. Create crossdomain.xml with the below content, and place this xml in your webroot.

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

          <allow-access-from domain="*" />

</cross-domain-policy>

5. Now try to play the m3u8 through quicktime.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Thanks for your help ShivenK!

I tried these directions (I also double-checked the FMLE settings for synchronization, and it is set to True)

Now using the link

http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8

in Quicktime, it returns the message "URL is invalid" (QuickTime 7.6.6)

In a web browser (Safari 5.0), the URL force-downloads the .m3u8 file, with the following content in it:

#EXTM3U

#EXT-X-MEDIA-SEQUENCE:5571

#EXT-X-ALLOW-CACHE:NO

#EXT-X-VERSION:2

#EXT-X-TARGETDURATION:8

#EXTINF:8,

../../../../hls-live/streams/livepkgr/events/_definst_/livebroadcast/livestreamNum5571.ts

I checked in the Streams folder, and I can see the _definst_/livestream structure being generated, with the bootstrap, control file, and all the F4F and F4X series of files. I also have plenty of room on the disk (I have set the sliding window to 1 hour anyways)

The URL just don't reach the required file structure. The adress http://184.107.48.113:8134 does access the Adobe install folder, but the full path does not reach the file structure.

Just in case, I placed the crossdomain.XML file in both webroot directories, the one from Adobe FMS install, and another one in the default Windows inetpub/webroot. Didn't change a thing though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Hey,

I tried playing HDS now and its working fine. It wasn't playing earlier.

You can try it out by playing the content through the player here: http://www.osmf.org/configurator/fmp/#

Input: http://184.107.48.113:8134/hds-live/livepkgr/_definst_/livebroadcast/l ivestream.f4m

(Don't forget to select the radio button for HTTP streaming)

This means everything is working on the server side.

Now, I don't have an iDevice on me to check out HLS playback.

You are using an older version of QuickTime, which could be an issue. Please let me know what publish settings you are using (as in the codecs).

Also can you try playing it back through HTML5. To do that, just create an HTML page with the below content.

<!DOCTYPE html>

<html>

<head>

<title>Title of the document</title>

</head>

<body>

<video width="320" height="240" controls="controls" src="http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8"  />

</body>

</html>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Ok!! That's an awesome news!!

Tried it and it works here too... So it has to play thru HDS and not HLS? Did I goofed somewhere in my settings then? I wanted it HLS but if it works via HDS, I can sure live with that!

I'll make some more tests, see how I can embad in my pages and on idevices...

Thanks, this just made my day!!!

I'm back in a moment with some tests results.

-sv

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Nice to hear that. If HDS works, so will HLS.

Are you able to play it through HTML5?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Hmmm nope, HTML5 won't work. It locks on loading the video. But again, it might very well be my version of Safari.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

What's the URL and I'll test it on my ipad if you like.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 02, 2012 May 02, 2012

Copy link to clipboard

Copied

Here are the links I am making tests with. The HTML5 page is the code provided by ShivenK a few posts above.

http://www.blackflag.tv/iphone/html5.html

http://www.blackflag.tv/iphone/hds.html

http://www.blackflag.tv/iphone/hls-test.html

There's only the video stream on these pages, nothing else.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 01, 2012 May 01, 2012

Copy link to clipboard

Copied

Hey Sv,

Please let me know of the publish settings you are using.

Also send me the Apache error logs, FMS core logs.

Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 02, 2012 May 02, 2012

Copy link to clipboard

Copied

Thanks for the suggestion, ShivenK, to: "delete everything under applications/livepkgr/streams"

It solved the issue I was having with distorted/banded video/no video/green screen.

Much appreciated!

Mike

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 03, 2012 May 03, 2012

Copy link to clipboard

Copied

LATEST

Cheers Mike!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines