[MPlayer-users] Mplayer real time drm stream.

Bernard Gudowski gudowski at gmail.com
Mon Feb 4 01:25:56 CET 2008


Hello,
I can't get mplayer to decode and play mms drm protected stream on the fly:
MPlayer-p4-svn-25803>mplayer -demuxer lavf -lavfdopts
cryptokey=xxxxxxxxxxxxxxxxxxxxx mmshttp://stream.onet.pl/tvn24_video -v -v

While it has no problem decoding same same stream dumped into a file:
MPlayer-p4-svn-25803>mplayer -demuxer lavf -lavfdopts
cryptokey=xxxxxxxxxxxxxxxxxxxxx tvn.wmv -v -v
(same cryptokey-hex is used)

Any ideas?

[Log]
MPlayer Sherpya-SVN-r25803-4.2.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1700MHz (Family: 6, Model: 9, Stepping:
5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Config pushed level is now 2
Config pushed level is now 3
get_path('codecs.conf') ->
'C:/Downloads/MPlayer-p4-svn-25803/mplayer/codecs.conf'
Reading C:/Downloads/MPlayer-p4-svn-25803/mplayer/codecs.conf: Can't open
'C:/Downloads/MPlayer-p4-svn-25803/mplayer/codecs.conf': No such file or
directory
Reading /usr/etc/mplayer/codecs.conf: Can't open
'/usr/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/usr --enable-static --enable-md5sum --enable-menu
--disable-vidix-internal --disable-sdl --enable-caca --enable-gl
--enable-freetype --enable-png --enable-jpeg --enable-gif --enable-tga
--enable-mad --enable-tv --disable-dvb --disable-dvbhead
--with-extraincdir=/c/Work/mplayer/live --enable-matrixview
--enable-color-console --flavor=p4
CommandLine: '-demuxer' 'lavf' '-lavfdopts' 'cryptokey=xxxxxxxxxxxxxxxxxxxxx
' 'mmshttp://stream.onet.pl/tvn24_video' '-v' '-v'
init_freetype
get_path('font/font.desc') ->
'C:/Downloads/MPlayer-p4-svn-25803/mplayer/font/font.desc'
font: can't open file:
C:/Downloads/MPlayer-p4-svn-25803/mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> 'C:/Downloads/MPlayer-p4-svn-25803/mplayer/fonts'
Using Windows native timing
get_path('input.conf') ->
'C:/Downloads/MPlayer-p4-svn-25803/mplayer/input.conf'
Parsing input config file
C:/Downloads/MPlayer-p4-svn-25803/mplayer/input.conf
Input config file C:/Downloads/MPlayer-p4-svn-25803/mplayer/input.conf
parsed: 83 binds
get_path('tvn24_video.conf') ->
'C:/Downloads/MPlayer-p4-svn-25803/mplayer/tvn24_video.conf'

[[[init getch2]]]

Playing mmshttp://stream.onet.pl/tvn24_video.
get_path('sub/') -> 'C:/Downloads/MPlayer-p4-svn-25803/mplayer/sub/'
WINSOCK2 init: 0
Filename for url is now mmshttp://stream.onet.pl/tvn24_video
Filename for url is now mmshttp://stream.onet.pl/tvn24_video
STREAM_ASF, URL: mmshttp://stream.onet.pl/tvn24_video
Trying ASF/HTTP...
Resolving stream.onet.pl for AF_INET...
Connecting to server stream.onet.pl[212.244.48.32]: 80...
Request [GET /tvn24_video HTTP/1.0

Accept: */*

User-Agent: NSPlayer/4.1.0.3856

Host: stream.onet.pl:80

Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}

Pragma: no-cache,rate=1.000000
,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0

Connection: Close



]
Response [HTTP/1.0 200 OK

Content-Type: application/vnd.ms.wms-hdr.asfv1

Server: Cougar/9.01.01.3841

Content-Length: 8081

Date: Sun, 03 Feb 2008 23:45:22 GMT

Pragma: no-cache, client-id=3078399585, xResetStrm=1,
features="broadcast,playlist"

Cache-Control: no-cache, max-age=0, x-wms-event-subscription="remote-log",
x-wms-stream-type="broadcast", user-public, must-revalidate,
x-wms-proxy-split

Last-Modified: Thu, 13 Sep 2007 20:45:54 GMT

Etag: "332"

Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile



$HŤ]
=====> ASF Live stream
=====> ASF header chunk follows
Got chunk
Size 2 read=8019
Stream bitrate properties object
 stream count=[0x6][6]
  stream id=[0x1][1]
  max bitrate=[0x107e0][67552]
  is audio stream
  stream id=[0x2][2]
  max bitrate=[0xc918][51480]
  is audio stream
  stream id=[0x3][3]
  max bitrate=[0x8a58][35416]
  stream id=[0x4][4]
  max bitrate=[0x4c9f2][313842]
  stream id=[0x5][5]
  max bitrate=[0x27842][161858]
  stream id=[0x6][6]
  max bitrate=[0x12072][73842]
Max bandwidth set to 2147483647
Resolving stream.onet.pl for AF_INET...
Connecting to server stream.onet.pl[212.244.48.32]: 80...
Request [GET /tvn24_video HTTP/1.0

Accept: */*

User-Agent: NSPlayer/4.1.0.3856

Host: stream.onet.pl:80

Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}

Pragma: no-cache,rate=1.000000
,stream-time=0,stream-offset=0:0,request-context=2,max-duration=0

Pragma: xPlayStrm=1

Pragma: stream-switch-entry=ffff:1:0 ffff:32772:0

Pragma: stream-switch-count=2

Connection: Close



]
Response [HTTP/1.0 200 OK

Content-Type: application/x-mms-framed

Server: Cougar/9.01.01.3841

Date: Sun, 03 Feb 2008 23:45:22 GMT

Pragma: no-cache, client-id=2185976827, xResetStrm=1,
features="broadcast,playlist", AccelBW=0, AccelDuration=0, Speed=1.000

Cache-Control: no-cache

Last-Modified: Sun, 03 Feb 2008 23:45:22 GMT

Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile

Connection: keep-alive



]
=====> ASF Live stream
Cache size set to 1785 KBytes
STREAM: [null] mmshttp://stream.onet.pl/tvn24_video
STREAM: Description: mms and mms over http streaming
STREAM: Author: Bertrand, Reimar Doeffinger, Albeu
STREAM: Comment: originally based on work by Majormms (is that code still
there?)
CACHE_PRE_INIT: 0 [0] 0  pre:365568  eof:0

Cache fill:  0.00% (0 bytes)   =====> ASF header chunk follows

Cache fill:  0.00% (0 bytes)
Cache fill:  1.79% (32768 bytes)
Cache fill:  3.59% (65536 bytes)
Cache fill:  3.59% (65536 bytes)
Cache fill:  4.93% (90112 bytes)
Cache fill:  5.38% (98304 bytes)
Cache fill:  7.62% (139264 bytes)
Cache fill:  7.62% (139264 bytes)
Cache fill:  7.62% (139264 bytes)
Cache fill:  8.07% (147456 bytes)
Cache fill:  9.42% (172032 bytes)
Cache fill: 11.66% (212992 bytes)
Cache fill: 11.66% (212992 bytes)
Cache fill: 11.66% (212992 bytes)
Cache fill: 13.00% (237568 bytes)
Cache fill: 14.80% (270336 bytes)
Cache fill: 16.59% (303104 bytes)
Cache fill: 16.59% (303104 bytes)
Cache fill: 16.59% (303104 bytes)
Cache fill: 17.49% (319488 bytes)
Cache fill: 17.94% (327680 bytes)
CACHE2_SEEK: 0x0 <= 0x0 (0x0) <= 0x5A000
LAVF_check: asf format
libavformat file format detected.
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
mp_seek(05A41008, 0, 65536)
mp_seek(05A41008, -1, 2)
==> Found audio stream: 0
[lavf] Audio stream found, -aid 0
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 48000
avg byte/sec: 8004
Block align: 1366
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [f] [0] [b1] [2a] [0] [0]
==========================================================================
==> Found audio stream: 1
[lavf] Audio stream found, -aid 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 6003
Block align: 1115
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [1f] [0] [d9] [22] [0] [0]
==========================================================================
==> Found audio stream: 2
[lavf] Audio stream found, -aid 2
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 3995
Block align: 742
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [1f] [0] [31] [17] [0] [0]
==========================================================================
==> Found video stream: 3
[lavf] Video stream found, -vid 3
aspect= 384*0/(288*1)
======= VIDEO Format ======
  biSize 44
  biWidth 384
  biHeight 288
  biPlanes 0
  biBitCount 24
  biCompression 861293911='WMV3'
  biSizeImage 331776
Unknown extra header dump: [4c] [49] [1a] [1]
===========================
==> Found video stream: 4
[lavf] Video stream found, -vid 4
aspect= 384*0/(288*1)
======= VIDEO Format ======
  biSize 44
  biWidth 384
  biHeight 288
  biPlanes 0
  biBitCount 24
  biCompression 861293911='WMV3'
  biSizeImage 331776
Unknown extra header dump: [48] [29] [1a] [1]
===========================
==> Found video stream: 5
[lavf] Video stream found, -vid 5
aspect= 384*0/(288*1)
======= VIDEO Format ======
  biSize 44
  biWidth 384
  biHeight 288
  biPlanes 0
  biBitCount 24
  biCompression 861293911='WMV3'
  biSizeImage 331776
Unknown extra header dump: [4c] [9] [1a] [1]
===========================
LAVF: 3 audio and 3 video streams found
LAVF: build 3408896
VIDEO:  [WMV3]  384x288  24bpp  25.000 fps  300.0 kbps (36.6 kbyte/s)
[V] filefmt:35  fourcc:0x33564D57  size:384x288  fps:25.00  ftime:=0.0400
Clip info:
 name: Transmisja na Âżywo TVN24
 author: TVN24
 copyright: TVN24
 comments: Opis
get_path('sub/') -> 'C:/Downloads/MPlayer-p4-svn-25803/mplayer/sub/'
<vo_directx><INFO>Initing DirectDraw
<vo_directx><INFO>DirectDraw Inited
<vo_directx><INFO>initial mplayer windows created
<vo_directx><INFO>checking primary surface
<vo_directx><INFO>primary surface created
<vo_directx><FORMAT PRIMARY>14 BGR32 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12  supported
<vo_directx><FORMAT OVERLAY>1 I420  not supported
<vo_directx><FORMAT OVERLAY>2 IYUV  not supported
<vo_directx><FORMAT OVERLAY>3 YVU9  supported
<vo_directx><FORMAT OVERLAY>4 YUY2  supported
<vo_directx><FORMAT OVERLAY>5 UYVY  supported
<vo_directx><FORMAT OVERLAY>6 BGR8  not supported
<vo_directx><FORMAT OVERLAY>7 RGB15 supported
<vo_directx><FORMAT OVERLAY>8 BGR15 supported
<vo_directx><FORMAT OVERLAY>9 RGB16 supported
<vo_directx><FORMAT OVERLAY>10 BGR16 supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 supported
<vo_directx><FORMAT OVERLAY>14 BGR32 supported
<vo_directx><INFO>Your card supports 10 of 15 overlayformats
<vo_directx><INFO>hardware supports overlay
<vo_directx><INFO>preinit succesfully finished
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:331776  align:1
StreamCount r=0x0  1  1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555
RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 384 x 288 (preferred colorspace: Packed YUY2)
Trying filter chain: vo
vo_debug: query(Planar YV12) returned 0x417 (i=0)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (384x288->384x288,flags=0,'MPlayer',0x32315659)
VO: [directx] 384x288 => 384x288 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer at freenet.de>
<vo_directx><INFO>overlay surfaces released
<vo_directx><INFO>primary surface created
<vo_directx><INFO>overlay with format YV12  created
INFO: Win32/DMO video codec init OK.
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
demux_lavf_fill_buffer()
...
32768=mp_read(05A41008, 05A4B004, 32768), eof:0
...


More information about the MPlayer-users mailing list