# relay (repeater) rtmp video/audio to rtmp audio only output (strip video)

**URL:** https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521
**Category:** Wowza Streaming Engine
**Created:** [March 21, 2012, 7:51am UTC](https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521 "2012-03-21T07:51:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [March 21, 2012, 7:51am UTC](https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521/1 "2012-03-21T07:51:38Z")

</div>

I need to relay an RTMP video/audio stream (for example H264/AAC or H264/MP3) , striping video away, to produce an audio only output (AAC or MP3).

So:

RTMP video/audio -\> RTMP audio only

How can this be accomplished?

Thank you!

---

<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: [March 21, 2012, 4:01pm UTC](https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521/2 "2012-03-21T16:01:03Z")

</div>

You could do it with the Wowza Transcoder by disabling the video in an Encode configuration.

Or, maybe with Liverepeater where the origin application that included a module that implemented IMediaStreamActionNotify3.onPlay() and did this:

```auto
stream.setReceiveVideo(false);

```

This example shows how to setup IMediaStreamActionNotify3:

[https://www.wowza.com/docs/how-to-use-imediastreamactionnotify3-interface-to-listen-for-rtmp-stream-events-includes-codec-info](https://www.wowza.com/docs/how-to-use-imediastreamactionnotify3-interface-to-listen-for-rtmp-stream-events-includes-codec-info)

Liverepeater guide:

[https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

Richard

---

<div class="post-metadata">

### Author: ![Michael\_Barsoumian](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Michael\_Barsoumian](https://community.wowza.com/u/Michael_Barsoumian)
#### Post date: [March 21, 2012, 7:53am UTC](https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521/3 "2012-03-21T07:53:23Z")

</div>

I found this pre-existing thread: [https://www.wowza.com/forums/showthread.php?14002-Audio-only-streaming-from-Live-video-stream](https://www.wowza.com/forums/showthread.php?14002-Audio-only-streaming-from-Live-video-stream)

Charlie advises using Flash action script / custom player solution. I am hoping for a server-side solution as we need this work work with all pre-existing Flash / HTML5 players.

---

<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: [March 22, 2012, 2:03pm UTC](https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521/4 "2012-03-22T14:03:38Z")

</div>

I don’t think there is a way to do that for other than Flash RTMP clients, except the Transcoder option will work.

I don’t think there is way to remove metadata, but you might try injecting empty metadata:

[https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata)

Richard

---

<div class="post-metadata">

### Author: ![Michael\_Barsoumian](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Michael\_Barsoumian](https://community.wowza.com/u/Michael_Barsoumian)
#### Post date: [March 21, 2012, 10:49pm UTC](https://community.wowza.com/t/relay-repeater-rtmp-video-audio-to-rtmp-audio-only-output-strip-video/521/5 "2012-03-21T22:49:07Z")

</div>

For RTMP requests, placing stream.setReceiveVideo(false); in onStreamCreate (in onPlay video plays for a couple seconds before stopping) works. However Cupertino streams still show video. I tried placing

httpSession.getStream().setReceiveVideo(false);

in onHTTPSessionCreate to no avail.

Any ideas on how to get this working for Cupertino and San Jose?

Lastly, can the H264 meta data be removed from the stream as well?

Thanks!
