Streaming over low bandwidth using speex and IceCast server

About encoding, codec settings, muxers and filter usage
hammadkom
Blank Cone
Blank Cone
Posts: 14
Joined: 26 Mar 2007 21:23

Streaming over low bandwidth using speex and IceCast server

Postby hammadkom » 04 Apr 2007 19:44

The problem
"given the server ip is 192.168.1.6 "

if you are streaming file

Code: Select all

vlc.exe -vv C:\test.mp3 :sout=#transcode{acodec=vorb,ab=96,channels=2}:duplicate{dst=std{access=shout,mux=ogg,dst=source:hackme@192.168.1.6:8000/audio.ogg}}

if u r streaming from audio card this will work
(with speex codec http//www.speex.org)

Code: Select all

vlc.exe -vv dshow://dshow-adev="" :sout="#transcode{acodec=spx,ab=8,channels=2 }:duplicate{dst=std{access=shout,mux=ogg,dst=source:hackme@192.168.1.6:8000/audio.ogg}}"
both are working fine with audio
but now i have a problem , which is what is the best config for speex codec to reach 4 kbps with vbr or cbr

also when i see the streaming rate i see very high traffic rate !!!! amazing

see my reply to get the answer of this problem
Last edited by hammadkom on 10 Apr 2007 14:38, edited 3 times in total.

hammadkom
Blank Cone
Blank Cone
Posts: 14
Joined: 26 Mar 2007 21:23

Postby hammadkom » 08 Apr 2007 11:12

Answer:

Peace upon you

after many many trials and effort i reach to this result :D

Code: Select all

vlc -vvv --color dshow://dshow-adev="" --no-video --sout "#transcode{acodec=spx,samplerate=2000,channels=1,aenc=speex}:std{access=shout{name="mystream"},mux=ogg,dst=source:hackme@192.168.1.9:8000/audio.ogg}"
the previous code reduce the bit rate to 7 kbps :)

you can increase the bit rate and quality , by increasing the sample rate to 3000 or 4000 or higher according to your needs , for example if you change "samplerate=2000" to "samplerate=4000" the resulted output bit rate will be 14 kbps

i hope this result help people for progressing thier work


if any one benifit from this result please say thanks and pray for me

yours
Mohammad Hammad
Egypt


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests