joarobles
Joined: 30 Jun 2011 Posts: 1
|
Posted: Wed Dec 14, 2011 12:39 pm Post subject: VLC video streaming and Icecast |
|
|
Hi people,
I'm starting with video streaming with Icecast but I couldn't stream anything yet, I'm using VLC as client in Windows.
My icecast.xml is the following, pretty much like the standard one:
Code: |
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<source-password>hackme</source-password>
<relay-password>hackme</relay-password>
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<mount>
<mount-name>/video.ogg</mount-name>
<username>usuario</username>
<password>clave</password>
<max-listeners>50</max-listeners>
</mount>
</icecast> |
So, I will stream in /video.ogg mountpoint with VLC with this command:
Code: |
:sout=#transcode{vcodec=theo,vb=200,fps=15,scale=0.25,acodec,ab=40,channels=1,samplerate=22050}:std{access=shout,mux=ogg,dst=usuario:clave@localhost:8000/video.ogg} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep |
But then something weird happens, when the streaming is started I can see something like this in the Icecast administration page:
Quote: |
Stream Title: VLC media player - Live stream
Stream Description: Live stream from VLC media player
Content Type: application/ogg
Video Quality: 12
Framesize: 336 x 188
Framerate: 15.00
Current Listeners: 0
Peak Listeners: 0
Stream Genre: Alternative
Stream URL: http://www.videolan.org/vlc
Current Song:
|
So it seems that VLC is currently streaming OK, but I can't watch any video using any player. Then, seconds later if I refresh the Icecast page, it falls back to this mountpoint, that I believe is something like an audio mountpoint (note the missing video parameters):
Quote: |
Stream Title: VLC media player - Live stream
Stream Description: Live stream from VLC media player
Content Type: application/ogg
Current Listeners: 0
Peak Listeners: 0
Stream Genre: Alternative
Stream URL: http://www.videolan.org/vlc
Current Song:
|
Any idea? Should I use another client to stream video? Thanks! _________________ www.reweb.com.ar |
|