# Pulling RTMP and muxing it into MPEG2-TS

**URL:** <https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297>\
**Category:** Wowza Streaming Engine\
**Created:** [August 28, 2013, 11:18am UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297 "2013-08-28T11:18:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janis\_Jansons](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Janis\_Jansons](https://community.wowza.com/u/Janis_Jansons)\
**Post date:** [August 28, 2013, 11:18am UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297/1 "2013-08-28T11:18:16Z")

</div>

Hi all,

I’m struggling a bit with this topic.

I followed this documentation but something doesn’t quite work: [https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn#streamFiles](https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn#streamFiles)

I create xxx.stream file containing the rtmp:// URL, but when I start receiving the stream using the StreamManager I get this warning and nothing works:

WARN 200 - LiveMediaStreamReceiver.connect: Failure no URL: xxx.stream

As alternative I tried to put the RTMP URL as Stream name in streammanager and suddenly it worked.

Is this supposed to be done like this? Now I get the following message in the logs when the PushPublish plugin maps the stream to multicast:

PushPublisherBase#Exception IOPerformance initInvalid character ‘:’ in value part of property - - - 324.535

Even with this message everything seems to be working fine.

Any suggestion how this could be done differently?

BR,

Janis

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 28, 2013, 2:02pm UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297/2 "2013-08-28T14:02:44Z")

</div>

Janis,

You don’t need to use StreamManager. An RTMP live encoder publishes directly, i.e. pushes a stream to Wowza. StreamManager is used to start MediaCaster streams such as IP cameras or mpeg-ts encoders that have a rtsp or udp urls that Wowza pulls a stream from

So when you start your RTMP live encoder and publish a stream to a Wowza application you will see a publish event in the logs, and you will be able to play the stream back in a playback client right away.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 29, 2013, 3:59pm UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297/3 "2013-08-29T15:59:35Z")

</div>

Janis,

I see, sorry. That is supported, but only if the stream is unprotected, [as explained in this guide](https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn). It is probably protected, or in unreachable for other reason.

Rihar

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [September 4, 2013, 1:25pm UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297/4 "2013-09-04T13:25:27Z")

</div>

Janis,

The [MediaCaster Advanced Monitor](https://www.wowza.com/docs/how-to-enable-advanced-monitoring-and-resetting-of-mediacaster-streams) might help

Richard

---

<div class="post-metadata">

**Author:** ![Janis\_Jansons](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Janis\_Jansons](https://community.wowza.com/u/Janis_Jansons)\
**Post date:** [August 29, 2013, 7:57am UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297/5 "2013-08-29T07:57:16Z")

</div>

Richard hi,

I think you misunderstood me a bit. The URL pasted above describes how to PULL a RTMP stream from Akamai for republishing. This is what I need to do, push is not a option in this solution.

Also what I have noticed is that after ~2hours the stream times out. I can see that the Watchdog is trying to reset the stream but for some reason that doesn’t happen:

2013-08-28 17:57:19 CEST comment server WARN 200 - LiveMediaStreamReceiver.doWatchdog: streamTimeout: Resetting connection [Lcom.wowza.wms.mediacaster.wowza.LiveMediaStreamURL;@1e3e9e5e - - - 24069.903 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-08-28 17:57:19 CEST comment server INFO 200 - LiveMediaStreamReceiver.resetConnection: (SOCKET, R: XXXX/XXXX:1935, L: /XXX:38569, S: XXXX/XXXXX:1935) - - - 24069.903 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-08-28 17:57:19 CEST comment server INFO 200 - TranscodingSession.resetStream[amedia01/_definst_/rtmp://XXXXXX/live/XXXXXXX] - - - 24069.906 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-08-28 17:57:19 CEST comment server INFO 200 - LiveMediaStreamReceiver.sessionClosed: - - - 24069.906 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-08-28 17:57:19 CEST comment server INFO 200 - TranscodingSession.close[amedia01/_definst_/rtmp://XXXXX/live/XXXXXXX] - - - 24069.907 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-08-28 17:57:19 CEST comment server INFO 200 - LiveMediaStreamReceiver.sessionClosed: reconnect: isCurrentSession:false tryConnect:true - - - 24069.908 - - - - - - - - - - - - - - - - - - - - - - - - -

After I manually stop receiving the stream and start it again everything is fine… For 2 more hours…

Any ideas?

BR,

Janis

---

<div class="post-metadata">

**Author:** ![Janis\_Jansons](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Janis\_Jansons](https://community.wowza.com/u/Janis_Jansons)\
**Post date:** [September 4, 2013, 7:56am UTC](https://community.wowza.com/t/pulling-rtmp-and-muxing-it-into-mpeg2-ts/40297/6 "2013-09-04T07:56:04Z")

</div>

Rihar hi,

Seems that I managed to get that working as described in the guide. I forgot to add the to the Application.xml.

Even if it’s working as described I still have issues with the stream interruptions after ~2 hours pulling. To recover the stream I need to restart wowza - stream reset doesn’t help. Could it be some kind of memory leak in WOWZA or PushPublish plugin?

I’ll open support request and provide all the details.

BR,

Janis
