# how to prevent FFMPEG to stream to wowza

**URL:** <https://community.wowza.com/t/how-to-prevent-ffmpeg-to-stream-to-wowza/37620>\
**Category:** Wowza Streaming Engine\
**Created:** [August 24, 2013, 1:01pm UTC](https://community.wowza.com/t/how-to-prevent-ffmpeg-to-stream-to-wowza/37620 "2013-08-24T13:01:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [August 24, 2013, 1:01pm UTC](https://community.wowza.com/t/how-to-prevent-ffmpeg-to-stream-to-wowza/37620/1 "2013-08-24T13:01:44Z")

</div>

I see we can use the following command to stream to Wowza using FFMPEG

/root/ffmpeg -i “abc.f4v” -re -isync -vcodec copy -acodec copy -f flv “rtmp://IP/streamname flashver=FME/3.0\20(compatible;\20FMSc/1.0)”

Is there a way to configure wowza to stop FFMPEG to stream to wowza?

Thanks

---

<div class="post-metadata">

**Author:** ![Roman\_Shmelev](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Roman\_Shmelev](https://community.wowza.com/u/Roman_Shmelev)\
**Post date:** [August 29, 2013, 7:13am UTC](https://community.wowza.com/t/how-to-prevent-ffmpeg-to-stream-to-wowza/37620/2 "2013-08-29T07:13:47Z")

</div>

In general ffmpeg internal behavior and \<your\_publisher\> behavior may be different when working with wowza, so it should be possible to write module to detect that difference.

We can talk more via email: rshmelev [at] gmail {dot} com

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [August 26, 2013, 9:06am UTC](https://community.wowza.com/t/how-to-prevent-ffmpeg-to-stream-to-wowza/37620/3 "2013-08-26T09:06:54Z")

</div>

You could use this example as a starting place to prevent FFMPEG to stream to Wowza based on the user agent:

How to block a duplicate publish stream

This example shows how to override publish but would need to be tweaked to suite your needs.

Also there is no way to prevent a user of FFMPEG from setting the user agent to whatever they choose.

You can set up user authentication to control who is allowed to publish a stream [ModuleRTMPAuthenticate](https://www.wowza.com/docs/how-to-enable-username-password-authentication-for-rtmp-and-rtsp-publishing%28ModuleRTMPAuthenticate%29)

Salvadore
