Opened 11 years ago

Last modified 9 years ago

#1321 assigned defect

MPlayer stalled when option -aid and MMS over TCP protocol are used

Reported by: cosoleto@… Owned by: reimar
Priority: normal Component: streaming
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Hello,

The following is what happens trying to run mplayer with a stream by RAI italian television channel that uses MMS protocol and ASF format.

mplayer mms://212.162.68.102/prodtvr1 (ok)
mplayer -aid 1 mms://212.162.68.102/prodtvr1 (stalled)
mplayer -aid 1 -vid 2 mms://212.162.68.102/prodtvr1 (stalled)
mplayer -vid 2 mms://212.162.68.102/prodtvr1 (ok)
mplayer2 -aid 3 -vid 2 mms://212.162.68.102/prodtvr1 (quits with error: "no stream found")

Bug is present in HEAD and 1.0rc2.

MPlayer output:


mplayer -aid 1 -vid 2 mms://212.162.68.102/prodtvr1

MPlayer dev-SVN-r27886-4.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Playing mms://212.162.68.102/prodtvr1.
STREAM_ASF, URL: mms://212.162.68.102/prodtvr1
Connecting to server 212.162.68.102[212.162.68.102]: 1755...
Connected
unknown object
unknown object
file object, packet length = 1444 (1444)
unknown object
stream object, stream ID: 1
stream object, stream ID: 2
unknown object
unknown object
data object
mmst packet_length = 1444
Cache size set to 64 KBytes
Cache fill: 12.50% (8192 bytes)
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2


then mplayer process sleeps.

Thanks.

Attachments (1)

detailed_logs.tar.gz (4.1 KB) - added by cosoleto@… 11 years ago.
Detailed logs

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by cosoleto@…

Detailed logs

comment:1 Changed 11 years ago by cosoleto@…

Using "mms://212.162.68.163/prodtvr1" instead of "mms://212.162.68.102/prodtvr1" mplayer works correctly. Attached more logs.

comment:2 Changed 11 years ago by cosoleto@…

  • op_sys changed from Linux to All

mms://62.101.89.195/Sat2000 (or mms://89.119.94.130/Sat2000) is an example of pratically not usable stream, always by an notable italian television channel. As reported by VLC, it contains 2 audio and 3 video streams in different bitrate, MPlayer by default can play only 9 Kbit audio and 25 kb/s video stream:

fra@foscolo:~> vlc mms://62.101.89.195/Sat2000
VLC media player 0.9.6 Grishenko
[...]
[00000401] access_mms access: selecting stream[0x1] audio (33 kb/s)
[00000401] access_mms access: ignoring stream[0x2] audio (9 kb/s)
[00000401] access_mms access: selecting stream[0x3] video (272 kb/s)
[00000401] access_mms access: ignoring stream[0x4] video (92 kb/s)
[00000401] access_mms access: ignoring stream[0x5] video (25 kb/s)
[00000401] access_mms access: connection successful

fra@foscolo:~> mplayer -v -v -vid 3 mms://62.101.89.195/Sat2000
MPlayer 1.0rc2-4.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
this_opt = option: vid
Setting vid=3
Adding file mms://62.101.89.195/Sat2000
Config pushed level is now 2
Config pushed level is now 3
get_path('codecs.conf') -> '/home/fra/.mplayer/codecs.conf'
Reading /home/fra/.mplayer/codecs.conf: Can't open '/home/fra/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-menu --disable-lirc
CommandLine?: '-v' '-v' '-vid' '3' 'mms://62.101.89.195/Sat2000'
init_freetype
get_path('font/font.desc') -> '/home/fra/.mplayer/font/font.desc'
font: can't open file: /home/fra/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> '/home/fra/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/fra/.mplayer/input.conf'
Can't open input config file /home/fra/.mplayer/input.conf: No such file or directory
Parsing input config file /usr/local/etc/mplayer/input.conf
Input config file /usr/local/etc/mplayer/input.conf parsed: 82 binds
get_path('Sat2000.conf') -> '/home/fra/.mplayer/Sat2000.conf'

[init getch2?]

Playing mms://62.101.89.195/Sat2000.
get_path('sub/') -> '/home/fra/.mplayer/sub/'
Filename for url is now mms://62.101.89.195/Sat2000
Filename for url is now mms://62.101.89.195/Sat2000
STREAM_ASF, URL: mms://62.101.89.195/Sat2000
Trying ASF/UDP...

===> ASF/UDP failed

Trying ASF/TCP...
Connecting to server 62.101.89.195[62.101.89.195]: 1755...
Connected
unknown object
unknown object
unknown object
unknown object
file object, packet length = 2888 (2888)
unknown object
stream object, stream ID: 2
stream object, stream ID: 5
data object
mmst packet_length = 2888
Cache size set to 64 KBytes
STREAM: [null] mms://62.101.89.195/Sat2000
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:13107 eof:0
Cache fill: 0.00% (0 bytes)
CACHE2_SEEK: 0x0 <= 0x0 (0x0) <= 0x4000
ASF file format detected.
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes, stream: 8 bytes ID: 1
unk1: 0 unk2: 6CCE6200
FILEPOS=0x683
==> Found audio stream: 1
[asfheader] Audio stream found, -aid 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 1
Samplerate: 44100
avg byte/sec: 4006
Block align: 744
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [f] [0] [41] [17] [0] [0]
==========================================================================
ASF: audio scrambling: 1 x 1 x 744
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 55 bytes, stream: 0 bytes ID: 3
unk1: 0 unk2: 6CCE6200
FILEPOS=0x7BB
==> Found video stream: 3
[asfheader] Video stream found, -vid 3
======= VIDEO Format ======

biSize 44
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 861293911='WMV3'
biSizeImage 0

Unknown extra header dump: [4c] [49] [10] [1]
===========================
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 55 bytes, stream: 0 bytes ID: 4
unk1: 0 unk2: 6CCE6200
FILEPOS=0x898
==> Found video stream: 4
[asfheader] Video stream found, -vid 4
======= VIDEO Format ======

biSize 44
biWidth 240
biHeight 180
biPlanes 1
biBitCount 24
biCompression 861293911='WMV3'
biSizeImage 0

Unknown extra header dump: [4c] [19] [10] [1]
===========================
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes, stream: 8 bytes ID: 2
unk1: 0 unk2: 6CCE6200
FILEPOS=0x121B
==> Found audio stream: 2
[asfheader] Audio stream found, -aid 2
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 1
Samplerate: 8000
avg byte/sec: 1000
Block align: 320
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [22] [0] [0] [26] [0] [80] [7] [0] [0]
==========================================================================
ASF: audio scrambling: 1 x 1 x 320
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 55 bytes, stream: 0 bytes ID: 5
unk1: 0 unk2: 6CCE6200
FILEPOS=0x128D
==> Found video stream: 5
[asfheader] Video stream found, -vid 5
======= VIDEO Format ======

biSize 44
biWidth 160
biHeight 120
biPlanes 1
biBitCount 24
biCompression 861293911='WMV3'
biSizeImage 0

Unknown extra header dump: [40] [9] [10] [1]
===========================
ASF: packets: -1 flags: 9 max_packet_size: 2888 min_packet_size: 2888 max_bitrate: 36161 preroll: 5000

Title: Sat2000

============ ASF Stream group == START ===

stream count=[0x5][5]

stream id=[0x1][1]
max bitrate=[0x86c7][34503]
stream id=[0x2][2]
max bitrate=[0x27a4][10148]
stream id=[0x3][3]
max bitrate=[0x441ad][278957]
stream id=[0x4][4]
max bitrate=[0x1731d][95005]
stream id=[0x5][5]
max bitrate=[0x659d][26013]

============ ASF Stream group == END ===
Found movie at 0x12F6 - 0x12F6
ASF: 2 audio and 3 video streams found

82 00 00 41 5D 42 08 00 0A 84 0B 2F 00 81 85 56

seg 0: 85 56 00 00 00 00 08 23 08 00 00 7A 1D 84 0B 23

82 00 00 41 5D 5F 01 C0 0A 84 0B 43 00 81 02 71

seg 0: 02 71 00 00 00 00 08 40 01 00 00 87 1B 84 0B 40
Auto-selected ASF audio ID = 2

82 00 00 41 5D 5F 01 00 0C 84 0B 5C 00 81 02 72

seg 0: 02 72 00 00 00 00 08 40 01 00 00 87 1C 84 0B 40

82 00 00 41 5D F7 02 7B 0C 84 0B 46 00 81 05 57

seg 0: 05 57 00 00 00 00 08 D8 02 00 00 BA 1E 84 0B D8

82 00 00 41 5D 45 02 40 0D 84 0B 72 00 82 02 73

seg 0: 02 73 00 00 00 00 08 40 01 00 00 87 1D 84 0B 40
seg 1: 05 58 00 00 00 00 08 AA 02 00 00 22 20 84 0B D5

82 00 00 41 5D 90 00 EA 0D 84 0B 1E 00 81 05 58

seg 0: 05 58 D5 00 00 00 08 AA 02 00 00 22 20 84 0B 71

82 00 00 41 5D 83 01 08 0E 84 0B 51 00 81 05 58

seg 0: 05 58 46 01 00 00 08 AA 02 00 00 22 20 84 0B 64

82 00 00 41 5D DD 02 80 0E 84 0B 35 00 82 02 74

seg 0: 02 74 00 00 00 00 08 40 01 00 00 87 1E 84 0B 40
seg 1: 05 59 00 00 00 00 08 6D 01 00 00 62 21 84 0B 6D

82 00 00 41 5D DD 01 F2 0E 84 0B 35 00 81 05 5A

seg 0: 05 5A 00 00 00 00 08 BE 01 00 00 A2 22 84 0B BE

82 00 00 41 5D 5F 01 C0 0F 84 0B 51 00 81 02 75

seg 0: 02 75 00 00 00 00 08 40 01 00 00 C7 1F 84 0B 40

82 00 00 41 5D 09 03 47 10 84 0B 3A 00 81 05 5B

seg 0: 05 5B 00 00 00 00 08 EA 02 00 00 0A 24 84 0B EA

82 00 00 41 5D 5F 01 00 11 84 0B 71 00 81 02 76

seg 0: 02 76 00 00 00 00 08 40 01 00 00 87 21 84 0B 40

82 00 00 41 5D 6E 02 9A 11 84 0B 36 00 81 05 5C

seg 0: 05 5C 00 00 00 00 08 4F 02 00 00 4A 25 84 0B 4F

82 00 00 41 5D 5F 01 40 12 84 0B 2E 00 81 02 77

seg 0: 02 77 00 00 00 00 08 40 01 00 00 C7 22 84 0B 40

82 00 00 41 5D 9C 02 F4 12 84 0B 1D 00 81 05 5D

seg 0: 05 5D 00 00 00 00 08 7D 02 00 00 8A 26 84 0B 7D

82 00 00 41 5D 5F 01 80 13 84 0B 4B 00 81 02 78

seg 0: 02 78 00 00 00 00 08 40 01 00 00 48 24 84 0B 40

82 00 00 41 5D B4 02 45 14 84 0B 2C 00 81 05 5E

seg 0: 05 5E 00 00 00 00 08 95 02 00 00 F2 27 84 0B 95

82 00 00 41 5D 5F 01 C0 14 84 0B 5E 00 81 02 79

seg 0: 02 79 00 00 00 00 08 40 01 00 00 48 25 84 0B 40

82 00 00 41 5D 45 03 88 15 84 0B 31 00 81 05 5F

seg 0: 05 5F 00 00 00 00 08 26 03 00 00 32 29 84 0B 26

82 00 00 41 5D 5F 01 00 16 84 0B 72 00 81 02 7A

seg 0: 02 7A 00 00 00 00 08 40 01 00 00 88 26 84 0B 40

82 00 00 41 5D 83 03 D8 16 84 0B 24 00 81 05 60

seg 0: 05 60 00 00 00 00 08 64 03 00 00 72 2A 84 0B 64

82 00 00 41 5D 5F 01 40 17 84 0B 2F 00 81 02 7B

seg 0: 02 7B 00 00 00 00 08 40 01 00 00 88 27 84 0B 40

82 00 00 41 5D B8 02 12 18 84 0B 40 00 81 05 61

seg 0: 05 61 00 00 00 00 08 99 02 00 00 DA 2B 84 0B 99

82 00 00 41 5D 5F 01 80 18 84 0B 4F 00 81 02 7C

seg 0: 02 7C 00 00 00 00 08 40 01 00 00 C8 28 84 0B 40

82 00 00 41 5D 20 04 7B 19 84 0B 16 00 81 05 62

seg 0: 05 62 00 00 00 00 08 3A 04 00 00 1A 2D 84 0B 01

82 00 00 41 5D 5F 01 C0 19 84 0B 4A 00 81 02 7D

seg 0: 02 7D 00 00 00 00 08 40 01 00 00 08 2A 84 0B 40

82 00 00 41 5D C9 03 FA 1A 84 0B 06 00 82 05 62

seg 0: 05 62 01 04 00 00 08 3A 04 00 00 1A 2D 84 0B 39
seg 1: 05 63 00 00 00 00 08 60 03 00 00 5A 2E 84 0B 60

82 00 00 41 5D 5F 01 00 1B 84 0B 4A 00 81 02 7E

seg 0: 02 7E 00 00 00 00 08 40 01 00 00 08 2B 84 0B 40

82 00 00 41 5D 6A 04 37 1C 84 0B 08 00 81 05 64

seg 0: 05 64 00 00 00 00 08 4B 04 00 00 C2 2F 84 0B 4B
[...]

MPlayer interrupted by signal 2 in module: enable_cache

* uninit(0xC8)

[uninit getch2?]
vo: x11 uninit called but X11 not inited..
max framesize was 0 bytes

MPlayer interrupted by signal 2 in module: demux_open

* uninit(0xC8)

[uninit getch2?]
vo: x11 uninit called but X11 not inited..
max framesize was 0 bytes

comment:3 Changed 11 years ago by cosoleto@…

Sample URLs don't work anymore, to solve the problem you can use this web page:

# http://www.rai.tv/mplive/0,,LiveTv%5E2,00.html (the live stream start past some seconds)
# http://www.sat2000.it/mms/diretta.php

Is this bug properly assigned?

comment:4 Changed 11 years ago by cosoleto@…

  • bug_file_loc changed from mms://212.162.68.102/prodtvr1 to See comment #3

comment:5 Changed 11 years ago by cosoleto@…

  • bug_file_loc See comment #3 deleted
  • rep_platform changed from Other to All
  • Status changed from new to assigned
  • Summary changed from MPlayer stalled when option -aid is used with ASF format to MPlayer stalled when option -aid and MMS over TCP protocol are used

The problem is in MMS over TCP code. I see this implementation is very old and incomplete as MMS and ASF were not documented in those days, I am working on a patch.

comment:6 Changed 9 years ago by compn

  • Owner changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.