Updated for Wowza Media Server 2.2.0 (22 November 2010)
Updated for VLC version 1.1.5 (22 November 2010)
Note: Wowza Media Systems provides these instructions on as "AS-IS" basis. VLC is not a Wowza Media Systems product. If you have problems getting VLC to work properly it is best to contact the VLC through their forums or wiki.
To get started, install the VideoLAN VLC media player for your platform on the same machine running Wowza Media Server 2. We will be re-streaming the sample file sample.mp4.
VLC Setup (Windows)
- Open a command prompt and change directory to the VLC installation folder. It should be at path similar to:
Code:C:\Program Files\VideoLAN\VLC
- Enter the following VLC command which will re-streaming the file sample.mp4 from the [install-dir]/content folder of the Wowza Media Server 2 installation:
Code:vlc -vvv "%WMSAPP_HOME%/content/sample.mp4" --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
VLC Setup (OSX)
- Open a terminal window
- Enter the following VLC command which will re-streaming the file sample.mp4 from the [install-dir]/content folder of the Wowza Media Server 2 installation:
Code:/Applications/VLC.app/Contents/MacOS/VLC "/Library/WowzaMediaServer/content/sample.mp4" --sout="#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
Next, follow the instructions in the following tutorial article:
How to publish and play a live stream (MPEG-TS based encoder)
See Also:
VideoLan VLC media player
VideoLan User support
MeWiki: X264 Settings
Note: The sample.mp4 file is about 6 minutes long. VLC will stop when it hits the end of this file. So you may have to re-start VLC several times during configuration and testing.
Note: The above VLC command lines will produce a low bitrate, low complexity, low quality stream that should be playable on most playback devices and systems. The following is a higher quality version just to provide a glimpse of what VLC can do:
Code:
Windows:
vlc -vvv "%WMSAPP_HOME%/content/sample.mp4" --sout "#transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
OSX:
/Applications/VLC.app/Contents/MacOS/VLC "/Library/WowzaMediaServer/content/sample.mp4" --sout="#transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
Code:
RTSP/RTP camera:
vlc -vvv rtsp://192.168.1.22/mycamera --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
MPEG-TS stream:
vlc -vvv udp://localhost:1234 --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
MPEG-TS stream wrapped in RTP:
vlc -vvv rtp://localhost:1234 --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
Native RTP stream:
vlc -vvv unicast.sdp --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}"
- Click here, if you are having problems or would like to discuss this article.
- Leave a comment below, if there is some aspect of this article you would like to see changed or improved.


Article List
Categories
Wowza Media