# Execute FFMPEG commands when stream published

**URL:** https://community.wowza.com/t/execute-ffmpeg-commands-when-stream-published/39148
**Category:** Wowza Streaming Engine
**Created:** [May 9, 2013, 1:06pm UTC](https://community.wowza.com/t/execute-ffmpeg-commands-when-stream-published/39148 "2013-05-09T13:06:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hussan\_Choudhry](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@Hussan\_Choudhry](https://community.wowza.com/u/Hussan_Choudhry)
#### Post date: [May 9, 2013, 1:06pm UTC](https://community.wowza.com/t/execute-ffmpeg-commands-when-stream-published/39148/1 "2013-05-09T13:06:59Z")

</div>

Hi,

I am trying to set up multi bit rate stream and have the ffmpeg commands working properly.

At the moment I am manually entering the commands.

Do you know if and where in the Wowza IDE I can execute these commands automatically when a publish has first started streaming.

Many thanks

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 9, 2013, 10:17pm UTC](https://community.wowza.com/t/execute-ffmpeg-commands-when-stream-published/39148/2 "2013-05-09T22:17:04Z")

</div>

There is nothing built-in to do that, but you can probably get Java to run an FFmpeg command. However, FFmpeg will probably not be able to produce streams that are key frame aligned as necessary for ABR switching to work. The best route is the Wowza Transcoder. Just send on stream to Wowza.

[https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming](https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming)

Richard

---

<div class="post-metadata">

### Author: ![Hussan\_Choudhry](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@Hussan\_Choudhry](https://community.wowza.com/u/Hussan_Choudhry)
#### Post date: [May 9, 2013, 2:50pm UTC](https://community.wowza.com/t/execute-ffmpeg-commands-when-stream-published/39148/3 "2013-05-09T14:50:26Z")

</div>

> There is nothing built-in to do that, but you can probably get Java to run an FFmpeg command. However, FFmpeg will probably not be able to produce streams that are key frame aligned as necessary for ABR switching to work. The best route is the Wowza Transcoder. Just send on stream to Wowza.
> 
> [Set up and run Transcoder for live streaming](https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming)
> 
> Richard

Hi,

The only problem we have with this is that we have a really tight budget and can’t afford the transcoder addon as we will be running over 1000 streams. Does anyone have any clues as to get this done?!

---

<div class="post-metadata">

### Author: ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://community.wowza.com/u/Matt)
#### Post date: [November 27, 2014, 7:18am UTC](https://community.wowza.com/t/execute-ffmpeg-commands-when-stream-published/39148/4 "2014-11-27T07:18:42Z")

</div>

Does Wowza have the ability to ingest a stream and then pipe it into FFMPEG. I’d like to use FFMPEG to manipulate the audio on an incoming stream, then pipe it out to another Wowza App/Stream. Is this something that would be technically possible?
