Android VLC can't play mms:// stream media

VLC for Android and Chrome OS specific usage questions
ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Android VLC can't play mms:// stream media

Postby ReadyXuMin » 22 Aug 2011 13:34

I try to play mms stream media on my android phone. I compiled android vlc. I run this code:

Code: Select all

intent = new Intent(this, VideoPlayerActivity.class); intent.putExtra("filePath", "mms://192.168.2.11/cnn"); startActivity(intent);
It doesn't work! I get these debug information from logcat. Anybody know how to deal with it?

Code: Select all

08-22 19:18:05.476: VERBOSE/VLC/LibVLC(20753): Reading mms://192.168.2.11/cnn 08-22 19:18:05.480: INFO/VLC/JNI/main(20753): Got version: 10 08-22 19:18:05.480: DEBUG/vlc(20753): [0x1ddbb4] main input debug: Creating an input for 'mms://192.168.2.11/cnn' 08-22 19:18:05.507: DEBUG/vlc(20753): [0x1ddbb4] main input debug: thread started 08-22 19:18:05.507: DEBUG/vlc(20753): [0x1ddbb4] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' 08-22 19:18:05.511: DEBUG/vlc(20753): [0x1ddbb4] main input debug: `mms://192.168.2.11/cnn' gives access `mms' demux `' path `192.168.2.11/cnn' 08-22 19:18:05.511: DEBUG/vlc(20753): [0x1ddbb4] main input debug: creating demux: access='mms' demux='' location='192.168.2.11/cnn' file='(null)' 08-22 19:18:05.511: DEBUG/vlc(20753): [0x2adcbc] main demux debug: looking for access_demux module: 0 candidates 08-22 19:18:05.511: DEBUG/vlc(20753): [0x2adcbc] main demux debug: no access_demux module matched "mms" 08-22 19:18:05.511: DEBUG/vlc(20753): [0x2adcbc] main demux debug: TIMER module_need() : 0.562 ms - Total 0.562 ms / 1 intvls (Avg 0.562 ms) 08-22 19:18:05.511: DEBUG/vlc(20753): [0x1ddbb4] main input debug: creating access 'mms' location='192.168.2.11/cnn', path='(null)' 08-22 19:18:05.511: DEBUG/vlc(20753): [0x2adcbc] main access debug: looking for access module: 1 candidate 08-22 19:18:05.511: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: waiting for connection... 08-22 19:18:05.511: DEBUG/vlc(20753): [0x2adcbc] main access debug: net: connecting to 192.168.2.11 port 1755 08-22 19:18:05.539: DEBUG/vlc(20753): [0x2adcbc] main access debug: connection succeeded (socket = 43) 08-22 19:18:05.539: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: connection(tcp) with "192.168.2.11:1755" successful 08-22 19:18:05.539: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: generated guid: babac001-4cf3-0262-fa5fe185745e3ee5 08-22 19:18:05.542: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: recv command start_sequence:0x00000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001 08-22 19:18:05.542: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: 0x01 --> server_version:"9.01.01.3841" tool_version:"" update_player_url:"" encryption_type:"NTLM" 08-22 19:18:05.546: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: recv command start_sequence:0x00000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000001 len8_II:2 dir_comm:0x00040003 08-22 19:18:05.546: ERROR/vlc(20753): [0x2adcbc] access_mms access error: TCP protocol selection failed 08-22 19:18:05.546: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: Connection closed 08-22 19:18:05.546: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: waiting for connection... 08-22 19:18:05.546: DEBUG/vlc(20753): [0x2adcbc] main access debug: net: connecting to 192.168.2.11 port 1755 08-22 19:18:05.562: DEBUG/vlc(20753): [0x2adcbc] main access debug: connection succeeded (socket = 43) 08-22 19:18:05.562: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: connection(tcp) with "192.168.2.11:1755" successful 08-22 19:18:05.562: DEBUG/vlc(20753): [0x2adcbc] main access debug: net: opening 172.31.22.118 datagram port 7000 08-22 19:18:05.562: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: connection(udp) at "172.31.22.118:7000" successful 08-22 19:18:05.566: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: generated guid: babac001-5999-22bf-24140566c5bc6f9e 08-22 19:18:05.570: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: recv command start_sequence:0x00000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001 08-22 19:18:05.570: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: 0x01 --> server_version:"9.01.01.3841" tool_version:"" update_player_url:"" encryption_type:"NTLM" 08-22 19:18:05.578: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: recv command start_sequence:0x00000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000001 len8_II:2 dir_comm:0x00040003 08-22 19:18:05.578: ERROR/vlc(20753): [0x2adcbc] access_mms access error: UDP protocol selection failed 08-22 19:18:05.578: DEBUG/vlc(20753): [0x2adcbc] access_mms access debug: Connection closed 08-22 19:18:05.578: ERROR/vlc(20753): [0x2adcbc] access_mms access error: cannot connect to server 08-22 19:18:05.578: DEBUG/vlc(20753): [0x2adcbc] main access debug: net: connecting to 192.168.2.11 port 80 08-22 19:18:05.582: ERROR/vlc(20753): [0x2adcbc] main access error: connection failed: Connection refused 08-22 19:18:05.582: ERROR/vlc(20753): [0x2adcbc] access_mms access error: cannot connect to 192.168.2.11:80 08-22 19:18:05.582: DEBUG/vlc(20753): [0x2adcbc] main access debug: no access module matching "mms" could be loaded 08-22 19:18:05.582: DEBUG/vlc(20753): [0x2adcbc] main access debug: TIMER module_need() : 71.796 ms - Total 71.796 ms / 1 intvls (Avg 71.796 ms) 08-22 19:18:05.582: DEBUG/vlc(20753): [0x2adcbc] main access debug: waitpipe: object killed 08-22 19:18:05.582: ERROR/vlc(20753): [0x1ddbb4] main input error: open of `mms://192.168.2.11/cnn' failed 08-22 19:18:05.582: ERROR/vlc(20753): [0x1ddbb4] main input error: Your input can't be opened 08-22 19:18:05.582: ERROR/vlc(20753): [0x1ddbb4] main input error: VLC is unable to open the MRL 'mms://192.168.2.11/cnn'. Check the log for details. 08-22 19:18:05.582: DEBUG/vlc(20753): [0x1ddbb4] main input debug: thread ended

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Android VLC can't play mms:// stream media

Postby Jean-Baptiste Kempf » 23 Aug 2011 11:30

Are you sure you can open this mms with normal VLC?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Re: Android VLC can't play mms:// stream media

Postby ReadyXuMin » 24 Aug 2011 09:32

Are you sure you can open this mms with normal VLC?
I'm sure this mms URL is available in my network. This mms URL can be opened with VLC in windows 7 and Ubuntu 10.04, wireless network.

ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Re: Android VLC can't play mms:// stream media

Postby ReadyXuMin » 23 Feb 2012 12:45

this is the new fork vlc for android: vlc-ports/android.git.
When I try to play mms video stream. It doesn't work. I got this:

Code: Select all

02-23 21:09:32.742: D/PhoneWindow(19138): couldn't save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView@4065b410 has no id. 02-23 21:09:32.789: D/Sensors(313): Smb380Sensor::~enable(0, 1) 02-23 21:09:32.789: D/Sensors(313): Smb380Sensor::~enable(0, 1) open /sys/class/input/event1/device/enable 02-23 21:09:32.789: D/Sensors(313): Smb380Sensor::~enable(0, 1) opened /sys/class/input/event1/device/enable 02-23 21:09:32.800: D/Sensors(313): Smb380Sensor::~setDelay(0, 200000000) 02-23 21:09:32.800: D/Sensors(313): Smb380Sensor::~setDelay(0, 200000000) 02-23 21:09:32.800: V/VLC/LibVLC(19138): Reading mms://192.168.2.11/tansuo 02-23 21:09:32.800: E/vlc(19138): option logo-x does not exist 02-23 21:09:32.800: E/vlc(19138): option logo-y does not exist 02-23 21:09:32.800: E/vlc(19138): option logo-delay does not exist 02-23 21:09:32.800: E/vlc(19138): option logo-repeat does not exist 02-23 21:09:32.800: E/vlc(19138): option logo-opacity does not exist 02-23 21:09:32.800: E/vlc(19138): option logo-position does not exist 02-23 21:09:32.800: I/VLC/JNI/main(19138): Got version: 10 02-23 21:09:32.800: D/vlc(19138): Creating an input for 'mms://192.168.2.11/tansuo' 02-23 21:09:32.804: D/vlc(19138): using timeshift granularity of 50 MiB, in path '/tmp' 02-23 21:09:32.804: D/vlc(19138): `mms://192.168.2.11/tansuo' gives access `mms' demux `' path `192.168.2.11/tansuo' 02-23 21:09:32.804: D/vlc(19138): creating demux: access='mms' demux='' location='192.168.2.11/tansuo' file='(null)' 02-23 21:09:32.804: D/vlc(19138): looking for access_demux module: 0 candidates 02-23 21:09:32.804: D/vlc(19138): no access_demux module matched "mms" 02-23 21:09:32.804: D/vlc(19138): creating access 'mms' location='192.168.2.11/tansuo', path='(null)' 02-23 21:09:32.808: D/vlc(19138): looking for access module: 1 candidate 02-23 21:09:32.808: D/vlc(19138): waiting for connection... 02-23 21:09:32.808: D/vlc(19138): net: connecting to 192.168.2.11 port 1755 02-23 21:09:32.816: D/vlc(19138): connection succeeded (socket = 52) 02-23 21:09:32.816: D/vlc(19138): connection(tcp) with "192.168.2.11:1755" successful 02-23 21:09:32.816: D/vlc(19138): generated guid: 0xbabac001-0x18ec-0x89e1-0xed65f9cb91da33ca 02-23 21:09:32.820: D/vlc(19138): recv command start_sequence:0x00000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001 02-23 21:09:32.820: D/vlc(19138): 0x01 --> server_version:"9.01.01.3841" tool_version:"" update_player_url:"" encryption_type:"NTLM" 02-23 21:09:32.824: D/vlc(19138): recv command start_sequence:0x00000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000001 len8_II:2 dir_comm:0x00040003 02-23 21:09:32.824: E/vlc(19138): TCP protocol selection failed 02-23 21:09:32.824: D/vlc(19138): Connection closed 02-23 21:09:32.824: D/vlc(19138): waiting for connection... 02-23 21:09:32.824: D/vlc(19138): net: connecting to 192.168.2.11 port 1755 02-23 21:09:32.828: D/vlc(19138): connection succeeded (socket = 52) 02-23 21:09:32.828: D/vlc(19138): connection(tcp) with "192.168.2.11:1755" successful 02-23 21:09:32.828: D/vlc(19138): net: opening 172.31.193.99 datagram port 7000 02-23 21:09:32.828: D/vlc(19138): connection(udp) at "172.31.193.99:7000" successful 02-23 21:09:32.828: D/vlc(19138): generated guid: 0xbabac001-0x6cf2-0x15db-0x27324c938b793173 02-23 21:09:32.832: D/vlc(19138): recv command start_sequence:0x00000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001 02-23 21:09:32.832: D/vlc(19138): 0x01 --> server_version:"9.01.01.3841" tool_version:"" update_player_url:"" encryption_type:"NTLM" 02-23 21:09:32.832: D/vlc(19138): recv command start_sequence:0x00000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000001 len8_II:2 dir_comm:0x00040003 02-23 21:09:32.832: E/vlc(19138): UDP protocol selection failed 02-23 21:09:32.832: D/vlc(19138): Connection closed 02-23 21:09:32.832: E/vlc(19138): cannot connect to server 02-23 21:09:32.832: D/vlc(19138): net: connecting to 192.168.2.11 port 80 02-23 21:09:32.835: E/vlc(19138): connection failed: Connection refused 02-23 21:09:32.835: E/vlc(19138): cannot connect to 192.168.2.11:80 02-23 21:09:32.835: D/vlc(19138): no access module matching "mms" could be loaded 02-23 21:09:32.835: E/vlc(19138): open of `mms://192.168.2.11/tansuo' failed 02-23 21:09:32.835: E/vlc(19138): Your input can't be opened 02-23 21:09:32.835: E/vlc(19138): VLC is unable to open the MRL 'mms://192.168.2.11/tansuo'. Check the log for details. 02-23 21:09:32.867: D/dalvikvm(19138): GetFieldID: unable to find field Landroid/view/Surface;.mSurface:I
Anyone can help me?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Android VLC can't play mms:// stream media

Postby Jean-Baptiste Kempf » 23 Feb 2012 18:40

Does it work in the normal VLC?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Re: Android VLC can't play mms:// stream media

Postby ReadyXuMin » 24 Feb 2012 02:26

Does it work in the normal VLC?
Yes, it works in normal VLC

Code: Select all

[0x9741c14] access_mms access: selecting stream[0x1] audio (127 Kib/s) [0x9741c14] access_mms access: selecting stream[0x2] video (691 Kib/s) [0x9741c14] access_mms access: connection successful
Ubuntu 11.10 32bit VLC1.1.12
the same wireless network

ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Re: Android VLC can't play mms:// stream media

Postby ReadyXuMin » 29 Feb 2012 03:11

I found "TCP protocol selection failed" is coming form mmstu.c line:61

Code: Select all

/* *** response from server, should be 0x02 or 0x03 *** */ mms_CommandRead( p_access, 0x02, 0x03 ); if( p_sys->i_command == 0x03 ) { msg_Err( p_access, "%s protocol selection failed", b_udp ? "UDP" : "TCP" ); var_buffer_free( &buffer ); MMSClose( p_access ); return VLC_EGENERIC; }
But how to fix it, I have no idea.

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Android VLC can't play mms:// stream media

Postby funman » 01 Mar 2012 02:44

mms://wm.microsoft.com/ms/evnet/Vista_Diagnostics_s_ch9.wmv works for me on ICS.

Can you try vlc 2.0 Nightly Build of VLC on your desktop and make the stream available on the net?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Android VLC can't play mms:// stream media

Postby funman » 02 Mar 2012 22:34

Please check with wireshark, I believe the first MMS packet lacks the player info because conversion to UTF-16 fails.

Note it only affects tcp/udp streams, not http ones

ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Re: Android VLC can't play mms:// stream media

Postby ReadyXuMin » 05 Mar 2012 15:21

Please check with wireshark, I believe the first MMS packet lacks the player info because conversion to UTF-16 fails.

Note it only affects tcp/udp streams, not http ones
Can you give me more details? It's same wireless network. I can use normal vlc 1.0 or 2.0 on my pc Ubuntu or Windows to play the same mms URL. But it doesn't work on my android phone with vlc for android.

ReadyXuMin
Blank Cone
Blank Cone
Posts: 19
Joined: 22 Aug 2011 13:20

Re: Android VLC can't play mms:// stream media

Postby ReadyXuMin » 15 Mar 2012 16:27

Please check with wireshark, I believe the first MMS packet lacks the player info because conversion to UTF-16 fails.

Note it only affects tcp/udp streams, not http ones
You are right. Here's the new log I got.

Code: Select all

03-15 22:49:27.364: V/VLC/LibVLC(7579): Reading mms://192.168.2.11/tansuo 03-15 22:49:27.364: E/vlc(7579): option logo-x does not exist 03-15 22:49:27.364: E/vlc(7579): option logo-y does not exist 03-15 22:49:27.364: E/vlc(7579): option logo-delay does not exist 03-15 22:49:27.364: E/vlc(7579): option logo-repeat does not exist 03-15 22:49:27.364: E/vlc(7579): option logo-opacity does not exist 03-15 22:49:27.364: E/vlc(7579): option logo-position does not exist 03-15 22:49:27.364: I/VLC/JNI/main(7579): Got version: 10 03-15 22:49:27.364: D/vlc(7579): Creating an input for 'mms://192.168.2.11/tansuo' 03-15 22:49:27.364: D/vlc(7579): using timeshift granularity of 50 MiB, in path '/tmp' 03-15 22:49:27.374: D/vlc(7579): `mms://192.168.2.11/tansuo' gives access `mms' demux `' path `192.168.2.11/tansuo' 03-15 22:49:27.374: D/vlc(7579): creating demux: access='mms' demux='' location='192.168.2.11/tansuo' file='(null)' 03-15 22:49:27.374: D/vlc(7579): looking for access_demux module: 0 candidates 03-15 22:49:27.374: D/vlc(7579): no access_demux module matched "mms" 03-15 22:49:27.374: D/vlc(7579): creating access 'mms' location='192.168.2.11/tansuo', path='(null)' 03-15 22:49:27.374: D/vlc(7579): looking for access module: 1 candidate 03-15 22:49:27.374: D/vlc(7579): waiting for connection... 03-15 22:49:27.374: D/vlc(7579): net: connecting to 192.168.2.11 port 1755 03-15 22:49:27.444: W/SurfaceFlinger(1330): surface format changed from RGBX to RGBA for pid 7579 (320 x 480) 03-15 22:49:27.444: D/vlc(7579): connection succeeded (socket = 59) 03-15 22:49:27.444: D/vlc(7579): connection(tcp) with "192.168.2.11:1755" successful 03-15 22:49:27.444: D/vlc(7579): generated guid: 0xbabac001-0x88e1-0x192a-0x38a27cbe9fd559b1 03-15 22:49:27.444: E/vlc(7579): UTF-16 conversion failed 03-15 22:49:27.454: D/vlc(7579): recv command start_sequence:0x00000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001 03-15 22:49:27.454: D/vlc(7579): 0x01 --> server_version:"9.01.01.3841" tool_version:"" update_player_url:"" encryption_type:"NTLM" 03-15 22:49:27.454: E/vlc(7579): UTF-16 conversion failed 03-15 22:49:27.464: D/dalvikvm(7579): GetFieldID: unable to find field Landroid/view/Surface;.mSurface:I 03-15 22:49:27.464: D/vlc(7579): recv command start_sequence:0x00000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000001 len8_II:2 dir_comm:0x00040003 03-15 22:49:27.474: E/vlc(7579): TCP protocol selection failed 03-15 22:49:27.474: D/vlc(7579): Connection closed 03-15 22:49:27.474: D/vlc(7579): waiting for connection... 03-15 22:49:27.474: D/vlc(7579): net: connecting to 192.168.2.11 port 1755 03-15 22:49:27.484: D/vlc(7579): connection succeeded (socket = 48) 03-15 22:49:27.484: D/vlc(7579): connection(tcp) with "192.168.2.11:1755" successful 03-15 22:49:27.484: D/vlc(7579): net: opening 172.31.193.89 datagram port 7000 03-15 22:49:27.484: D/vlc(7579): connection(udp) at "172.31.193.89:7000" successful 03-15 22:49:27.484: D/vlc(7579): generated guid: 0xbabac001-0x4ecf-0x25ab-0x312e95f1044a8a8d 03-15 22:49:27.484: E/vlc(7579): UTF-16 conversion failed 03-15 22:49:27.494: D/vlc(7579): recv command start_sequence:0x00000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001 03-15 22:49:27.494: D/vlc(7579): 0x01 --> server_version:"9.01.01.3841" tool_version:"" update_player_url:"" encryption_type:"NTLM" 03-15 22:49:27.494: E/vlc(7579): UTF-16 conversion failed 03-15 22:49:27.504: D/vlc(7579): recv command start_sequence:0x00000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000001 len8_II:2 dir_comm:0x00040003 03-15 22:49:27.504: E/vlc(7579): UDP protocol selection failed 03-15 22:49:27.504: D/vlc(7579): Connection closed 03-15 22:49:27.504: E/vlc(7579): cannot connect to server 03-15 22:49:27.504: D/vlc(7579): net: connecting to 192.168.2.11 port 80 03-15 22:49:27.514: E/vlc(7579): connection failed: Connection refused 03-15 22:49:27.514: E/vlc(7579): cannot connect to 192.168.2.11:80 03-15 22:49:27.514: D/vlc(7579): no access module matching "mms" could be loaded 03-15 22:49:27.514: E/vlc(7579): open of `mms://192.168.2.11/tansuo' failed 03-15 22:49:27.514: E/vlc(7579): Your input can't be opened 03-15 22:49:27.514: E/vlc(7579): VLC is unable to open the MRL 'mms://192.168.2.11/tansuo'. Check the log for details.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 5 guests