Re: [Mpg123-users] writing to stdout cuts short
Brought to you by:
sobukus
From: Thomas O. <tho...@or...> - 2007-06-03 10:12:22
|
Am Sat, 02 Jun 2007 10:34:07 +0100 schrieb poncenby <sm...@po...>:=20 > Hi list, >=20 > i'm using mpg123 in conjunction with JustePort in order to stream to=20 > airtunes boxen. >=20 > i use mpg123 -s tune.mp3 | JustePort.exe - 192.168.1.33 0 On what system is this? Is this cygwin (wondering about the .exe)? >=20 > this works fine however the last few seconds of the stream are cut off=20 > and a message is displayed saying >=20 > [3:55] Decoding of tune.mp3 finished Well that message is normal. Is the reported length correct (3:55)? =20 > i'm really not sure why this would happen as mpg123 is (as far as I can=20 > tell) decoding the whole file, perhaps JustePort is finishing when=20 > mpg123 is finishing, but it shouldn't as there should still be stuff=20 > being piped to it. JusePort should finish when the pipe finishes. That should be when everythi= ng written by mpg123 has been read -- even after mpg123 ended. There should be nothing missing. First, please share the info what system / software environment (including = mpg123 version) your are working with, then we can start wondering what spe= cial property is the problem. What you also can try is to check the file size created by mpg123 -s tune.mp3 > tune.raw The size in bytes, divided by channel count, sample rate and 2 (for 16 bit = samples) should give you the length in seconds... If that is correct, you problem may lie within your shell or OS... hm, but = I don't want to speculate too much now. Thomas. |