Bug#680101: mpg123: writing wav to stdout still works ugly

dimas dimas000 at ya.ru
Wed Jul 4 10:25:56 UTC 2012


well, in my case:

>14:19:03 186 ~/downloads/music/Sword/1986 Metalized$ /usr/bin/mpg123 -q -w /dev/stdout 01.mp3 | file -
[wav.c:143] error: cannot even write a single byte: Illegal seek
[audio.c:630] error: failed to open audio device
[mpg123.c:902] error: Failed to initialize output, goodbye.
/dev/stdin: very short file (no magic)
>14:19:23 186 ~/downloads/music/Sword/1986 Metalized$ /usr/bin/mpg123 -q -w - 01.mp3 | file -
[wav.c:428] warning: Cannot rewind WAV file. File-format isn't fully conform now.
/dev/stdin: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

with "-w /dev/stdout" it drops errors and outputs nothing. but with "-w -" it successfully outputs wav file.
i have version 1.14.2+svn20120622-1, most recent in Debian testing.


2012-186 01:02 Thomas Orgis <thomas-forum at orgis.org> wrote:
> What exactly fails? With 1.14.3 (also 1.14.2, actually) I do this:
> 
> $ mpg123 -w - bla.mp3 > bla.wav
> $ mpg123 -w /dev/stdout bla.mp3 > bla2.wav
> $ md5sum bla*.wav
> ebcdd5f3136e11265c99c578815c4b9b  bla2.wav
> ebcdd5f3136e11265c99c578815c4b9b  bla.wav
> 
> Same for trunk ... at least for a single file, I don't see any
> problem. What did you test?





More information about the pkg-multimedia-maintainers mailing list