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

**URL:** <https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446>\
**Category:** Wowza Streaming Engine\
**Created:** [August 16, 2017, 9:00am UTC](https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446 "2017-08-16T09:00:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_SA](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Denis\_SA](https://community.wowza.com/u/Denis_SA)\
**Post date:** [August 16, 2017, 9:00am UTC](https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446/1 "2017-08-16T09:00:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton1](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@Jason\_Hilton1](https://community.wowza.com/u/Jason_Hilton1)\
**Post date:** [August 16, 2017, 12:24pm UTC](https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446/2 "2017-08-16T12:24:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Denis\_SA](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Denis\_SA](https://community.wowza.com/u/Denis_SA)\
**Post date:** [August 16, 2017, 12:33pm UTC](https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446/3 "2017-08-16T12:33:47Z")

</div>

Hi,

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

So I need to transcode the stream.

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [August 16, 2017, 12:44pm UTC](https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446/4 "2017-08-16T12:44:33Z")

</div>

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

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

```

```auto
<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

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [August 16, 2017, 12:45pm UTC](https://community.wowza.com/t/webrtc-recording-on-server-restreaming-playing-like-rtsp-rtmp-hls/49446/5 "2017-08-16T12:45:22Z")

</div>

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