# Broadcating a stream in ffmpeg encoder

**URL:** <https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510>\
**Category:** Wowza Streaming Engine\
**Created:** [June 2, 2013, 9:26pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510 "2013-06-02T21:26:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritesh\_Mehandiratta](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ritesh\_Mehandiratta](https://community.wowza.com/u/Ritesh_Mehandiratta)\
**Post date:** [June 2, 2013, 9:26pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/1 "2013-06-02T21:26:16Z")

</div>

i am new to ffmpeg encoder i have to publish a stream in ffmpeg for Wowza as described in this link [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 Host should be localhost:1935 and stream should be /live/mystream.sdp

please guideline what should be command i am using linux please help!!

---

<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:** [June 2, 2013, 4:17pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/2 "2013-06-02T16:17:38Z")

</div>

Take a look at this FFmpeg guide:

[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:** [June 4, 2013, 1:47pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/3 "2013-06-04T13:47:24Z")

</div>

Our examples are using a pre-built version of FFmpeg for Windows, linked to on that page. It is version N-52458-gaa96439. Try to match that version

Richard

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [June 3, 2013, 12:31pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/4 "2013-06-03T12:31:47Z")

</div>

Hi,

You can change the protocol of the stream to Wowza using FFMPEG if needed.

Sending the stream to Wowza using RTMP would be simpler and the tutorial does have a section on how to do this.

FFmpeg can publish streams using other outgoing protocols such as RTMP and RTSP/RTP (QuickTime ANNOUNCE).

To send a stream using RTMP, change the destination portion of the FFmpeg URL:

From:

```auto
-f mpegts udp://127.0.0.1:10000?pkt_size=1316

```

To:

```auto
-f flv rtmp://127.0.0.1/live/myStream

```

After applying this to FFMPEG the publishing stream will be going to application “live” with stream name myStream

Playback form Wowza would also be:

```auto
RTMP - rtmp://[wowza-ip-address]:1935/live/myStream
RTSP - rtsp://[wowza-ip-address]:1935/live/myStream
Apple HLS - http://[wowza-ip-address]:1935/live/myStream]/playlist.m3u8
Flash HDS - http://[wowza-ip-address]:1935/live/myStream/manifest.f4m
Silverlight - http://[wowza-ip-address]:1935/live/myStream/Manifest

```

Jason

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [June 3, 2013, 4:33pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/5 "2013-06-03T16:33:09Z")

</div>

Hi,

What version of FFMEPG are you using?

Jason

---

<div class="post-metadata">

**Author:** ![Ritesh\_Mehandiratta](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ritesh\_Mehandiratta](https://community.wowza.com/u/Ritesh_Mehandiratta)\
**Post date:** [June 2, 2013, 9:58pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/6 "2013-06-02T21:58:19Z")

</div>

hi rrlanham ,i read this thread before for streaming using rtsp.but it is streaming data froma url udp://127.0.0.1:10000 but in this case u have to set value of host to and stream to Host Address: [wowza-ip-address]:1935

Stream Name: live/myStream.sdp .how to accomplish this in ffmpeg encoder and what is the content of myStream.sdp file please specify??

---

<div class="post-metadata">

**Author:** ![Ritesh\_Mehandiratta](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ritesh\_Mehandiratta](https://community.wowza.com/u/Ritesh_Mehandiratta)\
**Post date:** [June 2, 2013, 10:09pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/7 "2013-06-02T22:09:05Z")

</div>

please help a little from morning i am trying to complete this tutorial!!😕

---

<div class="post-metadata">

**Author:** ![Ritesh\_Mehandiratta](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ritesh\_Mehandiratta](https://community.wowza.com/u/Ritesh_Mehandiratta)\
**Post date:** [June 3, 2013, 8:16pm UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/8 "2013-06-03T20:16:42Z")

</div>

i am facing error using your method "Failed to open bitstream filter h264\_mp4toannexb for stream 0 with codec libx264: Invalid argument "

---

<div class="post-metadata">

**Author:** ![Ritesh\_Mehandiratta](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ritesh\_Mehandiratta](https://community.wowza.com/u/Ritesh_Mehandiratta)\
**Post date:** [June 4, 2013, 1:30am UTC](https://community.wowza.com/t/broadcating-a-stream-in-ffmpeg-encoder/40510/9 "2013-06-04T01:30:02Z")

</div>

when i type ffmpeg-version it gave the result

ffmpeg version git-2013-06-03-c8faa47

built on Jun 3 2013 23:34:11 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)

configuration: --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libvpx --enable-x11grab --enable-libfaac --enable-libx264 --enable-nonfree --enable-version3

libavutil 52. 34.100 / 52. 34.100

libavcodec 55. 15.100 / 55. 15.100

libavformat 55. 8.102 / 55. 8.102

libavdevice 55. 2.100 / 55. 2.100

libavfilter 3. 74.101 / 3. 74.101

libswscale 2. 3.100 / 2. 3.100

libswresample 0. 17.102 / 0. 17.102

libpostproc 52. 3.100 / 52. 3.100
