• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • Tutorials /
avatar image
Question by Charlie Good · Jan 26, 2010 at 12:31 PM · tutorials

How to re-stream an unprotected stream from FMS or a CDN such as Akamai

[wowzathreadtoarticleredirect]41[/wowzathreadtoarticleredirect]
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

19 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Charlie Good · Mar 12, 2010 at 05:03 PM

No, we currently do not have a way to support query parameters through the live stream repeater process. I believe they will get stripped off. We may look at this in a future release but at this time it is not possible.

Charlie
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rohan Mukkamala · Mar 13, 2010 at 06:42 AM 0
Share
Hi,

Is there a way I could re-write my own live repeater, which supports query parameters?

The first step is to be able to subscribe to live streams from other servers. I think, in the previous versions of wowza, this was not possible. Is this possible in Wowza 2?

The second step would be to republish these streams for clients on this server. I saw support for vod streams using Stream class in Wowza 2. Can this be done for live streams?

Any ideas here?
avatar image

Answer by Charlie Good · May 13, 2010 at 12:23 PM

If you are using StartupStreams.xml or the stream manager to start the streams and you don't stop the stream it will continue to run. With iPhone and Silverlight packetization we need to keep packetizing the stream. If you have some event you can queue off of to start and stop the streams then you can use the IApplicationInstance.startMediaCasterStream and IApplicationInstance.stopMediaCasterStream to trigger the start and stop using the server-side API. The trick if to find an event from which to trigger the start/stop of the stream. You can certainly write your own scheduler that does it based on time of day.

Charlie
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Guillermo Revuelta · Feb 01, 2010 at 12:01 PM

I haven't worked deep on the code but could this be used to re-stream from a FMS (in a local installation not in Akamai) ?

Edit: Yes, it's possible :)

Thanks Charlie
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image John Nicholas · Feb 01, 2010 at 05:04 PM 0
Share
The Live Streaming step says

Set the Streams/StreamType property to: liverepeater-edge

but the Live Streaming (all player technologies) says

Set the Streams/StreamType property to: live

which seems to require setting up the akamai connection through the stream manager.

Is it possible to have the automatic connection to akamai and still stream to the iphone? if I just change Streams/StreamType to liverepeater-edge it says Stream not found
avatar image

Answer by Guillermo Revuelta · Sep 17, 2010 at 12:57 PM

Hi Charlie, I need help. I want to use this method, but instead of using a single rtmp stream, I want to use two different rtmp origins. I want each one to be a different quality in a smil for iphone.

Do you think is possible (and how I do it if is)?

Thanks
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Richard Lanham · Sep 17, 2010 at 01:34 PM 0
Share
You can repeat step #4 as many times as you want, creating different . stream files, and each one can be a different server + stream name or smil file.

Richard
avatar image Guillermo Revuelta Richard Lanham · Sep 17, 2010 at 03:22 PM 0
Share
I understand that, but how I generate the smil?

If I have quality1.stream and quality2.stream, how do I insert that into the .smil file?

I mean, for example in an standard .smil you have:

<smil>

<head>

</head>

<body>

<switch>

<video src="mp4:streamname1" system-bitrate="10480000"/>

<video src="mp4:streamname2" system-bitrate="7480000"/>

<video src="mp4:streamname3" system-bitrate="3480000"/>

</switch>

</body>

</smil>


In the streamname field should I put quality1.stream, quality2.stream ??

Thanks Richard
avatar image

Answer by vass vassilev · Sep 03, 2010 at 01:07 PM

it looks alike for every stream I have to modify the file manually , is it any way to do that automatically ?
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Richard Lanham · Sep 03, 2010 at 09:07 PM 0
Share
If you are referring to StreamManager, you can automate using /conf/StartUpStreams.xml

Richard
avatar image vass vassilev Richard Lanham · Sep 03, 2010 at 04:22 PM 0
Share
I'm not aware of StreamManager , is this an Akamai function

do you have more info about it ?

thanks
avatar image

Answer by Sean Berner · Aug 25, 2010 at 06:03 PM

Is it possible to use one server to do more than one re-stream? I have one stream working with the above settings just fine but I'm trying to add another one that has a different source feed and it doesn't seem to be working. Of course I need to change the name of the stream but in the config what should be adjusted to to use a different name? Thanks for any help you can provide.

Sean
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Richard Lanham · Aug 26, 2010 at 12:38 AM 0
Share
Yes, of course, you can have many streams with different sources and different names.

Richard
avatar image

Answer by Charlie Good · Mar 12, 2010 at 01:01 PM

What do you mean by "token based streaming"?

Charlie
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rohan Mukkamala · Mar 13, 2010 at 06:30 AM 0
Share
Hi,

Akamai has a way to secure media streams. They generate "tokens" which the client needs to provide to the Akamai server whenever they need to fetch a stream.

The token is appended to the stream name & the url looks like this:

rtmp://live.flash.com/live/streamName@s24810?auth=daEd_cwcJchdCa6debDdCa_dldLc6dFcxct-blMUhc-4q-ppGWwGuNCDvOBkLci&aifp=1

Look at "auth=<token>". Will a Wowza reflector re-streaming an Akamai stream, support this functionality?

If yes, what do I need to configure?

If no, do you have any work around, even if it means extra code?
avatar image

Answer by Richard Lanham · Feb 01, 2010 at 11:25 PM

You can use /conf/StartupStreams.xml to start MediaCaster streams when the Server starts.

I think you can leave the Applicaiton.xml /StreamType "live", set the MediaCaster type to "liverepeater" in the StartupStreams.xml file, and set Application.xml /LiveStreamPacketizer = "cupertinostreamingpacketizer", and will work on IPhone.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rohan Mukkamala · Mar 13, 2010 at 01:10 AM 0
Share
Is there support for Akamai token based streaming on wowza reflectors, pulling streams from Akamai?
avatar image

Answer by Richard Lanham · Mar 13, 2010 at 04:19 PM

You still can't subscribe as such from server to server, and I don't think the source for livestream repeater is available to modify, but, if it helps, you can use a live stream(s) as a source for a Stream class stream. You make the "start" parameter "-2"

Richard
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image John Nicholas · May 13, 2010 at 02:07 PM 0
Share
I have a few live streaming shows that are on at different times of the day ranging from 10 minutes to 3 hours.

I don't have any problems restreaming them from akamai to devices using the techniques described here. I'm trying to use the StartupStreams.xml but now my logs are filled with

CupertinoPacketHandler.resetStream[akamai/_definst_/akamai.stream]

LiveMediaStreamHandler.sessionClosed

LiveMediaStreamHandler.sessionClosed: reconnect: isCurrentSession:false tryConnect:true

which seems like a problem. I'd hope it was only connecting to akamai when someone was trying to get the restream rather than constantly connecting. Am I using the wrong approach for this kind of situation?
avatar image John Corella · Aug 19, 2010 at 04:42 PM 0
Share
Hello, I am getting this warning:

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

And, I cannot seem to stop the server or change to a directory

Thank you.
avatar image

Answer by Richard Lanham · Aug 20, 2010 at 01:02 PM

This either means Wowza is already started or another program is running and using port 1935. You might be starting the server in stand alone mode when Wowza is running as a service. If you are using putty or cmd window, control-c should get you back to a prompt.

You can open another console and run [wowza-install-dir]/bin/shutdown.sh (shutdown.bat)

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image John Corella · Aug 21, 2010 at 10:08 PM 0
Share
I got the stream going thank you, however please see my other post as my stream is not working properly.

http://www.wowza.com/forums/showthread.php?t=9879&page=2

--------

I am streaming on iPhone.

Very happy about it. We will be purchasing a perpetual license tomorrow, Sunday PST.

Right now we are running a Wowza Server Subscription for a single instance.

After we have the stream going in the iPhone it lasts without stopping.

But, there is an issue. The stream doesn't always stream when the address is entered into the browser. After closing the Safari browser we just get a blank screen in the browser if we try to stream again. But, after waiting some time it will work again.

We get a WARN server comment - HTTPStreamerAdopterCupertinoStreaming.onPlaylist: Application context no loaded [xxx.stream/playlist.m3u8]: _defapp_/_definst_

--------

Thank you
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Force a non-compliant H.264 live stream to use Baseline level 3 profile (iPhone/iPod) 5 Answers

IP Camera Live Streaming Problem 6 Answers

Mac OS camera -> RTSP -> Wowza 2 Answers

Help to make wowza EDGE server installation & Load Balancing urgent 2 Answers

UPGRADE 3.6 to 4.3 3 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges