Postby rh » 14 Aug 2009 15:46
You can stream with ASF-Format, X264 / AAC Container for instance with ...
cvlc -d -v 1 --syslog --sout-asf-copyright "MyOwn IPTV" http://<IPfromYourVDRServer-withXineliboutputPlugin>:37890 :sout="#transcode{vcodec=h264,vb=300,scale=1,acodec=mp4a,ab=64,channels=2,samplerate=44100,audio-sync,height=200}:duplicate{dst=std{access=http,mux=asf,dst=<IPfromVDRServer-withXineliboutputPlugin>:37899}}"
Then open your vlc player and play the converted low-bandwith stream with the URL http://<IPfromYourVDRServer-withXineliboutputPlugin>:37899
This works with most of input types - not onlay streams - and its a real sophisticated solution for low bandwidth. Be caution to use the same source- and destination ip address and a different destination port. There is also a way with the revolunet Plugin on your website like this
<title>MyOwnIPTV</title>
<script language="javascript" src="ExternalLibLoader.js"></script>
<style>
* { font-family:Trebuchet Ms, Arial; font-size:12px; }
select, input { border:1px solid silver; }
</style>
<script language="javascript" src="VLCobject.js"> </script>
<script language="javascript" src="VLCcontrols.js"> </script>
<script language="javascript">
var vlc_controls = null;
function init() {
myvlc = new VLCObject("mymovie", "400", "224");
myvlc.write("vlccontent");
vlc_controls = new VLCcontrols(myvlc);
vlc_controls.options.set("http-caching", 1000);
vlc_controls.onready = function () { vlc_controls.play("http://<IPfromVDRServer-withXineliboutputPlugin>:37899");}
}
</script>
There are a hugh of explanations and examples in posts, wiki ....
Be sure to have a ffmpeg version with x264 / aac support, look for the output of ffmpeg -v. Should be like this
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-xvid --enable-libdts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscaler
libavutil version: 49.4.0
libavcodec version: 51.40.2
libavformat version: 51.11.0
built on Feb 4 2008 14:45:57, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
scarcely you do it right it works ...
Greetings, rh