Bonjour,
Je suis entrain de chercher comment réaliser un serveur de vidéo à la demande (VOD) en utilisant VLC dans un réseau local (intranet).
J'ai trouvé
la doc nécessaire sur le site officiel.
1er Essai en Telnet
Lorsque je tape dans la console
vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 192.168.0.250:5554
J'obtiens ceci :
VLC media player 0.8.6f Janus
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /home/LOOPING/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 245 modules
[00000001] main private debug: opening config file /home/LOOPING/.vlc/vlcrc
[00000001] main private debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE FPU
[00000001] main private debug: looking for memcpy module: 4 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000317] main playlist debug: waiting for thread completion
[00000317] main playlist debug: thread 3084336016 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000318] main private debug: waiting for thread completion
[00000318] main private debug: thread 3073846160 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000319] main private debug: looking for services_discovery module: 1 candidate
[00000319] main private debug: using services_discovery module "upnp_intel"
[00000319] main private debug: thread 3063356304 (services_discovery) created at priority 0 (playlist/services_discovery.c:72)
[00000321] main interface debug: looking for interface module: 1 candidate
[00000321] http interface debug: using charset=UTF-8
[00000321] http interface debug: base 127.0.0.1:8080
[00000321] main interface: creating httpd
[00000321] main interface debug: net: listening to 127.0.0.1 port 8080
[00000324] main http server debug: creating statistics handler
[00000324] main http server debug: thread 3042376592 (httpd host thread) created at priority 0 (network/httpd.c:1078)
[00000321] http interface debug: dir=/usr/share/vlc/http
[00000321] main interface debug: find .hosts in dir=/usr/share/vlc/http/.hosts
[00000321] main interface debug: restricted to ::1
[00000321] main interface debug: restricted to 127.0.0.1
[00000321] main interface debug: restricted to ::/0
[00000321] main interface debug: restricted to 0.0.0.0/0
[00000321] http interface debug: dir=/usr/share/vlc/http/js
[00000321] http interface debug: file=/usr/share/vlc/http/js/vlm.js (url=/js/vlm.js)
[00000321] http interface debug: file=/usr/share/vlc/http/js/functions.js (url=/js/functions.js)
[00000321] http interface debug: file=/usr/share/vlc/http/js/mosaic.js (url=/js/mosaic.js)
[00000321] http interface debug: file=/usr/share/vlc/http/vlm_export.html (url=/vlm_export.html)
[00000321] http interface debug: file=/usr/share/vlc/http/mosaic.html (url=/mosaic.html)
[00000321] http interface debug: file=/usr/share/vlc/http/vlm.html (url=/vlm.html)
[00000321] http interface debug: file=/usr/share/vlc/http/index.html (url=/)
[00000321] http interface debug: redir= -> /
[00000321] http interface debug: redir=/index.html -> /
[00000321] http interface debug: file=/usr/share/vlc/http/style.css (url=/style.css)
[00000321] http interface debug: file=/usr/share/vlc/http/iehacks.css (url=/iehacks.css)
[00000321] http interface debug: file=/usr/share/vlc/http/favicon.ico (url=/favicon.ico)
[00000321] http interface debug: dir=/usr/share/vlc/http/dialogs
[00000321] main interface debug: find .hosts in dir=/usr/share/vlc/http/dialogs/.hosts
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/mosaic (url=/dialogs/mosaic)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/vlm (url=/dialogs/vlm)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/browse (url=/dialogs/browse)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/main (url=/dialogs/main)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/sout (url=/dialogs/sout)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/footer (url=/dialogs/footer)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/input (url=/dialogs/input)
[00000321] http interface debug: file=/usr/share/vlc/http/dialogs/playlist (url=/dialogs/playlist)
[00000321] http interface debug: dir=/usr/share/vlc/http/requests
[00000321] http interface debug: file=/usr/share/vlc/http/requests/readme (url=/requests/readme)
[00000321] http interface debug: file=/usr/share/vlc/http/requests/vlm.xml (url=/requests/vlm.xml)
[00000321] http interface debug: file=/usr/share/vlc/http/requests/vlm_cmd.xml (url=/requests/vlm_cmd.xml)
[00000321] http interface debug: file=/usr/share/vlc/http/requests/status.xml (url=/requests/status.xml)
[00000321] http interface debug: file=/usr/share/vlc/http/requests/playlist.xml (url=/requests/playlist.xml)
[00000321] http interface debug: file=/usr/share/vlc/http/requests/browse.xml (url=/requests/browse.xml)
[00000321] http interface debug: dir=/usr/share/vlc/http/images
[00000321] http interface debug: file=/usr/share/vlc/http/images/white_cross_small.png (url=/images/white_cross_small.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/empty.png (url=/images/empty.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/playlist.png (url=/images/playlist.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/plus.png (url=/images/plus.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/fullscreen.png (url=/images/fullscreen.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/delete.png (url=/images/delete.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/volume_up.png (url=/images/volume_up.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/slow.png (url=/images/slow.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/prev.png (url=/images/prev.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/slider_point.png (url=/images/slider_point.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/snapshot.png (url=/images/snapshot.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/speaker.png (url=/images/speaker.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/volume_down.png (url=/images/volume_down.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/repeat.png (url=/images/repeat.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/sd.png (url=/images/sd.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/delete_small.png (url=/images/delete_small.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/shuffle.png (url=/images/shuffle.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/help.png (url=/images/help.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/speaker_mute.png (url=/images/speaker_mute.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/next.png (url=/images/next.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/sout.png (url=/images/sout.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/info.png (url=/images/info.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/loop.png (url=/images/loop.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/eject.png (url=/images/eject.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/white.png (url=/images/white.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/slider_left.png (url=/images/slider_left.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/minus.png (url=/images/minus.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/slider_right.png (url=/images/slider_right.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/slider_bar.png (url=/images/slider_bar.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/sort.png (url=/images/sort.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/playlist_small.png (url=/images/playlist_small.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/stop.png (url=/images/stop.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/refresh.png (url=/images/refresh.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/play.png (url=/images/play.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/vlc16x16.png (url=/images/vlc16x16.png)
[00000321] http interface debug: file=/usr/share/vlc/http/images/pause.png (url=/images/pause.png)
[00000321] http interface debug: dir=/usr/share/vlc/http/old
[00000321] main interface debug: find .hosts in dir=/usr/share/vlc/http/old/.hosts
[00000321] main interface debug: restricted to ::1
[00000321] main interface debug: restricted to 127.0.0.1
[00000321] main interface debug: restricted to ::/0
[00000321] main interface debug: restricted to 0.0.0.0/0
[00000321] http interface debug: file=/usr/share/vlc/http/old/info.html (url=/old/info.html)
[00000321] http interface debug: file=/usr/share/vlc/http/old/index.html (url=/old/)
[00000321] http interface debug: redir=/old -> /old/
[00000321] http interface debug: redir=/old/index.html -> /old/
[00000321] http interface debug: file=/usr/share/vlc/http/old/style.css (url=/old/style.css)
[00000321] http interface debug: dir=/usr/share/vlc/http/old/vlm
[00000321] http interface debug: file=/usr/share/vlc/http/old/vlm/index.html (url=/old/vlm/)
[00000321] http interface debug: redir=/old/vlm -> /old/vlm/
[00000321] http interface debug: redir=/old/vlm/index.html -> /old/vlm/
[00000321] http interface debug: file=/usr/share/vlc/http/old/vlm/new.html (url=/old/vlm/new.html)
[00000321] http interface debug: file=/usr/share/vlc/http/old/vlm/edit.html (url=/old/vlm/edit.html)
[00000321] http interface debug: file=/usr/share/vlc/http/old/vlm/show.html (url=/old/vlm/show.html)
[00000321] http interface debug: dir=/usr/share/vlc/http/old/admin
[00000321] http interface debug: find .access in dir=/usr/share/vlc/http/old/admin
[00000321] http interface debug: using user=admin password=admin (read=11)
[00000321] http interface debug: file=/usr/share/vlc/http/old/admin/dboxfiles.html (url=/old/admin/dboxfiles.html)
[00000321] http interface debug: file=/usr/share/vlc/http/old/admin/index.html (url=/old/admin/)
[00000321] http interface debug: redir=/old/admin -> /old/admin/
[00000321] http interface debug: redir=/old/admin/index.html -> /old/admin/
[00000321] http interface debug: file=/usr/share/vlc/http/old/admin/browse.html (url=/old/admin/browse.html)
[00000321] http interface debug: file=/usr/share/vlc/http/old/webcam.html (url=/old/webcam.html)
[00000321] http interface debug: file=/usr/share/vlc/http/old/cone_plus.png (url=/old/cone_plus.png)
[00000321] http interface debug: file=/usr/share/vlc/http/old/cone_minus.png (url=/old/cone_minus.png)
[00000321] main interface debug: using interface module "http"
[00000321] main interface debug: thread 3021396880 (interface) created at priority 0 (interface/interface.c:231)
[00000326] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[00000326] main interface debug: using interface module "rc"
[00000326] main interface debug: thread 2989927312 (interface) created at priority 0 (interface/interface.c:231)
[00000328] main interface debug: looking for interface module: 1 candidate
[00000319] upnp_intel private debug: Adding server 'MediaTomb'
[00000328] main interface debug: using interface module "wxwidgets"
[00000328] main interface debug: thread 2937396112 (interface) created at priority 0 (interface/interface.c:231)
[00000331] main interface debug: looking for interface module: 1 candidate
[00000331] main interface debug: using interface module "hotkeys"
[00000331] main interface debug: thread 2926906256 (interface) created at priority 0 (interface/interface.c:231)
[00000333] main interface debug: looking for interface module: 1 candidate
[00000333] main interface debug: using interface module "screensaver"
[00000328] wxwidgets interface debug: Using last windows config '(-1,0,0,1280,1024)(0,292,154,439,80)(6,0,0,-1,150)'
[00000328] wxwidgets interface debug: id=0 p=(292,154) s=(439,80)
[00000328] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150)
[00000333] main interface debug: thread 2916416400 (interface) created at priority 0 (interface/interface.c:231)
[00000335] main interface debug: looking for interface module: 1 candidate
[00000335] logger interface: using logger...
[00000335] logger interface warning: no log filename provided, using `vlc-log.txt'
[00000335] logger interface debug: opening logfile `vlc-log.txt'
[00000335] main interface debug: using interface module "logger"
[00000335] main interface debug: thread 2905926544 (interface) created at priority 0 (interface/interface.c:231)
[00000337] main interface debug: looking for interface module: 6 candidates
[00000337] main interface: creating VLM
[00000339] main vlm debug: thread 2895043472 (vlm thread) created at priority 0 (misc/vlm.c:105)
[00000337] telnet interface: using the VLM interface plugin...
[00000337] main interface debug: net: listening to 127.0.0.1 port 4212
[00000337] telnet interface: telnet interface started on interface 127.0.0.1 4212
[00000337] main interface debug: using interface module "telnet"
[00000337] main interface debug: thread 2884553616 (manager) created at priority 0 (interface/interface.c:216)
[00000319] upnp_intel private debug: UPnP discovery started
[00000319] upnp_intel private debug: upnp_intel.cpp:486: DEBUG: UNHANDLED EVENT ( TYPE=7 )
Il faut ouvrir une autre session dans le terminal et taper :
telnet 127.0.0.1 4212
Résultat :
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Password:
Welcome, Master
>
Voici les paramètres a entrée en telnet :
> new Divx1 vod enabled setup Divx1 input "/home/LOOPING/Download/Jeunes Bourgeoises - Recto Verso.avi"
> new Divx2 vod enabled setup Divx2 input "/home/LOOPING/Download/8 Infirmieres Par Derriere.avi"
> new Divx3 vod enabled setup Divx3 input "/home/LOOPING/Download/Mission Cuisses Ouvertes.avi"
Coté Client avec Vlc ouvrir un flux réseau : rstp://192.168.0.250:5554/Divx1
---------------------------------------------------------------------------
Kwizart wrote:Pour activer la playlist pour faire de la VoD
Editer dans ~/.vlc/vlcrc
#m3u-extvlcopt=1