Playlist (m3u) not working together with proxy?

*nix specific usage questions
udippel
Blank Cone
Blank Cone
Posts: 11
Joined: 18 May 2010 12:31

Playlist (m3u) not working together with proxy?

Postby udippel » 18 May 2010 12:51

I want to listen to an audio stream:

$ vlc http://www.tv-radio.com/station/france_ ... p3-32k.m3u
VLC media player 1.0.6 Goldeneye
[0x20ee9b8] main interface error: no interface module matched "screensaver,none"
[0x20ee9b8] main interface error: no suitable interface module
[0x1fec888] main libvlc error: interface "screensaver,none" initialization failed
[0x1fec888] main libvlc error: option drawable-xid does not exist
[0x20d6fa8] main interface error: no interface module matched "globalhotkeys,none"
[0x20d6fa8] main interface error: no suitable interface module
[0x1fec888] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1fec888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x20fc838] access_http access error: error: HTTP/1.1 404 Not Found
[0x20fc838] access_http access error: error: HTTP/1.1 404 Not Found
[0x20fc838] access_mms access error: error: HTTP/1.1 404 Not Found
[0x7f7388000f78] main input error: open of `http://www.tv-radio.com/station/france_ ... p3-32k.m3u' failed: (null)
[0x7f7388000f78] main input error: Your input can't be opened
[0x7f7388000f78] main input error: VLC is unable to open the MRL 'http://www.tv-radio.com/station/france_ ... p3-32k.m3u'. Check the log for details.

That's all fine, because here I am behind a proxy:

$ vlc --http-proxy http://127.0.0.1:3128 http://www.tv-radio.com/station/france_ ... p3-32k.m3u
VLC media player 1.0.6 Goldeneye
[0x8d5e58] main interface error: no interface module matched "screensaver,none"
[0x8d5e58] main interface error: no suitable interface module
[0x7d0888] main libvlc error: interface "screensaver,none" initialization failed
[0x7d0888] main libvlc error: option drawable-xid does not exist
[0x8d2058] main interface error: no interface module matched "globalhotkeys,none"
[0x8d2058] main interface error: no suitable interface module
[0x7d0888] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x7d0888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x8e12e8] access_http access error: error: HTTP/1.1 404 Not Found
[0x8e12e8] access_http access error: error: HTTP/1.1 404 Not Found
[0x8e12e8] access_mms access error: error: HTTP/1.1 404 Not Found
[0x8d9038] main input error: open of `http://www.tv-radio.com/station/france_ ... p3-32k.m3u' failed: (null)
[0x8d9038] main input error: Your input can't be opened
[0x8d9038] main input error: VLC is unable to open the MRL 'http://www.tv-radio.com/station/france_ ... p3-32k.m3u'. Check the log for details.

However, still, no success. The proxy works (see below).

The last thing I could do, was
$ wget http://www.tv-radio.com/station/france_ ... p3-32k.m3u
$ cat france_musique_mp3-32k.m3u
#EXTM3U
#EXTINF:france_musique_mp3
http://mp3.live.tv-radio.com/francemusi ... ue-32k.mp3
$
So I am lucky here; there is just one file in the stream:

$vlc --http-proxy http://127.0.0.1:3128 http://mp3.live.tv-radio.com/francecult ... re-32k.mp3
VLC media player 1.0.6 Goldeneye
[0x1e9a098] main interface error: no interface module matched "screensaver,none"
[0x1e9a098] main interface error: no suitable interface module
[0x1d94888] main libvlc error: interface "screensaver,none" initialization failed
[0x1d94888] main libvlc error: option drawable-xid does not exist
[0x7f09a8000e58] main interface error: no interface module matched "globalhotkeys,none"
[0x7f09a8000e58] main interface error: no suitable interface module
[0x1d94888] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1d94888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x1ea08f8] access_http access: Raw-audio server found, mp3 demuxer selected
TagLib: Could not open file mp3.live.tv-radio.com/franceculture/all/franceculture-32k.mp3

... and there we go. Including the proxy.

My question: Why can't vlc disassemble the m3u (extract the file) and play it?

If I didn't make any mistake, this would be my wish-list for today ...

Uwe

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playlist (m3u) not working together with proxy?

Postby Rémi Denis-Courmont » 18 May 2010 17:12

Please provide packet captures.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

udippel
Blank Cone
Blank Cone
Posts: 11
Joined: 18 May 2010 12:31

Re: Playlist (m3u) not working together with proxy?

Postby udippel » 19 May 2010 04:26

Please provide packet captures.
Here is one. I dunno if this is what you had in mind? Otherwise, you need to be more specific about the options to tcpdump.

Uwe

The session was:
$ vlc --http-proxy http://127.0.0.1:3128 http://www.tv-radio.com/station/france_ ... p3-32k.m3u
VLC media player 1.0.6 Goldeneye
[0x1f6cc38] main interface error: no interface module matched "screensaver,none"
[0x1f6cc38] main interface error: no suitable interface module
[0x1e81888] main libvlc error: interface "screensaver,none" initialization failed
[0x1e81888] main libvlc error: option drawable-xid does not exist
[0x1f7fd18] main interface error: no interface module matched "globalhotkeys,none"
[0x1f7fd18] main interface error: no suitable interface module
[0x1e81888] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1e81888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x1f8c278] access_http access error: error: HTTP/1.1 404 Not Found
[0x1f8c278] access_http access error: error: HTTP/1.1 404 Not Found
[0x1f8c278] access_mms access error: error: HTTP/1.1 404 Not Found
[0x7ffe00001f08] main input error: open of `http://www.tv-radio.com/station/france_ ... p3-32k.m3u' failed: (null)
[0x7ffe00001f08] main input error: Your input can't be opened
[0x7ffe00001f08] main input error: VLC is unable to open the MRL 'http://www.tv-radio.com/station/france_ ... p3-32k.m3u'. Check the log for details.

This is what I captured:
(172.16.3.247 is the upstream proxy; I am using cntlm locally.)

09:54:07.192947 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [S], seq 1645129219, win 5840, options [mss 1460,sackOK,TS val 7058369 ecr 0,nop,wscale 7], length 0
09:54:07.193634 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [S.], seq 4190728803, ack 1645129220, win 8192, options [mss 1460,sackOK,TS val 57278543 ecr 7058369], length 0
09:54:07.193672 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [.], ack 1, win 5840, options [nop,nop,TS val 7058369 ecr 57278543], length 0
09:54:07.194498 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [P.], seq 1:391, ack 1, win 5840, options [nop,nop,TS val 7058369 ecr 57278543], length 390
09:54:07.196769 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 1:601, ack 391, win 65160, options [nop,nop,TS val 57278544 ecr 7058369], length 600
09:54:07.196828 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [.], ack 601, win 6600, options [nop,nop,TS val 7058370 ecr 57278544], length 0
09:54:07.197712 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [P.], seq 391:1201, ack 601, win 6600, options [nop,nop,TS val 7058370 ecr 57278544], length 810
09:54:07.402735 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [.], ack 1201, win 64350, options [nop,nop,TS val 57278564 ecr 7058370], length 0
09:54:07.807204 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 601:849, ack 1201, win 64350, options [nop,nop,TS val 57278605 ecr 7058370], length 248
09:54:07.807415 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 849:1100, ack 1201, win 64350, options [nop,nop,TS val 57278605 ecr 7058370], length 251
09:54:07.807770 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [.], ack 1100, win 9000, options [nop,nop,TS val 7058431 ecr 57278605], length 0
09:54:07.808713 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [P.], seq 1201:1486, ack 1100, win 9000, options [nop,nop,TS val 7058431 ecr 57278605], length 285
09:54:08.012779 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [.], ack 1486, win 64065, options [nop,nop,TS val 57278625 ecr 7058431], length 0
09:54:08.402055 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 1100:1348, ack 1486, win 64065, options [nop,nop,TS val 57278664 ecr 7058431], length 248
09:54:08.402247 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 1348:1599, ack 1486, win 64065, options [nop,nop,TS val 57278664 ecr 7058431], length 251
09:54:08.402609 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [.], ack 1599, win 11400, options [nop,nop,TS val 7058490 ecr 57278664], length 0
09:54:08.404991 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [P.], seq 1486:1867, ack 1599, win 11400, options [nop,nop,TS val 7058491 ecr 57278664], length 381
09:54:08.612850 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [.], ack 1867, win 65160, options [nop,nop,TS val 57278685 ecr 7058491], length 0
09:54:08.975739 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 1599:1847, ack 1867, win 65160, options [nop,nop,TS val 57278722 ecr 7058491], length 248
09:54:08.975891 IP 172.16.3.237.http-alt > unikuwe.local.41475: Flags [P.], seq 1847:2098, ack 1867, win 65160, options [nop,nop,TS val 57278722 ecr 7058491], length 251
09:54:08.976375 IP unikuwe.local.41475 > 172.16.3.237.http-alt: Flags [.], ack 2098, win 13800, options [nop,nop,TS val 7058548 ecr 57278722], length 0

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playlist (m3u) not working together with proxy?

Postby Rémi Denis-Courmont » 25 May 2010 18:41

Well I meant the packet capture file (tcpdump -s 1500 -w file.pcap tcp port 8080).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

udippel
Blank Cone
Blank Cone
Posts: 11
Joined: 18 May 2010 12:31

Re: Playlist (m3u) not working together with proxy?

Postby udippel » 08 Jun 2010 09:45

Okay, here it is. First, I issued the command
$ vlc --http-proxy http://127.0.0.1:3128 http://www.tv-radio.com/station/france_ ... p3-32k.m3u
that failed. Then, the one using the 'unpacked' m3u:
$ vlc --http-proxy http://127.0.0.1:3128 http://mp3.live.tv-radio.com/francemusi ... ue-32k.mp3
which did work.
Also,
wget http://www.tv-radio.com/station/france_ ... p3-32k.m3u
is confirmed to work (this latter not captured, though).

(Huh, where is the 'attach' button for the file?? I don't seem to have one, please? The pcap is binary, so I can't paste it here.)

Uwe

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playlist (m3u) not working together with proxy?

Postby Rémi Denis-Courmont » 08 Jun 2010 18:51

You can't attach file here. You need to upload it somewhere and paste a link.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

udippel
Blank Cone
Blank Cone
Posts: 11
Joined: 18 May 2010 12:31

Re: Playlist (m3u) not working together with proxy?

Postby udippel » 09 Jun 2010 10:09

Good so!

Please, pick up the file from here:
http://claude.uniten.edu.my/~udippel/file.pcap

Uwe

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playlist (m3u) not working together with proxy?

Postby Rémi Denis-Courmont » 15 Jun 2010 03:35

In your log, the URL is cut in the middle. This is occuring because you've not cut&paste the URL properly.

It works fine here (both with VLC 1.0.6 nor 1.1.0).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

udippel
Blank Cone
Blank Cone
Posts: 11
Joined: 18 May 2010 12:31

Re: Playlist (m3u) not working together with proxy?

Postby udippel » 15 Jun 2010 08:29

No, nothing like that. There is no 'cut' here; and it still doesn't work. Maybe the 'cut' looks like that in this board software?
I have now changed the proxy, and don't need to add it any longer. Still, the playlist doesn't work, the file does.
I paste it here, again, hoping to have no undue 'cut's:

$ vlc http://mp3.live.tv-radio.com/francemusi ... ue-32k.mp3
VLC media player 1.0.6 Goldeneye
[0x998068] main interface error: no interface module matched "screensaver,none"
[0x998068] main interface error: no suitable interface module
[0x892888] main libvlc error: interface "screensaver,none" initialization failed
[0x892888] main libvlc error: option drawable-xid does not exist
[0x990878] main interface error: no interface module matched "globalhotkeys,none"
[0x990878] main interface error: no suitable interface module
[0x892888] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x892888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x9a1a98] access_http access: Raw-audio server found, mp3 demuxer selected
TagLib: Could not open file mp3.live.tv-radio.com/francemusique/all/francemusique-32k.mp3
[plays]

$ vlc http://www.tv-radio.com/station/france_ ... p3-32k.m3u
VLC media player 1.0.6 Goldeneye
[0x235c068] main interface error: no interface module matched "screensaver,none"
[0x235c068] main interface error: no suitable interface module
[0x2256888] main libvlc error: interface "screensaver,none" initialization failed
[0x2256888] main libvlc error: option drawable-xid does not exist
[0x2354858] main interface error: no interface module matched "globalhotkeys,none"
[0x2354858] main interface error: no suitable interface module
[0x2256888] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x2256888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x2365af8] access_http access error: error: HTTP/1.1 404 Not Found
[0x2365af8] access_http access error: error: HTTP/1.1 404 Not Found
[0x2365af8] access_mms access error: error: HTTP/1.1 404 Not Found
[0x235fc48] main input error: open of `http://www.tv-radio.com/station/france_ ... p3-32k.m3u' failed: (null)
[0x235fc48] main input error: Your input can't be opened
[0x235fc48] main input error: VLC is unable to open the MRL 'http://www.tv-radio.com/station/france_ ... p3-32k.m3u'. Check the log for details.
[Doesn't play]

$ wget http://www.tv-radio.com/station/france_ ... p3-32k.m3u && cat france_musique_mp3-32k.m3u
--2010-06-15 14:28:25-- http://www.tv-radio.com/station/france_ ... p3-32k.m3u
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: http://gisv3.tv-radio.com/station/franc ... p3-32k.m3u [following]
--2010-06-15 14:28:26-- http://gisv3.tv-radio.com/station/franc ... p3-32k.m3u
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 104 [audio/x-mpegurl]
Saving to: `france_musique_mp3-32k.m3u'

100%[=========================================================>] 104 --.-K/s in 0s

2010-06-15 14:28:27 (5.85 MB/s) - `france_musique_mp3-32k.m3u' saved [104/104]

#EXTM3U
#EXTINF:france_musique_mp3
http://mp3.live.tv-radio.com/francemusi ... ue-32k.mp3


Where is my mistake?

Uwe


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests