# RTSP with ffmpeg and wowza

**URL:** <https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035>\
**Category:** Wowza Streaming Engine\
**Created:** [January 22, 2012, 6:27pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035 "2012-01-22T18:27:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierluigi\_sforza](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pierluigi\_sforza](https://community.wowza.com/u/pierluigi_sforza)\
**Post date:** [January 22, 2012, 6:27pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/1 "2012-01-22T18:27:56Z")

</div>

Hi guru,

this is my experiment: let’s wowza working with ffmpeg RTSP.

that is the ffmpeg command:

ffmpeg -re -i /usr/local/WowzaMediaServer/content/sample.mp4 -acodec copy -vcodec copy -f rtsp -muxdelay 0.1 rtsp://myuser:mypassword@127.0.0.1:1935/live/myStream.sdp

Wowza live app is the standard as in tutorial:

[https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder](https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder)

In this enviroment, i get this:

**ffmpeg origin** : seems to works perfectly

Output #0, rtsp, to ‘rtsp://myuser:mypassword@127.0.0.1:1935/live/myStream.sdp’:

Metadata:

major\_brand : qt

minor\_version : 512

compatible\_brands: qt

creation\_time : 1970-01-01 00:00:00

encoder : Lavf53.3.0

Stream #0.0(eng): Video: avc1 / 0x31637661, yuv420p, 424x240, q=2-31, 420 kb/s, 90k tbn, 24 tbc

Metadata:

creation\_time : 1970-01-01 00:00:00

Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, 99 kb/s

Metadata:

creation\_time : 1970-01-01 00:00:00

Stream mapping:

Stream #0.0 -\> #0.0

Stream #0.1 -\> #0.1

Press ctrl-c to stop encoding

frame= 457 fps= 24 q=-1.0 Lsize= -0kB time=19.01 bitrate= -0.0kbits/s

**wowza server** : on this side i get a WARNING

INFO server comment - LiveStreamPacketizerCupertino.handlePacket[live/_definst_/myStream.sdp]: Video codec:H264 isCompatible:true

INFO server comment - LiveStreamPacketizerCupertino.handlePacket[live/_definst_/myStream.sdp]: Audio codec:AAC isCompatible:true

…

WARN server comment - RTPDePacketizerRFC3984H264.handleRTPPacket: Unsupported packet type: FU-B

WARN server comment - RTPDePacketizerRFC3984H264.handleRTPPacket: Unsupported packet type: MTAP-24

WARN server comment - RTPDePacketizerRFC3984H264.handleRTPPacket: Unsupported packet type: MTAP-16

**Client** : on this side sound is OK but video doesn’t start

Any idea?

---

<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:** [January 22, 2012, 7:32pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/2 "2012-01-22T19:32:29Z")

</div>

Here is a better way to use ffmpeg with Wowza:

[https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts)

Richard

---

<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:** [January 23, 2012, 3:16pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/3 "2012-01-23T15:16:03Z")

</div>

RTMP and RTSP output from ffmpeg also work with Wowza, but we recommend the mpegts method. It is the most stable.

Richard

---

<div class="post-metadata">

**Author:** ![Alessandro\_Marasco](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@Alessandro\_Marasco](https://community.wowza.com/u/Alessandro_Marasco)\
**Post date:** [June 14, 2012, 8:38am UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/4 "2012-06-14T08:38:35Z")

</div>

Hi richard,

the way you suggest, i have to go to the stream manager and then get the stream in the remote encoder is right ?

Because the first method is to push the video, that i some situation is better is right ?

Thanks

Alessandro

---

<div class="post-metadata">

**Author:** ![Roman\_Pekarek](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Roman\_Pekarek](https://community.wowza.com/u/Roman_Pekarek)\
**Post date:** [September 11, 2012, 3:58pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/5 "2012-09-11T15:58:15Z")

</div>

> RTMP and RTSP output from ffmpeg also work with Wowza, but we recommend the mpegts method. It is the most stable.

Richard … Is any publish authentication method available with mpegts ?

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [January 22, 2012, 10:04am UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/6 "2012-01-22T10:04:22Z")

</div>

pierluigi,

I got the same errors as you, and no video, audio only, in Debian and Windows with ffmpeg. I removed and recompiled ffmpeg from source using the following instructions: [http://ubuntuforums.org/showthread.php?t=786095](http://ubuntuforums.org/showthread.php?t=786095)

Now your command works without errors and plays video/audio in VLC through Wowza with RTSP.

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [June 14, 2012, 2:21pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/7 "2012-06-14T14:21:01Z")

</div>

Yes the mpegts method requires use of the stream manager to get the stream from the encoder.

The push method will start the stream when you start encoding, if that’s what is meant by better?

You can start the pulled type of streams automatically by specifying them in startupstreams.xml:

[https://www.wowza.com/docs/how-to-start-streams-at-server-startup](https://www.wowza.com/docs/how-to-start-streams-at-server-startup)

Daren

---

<div class="post-metadata">

**Author:** ![pierluigi\_sforza](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pierluigi\_sforza](https://community.wowza.com/u/pierluigi_sforza)\
**Post date:** [January 23, 2012, 4:01pm UTC](https://community.wowza.com/t/rtsp-with-ffmpeg-and-wowza/38035/8 "2012-01-23T16:01:33Z")

</div>

Many thanks for your answer guys!

Rrlanham … I would like to test a general purpose encoding configuration of woowza because I’m going to develop my one encoder based on ffmpeg or gstreamer. Do you suggest to use MPEG-TS because it is the only supported integration solution with ffmpeg?

Randall … I will test your solution shortly and I will post details … for others to save time 🙂
