Bonjour,
cette commande avec mplayer :
mplayer cddb:// -ao null -frames 0
me donne :
Playing cddb://.
Found audio CD with 6 tracks.
================ CD INFO === start =========
artist=[Mike OLDFIELD]
album=[Crises (2000 Remastered HDCD)]
genre=[Progressive Rock]
nb_tracks=6
length= 37:29.20
# 1 20:48.46 @ 150 [Crises (2000 Remaster)]
# 2 3:38.21 @ 93795 [Moonlight Shadow (2000 Remaster)]
# 3 3:33.13 @ 110165 [In High Places (2000 Remaster)]
# 4 3:53.19 @ 126152 [Foreign Affair (2000 Remaster)]
# 5 2:25.56 @ 143645 [Taurus 3 (2000 Remaster)]
# 6 3:10.21 @ 154575 [Shadow On The Wall (2000 Remaster)]
================ CD INFO === end =========
rawaudio file format detected.
Crises (2000 Remaster)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
Exiting... (End of file)
je voudrais que ça m'affiche que ça :
1 [Crises (2000 Remaster)]
2 [Moonlight Shadow (2000 Remaster)]
3 [In High Places (2000 Remaster)]
4 [Foreign Affair (2000 Remaster)]
5 [Taurus 3 (2000 Remaster)]
6 [Shadow On The Wall (2000 Remaster)]
J'ai trouvé ça sur le net :
mplayer cddb:// -ao null -frames 0 | grep '#' | awk 'NR>1{print "["$1"]"}' RS=[ FS=]
qui me donne ça :
[Crises (2000 Remaster)]
[Moonlight Shadow (2000 Remaster)]
[In High Places (2000 Remaster)]
[Foreign Affair (2000 Remaster)]
[Taurus 3 (2000 Remaster)]
[Shadow On The Wall (2000 Remaster)]
mais je n'arrive pas à afficher le numéro des morceaux.
Une idée ?
Dernière modification par Anonyme (03-11-2019 09:00:47)