VOD streaming with telnet interface howto

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
steph291
New Cone
New Cone
Posts: 4
Joined: 13 May 2008 00:52
VLC version: 0.8.4
Operating System: Ubuntu Dapper

VOD streaming with telnet interface howto

Postby steph291 » 25 May 2008 02:47

Greetings everyone

First of all,
Video on demand (VOD) works great with VLC, here's some examples !

hardware/software description : 2 servers and 2 worstations
+server1 usb quickcam and a hauppauge bt848 webcam pci on a Aladin mobo. celeron 600, 400mb ram
Linux Ubuntu dapper with Gnome, kernel 2.6.15
+server2 Hauppauge Wintv bt878 on a P4 Asus mobo. 2.4ghz, 512mb ram
Debian etch with kde, kernel 2.6.18

CableModem internet connection
with a router for my internal network.
Main workstations are windows.

(4 pc in total)

Operation of vlc telnet interface on first server (daboss1->192.168.1.6)

I start a server instance by doing this :
daboss1@server1:~$ vlc --ttl 12 -vvv --color -I telnet --telnet-port 4142 --telnet-password qwerty --rtsp-host 192.168.1.6:5554

then I telnet to vlc by doing this :
telnet 192.168.1.6 4142

on server1, I saved my configuration from within a vlc telnet session,
'save myvideocfg' <CR>
then corrected/tested with the resulting file which looks like this:
(you do a 'load myvideocfg' from within vlc telnet sesson to load your config file)

# this is for my pci capture card
new mybttv vod
setup mybttv input "v4l:/dev/video1:norm=ntsc:channel=1"
# channel is for -> 0=tuner, 1=composite1, 2=composite2/svideo
setup mybttv option v4l-fps=4
setup mybttv output #transcode{vcodec=mp4v,vb=128}
# The vb option allows to set the bitrate of the transcoded video stream, in kbit/s
setup mybttv enabled

# this is for my usb quickcam
new quickcam vod
setup quickcam input "v4l:/dev/video0:norm=ntsc"
setup mybttv option v4l-fps=4
setup quickcam output #transcode{vcodec=mp4v,vb=128}
setup quickcam enabled

Operation of vlc telnet interface on second server (daboss2->192.168.1.7)

I start a server instance by doing this :
daboss1@server2:~$ vlc --ttl 12 -vvv --color -I telnet --telnet-port 4142 --telnet-password qwerty --rtsp-host 192.168.1.7:5554

then I telnet to vlc by doing this :
telnet 192.168.1.7 4142

on server2, I saved my configuration from within a vlc telnet session,
'save mywintvcfg' <CR>
then corrected/tested with the resulting file which looks like this:
(you do a 'load mywintvcfg' from within vlc telnet sesson to load your config file)

new smtv3 vod
setup smtv3 input "v4l:/dev/video0:norm=ntsc:frequency=181250:size=sif:channel=0:adev=/dev/dsp:audio=0"
setup smtv3 output #transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,scale=1,venc=ffmpeg{keyint=80,hurry-up,vt=800000}}
setup smtv3 enabled

extra ! :

#Screen capture streaming

new smtv4 vod
setup smtv4 input "screen://"
setup smtv4 output #transcode{vcodec=mp4v,vb=128}
setup smtv4 option screen-fps=1
setup smtv4 enabled

# :D

If I start a vlc client(windows or linux) within my network and issue a network connection RTSP ta all streams availables
it's working number 1 :wink:

QUESTION: I would like tu use wmp webpage plugin so those stream would be available on my website,
How can I do that ? I've tried with no success
a document somewhere ?

Thanks
VLC 0.8.4
Ubuntu Dapper kernel 2.6.15

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests