echo "LOAD
/home/leedo/music/01_Freeway.mp3"|/usr/bin/mpg123 -R -
has a very unexpected output. Instead of playing the
track, it starts to play, but returns this output
@R MPG123
@I ID3:Freeway TV on the Radio
OK Calculator
Track 1
@S 1.0 3 44100 Joint-Stereo 2 320 2 0 0 0 128 2
@F 1 5355 0.02 139.88
@E Unknown command 'OAD'
@F 2 5354 0.05 139.85
@F 3 5353 0.07 139.83
@E Unknown command 'AD'
@F 4 5352 0.10 139.80
@F 5 5351 0.13 139.78
@E Unknown command 'D'
@F 6 5350 0.15 139.75
@F 7 5349 0.18 139.72
@E Unknown command '/home/leedo/music/01_Freeway.mp3'
@F 8 5348 0.20 139.70
@F 9 5347 0.23 139.67
@E Unknown command '/home/leedo/music/01_Freeway.mp3'
...
...
@E Unknown command 'p3'
@F 70 5286 1.82 138.08
@F 71 5285 1.85 138.05
@E Unknown command '3'
@F 72 5284 1.88 138.03
@F 73 5283 1.90 138.00
@F 74 5282 1.93 137.97
It then proceeds to play normally, but depending on the
filename it stops sometimes.
Logged In: YES
user_id=31075
this is because the pipe is being closed and remote.c doesn't handle
eof correctly. there is a commented-out exit call, that would terminate
mpg321 cleanly, but maybe it would be nicer to let mpg321 continue
when the pipe is closed (or breaks)
- till