# Duplicate Live Stream And Pass Through FFMPEG

**URL:** <https://community.wowza.com/t/duplicate-live-stream-and-pass-through-ffmpeg/46614>\
**Category:** Wowza Streaming Engine\
**Created:** [February 19, 2016, 1:42pm UTC](https://community.wowza.com/t/duplicate-live-stream-and-pass-through-ffmpeg/46614 "2016-02-19T13:42:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_A](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@James\_A](https://community.wowza.com/u/James_A)\
**Post date:** [February 19, 2016, 1:42pm UTC](https://community.wowza.com/t/duplicate-live-stream-and-pass-through-ffmpeg/46614/1 "2016-02-19T13:42:37Z")

</div>

Hello,

I’m looking into ways in which to take a live stream and duplicate it, then process one of the copies server side through ffmpeg (specifically, to crop and rotate the video).

After that both the raw and processed live streams could be visible at two different urls.

Do you have any suggestions for how to accomplish this?

Thank you,

James

---

<div class="post-metadata">

**Author:** ![mark\_gamache](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@mark\_gamache](https://community.wowza.com/u/mark_gamache)\
**Post date:** [February 22, 2016, 1:05pm UTC](https://community.wowza.com/t/duplicate-live-stream-and-pass-through-ffmpeg/46614/2 "2016-02-22T13:05:01Z")

</div>

I would just start FFMPEG as an rtsp (or RTMP) client and then use FFMPEG to republish the stream. FFMPEG can read and write to standard Wowza endpoints:

[https://trac.ffmpeg.org/wiki/StreamingGuide](https://trac.ffmpeg.org/wiki/StreamingGuide)

---

<div class="post-metadata">

**Author:** ![mark\_gamache](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@mark\_gamache](https://community.wowza.com/u/mark_gamache)\
**Post date:** [February 22, 2016, 1:34pm UTC](https://community.wowza.com/t/duplicate-live-stream-and-pass-through-ffmpeg/46614/3 "2016-02-22T13:34:14Z")

</div>

I was thinking you would publish as normal to a wowza endpoint then have FFMPEG read that endpoint and publish to a second endpoint.

---

<div class="post-metadata">

**Author:** ![James\_A](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@James\_A](https://community.wowza.com/u/James_A)\
**Post date:** [February 22, 2016, 10:15am UTC](https://community.wowza.com/t/duplicate-live-stream-and-pass-through-ffmpeg/46614/4 "2016-02-22T10:15:56Z")

</div>

Thanks for the response.

So, just to clarify, I would stream from my computer to FFMPEG on a server which would in turn stream to two Wowza endpoints?
