# Stream MacOS screen over Webrtc using ffmpeg

**URL:** <https://community.wowza.com/t/stream-macos-screen-over-webrtc-using-ffmpeg/55281>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc\
**Created:** [May 29, 2020, 1:36pm UTC](https://community.wowza.com/t/stream-macos-screen-over-webrtc-using-ffmpeg/55281 "2020-05-29T13:36:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinod\_Patil1](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@Vinod\_Patil1](https://community.wowza.com/u/Vinod_Patil1)\
**Post date:** [May 29, 2020, 1:36pm UTC](https://community.wowza.com/t/stream-macos-screen-over-webrtc-using-ffmpeg/55281/1 "2020-05-29T13:36:17Z")

</div>

I am trying to stream/cast MacOS screen through WebRTC using ffmpeg, using below command,

ffmpeg -f avfoundation -pixel\_format uyvy422 -i “0” -r 10 -vcodec libx264 -preset ultrafast -tune zerolatency -crf 18 -b:v 500k -bufsize 3000k -f rtsp rtsp://xx.xxx.xxx.x:1935/live/myStream

ffmpeg command continues to run, but when I try to play webrtc example provided by Wowza streaming engine I am getting “Stream is not ready: myStream”

What am I doing wrong ?

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [June 1, 2020, 3:36pm UTC](https://community.wowza.com/t/stream-macos-screen-over-webrtc-using-ffmpeg/55281/2 "2020-06-01T15:36:07Z")

</div>

I would try adjusting your keyframes, not enough are being seen.
