On Nov 05 10:18:50, cary.le...@gmail.com wrote: > I can pipe various internet streams, such as > http://stream-dc1.radioparadise.com:80/rp_96m.ogg > to play and it has no issues outputting the audio. > > I want to know if there is a way to determine > the total length of the stream,
What total length? It's a stream, it has no end. > and the current offset into the currently streaming track. $ play http://stream-dc1.radioparadise.com:80/rp_96m.ogg http://stream-dc1.radioparadise.com:80/rp_96m.ogg: File Size: 0 Encoding: Vorbis Channels: 2 @ 16-bit Samplerate: 44100Hz Replaygain: off Artist: Duration: unknown Title: Hozier - Like Real People Do In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 play WARN vorbis: Warning: hole in stream; probably harmless In:0.00% 00:00:12.91 [00:00:00.00] Out:569k [-=====|======] Hd:2.1 Clip:0 > Each time a new song starts to play, or whenever the stream is first > accessed, there is a header that details the track title, artist, etc. I'm not sure SoX processes that. It keeps on playing the infinite stream, counting total time. > I would like to be able to output the total length of the current track and > have play output where in the track the playback is currently occurring. > Is there a way to do that, or is it a function of how the stream is being > generated? They seem to correctly send the new info for the current track: 1. when you connect, 2. when the next track starts. But I don't think SoX processes any other info than the first. Playing the same with mplayer resets the timer to 0:0 with a new track. Jan _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel