# Re-stream RPT to HTTP Live streaming

**URL:** <https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633>\
**Category:** Wowza Streaming Engine\
**Created:** [October 24, 2010, 1:30am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633 "2010-10-24T01:30:16Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [October 29, 2010, 4:43pm UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/21 "2010-10-29T16:43:38Z")

</div>

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:

> [@iPhone App Rejected -- M3U8 File is invalid](http://community.wowza.com/t/-/34430):
>
> Hi there, I’m having trouble submitting my app to the AppStore. Apple is telling me that I need a baseline stream of 64k in order for my app to be approved for both WiFi and the cellular network (3G, Edge). They told me to download the mediastreamvalidator tool (mac only) to run tests against my streams. To download, go to [connect.apple.com](http://connect.apple.com), click “Downloads”, click “iPhone”, and click “HTTP Live Streaming Tools (Disk Image)”. In bash, I’m running the following: mediastreamvalidator validat…

[https://wowza.com/forums/showthread.php?9099-m3u8-file-issue](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.

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 3, 2010, 12:35pm UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/22 "2010-11-03T12:35:13Z")

</div>

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:

> And here is Application.xml for my application: [http://pastebin.ca/1980359](http://pastebin.ca/1980359)
> 
> However, now I’m recieving errors, described in this post: [Create streams compliant with Apple App Store](https://www.wowza.com/docs/how-to-create-apple-app-store-compliant-streams) , but I didn’t find solution for these errors in that post.
> 
> Mediavalidator says (I’m feeding smil playlist to it):
> 
> > REPORT FOR CHILD PLAYLIST 'ip-address:1935/video/_definst_/mpegts.stream/playlist.m3u8?wowzasessionid=1361256829&wowzaaudioonly
> > 
> > * * *
> > 
> > WARNING: Missing newline at the end of the playlist.
> > 
> > WARNING: Playlist has no media URIs.
> > 
> > ERROR: Playlist does not contain a TARGETDURATION tag. A single TARGETDURATION tag is required.
> > 
> > If I’m feeding audio playlist, I’m getting the following:
> > 
> > > WARNING: The playlist should use relative URIs to reduce its size.
> > > 
> > > REPORT FOR CHILD PLAYLIST '[http://ip-address:1935/video/mpegts.stream/playlist.m3u8?wowzaaudioonly&wowzasessionid=1315126658](http://ip-address:1935/video/mpegts.stream/playlist.m3u8?wowzaaudioonly&wowzasessionid=1315126658)
> > > 
> > > WARNING: Missing newline at the end of the playlist.
> > > 
> > > WARNING: Playlist has no media URIs.
> > > 
> > > ERROR: Playlist does not contain a TARGETDURATION tag. A single TARGETDURATION tag is required.
> > > 
> > > REPORT FOR CHILD PLAYLIST '[http://ip-address:1935/video/mpegts.stream/playlist.m3u8?wowzasessionid=1315126658](http://ip-address:1935/video/mpegts.stream/playlist.m3u8?wowzasessionid=1315126658)
> > > 
> > > * * *
> > > 
> > > ERROR: Playlist must have at least 3 media URIs if it does not have an ENDLIST tag.
> > > 
> > > And audio+video stream:
> > > 
> > > > WARNING: The playlist should use relative URIs to reduce its size.
> > > > 
> > > > * * *
> > > > 
> > > > REPORT FOR CHILD PLAYLIST '[http://ip-address:1935/video/mpeg.stream/playlist.m3u8?wowzaaudioonly&wowzasessionid=1168494155](http://ip-address:1935/video/mpeg.stream/playlist.m3u8?wowzaaudioonly&wowzasessionid=1168494155)
> > > > 
> > > > * * *
> > > > 
> > > > WARNING: Missing newline at the end of the playlist.
> > > > 
> > > > WARNING: Playlist has no media URIs.
> > > > 
> > > > ERROR: Playlist does not contain a TARGETDURATION tag. A single TARGETDURATION tag is required.
> > > > 
> > > > * * *
> > > > 
> > > > REPORT FOR CHILD PLAYLIST '[http://ip-address:1935/video/mpeg.stream/playlist.m3u8?wowzasessionid=1168494155](http://ip-address:1935/video/mpeg.stream/playlist.m3u8?wowzasessionid=1168494155)
> > > > 
> > > > * * *
> > > > 
> > > > WARNING: Media segment took longer to download than its duration (10.74 vs. 9.85 seconds).
> > > > 
> > > > 6: media\_1.ts?wowzasessionid=1168494155
> > > > 
> > > > ```auto
> > > > 
> > > > ERROR: Playlist must have at least 3 media URIs if it does not have an ENDLIST tag.
> > > > 
> > > > My suggestion is that properties, that must be used for audio only, are applying for video too and this is the purpose of these errors. But it's only a suggestion.
> > > > 
> > > > I'd be very glad, if you could help me getting rid of these errors, I hope that they are last on the this hard way to iPhone streaming :)
> > > > ```

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 4, 2010, 9:59am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/23 "2010-11-04T09:59:33Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 4, 2010, 1:37pm UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/24 "2010-11-04T13:37:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 4, 2010, 5:44pm UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/25 "2010-11-04T17:44:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 4, 2010, 6:28pm UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/26 "2010-11-04T18:28:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 5, 2010, 11:44am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/27 "2010-11-05T11:44:40Z")

</div>

> 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](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.

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 8, 2010, 10:16am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/28 "2010-11-08T10:16:08Z")

</div>

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](http://pastebin.ca/1985009)

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 8, 2010, 12:59pm UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/29 "2010-11-08T12:59:06Z")

</div>

Richard, I think I’m making wrong settings. I’ve read [this guide](https://www.wowza.com/docs/how-to-set-up-live-stream-repeater-edge-for-apple-http-live-streaming-cupertinostreaming) 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.

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 25, 2010, 10:23am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/30 "2010-11-25T10:23:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 28, 2010, 11:01am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/31 "2010-11-28T11:01:35Z")

</div>

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:
> 
> >

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [November 28, 2010, 11:22am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/32 "2010-11-28T11:22:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sergey\_Bolbat](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sergey\_Bolbat](https://community.wowza.com/u/Sergey_Bolbat)\
**Post date:** [December 3, 2010, 10:12am UTC](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633/33 "2010-12-03T10:12:08Z")

</div>

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.

[Previous page](https://community.wowza.com/t/re-stream-rpt-to-http-live-streaming/35633.md?page=1)
