# Webrtc streaming issue with Wowza and FFMPEG

**URL:** <https://community.wowza.com/t/webrtc-streaming-issue-with-wowza-and-ffmpeg/50705>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc\
**Created:** [February 5, 2018, 8:08pm UTC](https://community.wowza.com/t/webrtc-streaming-issue-with-wowza-and-ffmpeg/50705 "2018-02-05T20:08:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_castillejos1](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@Nicolas\_castillejos1](https://community.wowza.com/u/Nicolas_castillejos1)\
**Post date:** [February 5, 2018, 8:08pm UTC](https://community.wowza.com/t/webrtc-streaming-issue-with-wowza-and-ffmpeg/50705/1 "2018-02-05T20:08:54Z")

</div>

I am trying to stream video and audio from a Camera in a browser using Webrtc and Wowza Media Server (4.7.3 version).

The camera stream (h264/aac) is first of all transcoded by using FFMPEG (version N-89681-g2477bfe built with gcc 4.8.5, last available version on ffmpeg website) in VP8/OPUS and then pushed to the Wowza Server. By using the small Wowza webpage I ask for the Wowza stream to be displayed in the browser (Chrome Version 66.0.3336.5 Build officiel canary 32 bits).

FFMPEG used command :

`ffmpeg -rtsp_transport tcp -i rtsp://<camera_stream> -vcodec libvpx -vb 600000 -crf 10 -qmin 0 -qmax 50 -acodec libopus -ab 32000 -ar 48000 -ac 2 -f rtsp rtsp://<IP_Address_Wowza>:<port_no_ssl>/<application_name>/test`

When I click on Play stream I have a very bad quality video and audio (jerky video and very bad audio).

If I use this FFMPEG command:

`ffmpeg -rtsp_transport tcp -i rtsp://<camera_stream> -vcodec libvpx -vb 600000 -crf 10 -qmin 0 -qmax 50 -acodec copy -f rtsp rtsp://<IP_Address_Wowza>:<port_no_ssl>/<application_name>/test`

I will have a good video (flowing, smooth) but no audio (the camera micro is ON).

If libopus is the problem (as this test first shows), I tried libvorbis but with Chrome console I have this error “Failed to set remote offer sdp: Session error code: ERROR\_CONTENT”. Weird, cause libvorbis is one of the available codecs for Webrtc.

Is someone experiencing the same issue ? Did someone experience the same issue ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Sivan\_Druker](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@Sivan\_Druker](https://community.wowza.com/u/Sivan_Druker)\
**Post date:** [June 25, 2018, 2:45pm UTC](https://community.wowza.com/t/webrtc-streaming-issue-with-wowza-and-ffmpeg/50705/2 "2018-06-25T14:45:49Z")

</div>

1. You probably have no audio because opus must have sample rate of 48000

You should add the flag:

“-ar 48000”

to the output settings

1. I also experienced the “bad quality video and audio issues”.

I finally solved the issue by adding:

“-quality realtime” to the output settings .

That work well for me, I hope this will help you.
