# Using VLC with Wowza Pro (native RTP)

**URL:** <https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70>\
**Category:** Wowza Streaming Engine\
**Created:** [May 13, 2008, 7:04am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70 "2008-05-13T07:04:41Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![Chris\_Grey](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@Chris\_Grey](https://community.wowza.com/u/Chris_Grey)\
**Post date:** [October 24, 2010, 11:18pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/121 "2010-10-24T23:18:00Z")

</div>

roughly a 20mb upload 50mb download

---

<div class="post-metadata">

**Author:** ![Chris\_Grey](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@Chris\_Grey](https://community.wowza.com/u/Chris_Grey)\
**Post date:** [October 27, 2010, 3:50pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/122 "2010-10-27T15:50:21Z")

</div>

After getting some help from Charlie I was directed to this forum: [https://www.wowza.com/docs/troubleshoot-live-streaming](https://www.wowza.com/docs/troubleshoot-live-streaming) It dealt with packet loss which is what was probably happening. I also had to change my keyframe settings and that did the trick. My stream is working perfectly from all our remote stream points.

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [July 15, 2008, 9:20pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/123 "2008-07-15T21:20:46Z")

</div>

Guys,

could anybody point me on how to do the above if Webcam(with VLC), Wowza and FlashClient are 3 different machines?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [July 15, 2008, 11:07pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/124 "2008-07-15T23:07:44Z")

</div>

Charlie,

thanks for the fast response.

I’m not sure I understand how it works then…

If .sdp file is created on VLC side and I set path to it in Flash client app, how will Flash app know the address/port of the Wowza instance (I can imagine it takes address from the sdp file, but not the port)?

And how will Wowza know on which port to listen for the stream from the VLC?

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [July 26, 2008, 2:45pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/125 "2008-07-26T14:45:53Z")

</div>

Charlie,

unfortunately problem still appears.

As I said before in my setup I use VLC, Wowza and Client on 3 different machines.

Below are configs I’ve tried so far, maybe you could advise something.

1. If I make .sdp file available via http on VLC side (port 9000) and on Client I set

Server: rtmp://wowza\_ip/rtplive

Stream: [http://vlc\_ip:9000/vlc.sdp](http://vlc_ip:9000/vlc.sdp)

Then Wowza server simply doesn’t get the SDP info and doesn’t open the ports to receive the stream from VLC.

1. If I copy the vlc.sdp file to “/usr/local/WowzaMediaServerPro/content/” folder and set on Client:

Server: rtmp://wowza\_ip/rtplive

Stream: vlc.sdp

Then Wowza receives the stream from VLC but doesn’t send it to Client (I look with tcpdump). They exchange some short packets (40-107 bytes) each 2-5 sec, nothing more.

I’ve tried both LiveVideoStreaming and NativeRTPVideoStreaming with the same result.

Thanks

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [July 27, 2008, 12:52pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/126 "2008-07-27T12:52:12Z")

</div>

Done,

thanks in advance

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 5, 2008, 8:04pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/127 "2008-09-05T20:04:23Z")

</div>

Does anybody know how to extract SDP data in server side application?

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 6, 2008, 5:57pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/128 "2008-09-06T17:57:04Z")

</div>

Charlie,

as far as I understand VLC (or any other plain RTP) stream gets received by Wowza only after client calls NetStream.play() and Wowza receives the stream until at least one client requests it.

If that’s correct there are few questions:

- does it call OnPublish server side method after client calls NetStream.play?

- is there a way to start publishing without calling NetStream.play on client side? In other words can I publish RTP stream from VLC to Wowza without sending it to client?

Thanks

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 27, 2008, 7:23pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/129 "2008-09-27T19:23:27Z")

</div>

On WinXP with VLC-0.9.2 I’ve used string sdp=“file://c:/Program Files/Video Chat/tmp/out.sdp” inside vlm file.

I can suggest you to use double quotes where you have spaces and first try to get screen output.

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 28, 2008, 7:58am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/130 "2008-09-28T07:58:07Z")

</div>

try to enable logging in VLC: --file-logging --logfile=".\vlc.log".

How many times did you instal VLC on this machine? If more then 1 you may try to remove module cache.

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 28, 2008, 8:57am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/131 "2008-09-28T08:57:24Z")

</div>

does it play the file if you open it from GUI?

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 29, 2008, 6:38am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/132 "2008-09-29T06:38:13Z")

</div>

Try to stream it from GUI and check the command line it creates

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [September 29, 2008, 11:53am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/133 "2008-09-29T11:53:26Z")

</div>

I’ve emailed you. Did you try to get the command string using GUI?

UPD: You have to experiment with VLC and it imho it behaves more predictable on Linux.

I would break it in simple steps (e.g. play file with GUI, play with CMD, stream with GUI, stream with CMD) and try it step by step for a few days.

VLC is really tricky - sometimes you have to use single or double quotes, etc. There’s a good forum and wiki on their site - try those also.

---

<div class="post-metadata">

**Author:** ![Serge\_Chernyavsky](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Serge\_Chernyavsky](https://community.wowza.com/u/Serge_Chernyavsky)\
**Post date:** [October 20, 2008, 6:50pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/134 "2008-10-20T18:50:09Z")

</div>

1. I believe you should use vcodec=h264, not x264. I would also manually specify ports (both to be even, e.g. …dst=127.0.0.1,port-video=1234,port-audio=1236…)

2. Try to switch some CPU features (SSE2 for example) off statically in VLC config - some of them usually cause crashes on Windows.

3. VLC does transmit h264 stream via plain RTP (your case) or in MPEG-TS container.

---

<div class="post-metadata">

**Author:** ![Andre\_Marcelo](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@Andre\_Marcelo](https://community.wowza.com/u/Andre_Marcelo)\
**Post date:** [April 1, 2009, 6:24pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/135 "2009-04-01T18:24:14Z")

</div>

someone can post a line command example of using vlc to transmite only the audio to a wowza server? I am playing the songs using an radio automation system, so, the audio must be captured from stereo mix of sound device.

Thanks,

---

<div class="post-metadata">

**Author:** ![Andre\_Marcelo](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@Andre\_Marcelo](https://community.wowza.com/u/Andre_Marcelo)\
**Post date:** [April 1, 2009, 7:31pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/136 "2009-04-01T19:31:50Z")

</div>

Hi Charlie,

In my case, Wowza Server is not running on my desktop, so:

dst=ipofmywowza insted of 127.0.0.1

but about sdp ? how could be this ?

thanks,

---

<div class="post-metadata">

**Author:** ![Masateru\_12288](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Masateru\_12288](https://community.wowza.com/u/Masateru_12288)\
**Post date:** [June 6, 2008, 11:09am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/137 "2008-06-06T11:09:07Z")

</div>

Hi

I was going to send data of the streaming to global WowzaServer with VLC.

I run such an command.

it did not move.

```auto
vlc -vvv dshow:// :dshow-vdev="Video device" :dshow-adev="Audio device" :dshow-size="640x480" --sout "#transcode{venc=x264,vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=32,channels=2,samplerate=22100}:rtp{dst=globalwowzaserver,sdp=file://globalwowzaserver/rtplive/vlc.sdp}"

```

Will what I take be possible in Wowza?

Is a command wrong?

M.Kagawa

---

<div class="post-metadata">

**Author:** ![Masateru\_12288](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Masateru\_12288](https://community.wowza.com/u/Masateru_12288)\
**Post date:** [June 6, 2008, 12:45pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/138 "2008-06-06T12:45:10Z")

</div>

Thanks for an reply

I tried it, but a .sdp file was not made in Server.

Must I put terminal and WowzaServer transmitting data in VLC in the same network?

M.Kagawa

---

<div class="post-metadata">

**Author:** ![Masateru\_12288](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Masateru\_12288](https://community.wowza.com/u/Masateru_12288)\
**Post date:** [June 8, 2008, 3:40am UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/139 "2008-06-08T03:40:04Z")

</div>

Thanks

I understood.

I thought that I was lost when it was easily accessed Wowza Media Server by the outside with VLC.

Thank you.

M.Kagawa

---

<div class="post-metadata">

**Author:** ![Simon\_Blandford](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Simon\_Blandford](https://community.wowza.com/u/Simon_Blandford)\
**Post date:** [May 30, 2008, 2:27pm UTC](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70/140 "2008-05-30T14:27:59Z")

</div>

Thanks for the rapid response 🙂

It works fine now. Here’s the working command line…

[PHP]vlc test.flv --sout-ffmpeg-profile=low --sout ‘#duplicate{dst=“transcode{width=640,height=480,venc=x264,vcodec=x264,vb=300,acodec=mp4a,ab=128,channels=2,samplerate=44100}:duplicate{dst=rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp=file:///usr/local/WowzaMediaServerPro/content/vlc1.sdp}}”,dst=“transcode{width=320,height=240,venc=x264,vcodec=x264,vb=96,acodec=mp4a,ab=96,channels=2,samplerate=44100}:duplicate{dst=rtp{dst=127.0.0.1,port-video=10004,port-audio=10006,sdp=file:///usr/local/WowzaMediaServerPro/content/vlc2.sdp}}”,dst=“transcode{width=160,height=120,venc=x264,vcodec=x264,vb=16,acodec=mp4a,ab=16,channels=2,samplerate=11025}:duplicate{dst=rtp{dst=127.0.0.1,port-video=10008,port-audio=10010,sdp=file:///usr/local/WowzaMediaServerPro/content/vlc3.sdp}}”}’ vlc:quit[/PHP]

It would be nice to reduce the frame rate also for the narrow bandwidth streams. However the fps setting is [ignored](http://trac.videolan.org/vlc/ticket/1334) in 0.8.6. Hopefully, if this is fixed in future versions of VLC, then the following command would give better results…

[PHP]vlc test.flv --sout-ffmpeg-profile=low --sout ‘#duplicate{dst=“transcode{width=640,height=480,venc=x264,vcodec=x264,vb=300,fps=25,acodec=mp4a,ab=128,channels=2,samplerate=44100}:duplicate{dst=rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp=file:///usr/local/WowzaMediaServerPro/content/vlc1.sdp}}”,dst=“transcode{width=320,height=240,venc=x264,vcodec=x264,vb=96,fps=15,acodec=mp4a,ab=96,channels=2,samplerate=44100}:duplicate{dst=rtp{dst=127.0.0.1,port-video=10004,port-audio=10006,sdp=file:///usr/local/WowzaMediaServerPro/content/vlc2.sdp}}”,dst=“transcode{width=160,height=120,venc=x264,vcodec=x264,vb=16,fps=5,acodec=mp4a,ab=16,channels=2,samplerate=11025}:duplicate{dst=rtp{dst=127.0.0.1,port-video=10008,port-audio=10010,sdp=file:///usr/local/WowzaMediaServerPro/content/vlc3.sdp}}”}’ vlc:quit[/PHP]

Update: I found that the default AAC encoding profile doesn’t work correctly with the Flash AAC decoder. Using the option --sout-ffmpeg-profile=low seems to solve this problem.

[Previous page](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70.md?page=6)

[Next page](https://community.wowza.com/t/using-vlc-with-wowza-pro-native-rtp/70.md?page=8)
