[vlc-devel] Re: bug - vlc 0.8.2 stream and WMP8

Marian Vaginger lists at phacka.sk
Tue Nov 23 13:15:27 CET 2004


hi,
i've hacked vlc source to return 'HTTP/1.0 404 Not found' on any POST 
request(VLC_ENOOBJ), now i am getting WMP8 error C00D0FCB which should 
mean that file is corrupted

i tried to encode --sout-ffmpeg-keyint 1 which i believe means 'encode 
key frames only' but WMP8 still cannot play stream ...
i'm running out of ideas what could be wrong

good thing is that ffmpeg/ffserver 0.4.8 can stream correct .asf stream 
to any WMP version but ffserver crashes too much to be used for anything 
but testing

i also noticed that ffserver checks for 'NSPlayer' string in User-Agent 
and if it's not there, returns this:
------------------------------
HTTP/1.0 200 ASF Redirect follows
Content-type: video/x-ms-asf

[Reference]
Ref1=http://stream/live.asf
------------------------------
and if it is there:
------------------------------
HTTP/1.0 200 OK
Pragma: no-cache
Server: Cougar 4.1.0.3923
Cache-Control: no-cache
Pragma: client-id=1459286601
Pragma: features="broadcast"
Content-Type: video/x-ms-asf
-------------------------------
and stream starts....


marian


Marian Vaginger wrote:
> i've been doing some more debugging and found this:
> WMP8 sends more requests to server
>  > means data from client,  < data from vlc server
> 1st:
> -------------------------------------
>  >GET /live56.asf HTTP/1.0
>  >Accept: */*
>  >User-Agent: NSPlayer/8.0.0.4477
>  >Host: stream.tvin.sk:1755
>  >Pragma: 
> no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=106947072,max-duration=0 
> 
>  >Pragma: xClientGUID={D444CF1D-E759-47EE-A303-F931C3473505}
> 
> <HTTP/1.0 200 OK
> <Content-type: application/octet-stream
> <Server: Cougar 4.1.0.3921
> <Pragma: no-cache
> <Pragma: client-id=1041
> <Pragma: features="broadcast"
> <Cache-Control: no-cache
> -------------------------------------
> and vlc starts sending binary data
> it seems fine, except 'Content-type: application/octet-stream' should 
> probably be changed to 'Content-Type: video/x-ms-asf'
> --------------------------------------
> 2nd
> --------------------------------------
>  >POST /live56.asf HTTP/1.0
>  >Accept: */*
>  >User-Agent: NSPlayer/8.0.0.4477
>  >Pragma: client-id=1041
>  >Pragma: log-line=10.10.1.16 2004-11-22 18:53:37 - 
>  >http://stream.tvin.sk:1755/live56.asf 0 0 1 - 
> {D444CF1D-E759-47EE-A303-F931C3473505} 8.0.0.4477 - - - - - Windows_2000 
> 5.1.0.2600 Pentium 0 725 0 http TCP - - - - 0 - 0 0 0 0 0 0 0 0 0 100 - 
> - - -
>  >Content-Length: 0
>  >Pragma: xClientGUID={D444CF1D-E759-47EE-A303-F931C3473505}
> 
> <HTTP/1.0 200 OK
> <Content-type: application/octet-stream
> <Server: Cougar 4.1.0.3921
> <Pragma: no-cache
> <Pragma: client-id=12090
> <Pragma: features="broadcast"
> <Cache-Control: no-cache
> ----------------------------------------
> and vlc starts sending binary data
> here is how ffserver from ffmpeg handles the same request:
> ----------------------------------------
>  >POST /live56.asf HTTP/1.0
>  >Accept: */*
>  >User-Agent: NSPlayer/8.0.0.4477
>  >Pragma: client-id=407180996
>  >Pragma: log-line=10.10.1.16 2004-11-22 18:45:31 - 
> http://office.tvin.sk:8000/live56.asf 0 0 1 - 
> {D444CF1D-E759-47EE-A303-F931C3473505} 8.0.0.4477 sk-SK - - wmplayer.exe 
> 8.0.0.4477 Windows_2000 5.1.0.2600 Pentium 0 0 17470 http TCP wmv1 mp3 - 
> - 6416 - 2 0 0 0 0 0 0 1 4 100 - - - -
>  >Content-Length: 0
>  >Pragma: xClientGUID={D444CF1D-E759-47EE-A303-F931C3473505}
> 
> <HTTP/1.0 404 Not Found
> <Content-type: text/html
> <
> <<HTML>
> <<HEAD><TITLE>404 Not Found</TITLE></HEAD>
> <<BODY>POST command not handled</BODY>
> <</HTML>
> -----------------------------------------------------
> ffserver works, vlc doesnt
> 
> i'm off to test this theory
> 
> marian
> 
> Marian Vaginger wrote:
> 
>> hi,
>> i am trying to broadcast live feed to windows media player, i use 
>> --sout '#standard{access=mmsh,mux=asfh,url=:8000/live.asf}'
>> stream is playable in WMP9 and 10, but WMP8 ends with Error=800704C9
>> i tried to run vlc with --novideo, --noaudio, with DIV3 codec but 
>> nothing worked
>> i posted bug at 
>> http://bugzilla.videolan.org/cgi-bin/bugzilla/show_bug.cgi?id=1927
>>
>> i can create WMP8-playable WMV1/mp3 stream with ffmpeg, but not with vlc
>> any ideas what is wrong ?
>>
>> WMP9 and 10 work without problem
>>
>> marian
>>
> 

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list