View previous topic :: View next topic |
Author |
Message |
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 20, 2010 1:39 pm Post subject: |
|
|
I would use curl to get a file and use ogginfo to see what it sees. The ogg123 error is too vague for meaningful indication but it could be a lack of header pages.
karl. |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Sat Mar 20, 2010 10:07 pm Post subject: |
|
|
What would be the command line options for curl to do this?
Vince, |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Sat Mar 20, 2010 11:32 pm Post subject: |
|
|
Fixed! Header were not copy properly!! Nice call thanks.
Vince, |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Mon Mar 22, 2010 12:47 pm Post subject: |
|
|
Not so fast: On OGG123 take a long time to start audio and also this warning is displayed: ALSA: underrun, at least 0ms. Input Buffer 0.0% Output Buffer 33.3%
No other player works.
Here is the output from OOGINFO:
Processing file "resultsv1.ogg"...
Warning: Hole in data (4500 bytes) found at approximate offset -88 bytes. Corrupted ogg.
New logical stream (#1, serial: 6b8b4567): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20090709
Channels: 2
Rate: 44032
Nominal bitrate: 48.000000 kb/s
Upper bitrate: 48.000000 kb/s
Lower bitrate: 48.000000 kb/s
User comments section follows...
ENCODER=StateMachineEncoder
TITLE=Don't Ask My Neighbors
ARTIST=The Emotions
ALBUM=Super Hits
GENRE=RnB
Warning: EOS not set on stream 1
Vorbis stream 1:
Total data length: 25839 bytes
Playback length: 0m:04.191s
Average bitrate: 49.312710 kb/s
radmin@linux-9rzi:~/develprograms/testprograms/SimulatedListeners/results> curl --url http://127.0.0.1:8888/radio -o resultsvi1.ogg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
Can you give some hints as to why there may be holes???
Vince, |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Mar 22, 2010 1:02 pm Post subject: |
|
|
a hole isn't a problem, probably a granulepos offset, but a samplerate of 44032 is probably going to confuse most players.
karl. |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Tue Mar 30, 2010 10:38 pm Post subject: |
|
|
I am trying to get over some hurdles:correct protocl.
Error: No suitable plugin. This often means that the url's protocol
is not support. Network failure are other possible cause.
http://127.0.0.1:9000/radio.ogg
Here is the response from the Amarok player:
GET /radio.ogg HTTP/1.0
User-Agent: xine/1.1.16.3
Accept: */*
Icy-MetaData:
My response was:
"HTTP/1.0 200 OK\r\n"
"Content-Type: Application/og\r\n"
"icy-br: 45\r\n"
"Server: Version\r\n"
"Cache-Control: no-cache\rnn\"
"\r\n"
Is this enough or am I missing some other valuable information?
Thanks for all your help in advance.
Vince |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Mar 30, 2010 10:44 pm Post subject: |
|
|
"Content-Type: Application/og\r\n"
are you missing a g in the program or in the copy+paste?
karl. |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Tue Mar 30, 2010 10:56 pm Post subject: |
|
|
I left out the g by using cut "n"paste.
Vince |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Mar 30, 2010 11:01 pm Post subject: |
|
|
I'm not aware of any other details in the headers. Most headers tend to be informational, even content-type usually is. Is it just xine or are other players affected?
karl. |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Tue Mar 30, 2010 11:10 pm Post subject: |
|
|
Ogg123, winamp and curl seems to work. Kaffine does not work. I did not try anything else.
Vince |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Wed Mar 31, 2010 1:53 pm Post subject: |
|
|
Where in the trunk sources are the headers being captured to be use for connecting/sync in the middle of a stream. To give you a quick backround of what I found. It seems that the players that I am having problems with(Amarok, Kaffeine) can not recognize that a .ogg stream is present. But if I capture the stream wtih curl all players will playback the .ogg file.
Vince, |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Mar 31, 2010 2:54 pm Post subject: |
|
|
The http headers are stored in the parser in source->client (format.c). The ogg headers are stored in the buffers referenced from the queue (associated) but it sounds like that is working.
karl. |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Sun Apr 04, 2010 12:17 pm Post subject: |
|
|
Generally what is meant when you get Warning: discontinuity in stream (1). I am having problems with how to apply "window_blocksize(previous_win)/4 + window_blocksize(current_window)/4."
Vince |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Apr 04, 2010 1:28 pm Post subject: |
|
|
I'm not sure of the exact trigger for that message, it could be a lack of EOS flag or granulepos starting at a non-zero value or just a new logical stream. The latter point is just for calculating the number of complete samples which in icecast means generating the granulepos correctly when rebuilding the stream so that pages do not contain too many samples.
karl. |
|
Back to top |
|
|
lifestream
Joined: 19 Nov 2009 Posts: 19
|
Posted: Sun Apr 25, 2010 12:59 am Post subject: |
|
|
Seems that many of the players did not work because of the icy protocol. Change to the ice protocol all players work with the exception of mplayer: just said "garbarge".
Moving on, throttling: Although shout has throttling, I want to perform bandwidth throttling coming out of a encoder form a player. In a another post a reference was made to: find the samplerate, find currents samples match against the current clock time. Can you explain a little bit more. This is new for me as program writing is also. or can you give a good link?
Vince |
|
Back to top |
|
|
|