# publish RTMP in command line to wowza server

**URL:** <https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529>\
**Category:** Wowza Streaming Engine\
**Created:** [March 26, 2010, 6:15pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529 "2010-03-26T18:15:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Ehrmann](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@Nicolas\_Ehrmann](https://community.wowza.com/u/Nicolas_Ehrmann)\
**Post date:** [March 26, 2010, 6:15pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/1 "2010-03-26T18:15:02Z")

</div>

Hi ! it’s my first message after some day search

I would like stream to Wowza server with StreamType = live in RTMP.

That’s works with adobe air application but not with vlc or ffmpeg or gstreamer.

I would like to use a command line application or python, for stream in RTMP, it’s realist?

My last test for exemple (not working):

ffmpeg -i /home/video.avi -re -acodec copy -vcodec copy -f mp4 rtmp://999.999.999.999:1935/Apps/stream\_name

cvlc v4l2:///dev/video0 --sout ‘#transcode{vcodec=FLV1,acodec=mp3}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=999.999.999.999:1935/Apps/stream\_name}’

---

<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:** [March 26, 2010, 5:54pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/2 "2010-03-26T17:54:52Z")

</div>

Might have better luck with rtsp in this case. I know rtmp support in vlc is not good. But I don’t have any good experience with this kind of use to really help much.

Richard

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [November 25, 2011, 4:50am UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/3 "2011-11-25T04:50:19Z")

</div>

We do not have specific instructions for ffmpeg using RTMP protocol. We do have instructions for using MPEG-TS here:

[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)

Charlie

---

<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 30, 2010, 1:34pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/4 "2010-05-30T13:34:50Z")

</div>

You can try the lastest ffmpeg from here:

[http://ffmpeg.arrozcru.org/autobuilds/](http://ffmpeg.arrozcru.org/autobuilds/)

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:** [May 30, 2010, 2:27pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/5 "2010-05-30T14:27:59Z")

</div>

Sorry, I don’t know where to point you for that.

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:** [November 25, 2011, 3:36pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/6 "2011-11-25T15:36:30Z")

</div>

I’m not sure how to capture webcam with ffmpeg. Here is a guide to doing it with VLC:

> [@Using VLC with Wowza Pro (native RTP)](http://community.wowza.com/t/-/70):
>
> Note: I am providing these instructions on as “AS-IS” basis. The reason for the qualification is because I have found VLC to be difficult to get to work reliably and predictably. Step by step instructions for using the VLC media player as an encoder with Wowza Pro (Flash Player version 9.0.115.0 or greater is required). Download and install Wowza Media Server Pro (version: [Wowza Pro 1.7.2](https://www.wowza.com/store.html) or greater) Create a new Wowza Pro application for streaming (may already exist if examples installed…

Here is current ffmpeg guide:

> **[Use FFmpeg to live stream with Wowza Streaming Engine](https://www.wowza.com/docs/how-to-live-stream-using-ffmpeg-with-wowza-streaming-engine)**
>
> Use FFmpeg as a live encoder with Wowza Streaming Engine.

Richard

---

<div class="post-metadata">

**Author:** ![Will\_Hetherington](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@Will\_Hetherington](https://community.wowza.com/u/Will_Hetherington)\
**Post date:** [May 31, 2010, 10:06am UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/7 "2010-05-31T10:06:03Z")

</div>

Try this on for size 🙂

[http://www.xuggle.com/xuggler/](http://www.xuggle.com/xuggler/)

---

<div class="post-metadata">

**Author:** ![Lewei\_yan](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Lewei\_yan](https://community.wowza.com/u/Lewei_yan)\
**Post date:** [March 30, 2010, 3:43pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/8 "2010-03-30T15:43:52Z")

</div>

try this. It works for me. you might have to specify the preset of ffmpeg

ffmpeg -i /home/video.avi -re -acodec libfaac - vcodec libx264 -vpre default -f flv rtmp://serverip/app/streamName

---

<div class="post-metadata">

**Author:** ![Claus\_Plachetka](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Claus\_Plachetka](https://community.wowza.com/u/Claus_Plachetka)\
**Post date:** [May 30, 2010, 9:32am UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/9 "2010-05-30T09:32:13Z")

</div>

> try this. It works for me. you might have to specify the preset of ffmpeg
> 
> ffmpeg -i /home/video.avi -re -acodec libfaac - vcodec libx264 -vpre default -f flv rtmp://serverip/app/streamName

Which version of ffmpeg did you use? My one does not support rtmp publishing yet.

---

<div class="post-metadata">

**Author:** ![Claus\_Plachetka](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Claus\_Plachetka](https://community.wowza.com/u/Claus_Plachetka)\
**Post date:** [May 30, 2010, 3:20pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/10 "2010-05-30T15:20:52Z")

</div>

> You can try the lastest ffmpeg from here:
> 
> [http://ffmpeg.arrozcru.org/autobuilds/](http://ffmpeg.arrozcru.org/autobuilds/)
> 
> Richard, thanks for this information. The windows version really works. 🙂
> 
> But I would like to do publishing with (debian) linux…

---

<div class="post-metadata">

**Author:** ![Tom\_Harris](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tom\_Harris](https://community.wowza.com/u/Tom_Harris)\
**Post date:** [November 1, 2011, 4:46pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/11 "2011-11-01T16:46:51Z")

</div>

> try this. It works for me. you might have to specify the preset of ffmpeg
> 
> ffmpeg -i /home/video.avi -re -acodec libfaac - vcodec libx264 -vpre default -f flv rtmp://serverip/app/streamName

Just adding my 2pennys worth, for me I could only get real time playback/streaming if -re was before -i input.

```auto
ffmpeg [B]-re[/B] -i /home/sample.mp4 -acodec copy -vcodec copy -f flv rtmp://serverip/app/streamName

```

Otherwise ffmpeg would just act as if transcoding and do it as fast as it could, not helpful for streaming 😉

Also my file was an mp4 ready for streaming so i just used -acodec copy -vcodec copy

---

<div class="post-metadata">

**Author:** ![Nidhin\_Jose](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nidhin\_Jose](https://community.wowza.com/u/Nidhin_Jose)\
**Post date:** [November 25, 2011, 6:46pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/12 "2011-11-25T18:46:23Z")

</div>

I am trying to make ffmpeg work with wowza. For testing purpose I am trying to send video from my webcam. The follow is the command I am using.

ffmpeg -re -f video4linux2 -i /dev/video0 -acodec libfacc -vcodec libx264 -f h264 rtmp://localhost:1935/live/test

But it doesnt seem to work.

I build ffmpeg from git repository with the following config

–enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab

ffmpeg -protocols says it has rtmp input/output support

Any pointers on how to make this work…

---

<div class="post-metadata">

**Author:** ![Nidhin\_Jose](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Nidhin\_Jose](https://community.wowza.com/u/Nidhin_Jose)\
**Post date:** [November 25, 2011, 9:52pm UTC](https://community.wowza.com/t/publish-rtmp-in-command-line-to-wowza-server/34529/13 "2011-11-25T21:52:27Z")

</div>

Thank you I saw that one… But the problem is I am trying this on linux and it seems to have some problem…
