Live.html file, edit .fla, or try something else to view stream??

Very new to this. I’m a parent volunteer at a small school. setting up wirecast/wowza to stream morning broadcast. we have set up our “broadcast settings” in wirecast for the encoder preset to be Wowza, and the output format to be QuickTime.

It is our understanding then to view the stream we open the live.html file. this all works. however, this is an everyday occurence and ideally we would like to be able to modify the file to have the rtmp local host default hardcoded with our ip address, we also have to modify the file name with the extension .sdp before hitting play. We do not have adobe - which i’m gathering from online forums that you need to modify the .fla file, then compile the .swf

Is there a work around? preferably i would like to embed the file/code in our school webpage and teachers would just need to open the page to view the broadcast – again, without having to enter an ip adddress:port

THANKS!

With Wirecast, you can set the output to flash, and you don’t have to worry about the SDP file. All you need to do for the player is embed a player (like JWplayer) on the webpage and point it to the server IP and the stream name.

-Ian

Start easier. Using Wowza’s LiveVideoStreaming Flash example player, try playing the each of these streams.

Server: rtmp://ouripaddress:1935/live

Stream: stream-low

Richard

If you are publishing a stream named “myStream.sdp” that is what to playback. If it is just “myStream” then play that.

Again, test in Wowza player. It’s for testing. You will use JW player in production, but for testing, use Wowza player:

Server: rtmp://xxx.xxx.xxx.xxx:1935/live

Stream: myStream.sdp

Also, at this stage, it helps to run Wowza in stand-alone mode (/bin/startup.bat) so that you can see log output, easier to debug if you have a window into Wowza.

Richard

This is our JW Player guide:

https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server

Richard

Do you have the ModuleRTMPAuthenticate or ModuleSecureToken or ModuleHotLinkDenial, or some other security configured on that application?

Richard

Does it work in the Wowza examples/LiveVideoStreaming/client/live.html player:

Server: rtmp://xxx.xxx.xxx.xxx:1935/live

Stream: myStream.sdp

If you run Wowza in stand-alone mode (/bin/startup.bat) instead of as a service, what do you see in the console when you try to play the steam in Wowza player or JW Player?

Richard

if you go to http://hopper.nerdherd.net/jw57/example.html and view the page source, you can see how a basic player embed works (in this case it will also revert to an iPad-friendly HTML5 player if Flash doesn’t load)

-Ian

SDP is a file that helps quicktime RTSP streaming. Wowza can use it, but if your encoder supports RTMP (which Wirecast does), it’s a lot easier that way.

Your encoder preset will depend on what bandwidth you wish to stream (and limited by available outbound bandwidth). Your destination will be rtmp://<ec2.server.address>:1935/live and you can call the stream anything you want, as long as you have it set the same in the player.

You wouldn’t be making an SWF file - JW player comes pre-built. all you have to do is download it from longtailvideo.com and put it on your website (it’s quite well documented, so setting it up should be pretty easy).

-Ian

sorry. gave it a try. does this mean i don’t have the broadcast settings to stream to “live/myStream.sdp”? what is .sdp??

would i be making an .swf file?? and linking in the webpage to that with the jwplayer? is my encoder preset then “flash high bandwidth 16:9”? with destination rtmp flash server? and the stream live/myStream.swf?

sorry such a newbie!!

Still cannot get it to work. Here is my code that I copied and pasted from the example (the myStream.sdp works and is viewable if you use the wowza live.html example, but again you have to type in the ipaddress and modify filename:

JW Player 5.7 Test
Loading the player ...

Richard,

I volunteer with Diane and the LiveVideoStreaming flash example does work fine.

What we are trying to accomplish is to create a home page for the kids broadcast site, so each classroom can watch during the morning broadcast.

The issue we have with example provided is that each classroom would need to change the rtmp address and file name, since this is set within the .swf file (I assume) by default.

We tried to use the JWplayer as a way to have an embedded flash player without the wowza branding and defaults to the live stream.

I decided today to try and install everything on my local laptop and have run into the same issues that we ran into last night on the servers.

Below is an example html file I was using with JWplayer. I tried using a MP4 file and it worked fine, it’s getting it to work with a live stream that we are having issues.

Any suggestions are appreciated…

JW Player goes here

Also, I have tried various configurations fo rthe streamer and file parameters.

Such as using/not using the port # or file extensions.

Richard,

I have tested in wowza player and it works as I mentioned previously. I use the same settings with JWplayer and they do not work, it says connection failed.

Are there any examples of JWplayer configurations into a wowza media server for live streaming?

Richard,

Thanks for the link, I had already found that and tried those examples as well with no luck.

Here is the breakdown of my settings, maybe I have something in there that is configured incorrectly. I’ve only been playing with these applications for a few days, so I could have missed something in the user guide PDFs.

Wirecast Settings

Destination - Announce to quicktime streaming server
Hostname - xxx.xxx.xxx.xxx:1935
Stream - live/myStream.sdp
Username/Password - filled in with the value that is in conf/publish.password
Broadcast over TCP - unchecked

JWPlayer - TEST 1

Installed under root/applications/live/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script type='text/javascript' src='jwplayer.js'></script>
</head>
<body>
	<div id="mediaplayer">JW Player goes here</div>
	<script type="text/javascript">
		jwplayer("mediaplayer").setup({
			flashplayer: "player.swf",
			height: 270,
			width: 480,
			image: "Jersey.jpg",
			provider: "rtmp",
			streamer: "rtmp://xxx.xxx.xxx.xxx:1935/live/",
			file: "myStream.sdp"
			});
	</script>
</body>
</html>

JWPlayer - TEST 2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script type='text/javascript' src='jwplayer.js'></script>
</head>
<body>
	<embed
	  flashvars="file=myStream.sdp&streamer=rtmp://xxx.xxx.xxx.xxx:1935/live&provider=rtmp"
	  allowfullscreen="true"
	  allowscripaccess="always"
	  id="player1"
	  name="player1"
	  src="player.swf"
	  width="480"
	  height="270"
/>
</body>
</html>

Both examples give the same error, connection refused #2028.

I set up logging to DEBUG for wowza, but there is so much output that it is hard to parse through using textpad, is there a standard comment or something for connection errors? I looked for that error number but could not find it.

I do not

As I mentioned earlier, it works in the example player under examples/LiveVideoStreaming/client/live.html

I asked if there was something in the

examples/LiveVideoStreaming/client/live.swf file that was specific to watch the live stream?

This is the flashvars I’m using with JWplayer, but it fails to connect.

flashvars="file=myStream.sdp&streamer=rtmp://xxx.xxx.xxx.xxx:1935/live&provider=rtmp"

Here is the log output when testing…

2011-09-27	13:44:59	EDT	connect-pending	session	INFO	100	xxx.xxx.xxx.xxx	-	_defaultVHost_	live	_definst_	0.071	[any]	1935	rtmp://xxx.xxx.xxx.xxx/live	xxx.xxx.xxx.xxx	rtmp	unknown	WIN 10,3,181,26	560767705	3326	3073	-	-	-	-	-	-	-	-	-	-	-	-	-	rtmp://xxx.xxx.xxx.xxx/live	-
2011-09-27	13:44:59	EDT	connect	session	INFO	200	xxx.xxx.xxx.xxx	-	_defaultVHost_	live	_definst_	0.073	[any]	1935	rtmp://xxx.xxx.xxx.xxx/live	xxx.xxx.xxx.xxx	rtmp	unknown	WIN 10,3,181,26	560767705	3326	3073	-	-	-	-	-	-	-	-	-	-	-	-	-	rtmp://xxx.xxx.xxx.xxx/live	-
2011-09-27	13:44:59	EDT	create	stream	INFO	200	-	-	_defaultVHost_	live	_definst_	0.0	[any]	1935	rtmp://xxx.xxx.xxx.xxx/live	xxx.xxx.xxx.xxx	rtmp	unknown	WIN 10,3,181,26	560767705	3398	3413	1	0	0	0	-	-	-	-	-	-	rtmp://xxx.xxx.xxx.xxx/live	rtmp://xxx.xxx.xxx.xxx/live	-	rtmp://xxx.xxx.xxx.xxx/live	-
2011-09-27	13:44:59	EDT	comment	server	INFO	200	-	LivePlayer.play[live/_definst_/myStream.sdp]: Dynamic Stream Markers are on.	-	-	-	57.118	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:00	EDT	play	stream	INFO	200	myStream.sdp	-	_defaultVHost_	live	_definst_	0.352	[any]	1935	rtmp://xxx.xxx.xxx.xxx/live	xxx.xxx.xxx.xxx	rtmp	unknown	WIN 10,3,181,26	560767705	3454	3455	1	0	0	0	myStream.sdp	-	-	-	-	-	rtmp://xxx.xxx.xxx.xxx/live/myStream.sdp	rtmp://xxx.xxx.xxx.xxx/live/myStream.sdp	-	rtmp://xxx.xxx.xxx.xxx/live	-
2011-09-27	13:45:03	EDT	comment	server	WARN	200	-	LiveStreamPacketizerSmoothStreaming.handlePacket[live/_definst_/myStream.sdp]: Fragment duration greater than suggested range of 1-4 seconds. Adjust keyframe interval accordingly: Fragment durations: [10.0,10.0,10.0]	-	-	-	60.245	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:03	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSmoothStreaming.flushPendingVideo: Bitrate[live/_definst_/myStream.sdp]: 13294	-	-	-	60.302	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:03	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSmoothStreaming.addFragment[live/_definst_/myStream.sdp]: Add chunk: type:video id:0 count:150 duration:10000	-	-	-	60.303	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:03	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:3 a/v/k:432/151/1 duration:10000	-	-	-	60.34	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:03	EDT	comment	server	INFO	200	-	LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:3 a/v/k:143/150/1 duration:10000	-	-	-	60.341	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:13	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSmoothStreaming.addFragment[live/_definst_/myStream.sdp]: Add chunk: type:video id:1 count:150 duration:10033	-	-	-	70.418	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:13	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:4 a/v/k:439/151/1 duration:10167	-	-	-	70.507	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:13	EDT	comment	server	INFO	200	-	LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:4 a/v/k:146/150/1 duration:10167	-	-	-	70.508	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:23	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSmoothStreaming.addFragment[live/_definst_/myStream.sdp]: Add chunk: type:video id:2 count:150 duration:10000	-	-	-	80.411	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:23	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:5 a/v/k:432/151/1 duration:10000	-	-	-	80.541	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:23	EDT	comment	server	INFO	200	-	LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:5 a/v/k:144/150/1 duration:10000	-	-	-	80.541	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:33	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSmoothStreaming.addFragment[live/_definst_/myStream.sdp]: Add chunk: type:video id:3 count:150 duration:10167	-	-	-	90.411	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:33	EDT	comment	server	INFO	200	-	LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:6 a/v/k:431/151/1 duration:10000	-	-	-	90.508	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:33	EDT	comment	server	INFO	200	-	LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/myStream.sdp]: Add chunk: id:6 a/v/k:143/150/1 duration:10000	-	-	-	90.508	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:35	EDT	pause	stream	INFO	200	myStream.sdp	-	_defaultVHost_	live	_definst_	72.68	xxx.xxx.xxx.xxx	554	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	xxx.xxx.xxx.xxx	rtsp	-	QTS (qtver=6.5.1;cpu=PPC;os=Mac 10.3.5)	1568783764	1314815	0	1	4261152372	1314815	0	myStream.sdp	-	-	-	-	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-
2011-09-27	13:45:35	EDT	pause	rtsp	INFO	200	1568783764	-	_defaultVHost_	live	_definst_	72.794	xxx.xxx.xxx.xxx	554	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	xxx.xxx.xxx.xxx	rtsp	-	QTS (qtver=6.5.1;cpu=PPC;os=Mac 10.3.5)	1568783764	1314815	0	-	-	-	-	myStream.sdp	-	-	-	-	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-
2011-09-27	13:45:35	EDT	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: 0.0.0.0/0.0.0.0:6970	-	-	-	72.796	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:35	EDT	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: 0.0.0.0/0.0.0.0:6971	-	-	-	72.798	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:35	EDT	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: 0.0.0.0/0.0.0.0:6972	-	-	-	72.8	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:35	EDT	comment	server	INFO	200	-	RTPUDPTransport.unbind[live/_definst_]: 0.0.0.0/0.0.0.0:6973	-	-	-	72.8	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2011-09-27	13:45:35	EDT	unpublish	stream	INFO	200	myStream.sdp	-	_defaultVHost_	live	_definst_	72.688	xxx.xxx.xxx.xxx	554	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	xxx.xxx.xxx.xxx	rtsp	-	QTS (qtver=6.5.1;cpu=PPC;os=Mac 10.3.5)	1568783764	1314815	0	1	4261152372	1314815	0	myStream.sdp	-	-	-	-	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-
2011-09-27	13:45:35	EDT	destroy	stream	INFO	200	myStream.sdp	-	_defaultVHost_	live	_definst_	72.689	xxx.xxx.xxx.xxx	554	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	xxx.xxx.xxx.xxx	rtsp	-	QTS (qtver=6.5.1;cpu=PPC;os=Mac 10.3.5)	1568783764	1314815	0	1	0	1314815	0	myStream.sdp	-	-	-	-	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-	rtsp://xxx.xxx.xxx.xxx/live/myStream.sdp	-

That log output contains the testing with the examples/LiveVideoStreaming/live as well as JWplayer