Wowza Community

WebRTC - recording on server, restreaming, playing like rtsp rtmp hls

Hello,
I configured my Wowza Streaming Engine server for webrtc streaming (take instructions from here https://www.wowza.com/docs/how-to-use-webrtc-with-wowza-streaming-engine ).
Playback and publishing work correctly and without any problems. When I publish webrtc stream I see it in Incoming Streams in WSE Manager but I can’t record this stream to mp4 file like other streams. Created file is not played.
And Incoming webrtc stream could not be played in WSE Manager testing player or like rtsp, rtmp or HLS protocol, even in VLC.
What is the reason of it? Can I record webrtc stream on Wowza SE or play it like via other protocols? For example in live video player like jw player or like HLS in other player?

Thank you!

PS: To forum administrators - Here is no topic “webrtc” in topics options when posting message.

Hi,
The playback for other client types (RTMP, RTSP and HTTP based protocols) is dependent on the codecs being used in the WebRTC source stream. If you’re transcoding the stream to create a H.264/AAC encode this will be playable using the Test Players.

The codecs of the source will also determine if the stream can be recorded to mp4. Again the transcoded stream(s) encoded using H.264/AAC will allow you to record them.

Regards,
Jason Hilton
Wowza Media Systems Support Team

Hi,

I see , because chrome uses for webrtc Opus codec and VP8.

So I need to transcode the stream.

Hi,
You can set the codecs within the application using the webrtcPreferredCodecsVideo and webrtcPreferredCodecsAudio Properties. To do this only leave the codec you’re wanting to use

<Property>
<!-- webrtcPreferredCodecsAudio values opus,vorbis,pcmu,pcma -->
<Name>webrtcPreferredCodecsAudio</Name>
<Value>opus</Value>
<Type>String</Type>
</Property>

<Property>
<!-- webrtcPreferredCodecsVideo values vp8,h264,vp9 -->
<Name>webrtcPreferredCodecsVideo</Name>
<Value>h264</Value>
<Type>String</Type>
</Property>

The above example will force the stream to be H.264/Opus so you may still need to transcode the audio to AAC but this is far less CPU intensive than video transcoding and you can use the “Audio Only (Default)” transcoding template for this.

Regards,
Jason

Note: After editing the application you’ll need to restart it for the changes to take effect.