[Linux] VLC Stream (http) van Linux naar Windows

Pagina: 1
Acties:
  • 183 views sinds 30-01-2008
  • Reageer

  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Hallo

Ik probeer een video met VLC vanaf een linux (Debian Sarge 3.1) machine naar een Windows XP machine te streamen via HTTP op poort 8080.

En wil de stream starten onder linux vanuit de console en dit is me tot nu toe nog niet gelukt. Echter heb ik op een andere testmachine Gnome geinstalleert toen een video geopend en laten streamen en deze kon ik perfect afspelen op de Windows machine. Ik moet dus eigenlijk weten welk commando de GUI geeft aan de console.

Zelf heb ik al geprobeerd:
code:
1
vlc -vvv blabla.avi --sout '#standard{access=http,mux=ogg,dst=:8080}'

Maar dit werkt niet. Als ik in de GUI (op de linux machine) het filmpje blabla.avi openen en de Stream Output aanzet en HTTP op poort 8080 kan ik hem op de Windows machine dus gewoon bekijken.

Iemand dus enig idee welk commando ik nodig heb op de console om gewoon een avi filmpje te streamen via HTTP op poort 8080.

Dit kreeg ik als output
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[rick@rickes:/hd2/torrent/rick]$ vlc -vvv Las.Vegas.S04E08.HDTV.XviD-LOL.avi --sout '#standard{access=http,mux=ogg,dst=:9131}'
VLC media player 0.8.5 Janus
[00000001] main vlc debug: opening config file /home/rick/.vlc/vlcrc
[00000001] main vlc warning: config file /home/rick/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/rick/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 175 modules
[00000001] main vlc debug: opening config file /home/rick/.vlc/vlcrc
[00000001] main vlc warning: config file /home/rick/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 3 candidates
[00000001] main vlc debug: using memcpy module "memcpymmxext"
[00000223] main playlist debug: waiting for thread completion
[00000223] main playlist debug: thread 1085074352 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000224] main private debug: waiting for thread completion
[00000224] main private debug: thread 1093462960 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000225] main interface debug: looking for interface module: 1 candidate
[00000225] main interface debug: using interface module "hotkeys"
[00000225] main interface debug: thread 1101876144 (interface) created at priority 0 (interface/interface.c:231)
[00000223] main playlist debug: adding playlist item `Las.Vegas.S04E08.HDTV.XviD-LOL.avi' ( Las.Vegas.S04E08.HDTV.XviD-LOL.avi )
[00000227] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[00000227] main interface debug: using interface module "rc"
[00000227] main interface debug: thread 1110318000 (manager) created at priority 0 (interface/interface.c:216)
[00000223] main playlist debug: creating new input thread
[00000229] main input debug: waiting for thread completion
[00000229] main input debug: thread 1118706608 (input) created at priority 0 (input/input.c:261)
[00000229] main input debug: creating statistics handler
[00000231] main stream output debug: stream=`standard'
[00000232] main private debug: looking for sout stream module: 1 candidate
[00000232] main private debug: set sout option: sout-standard-access to http
[00000232] main private debug: set sout option: sout-standard-mux to ogg
[00000232] main private debug: set sout option: sout-standard-dst to :9131
[00000232] stream_out_standard private debug: creating `http/ogg://:9131'
[00000232] stream_out_standard private debug: using `http/ogg://:9131'
[00000234] main private debug: looking for sout access module: 1 candidate
[00000234] main private: creating httpd
[00000234] main private debug: net: listening to  port 9131
[00000237] main http server debug: thread 1127123888 (httpd host thread) created at priority 0 (network/httpd.c:1076)
[00000234] main private debug: using sout access module "access_output_http"
[00000232] stream_out_standard private debug: access opened
[00000238] main private debug: looking for sout mux module: 0 candidates
[00000238] main private error: no sout mux module matched "ogg"
[00000232] stream_out_standard private error: no suitable sout mux module for `http/ogg://:9131'
status change: ( new input: Las.Vegas.S04E08.HDTV.XviD-LOL.avi )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000237] main http server debug: thread 1127123888 joined (network/httpd.c:1132)
[00000237] main http server debug: HTTP host removed
[00000236] main http server debug: no host left, stopping httpd
[00000234] access_output_http private debug: Close
[00000234] main private debug: removing module "access_output_http"
[00000232] main private warning: no sout stream module matching "standard" could be loaded
[00000232] main private debug: destroying chain... (name=standard)
[00000232] main private debug: destroying chain done
[00000231] main stream output error: stream chain failed for `standard{access=http,mux=ogg,dst=:9131}'
[00000229] main input error: cannot start stream output instance, aborting
[00000229] main input debug: thread 1118706608 joined (input/input.c:399)
status change: ( stop state: 0 )
[00000223] main playlist: nothing to play

[ Voor 72% gewijzigd door Rickes op 05-01-2007 02:20 ]


  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 16-02 11:13

voodooless

Sound is no voodoo!

Do diamonds shine on the dark side of the moon :?


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Al gezien.
HTTP streaming

Stream in HTTP:

* on the server, run:

% vlc -vvv input_stream --sout '#standard{access=http,mux=ogg,dst=server.example.org:8080}'
Precies wat ik gedaan heb

  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 16-02 11:13

voodooless

Sound is no voodoo!

en andere streaming opties?

Do diamonds shine on the dark side of the moon :?


  • burne
  • Registratie: Maart 2000
  • Niet online

burne

Mine! Waah!

Jouw regel en de voorbeelden wijken op één cruciaal punt af. Zie je ook waar?

I don't like facts. They have a liberal bias.


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
burne schreef op vrijdag 05 januari 2007 @ 02:26:
[...]


Jouw regel en de voorbeelden wijken op één cruciaal punt af. Zie je ook waar?
Die enter bedoel ? Ja dat is komt door de quote

  • burne
  • Registratie: Maart 2000
  • Niet online

burne

Mine! Waah!

Rickes schreef op vrijdag 05 januari 2007 @ 02:28:
Die enter bedoel ? Ja dat is komt door de quote
Je ziet het dus echt niet. De voorbeelden vertellen je dat je een ip-address:poort op moet geven. Jij geeft een :poort op.

--sout '#standard{access=http,mux=ogg,dst=:8080}'
--sout '#standard{access=http,mux=ogg,dst=192.168.0.10:8080}'

waarbij 192.168.0.10 dus het ip van je debian-machine moet zijn.

I don't like facts. They have a liberal bias.


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Nou. Heb nu een IP ingevuld en ook met domein geprobeerd en bijde hielp niet.

code:
1
vlc -vvv file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi --sout '#standard{access=http,mux=ogg,dst=rickes.nl:8080}'


Zelfs andere poort geprobeerd
code:
1
vlc -vvv file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi --sout '#standard{access=http,mux=ogg,dst=192.168.3.1:8085}'


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 3 candidates
[00000001] main vlc debug: using memcpy module "memcpymmxext"
[00000223] main playlist debug: waiting for thread completion
[00000223] main playlist debug: thread 1085074352 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000224] main private debug: waiting for thread completion
[00000224] main private debug: thread 1093462960 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000225] main interface debug: looking for interface module: 1 candidate
[00000225] main interface debug: using interface module "hotkeys"
[00000225] main interface debug: thread 1101876144 (interface) created at priority 0 (interface/interface.c:231)
[00000223] main playlist debug: adding playlist item `file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi' ( file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi )
[00000227] main interface debug: looking for interface module: 1 candidate
Remote control interface initialized. Type `help' for help.
[00000227] main interface debug: using interface module "rc"
[00000227] main interface debug: thread 1110318000 (manager) created at priority 0 (interface/interface.c:216)
[00000223] main playlist debug: creating new input thread
[00000229] main input debug: waiting for thread completion
[00000229] main input debug: thread 1118706608 (input) created at priority 0 (input/input.c:261)
[00000229] main input debug: creating statistics handler
[00000231] main stream output debug: stream=`standard'
[00000232] main private debug: looking for sout stream module: 1 candidate
[00000232] main private debug: set sout option: sout-standard-access to http
[00000232] main private debug: set sout option: sout-standard-mux to ogg
[00000232] main private debug: set sout option: sout-standard-dst to rickes.nl:8080
[00000232] stream_out_standard private debug: creating `http/ogg://rickes.nl:8080'
[00000232] stream_out_standard private debug: extension is nl:8080
[00000232] stream_out_standard private debug: extension -> mux=(null)
[00000232] stream_out_standard private debug: using `http/ogg://rickes.nl:8080'
[00000234] main private debug: looking for sout access module: 1 candidate
[00000234] main private: creating httpd
[00000234] main private debug: net: listening to rickes.nl port 8080
[00000237] main http server debug: thread 1127123888 (httpd host thread) created at priority 0 (network/httpd.c:1076)
[00000234] main private debug: using sout access module "access_output_http"
[00000232] stream_out_standard private debug: access opened
[00000238] main private debug: looking for sout mux module: 0 candidates
[00000238] main private error: no sout mux module matched "ogg"
[00000232] stream_out_standard private error: no suitable sout mux module for `http/ogg://rickes.nl:8080'
status change: ( new input: file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000237] main http server debug: thread 1127123888 joined (network/httpd.c:1132)
[00000237] main http server debug: HTTP host removed
[00000236] main http server debug: no host left, stopping httpd
[00000234] access_output_http private debug: Close
[00000234] main private debug: removing module "access_output_http"
[00000232] main private warning: no sout stream module matching "standard" could be loaded
[00000232] main private debug: destroying chain... (name=standard)
[00000232] main private debug: destroying chain done
[00000231] main stream output error: stream chain failed for `standard{access=http,mux=ogg,dst=rickes.nl:8080}'
[00000229] main input error: cannot start stream output instance, aborting
[00000229] main input debug: thread 1118706608 joined (input/input.c:399)
status change: ( stop state: 0 )
[00000223] main playlist: nothing to play

[ Voor 3% gewijzigd door Rickes op 05-01-2007 02:57 ]


  • burne
  • Registratie: Maart 2000
  • Niet online

burne

Mine! Waah!

Goed. Nu luistert 'ie naar een poort:

[00000234] main private: creating httpd
[00000234] main private debug: net: listening to rickes.nl port 8080

maar struikelt over ogg:

[00000238] main private error: no sout mux module matched "ogg"

zodra 'ie de pipe voor het voeren van de socket opzet. Probeer:

-sout '#standard{access=http,mux=avi,dst=rickes.nl:8080}'

eens. Het helpt trouwens als je de foutmeldingen leest. Die vertellen je wat er fout gaat en waarom.

[ Voor 10% gewijzigd door burne op 05-01-2007 03:30 ]

I don't like facts. They have a liberal bias.


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Oke nu met avi geprobeerd en precies dezelfde errors als toen het ogg was. Alleen staat er dan overal avi.

Heb net even wat zitten proberen. Heb van die wiki het voorbeeld genomen voor WMP en dus de mms(h) voor. Hierbij werkt het wel en kan ik gewoon via windows media player en winamp de stream openen alleen opent de stream dan niet in de VLC player en dat is juist precies wat ik wil.

code:
1
vlc -vvv file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi --sout '#transcode{vcodec=DIV3,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:std{access=mmsh,mux=asfh,dst=:8080}'

  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 16-02 11:13

voodooless

Sound is no voodoo!

Nu transcodeer je eerst ze zaak, dan ben je ook van je ogg af, als je nu mux op avi zet, gaat het dan nog steeds mis?

Do diamonds shine on the dark side of the moon :?


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Nee dan opent hij niks.. wat is vlc toch een drama.

Nu opent hij zelfs niet meer met het commando dat ik gisteren gebruikte. en heb verder niks veranderd.
Mensen die VLC wel normaal werkend hebben op de manier zoals ik wil laat even weten welk commando je gebruikt. Dit is echt een waar drama

[ Voor 71% gewijzigd door Rickes op 05-01-2007 14:06 ]


  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 16-02 11:13

voodooless

Sound is no voodoo!

VLC zelf is geen drama, je hebt het gewoon nog niet helemaal doorgrond :)

Daarnaast: vind maar eens een beter proggie... VLC is gewoon erg goed in dit spul.

Hou ook ff rekening met deze tabellen: http://www.videolan.org/streaming-features.html en check de docs: http://www.videolan.org/d...n/streaming-howto-en.html

Do diamonds shine on the dark side of the moon :?


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
VLC werkt wel gewoon goed want als ik vanaf m'n test-linux bak via GNOME VLC open krijg ik dus gewoon de player te zien en als ik daar die file open en streaming aanzet via HTTP werkt het perfect en kan ik de stream gelijk openen op m'n windows machine. Dus dat is het punt niet.

Ik moet alleen weten welk commando de VLC Player (de GUI dus) aan de commandline geeft om de video te laten streamen. Als ik dat weet is het appeltje eitje.

  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 16-02 11:13

voodooless

Sound is no voodoo!

Al eens geprobeerd om letterlijk de sout settings van de GUI over te nemen?

Do diamonds shine on the dark side of the moon :?


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Jup al meerdere malen en dan krijg ik ook weer hetzelfde verhaal.. Nothing to play..

Heb VLC met apt-get geremoved en ben hem nu met de hand aan het compilen dan heb ik meteen de laatste versie. In het debian repository zit een wat verouderde versie.

[ Voor 50% gewijzigd door Rickes op 05-01-2007 14:37 ]


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
Eindelijk het werkt :)
code:
1
vlc -vvv file://Las.Vegas.S04E08.HDTV.XviD-LOL.avi --sout '#standard{access=http,mux=ogg,dst=:8085}'


Eigenlijk sinds dat ik de nieuwe 0.85a versie zelf heb gecompiled in plaats van de verouderde versie uit het debian repository

  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 16-02 11:13

voodooless

Sound is no voodoo!

Tja, ouwe meuk... Heeft Debian een handje van :+

Btw heb je nog steeds niet de nieuwste versie, want die is 0.8.6a :P

Do diamonds shine on the dark side of the moon :?


  • Rickes
  • Registratie: December 2003
  • Laatst online: 08-02 00:13
voodooless schreef op vrijdag 05 januari 2007 @ 16:15:
Tja, ouwe meuk... Heeft Debian een handje van :+

Btw heb je nog steeds niet de nieuwste versie, want die is 0.8.6a :P
Nu je het zegt, ik heb verkeerd gelezen heb wel de nieuwste ;)
code:
1
2
3
4
5
6
7
8
[rick@rickes:~]$ vlc -v
VLC media player 0.8.6a Janus
[00000001] main private warning: config file /home/rick/.vlc/vlcrc does not exist yet
Remote control interface initialized. Type `help' for help.
signal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
[rick@rickes:~]$


Bedankt voor de hulp :*)

Het is opgelost. Mag een slotje op :)

[ Voor 3% gewijzigd door Rickes op 05-01-2007 16:26 ]

Pagina: 1