wanna play stream from WMS(multicast)

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
fantry
Blank Cone
Blank Cone
Posts: 18
Joined: 25 Jun 2006 07:22

wanna play stream from WMS(multicast)

Postby fantry » 17 Sep 2006 08:15

i have got the .nsc file and the vlc give the result below when i drag the .nsc file into the vlc player:
main debug: thread 4996 (input) created at priority 1 (input/input.c:261)
main warning: drive letter C: found in source
main debug: `C:\Documents and Settings\scot\桌面\test2.nsc' gives access `' demux `' path `C:\Documents and Settings\scot\桌面\test2.nsc'
main debug: creating demux: access='' demux='' path='C:\Documents and Settings\scot\桌面\test2.nsc'
main debug: looking for access_demux module: 1 candidate
dvdnav warning: cannot open dvdnav
main debug: creating access '' path='C:\Documents and Settings\scot\桌面\test2.nsc'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: C:\Documents and Settings\scot\桌面\test2.cue
access_file debug: opening file `C:\Documents and Settings\scot\桌面\test2.nsc'
main debug: using access2 module "access_file"
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: creating demux: access='' demux='' path='C:\Documents and Settings\scot\桌面\test2.nsc'
main debug: looking for demux2 module: 44 candidates
ts warning: TS module discarded (lost sync)
ffmpeg debug: couldn't guess format
main debug: using demux2 module "nsc"
main debug: looking for a subtitle file in C:\Documents and Settings\scot\桌面\
main debug: `C:\Documents and Settings\scot\桌面\test2.nsc' successfully opened
nsc debug: Name = TGP , test2
nsc debug: NSC Format Version = 3.0
nsc debug: Multicast Adapter = 10.214.40.11
nsc debug: IP Address = 239.192.59.94
nsc debug: IP Port = 21072
nsc debug: Time To Live = 32
nsc debug: Default Ecc = 10
nsc debug: Log URL =
nsc debug: Unicast URL =
nsc debug: Allow Splitting = 1
nsc debug: Allow Caching = 1
nsc debug: Cache Expiration Time = 86400
nsc debug: Format1 = asf header
main debug: EOF reached
main debug: closing input
main debug: removing module "nsc"
main debug: removing module "access_file"
main debug: thread times: real 0m0.125000s, kernel 0m0.015625s, user 0m0.000000s
main debug: thread 4996 joined (input/input.c:399)
main warning: unable to find parent!
main: nothing to play



and i want to use these information to receive stream from the WMS
but i don't know the exact steps in which the client get stream from the server.
the below list what i interpretion :
1.mms use tcp protocol to communicate with the server to get some info about the stream and the exchange some control infomation .(in this example ,it will use the ip"10.214.40.11"
2.then the client use the the udp protocol to thansport the media data (use the multicast ip "239.192.59.94").

are these steps right ?
thanks in advance.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 17 Sep 2006 17:39

I don't know if anyone has already managed to listen to a WMS multicast stream with VLC. Try "vlc udp://@<multicast ip address>:<port number>"
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fantry
Blank Cone
Blank Cone
Posts: 18
Joined: 25 Jun 2006 07:22

Postby fantry » 18 Sep 2006 05:10

really appreciate your reply.i tried what you said.
it give the info below:
main debug: adding playlist item `udp://@[udp://239.192.59.94]:21072' ( udp://@[udp://239.192.59.94]:21072 )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 3948 (input) created at priority 1 (input/input.c:261)
main debug: `udp://@[udp://239.192.59.94]:21072' gives access `udp' demux `' path `@[udp://239.192.59.94]:21072'
main debug: creating demux: access='udp' demux='' path='@[udp://239.192.59.94]:21072'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "udp"
main debug: creating access 'udp' path='@[udp://239.192.59.94]:21072'
main debug: looking for access2 module: 6 candidates
access_udp debug: opening server=:0 local=[udp://239.192.59.94]:21072
main debug: net: connecting to '[]:0@[[udp://239.192.59.94]]:21072'
main debug: looking for network module: 1 candidate
ipv6 debug: [udp://239.192.59.94]: Host or service not found
main debug: using network module "ipv6"
main debug: removing module "ipv6"
main debug: looking for network module: 1 candidate
ipv4 debug: resolving [udp://239.192.59.94]:21072...
ipv4 warning: [udp://239.192.59.94]: Host or service not found
ipv4 debug: could not build local address
main debug: using network module "ipv4"
main debug: removing module "ipv4"
main debug: net: connection to '[]:0@[[udp://239.192.59.94]]:21072' failed
access_udp error: cannot open socket
access_file warning: @[udp://239.192.59.94]:21072: No such file or directory
cdda debug: trying .cue file: @[udp://239.192.59.cue
cdda warning: could not open @[udp://239.192.59.94]:21072
main warning: no access2 module matching "udp" could be loaded
main error: no suitable access module for `udp://@[udp://239.192.59.94]:21072'
main debug: thread times: real 0m0.234375s, kernel 0m0.000000s, user 0m0.015625s
main debug: thread 3948 joined (input/input.c:399)
main: nothing to play


i think it can't get anything from the WMS.
perhaps the vlc need something about the stream from the WMS first,
then to take the stream data itself.
may i right.
i have digged into the source code ,but i can't find the right solution as i want to have stream from WMS.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 20 Sep 2006 00:08

Your input looks weird. It should be like udp://@239.255.1.2:1234
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fantry
Blank Cone
Blank Cone
Posts: 18
Joined: 25 Jun 2006 07:22

Postby fantry » 20 Sep 2006 05:10

o ,i really put the garbage input.
i change the input following your direction.and the vlc give the result below:
main debug: adding playlist item `udp://@239.192.59.94:21072' ( udp://@239.192.59.94:21072 )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 3652 (input) created at priority 1 (src/input/input.c:230)
main debug: `udp://@239.192.59.94:21072' gives access `udp' demux `' path `@239.192.59.94:21072'
main debug: creating demux: access='udp' demux='' path='@239.192.59.94:21072'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "udp"
main debug: creating access 'udp' path='@239.192.59.94:21072'
main debug: looking for access2 module: 6 candidates
access_udp debug: opening server=:0 local=239.192.59.94:21072
main debug: net: connecting to '[]:0@[239.192.59.94]:21072'
main debug: looking for network module: 1 candidate
ipv6 debug: 239.192.59.94: Host or service not found
main debug: using network module "ipv6"
main debug: unlocking module "ipv6"
main debug: looking for network module: 1 candidate
ipv4 debug: Winsock best interface is 262148
ipv4 debug: IP_ADD_MEMBERSHIP multicast request
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: no supported RTP header detected
main debug: creating demux: access='udp' demux='' path='@239.192.59.94:21072'
main debug: looking for demux2 module: 40 candidates
ffmpeg debug: couldn't guess format
ps warning: this does not look like an MPEG PS stream, continuing anyway
main debug: using demux2 module "ps"
access_udp warning: unimplemented query in control
main debug: `udp://@239.192.59.94:21072' successfully opened
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps debug: es id=0xff format unknown
ps warning: garbage at input, trying to resync...
ps warning: found sync code
ps warning: garbage at input, trying to resync...
ps warning: found sync code
main debug: selecting program id=0
main debug: looking for decoder module: 26 candidates
main debug: using decoder module "libmpeg2"
main debug: thread 3820 (decoder) created at priority 0 (src/input/decoder.c:159)
ps warning: garbage at input, trying to resync...
main debug: control type=1
ps warning: found sync code
ps warning: garbage at input, trying to resync...

and i am puzzled now,
it seems the vlc has got the stream but can't determine its type.
i am not sure whether the stream from WMS use the MMS protocol or not

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 20 Sep 2006 18:27

Ok, this looks good (well better). It looks like VLC is getting the data but doesn't know how to read it. Could you try something like:
udp/asf://@239.255.1.1:1234 ? (also try wmv,avi,ps,ts,mp4 instead of asf) If anyone of those works, i'll change the nsc demuxer to automatically use it. If none does work ... we'll have to experiment a bit more. (Using Wireshark to spy on the multicast traffic could be very helpfull)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fantry
Blank Cone
Blank Cone
Posts: 18
Joined: 25 Jun 2006 07:22

Postby fantry » 21 Sep 2006 03:49

i try it with asf format file .
the input is :
udp/asf://@239.192.59.94:21072
and the vlc give the result like this below:(forgive me not to do other format file since i don't have them):0

main debug: adding playlist item `udp/asf://@239.192.59.94:21072' ( udp/asf://@239.192.59.94:21072 )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 4272 (input) created at priority 1 (src/input/input.c:230)
main debug: `udp/asf://@239.192.59.94:21072' gives access `udp' demux `asf' path `@239.192.59.94:21072'
main debug: creating access 'udp' path='@239.192.59.94:21072'
main debug: looking for access2 module: 6 candidates
access_udp debug: opening server=:0 local=239.192.59.94:21072
main debug: net: connecting to '[]:0@[239.192.59.94]:21072'
main debug: looking for network module: 1 candidate
ipv6 debug: 239.192.59.94: Host or service not found
main debug: using network module "ipv6"
main debug: unlocking module "ipv6"
main debug: looking for network module: 1 candidate
ipv4 debug: Winsock best interface is 524292
ipv4 debug: IP_ADD_MEMBERSHIP multicast request
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: no supported RTP header detected
main debug: creating demux: access='udp' demux='asf' path='@239.192.59.94:21072'
main debug: looking for demux2 module: 1 candidate
main warning: no demux2 module matching "asf" could be loaded
main error: no suitable demux module for `udp/asf://@239.192.59.94:21072'
main debug: unlocking module "access_udp"
main debug: thread times: real 0m0.250000s, kernel 0m0.015625s, user 0m0.000000s
main debug: thread 4272 joined (src/input/input.c:386)
main: nothing to play

and i think i have to scratch my head with the source code and try to enable it with this input. i indeed appreciate if you can show me some way to how to do it.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 21 Sep 2006 22:44

just try the other formats :) ... what the server has doesn't really matter. This is trial and error :p

You might also want to try mmsu://@239.255.1.2:1234

If all that fails, a capture of the stream with Wireshark would be most helpfull (like 30seconds or so, including the connection)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fantry
Blank Cone
Blank Cone
Posts: 18
Joined: 25 Jun 2006 07:22

Postby fantry » 22 Sep 2006 08:09

input: mmsu://@239.192.59.94:21072
and the vlc gives the result i really hate:

main debug: adding playlist item `mmsu://@239.192.59.94:21072' ( mmsu://@239.192.59.94:21072 )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 3912 (input) created at priority 1 (src/input/input.c:230)
main debug: `mmsu://@239.192.59.94:21072' gives access `mmsu' demux `' path `@239.192.59.94:21072'
main debug: creating demux: access='mmsu' demux='' path='@239.192.59.94:21072'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "mmsu"
main debug: creating access 'mmsu' path='@239.192.59.94:21072'
main debug: looking for access2 module: 6 candidates
access_mms debug: waiting for connection...
main debug: net: connecting to 239.192.59.94 port 21072
main debug: connection in progress
main debug: connection timed out
access_mms error: failed to open a connection (tcp)
access_mms error: cannot connect to server
access_file warning: @239.192.59.94:21072: No such file or directory
cdda debug: trying .cue file: @239.192.59.cue
cdda warning: could not open @239.192.59.94:21072
main warning: no access2 module matching "mmsu" could be loaded
main error: no suitable access module for `mmsu://@239.192.59.94:21072'
main debug: thread times: real 0m5.578125s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 3912 joined (src/input/input.c:386)
main: nothing to play

i think the only way to solve this is to dig into the source code of vlc .
anything else will do no help.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 23 Sep 2006 13:41

Ok, seems like "The DJ" (another VLC dev) already tried getting this to work. The nsc file embeds an ASF header which VLC doesn't use yet. Understing how to use it will most likely make windows media server multicast streams watchable with VLC. Unfortunately i don't have a clue about how that can be done, nor do i have a WMS to test with.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests