VLC does not support HTTP 1.1 protocol for MP3 Streaming

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ericschmidt
New Cone
New Cone
Posts: 2
Joined: 07 Jan 2010 19:08

VLC does not support HTTP 1.1 protocol for MP3 Streaming

Postby ericschmidt » 10 Jan 2010 18:53

I have built an MP3 streaming server that emulates Shoutcast and Icecast functionality. I am hoping that someone who is familiar with the streaming code in VLC can shed some light here.

Issue: VLC sends HTTP 1.1 requests when connecting to a stream source, however is does not support chunked transfer encoding for Shoutcast or Icecast streams. Why? HTTP 1.1 protocol clearly states that if a client makes a 1.1 request and the server responds with 1.1 the client must support 1.1.

- Repro: VLC Client sends request for "Icecast" stream with HTTP 1.1 and Icy-MetaData=1. This means that the client can support HTTP 1.1 and meta data in the stream. However, this is not the case. The VLC player recognizes the stream, starts playing, but once it hits the meta-data marker it dies because (I believe) it assumes that this is just a plain MP3/mime stream not an Icecast stream. What is really strange is that the player sometime recognizes that first meta-marker, but then dies on the next read.

Thoughts? How can this be addressed?

Thanks
Eric

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

Re: VLC does not support HTTP 1.1 protocol for MP3 Streaming

Postby Jean-Baptiste Kempf » 11 Jan 2010 12:09

File a bug.
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.

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

Re: VLC does not support HTTP 1.1 protocol for MP3 Streaming

Postby Rémi Denis-Courmont » 11 Jan 2010 17:34

The VLC HTTP client does support chunked Transfer-Encoding.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Punkley
New Cone
New Cone
Posts: 2
Joined: 08 Feb 2010 05:45

Re: VLC does not support HTTP 1.1 protocol for MP3 Streaming

Postby Punkley » 08 Feb 2010 05:57

Im also seeing this issue,


try connecting to
http://radio1.internode.on.net:8000/1

It will show the problem.

Punkley
New Cone
New Cone
Posts: 2
Joined: 08 Feb 2010 05:45

Re: VLC does not support HTTP 1.1 protocol for MP3 Streaming

Postby Punkley » 08 Feb 2010 19:58

ok i've worked around the problem,

The problem im seeing appears to be an issue with http/1.1 queries chunked-transfers(i think) and not specifying a content-length.

This works with VLC

HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: OnNet-CDN/0.7.65
Date: Mon, 08 Feb 2010 18:55:16 GMT
Content-Type: audio/mpeg
Connection: close
icy-br: 128
icy-genre: Punk
icy-name: PunkRadioCast | The Worlds Largest And Loudest Punk Rock Station
icy-url: http://www.punkradiocast.com
Cache-Control: no-cache
Content-Length: 10488645

This doesn't

HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: OnNet-CDN/0.7.65
Date: Mon, 08 Feb 2010 18:55:16 GMT
Content-Type: audio/mpeg
Connection: close
icy-br: 128
icy-genre: Punk
icy-name: PunkRadioCast | The Worlds Largest And Loudest Punk Rock Station
icy-url: http://www.punkradiocast.com
Cache-Control: no-cache


I've currently got a work arround in place to add a fake Content-Length when the "VLC Player" useragent is detected.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 65 guests