![]() |
|
#1
|
|||
|
|||
|
Note: The latest version of VLC (version 1.1.0, 1.1.1 and 1.1.2) seems to have introduced several issues that may prohibit these instructions from working properly with Wowza Media Server. For now, version 1.0.5 or 1.0.6 is suggested. The problem seems to be related to audio resampling. When transcoding a stream if the audio sample rate of the destination is different from the source then the audio will fail. If the audio source and destination sample rates are the same, then it seems to work.
Note: Wowza Media Systems provides 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 Server (Flash Player version 9.0.115.0 or greater is required).
For IPhone/IPod Touch/IPad or Silverlight, you must first start the stream in StreamManager
Playback:
[install-dir] Windows (default): C:\Program Files\Wowza Media Systems\Wowza Media Server [version] Mac OS X: /Library/WowzaMediaServer Linux: /usr/local/WowzaMediaServer Note: The command line structure for Mac OSX is very similar to Windows. In general I change the following items in the command line:
Here is an example: Code:
Windows:
vlc -vvv "%WMSCONFIG_HOME%/content/Extremists.m4v" --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp= file:///%WMSCONFIG_HOME%/content/vlc.sdp}"
OSX:
/Applications/VLC.app/Contents/MacOS/VLC "/Library/WowzaMediaServer/content/Extremists.m4v" --sout="#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp=file:///Library/WowzaMediaServer/content/vlc.sdp}"
Note: VLC can also publish in the MPEG-TS format. To send an MPEG-TS stream from VLC, change rtp section of the VLC command line. For example: Code:
Native RTP:
rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp=file:///Library/WowzaMediaServer/content/vlc.sdp}
MPEG-TS:
rtp{dst=127.0.0.1,port=10000,mux=ts}
http://www.wowzamedia.com/forums/showthread.php?t=6468 Note: Version VLC media player 1.0.5 Goldeneye seems to be working well for me on Windows. The above command line works with my web camera and the Extremists.m4v sample video. Note: The audio and video may be out of sync. This is because VLC does not generate RTCP packets which are required to synchronize the audio and video channels. You may also want to experiment with setting the RTP/AVSyncMethod method in [install-dir]/conf/rtplive/Application.xml to rtptimecode to see if this produces better results. Note: If you want to host VLC on a different machine as the server hosting Wowza Media Server, you can modify any of the command lines above by changing dst=127.0.0.1 to the ip address of the server running Wowza Media Server. You will also need to output the SDP file to a folder on the machine running VLC then copy it to the [install-dir]/content directory of the server running Wowza Media Server. The SDP file only needs to be updated if any of the encoding parameters or port numbers change. Note: If you experience problems getting either the audio or video to play through Flash, double check the version number of the Flash player (Flash player version 9.0.115.0 or above is required). If you still have problems, turn on Wowza Server debug logging (edit [install-dir]/conf/log4j.properties and change the log4j.rootCategory on the first line from INFO to DEBUG), try the encoder several more times, zip up and send your [install-dir]/logs folder along with screen shots of the encoder setup screens and the LiveVideoStreaming player screen and send a detailed description of your problem to support@wowzamedia.com. Updated for VLC version: VLC media player 1.0.5 Goldeneye. VLC version: VLC media player 1.1.0 The Luggage does not seem to work properly with Wowza Media Server. Charlie Last edited by charlie; 08-06-2010 at 05:06 AM. |
|
#2
|
|||
|
|||
|
Hello all of you,
I'm new with Wowza Media Server and streaming technologies in general, so perhaps my proble is easy to solve. I want to set up an streaming server that can stream some contents (video files in several formats -flv,mp4,...-) to different devices (iPhone, Android, other mobiles, and also PCs with Flash Player). I wish the server can deal with video-on-demand requests, but also I want to set up a live streaming (as it was like a TV channel). The source for this "TV channel" would be several video files, that play continously, and my objective is that the clients could connect to this "TV channel" at any moment. I have no problems with video-on-demand (Wowza Media Server is enough for this), but live streaming has become impossible to me. After trying some configurations and some external live encoders, I have decided to use VLC as the encoder to supply the stream for this "TV channel", but I can't make it works. I have read in this forum that I can achieve this just executing this command line (I work with windows): > vlc -vvv -I rc "%WMSCONFIG_HOME%/content/Extremist.m4v" --sout "#transcode{venc=x264{keyint=60},vcodec=x264,vb=50 0,scale=1,acodec=mp4a,ab=32,channels=2,samplerate= 22050}:rtp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp=file://%WMSCONFIG_HOME%/content/vlc.sdp}" Then I try to use live.html to test, but it does nothing. I think VLC is not working fine, I can see some error logs in the output. Here I write all this output: Quote:
|
|
#3
|
|||
|
|||
|
For using static content to make live streams, take a look at this approach:
http://www.wowzamedia.com/forums/showthread.php?t=6868 Richard |
|
#4
|
|||
|
|||
|
Thank you for the quick response, I will try it as soon as possible and send feedback to this post
|
|
#5
|
|||
|
|||
|
I am totally lost here.
Although after following the instructions I made it work on my desktop which has Wowza and VLC, I could not do it with a remote Wowza server. First things first, what are the port-video=10000 and port-audio=10002? Are these the ports that VLC will transmit data to? If yes, shouldn't wowza listen to those port, as far as I can wowza does not listen on these ports. Also, inside the sdp file there is this line: o=- 14923407327414386725 14923407327414386725 IN IP4 station14 station14 is my home PC which runs the VLC streamer, does this line instruct the videoplayer client to connect to station14 (which obviously it cannot happen because it does not resolve to anything)? Anyway, the question is how do I make it work with a home PC behind NAT running VLC and a remote Wowza server? So far what I understand is that wowza will just host an sdp file that instructs clients to connect to VLC! I hope I am totally wrong. Kind regards |
|
#6
|
|||
|
|||
|
The issue is probably connectivity/ports/firewall, on the remote Wowza server and/or your network.
The sdp file actually directs Wowza where to stream from. The clients are getting the stream from Wowza. Richard |
|
#7
|
|||
|
|||
|
I also suspect some closed/NAT ports is the issue. But the thing is that I don't know how the system works in order to open appropriate ports.
If the following line from the sdp file instructs wowza to connect to station14: o=- 14923407327414386725 14923407327414386725 IN IP4 station14 Then station14 should be replaced with the FQDN name of the VLC streamer (which I find it quite odd to reveal the IP address of the streamer) Not sure how to proceed, isn't there anybody else having the same problem? Did I overlooked a thread? |
|
#8
|
|||
|
|||
|
Past the computer name (which is okay) look for this part:
Quote:
Richard |
|
#9
|
|||
|
|||
|
Hi Comafs,
your problem is a due to a small spelling mistake. Look at the errors libdvdread: Could not open C:\Program Files\Wowza Media Systems\Wowza Media Serv er 2/content/Extremist.m4v If you notice in the example code Charlie has given the file name as Extremist.m4v where as the actual file is Extremists.m4v I ran into the same issue and corrected it, but I could not get it working with nativertp.html thanks |
|
#10
|
|||
|
|||
|
I have fixed the spelling mistake. Thanks for pointing it out.
Charlie |
![]() |
| Tags |
| acquiremediacaster, modulemediacaster, releasemediacaster, vlc |
| Thread Tools | |
| Display Modes | |
|
|