Re: MP3 skippety skip skipageness

thospel@mail.dma.be
12 Mar 1999 00:00:33 -0000


In article <19990311150800.U1888@is.co.za>,
Craig Schlenter <craig@is.co.za> writes:
> On Thu, Mar 11, 1999 at 07:29:49AM -0500, Mike A. Harris wrote:
> [snip]
>> I tried several mp3 players - all seem to skip to some extent.
>> None of them ever skip except very occasionally on a busy system
>> in 2.0.x. So therefore it is definitely something wrong, and not
>> an issue with a maxed out system or some such.
>
> One very strange thing for me was that a glibc version of amp skipped
> but a libc5 binary didn't. The libc binary was one that I got from
> somewhere and these days I just copy that one around where-ever I need
> it ... very strange and I haven't investigated again for several months
> so perhaps I imagined it all ... I must get around to sorting it out
> properly one of these days.
>
>> >All the other players I've tried skip to some degree. When playing a mp3
>> >from cd I have the odd skip as the cd spins up, amp reads some stuff,
>> >the cd spins down, amp wants to read more and skips while the cd spins
>> >up and so on ... irritating.
>>
>> Suggestions for your CD problem:
>>
>> cat the file to /dev/null prior to playing it. It may likely
>> stay in buffer cache. You might also want to try out a program
>> that changes your CD's spindown timer if the drive allows it.
>> Alternative to that, you can write a small script which runs
>> every X seconds which accesses a random sector on the CD.

Try the following for playing mp3's from CD. It basically copies the next mp3
to HD while playing the previous one. (I did this not due to skips, but
because the battery of the notebook lives way shorter if the CD keeps
spinning up and down during a song)

#! /bin/sh
case `uname` in
Linux)
rt=1
;;
*)
rt="";
;;
esac

tmp1=/tmp/amp.1
tmp2=/tmp/amp.2
trap "rm -f $tmp1 $tmp2" EXIT
j="$1"
shift
cp -f "$j" $tmp1
for i in "$@"; do
cp -f "$i" $tmp2 &
echo $j
if test "$rt"; then
rt -f -- amp -q $tmp1
else
amp -q $tmp1
fi
wait
mv -f $tmp2 $tmp1
j="$i"
done
echo $j
if test "$rt"; then
rt -f -- amp -q $tmp1
else
amp -q $tmp1
fi
.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/