Help in streaming setup... http access not working

About encoding, codec settings, muxers and filter usage
rkleemann
Blank Cone
Blank Cone
Posts: 68
Joined: 08 Sep 2004 16:51

Help in streaming setup... http access not working

Postby rkleemann » 21 Jul 2006 06:27

Hi,

I'm running some tests to get VLC working. I'm playing a CD on my windows desktop, and streaming out to a server via udp.

On the server (linux), I'm accessing the udp stream and then making it available over http on port 8080.

On the windows side I'm playing the CD with these settings:

:sout=#transcode{acodec=mp3,ab=32,channels=2}:duplicate{dst=std{access=udp,mux=ts,dst=<ip>:1234}}

Then on the linux server, I do this:

vlc -vvv udp://@192.168.1.247:1234 --sout '#standard{access=http,mux=ogg,dst=server3:8080}'

Then, to pick up the http stream I do the following:

vlc -vvv http://server3:8080

Here's my output from the server:

VLC media player 0.8.4a Janus
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.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 /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 214 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module: 4 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000268] main playlist debug: waiting for thread completion
[00000268] main playlist debug: thread 27024304 (playlist) created at priority 0 (src/playlist/playlist.c:183)
[00000269] main private debug: waiting for thread completion
[00000269] main private debug: thread 83434416 (preparser) created at priority 0 (src/playlist/playlist.c:205)
[00000270] main interface debug: looking for interface module: 1 candidate
[00000125] main module debug: using interface module "hotkeys"
[00000270] main interface debug: interface initialized
[00000270] main interface debug: thread 37514160 (interface) created at priority 0 (src/interface/interface.c:211)
[00000272] main interface debug: looking for interface module: 6 candidates
[00000194] main module debug: using interface module "screensaver"
[00000272] main interface debug: interface initialized
[00000272] main interface debug: thread 48004016 (interface) created at priority 0 (src/interface/interface.c:211)
[00000268] main playlist debug: adding playlist item `udp://@192.168.1.247:1234' ( udp://@192.168.1.247:1234 )
[00000274] main interface debug: looking for interface module: 5 candidates
[00000274] skins2 interface error: Cannot open display
[00000274] skins2 interface error: Cannot initialize OSFactory
Remote control interface initialized, `h' for help
[00000129] main module debug: using interface module "rc"
[00000274] main interface debug: interface initialized
[00000274] main interface debug: thread 127105968 (manager) created at priority 0 (src/interface/interface.c:196)
[00000268] main playlist debug: creating new input thread
[00000278] main input debug: waiting for thread completion
[00000278] main input debug: thread 59476912 (input) created at priority 0 (src/input/input.c:230)
[00000279] main stream output debug: stream=`standard'
[00000280] main private debug: looking for sout stream module: 1 candidate
[00000280] main private debug: set sout option: sout-standard-access to http
[00000280] main private debug: set sout option: sout-standard-mux to ogg
[00000280] main private debug: set sout option: sout-standard-dst to server3:8080
[00000280] stream_out_standard private debug: creating `http/ogg://server3:8080'
[00000280] stream_out_standard private debug: using `http/ogg://server3:8080'
[00000282] main private debug: looking for sout access module: 1 candidate
[00000282] main private: creating httpd
[00000282] main private debug: net: listening to server3 port 8080
[00000285] main private debug: thread 112827312 (httpd host thread) created at priority 0 (src/misc/httpd.c:1189)
[00000048] main module debug: using sout access module "access_output_http"
[00000280] stream_out_standard private debug: access opened
[00000286] main private debug: looking for sout mux module: 1 candidate
[00000286] mux_ogg private: Open
[00000204] main module debug: using sout mux module "mux_ogg"
[00000279] main stream output debug: muxer support adding stream at any time
[00000279] main stream output debug: muxer prefers waiting for all ES before starting muxing
[00000280] stream_out_standard private debug: mux opened
[00000227] main module debug: using sout stream module "stream_out_standard"
[00000278] main input debug: `udp://@192.168.1.247:1234' gives access `udp' demux `' path `@192.168.1.247:1234'
[00000278] main input debug: creating demux: access='udp' demux='' path='@192.168.1.247:1234'
[00000288] main demuxer debug: looking for access_demux module: 0 candidates
[00000288] main demuxer warning: no access_demux module matched "udp"
[00000278] main input debug: creating access 'udp' path='@192.168.1.247:1234'
[00000289] main access debug: looking for access2 module: 6 candidates
[00000289] access_udp access debug: opening server=:0 local=192.168.1.247:1234
[00000289] main access debug: net: connecting to '[]:0@[192.168.1.247]:1234'
[00000289] main access debug: looking for network module: 1 candidate
[00000289] ipv6 access debug: 192.168.1.247: Address family for hostname not supported
[00000191] main module debug: using network module "ipv6"
[00000191] main module debug: unlocking module "ipv6"
[00000289] main access debug: looking for network module: 1 candidate
[00000190] main module debug: using network module "ipv4"
[00000190] main module debug: unlocking module "ipv4"
[00000035] main module debug: using access2 module "access_udp"
[00000293] main private debug: pre buffering
status change: ( New input: udp://@192.168.1.247:1234 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )


And the output when accessing http stream:

VLC media player 0.8.4a Janus
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.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 /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 214 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module: 4 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000268] main playlist debug: waiting for thread completion
[00000268] main playlist debug: thread 26893232 (playlist) created at priority 0 (src/playlist/playlist.c:183)
[00000269] main private debug: waiting for thread completion
[00000269] main private debug: thread 37383088 (preparser) created at priority 0 (src/playlist/playlist.c:205)
[00000270] main interface debug: looking for interface module: 1 candidate
[00000125] main module debug: using interface module "hotkeys"
[00000270] main interface debug: interface initialized
[00000270] main interface debug: thread 85539760 (interface) created at priority 0 (src/interface/interface.c:211)
[00000272] main interface debug: looking for interface module: 6 candidates
[00000194] main module debug: using interface module "screensaver"
[00000272] main interface debug: interface initialized
[00000272] main interface debug: thread 47872944 (interface) created at priority 0 (src/interface/interface.c:211)
[00000268] main playlist debug: adding playlist item `http://server3:8080' ( http://server3:8080 )
[00000274] main interface debug: looking for interface module: 5 candidates
[00000274] skins2 interface error: Cannot open display
[00000274] skins2 interface error: Cannot initialize OSFactory
Remote control interface initialized, `h' for help
[00000129] main module debug: using interface module "rc"
[00000274] main interface debug: interface initialized
[00000274] main interface debug: thread 58362800 (manager) created at priority 0 (src/interface/interface.c:196)
[00000268] main playlist debug: creating new input thread
[00000278] main input debug: waiting for thread completion
[00000278] main input debug: thread 68852656 (input) created at priority 0 (src/input/input.c:230)
[00000278] main input debug: `http://server3:8080' gives access `http' demux `' path `server3:8080'
[00000278] main input debug: creating demux: access='http' demux='' path='server3:8080'
[00000279] main demuxer debug: looking for access_demux module: 0 candidates
[00000279] main demuxer warning: no access_demux module matched "http"
[00000278] main input debug: creating access 'http' path='server3:8080'
[00000280] main access debug: looking for access2 module: 7 candidates
[00000280] access_http access debug: http: server='server3' port=8080 file='(null)
[00000280] main access debug: net: connecting to server3 port 8080
[00000280] main access debug: connection in progress
status change: ( New input: http://server3:8080 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000280] access_http access debug: protocol 'HTTP' answer code 200
[00000280] access_http access debug: Content-Type: application/octet-stream
[00000031] main module debug: using access2 module "access_http"
[00000282] main private debug: pre buffering
[00000282] main private error: cannot pre fill buffer
[00000278] main input warning: cannot create a stream_t from access
[00000031] main module debug: unlocking module "access_http"
status change: ( stop state: 0 )
[00000278] main input debug: thread 68852656 joined (src/input/input.c:386)
[00000268] main playlist: nothing to play

rkleemann
Blank Cone
Blank Cone
Posts: 68
Joined: 08 Sep 2004 16:51

Postby rkleemann » 21 Jul 2006 06:29

BTW, "server3" is the same as 192.168.1.247

wlarsong
Blank Cone
Blank Cone
Posts: 38
Joined: 09 Aug 2005 16:53

Postby wlarsong » 21 Jul 2006 06:58

why are you using HTTP access, why not stick with UDP, if you need help on multicasting let me know, HTTP is a very bad protocol for for Audio and Video due to the overhead associated with it

rkleemann
Blank Cone
Blank Cone
Posts: 68
Joined: 08 Sep 2004 16:51

Postby rkleemann » 21 Jul 2006 15:30

why are you using HTTP access, why not stick with UDP, if you need help on multicasting let me know, HTTP is a very bad protocol for for Audio and Video due to the overhead associated with it
Thanks for the tip.

So what about MMS? If I want to access the stream via windows media player, how would I setup the --sout portion?

MikeInMass
New Cone
New Cone
Posts: 8
Joined: 21 Jul 2006 04:33
Location: Boston, USA

Postby MikeInMass » 21 Jul 2006 15:39

The following is working for me. Set your own bitrates, of course.

Code: Select all

vlc -vvv dshow:// :dshow-vdev="Hauppauge WinTV PVR PCI II Capture" :dshow-adev="none" :dshow-tuner-channel="51" :sout="#transcode{vcodec=DIV3,vb=320,vt=32,ab=32,scale=1,acodec=mp3,channels=1,deinterlace}:standard{access=mmsh,mux=asf,dst=:8080}"
And on the client side:

Code: Select all

vlc -vvv mmsh://192.168.1.100:8080
[/code]

rkleemann
Blank Cone
Blank Cone
Posts: 68
Joined: 08 Sep 2004 16:51

Postby rkleemann » 21 Jul 2006 16:17

Thanks.

So how would I access it via WMP?

I tried opening mmsh://<ip>:8080 from WMP and I get an error "Cannot play the file"

wlarsong
Blank Cone
Blank Cone
Posts: 38
Joined: 09 Aug 2005 16:53

Postby wlarsong » 21 Jul 2006 16:36

on windows media is mms:// not mmsh://


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 30 guests