Wowza Community

Re-stream RPT to HTTP Live streaming

Huh. I’ve used search and had found that I’m not alone with this problem.

Here are the topics, where was discussed this theme:

https://wowza.com/forums/showthread.php?9099-m3u8-file-issue

I think, the way to solve this problem is making multiple bitrate stream. What program I can use to encode one stream to multiple? And how I should configure this program and Wowza?

Thanks.

Richard. Great thank you for help.

I’ve made changes that you adviced.

  1. I’ve reduced keyframe frequency from 25 to 15 and changed the value of chunkDurationTarget to 15000.

  2. I’ve downloaded and extracted zip with patch.

  3. I’ve created multi-bitrate using smil with one audio-only stream and audio-video.

After doing all of these operations, I’m starting three streams: audio only, audio+video, smil.

Here is smil text:

Did you use a text editor for the smil? One possibility is that there are word processor characters in the file.

Richard

Yes, I’ve used nano (linux editor). Just in case, I’ve created it again, using text editor and used option “Convert to UTF-8 without BOM”, but result is the same.

One more thing is this smil doesn’t work it iPhone - iPhone says “Can’t open file”, but I can mark that this smil works properly with application without settings for auto-64K-audio-generating settings in Application.xml.

By the way, I didn’t paste cupertinostreamingrepeater property - can it be the reason? I’m not sure, if I have repeater or not.

Richard, here is the scheme:

Server with TV-tuner encodes with VLC video and sends it to my server. It sends two different streams:

  1. Audio AAC 64K

  2. Video H.264 200K and Audio AAC 40K

On my server, I recieve it on two different udp ports.

My idea is to stream 64K audio for Apple approvement (for 3Gs) and to stream live video for those, who wanna watch normal TV. So, I suggest, I have to use smil so that 3G or GPRS users could listen audio and others could watch TV. Or I’m wrong?

The other way I see is to stream two udp ports to different applications in wowza: one for audio and one for video, without any smil. I dunno what is more right.

So, I wonder, if my server is edge, but I think it is. I’ll try to add “cupertinostreamingrepeater” and let u know the results. Thanks again.

Well, no, cupertinostreamingrepeater, which I’ve added to cupertinostreamingpacketize r,smoothstreamingpacketizer didn’t help.

On the edge, only use cupertinostreamingrepeater. Remove the others.

Completely take out the auto-generate configuration since you don’t need it. Use the smil item pointing to the 64kbs audio stream, as you were doing but without the wowza-audio-only=“true”

Richard

I’ve took out auto-generate config strings, deleted

cupertinostreamingpacketizer, smoothstreamingpacketizer

and put cupertinostreamingrepeater. http://pastebin.ca/1982462

Well, now playlist.m3u8 does not generates and when I’m trying to access it from iPhone, it says that file not found. I’ve checked stream in Flash (rtmp) and it was fine, even rtsp stream worked fine, but playlist was not available.

I’ve set liverepeater-edge, but child playlists don’t work any way. I mean that smil playlist.m3u8 is generating successfully and child playlists don’t work. What may be the reason?

Here’s my Application.xml: http://pastebin.ca/1985009

Richard, I think I’m making wrong settings. I’ve read this guide and understood, that it needs two Wowza servers - origin and edge. I have only one Wowza server and one - VLC streaming server.

I have painted my structure of streaming for you to understand. Please, take a look and give me an advice, how my application should be set.

Thank you very much for help, I really don’t know any other source of help in this deal.

Allright, Apple Store finally approved my application.

In the end, I’m using two streams: audio, which I’m streaming through smil and video.

Thank you Richard for help, I really appreciate it.

Now I have some errors on my server, which make my WMS stop.

This morning I found that video is not streaming. I’ve logged to server and found that WMS service stopped.

Here’s the last messages:

ERROR server comment - LiveStreamPacketizerCupertino.handleHolder: java.lang.NullPointerException

java.lang.NullPointerException

This error is always in the log (even now), when WMS started and working. How should I handle with that?

Thanks.

I’ve applied patch, but the application stops anyway.

Every day it stops after a lot of repeating messages like that:

INFO stream create - -

INFO stream publish stream.smil -

INFO server comment - RTPMediaCaster.Reconnector[18813851:live/definst:stream.smil]: done: 12

INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[video/definst/mpeg.stream]: Add chunk: id:9 a/v/k:162/339/4 duration:22600

INFO server comment - RTPMediaCaster.resetConnection[18813851:live/definst:stream.smil]:

INFO server comment - RTPMediaCaster.closeRTPSession[18813851:live/definst:stream.smil]

INFO stream unpublish stream.smil -

INFO stream destroy stream.smil -

INFO server comment - RTPMediaCaster.Reconnector[18813851:live/definst:stream.smil]: start: 13

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/definst]: /usr/local/WowzaMediaServer/content/stream.smil

INFO stream create - -

INFO stream publish stream.smil -

INFO server comment - RTPMediaCaster.Reconnector[18813851:live/definst:stream.smil]: done: 13

INFO server comment - RTPMediaCaster.resetConnection[18813851:live/definst:stream.smil]:

INFO server comment - RTPMediaCaster.closeRTPSession[18813851:live/definst:stream.smil]

INFO stream unpublish stream.smil -

INFO stream destroy stream.smil -

INFO server comment - RTPMediaCaster.Reconnector[18813851:live/definst:stream.smil]: start: 14

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[live/definst]: /usr/local/WowzaMediaServer/content/stream.smil

Then it writes “Killed” and the application stops.

Here’s the contents of stream.smil:

I’ve turned off SMIL, but application kills anyway. What’s the problem? I can’t get.

Here are the last messages:

INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[video/definst/mpeg.stream]: Add chunk: id:6 a/v/k:120/250/1 duration:16667

INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[video/definst/mpeg.stream]: Add chunk: id:7 a/v/k:135/282/4 duration:18800

INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[video/definst/mpeg.stream]: Add chunk: id:8 a/v/k:113/237/3 duration:15800

INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[video/definst/mpeg.stream]: Add chunk: id:9 a/v/k:158/329/3 duration:21933

INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[video/definst/mpeg.stream]: Add chunk: id:10 a/v/k:123/257/3 duration:17133

Killed

Hm. It seems to work fine, after I’ve rebooted the whole system. I dunno, what was the reason of failures, but now it works smoothly.

Thanks.