Wowza Community

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

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!

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:

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

Liverepeater guide:

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

Richard

I found this pre-existing thread: http://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.

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

Richard

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!