If i use
Code: Select all
mplayer http://radio.address > playlist.txt
and configure mplayer to display status line the output is like this:
Code: Select all
ICY Info: StreamTitle='aqua - my oh my (h2o club mix)';StreamUrl='';
A: 1.3 (01.3) of 0.0 (unknown) ??,?% 18%
A: 1.3 (01.2) of 0.0 (unknown) 1.3% 22%
A: 1.3 (01.3) of 0.0 (unknown) 2.0% 22%
A: 1.3 (01.3) of 0.0 (unknown) 2.0% 22%
A: 1.3 (01.3) of 0.0 (unknown) 2.0% 22%
A: 1.3 (01.3) of 0.0 (unknown) 1.9% 22%
......
.....
....
A: 424.0 (07:03.9) of 0.0 (unknown) 1.1% 45%
A: 424.0 (07:04.0) of 0.0 (unknown) 1.1% 45%
A: 424.0 (07:04.0) of 0.0 (unknown) 1.1% 45%
A: 424.0 (07:04.0) of 0.0 (unknown) 1.1% 45%
ICY Info: StreamTitle='jam & spoon feat plavka - find me (odyssey to anyoona)';StreamUrl='';
A: 424.0 (07:04.0) of 0.0 (unknown) 1.1% 45%
A: 424.0 (07:04.0) of 0.0 (unknown) 1.1% 45%
A: 424.1 (07:04.0) of 0.0 (unknown) 1.1% 45%
A: 424.1 (07:04.0) of 0.0 (unknown) 1.1% 45%
....
....
....
On console the status line is periodicaly overwriten, because each line starting with "A:" is terminated by /r, but in the playlist file are all this informations on one very long line, which is terminated when the new metadata come. So the file playlist is extremely big. If i filter the output and save only first e.g. 100 charakters of each line. An output would be like this:
Code: Select all
ICY Info: StreamTitle='aqua - my oh my (h2o club mix)';StreamUrl='';
A: 1.3 (01.3) of 0.0 (unknown) ??,?% 18%
ICY Info: StreamTitle='jam & spoon feat plavka - find me (odyssey to anyoona)';StreamUrl='';
A: 424.0 (07:04.0) of 0.0 (unknown) 1.1% 45%
You can see that now you get easy approximative start time of each song. I have idea how to make it in Linux, but no idea in Windows.
Another problem is, that when i use
Code: Select all
mplayer -dumpfile music.aac -dumpstream http://radio.address > playlist.txt
then the status line is not displaying. Only "ICY Info:" But this is rather for Mplayer forum.
I don`t know if something like this works in VLC.