|
Written by Nenad Karalic
|
|
Monday, 18 August 2008 |
|
Page 2 of 3
Streaming
SubTitles
To M3U list can be added MP3 files and video files along with appropriate subtitles:
#EXTINF:-1,Tombstone Canyon" (1932)
#EXTVLCOPT:file-caching=300
#EXTVLCOPT:sub=D:\VIDEO\Tombstone.srt
#EXTVLCOPT:sout=#transcode
{vcodec=DIV3,vb=1024,scale=1,
acodec=mpga,ab=64,channels=2,
soverlay}:duplicate{dst=std
{access=http,mux=asf,dst=:1234}}
D:\VIDEO\Tombstone.avi |
VLC enables recording or “streaming”of reproduced file either it is accessed through “open” dialog of file, disc, network or DirectShow device. Below “Advance Option” button is section with same name. We clicked on “Checkbox” “Stream/Save” which enables using of button “Settings…” that hides new dialog “Stream Output”. This dialog provides settings for “streaming” options. VLC enables a bunch of “streaming” protocols and their combinations. We had chosen simple solution: HTTP protocol. In “Outputs” section we checked “HTTP” while “Address” field we left empty (that’s because we want to provide access to all clients in network), “port” field we left on offered value “1234”. To make sure that everything works fine, you need to check if this port is opened in firewall. We chose ASF as “Encapsulation Methods”.
Next step is setting of “Transcoding Options” section. Depending on chosen setups, quality of picture and sound can vary, and indirectly network bandwidth that is needed for streaming to work properly. In our case we set codec on “DIV3” and bitrate at “1024Kb/s” and “Scale” on “1”. Audio codec was set on MP3 and bitrate at “64Kb/s”. Our TV card didn’t support stereo sound so we set “Channels” on value “1”. After we clicked on “OK” and closed dialogs, VLC started with “streaming”. Before you start with client setups you should turn on support for Web interface to provide “streaming” management from distant computer in network. This can be done, by choosing option “Settings->Add Interface->Web Interface” in main menu. Web interface is actually internal web server built in VLC media player that provides “streaming” control through web browser from network clients.
NT Service
Under operative systems from NT family, like NT4, Windows 2000, XP or Vista it is possible to start up VLC in “NT Service” mode. This way, VLC will start in background with active “streaming” right after booting up of the system, and “streaming” will not be interrupted during logging of different users. To achieve this you need to open command prompt and in folder where VLC is installed type command vlc.exe -I ntservice --ntservice-install --ntservice-name "VLC TV" --ntservice-options "--ntservice-extraintf "http" --http-host=:8081 –open="d:\tv\tv.m3u"". You need to choose name of service (--ntservice-name), port Web interface (--http-hos=) and path to “m3u” play list (–open=). Later with “Control panel->Administrative tools->Services” applet you can start or stop installed service. Uninstallation can be done by identical command you just need to replace “-install” with “-uninstall”.
|