[Mpg123-users] Decoding small clip of mpeg audio
Brought to you by:
sobukus
|
From: Nicholas J H. <nj...@ec...> - 2008-06-29 22:22:11
|
Hello,
Has anyone tried using mpg123 to decode small sections of a large MP3
to Wave file?
I have some MPEG Audio files, that I want to extract 30 second clips
from. It would be nice if I could give mpg123 the time ranges that I
want to extract. I guess with CBR files, I could do it using frame
counting, but it would be nice to just pass the times directly to
mpg123.
At the moment I am decoding the whole file, and then using sox to
extract the chunk of audio I want.
Before I start looking at hacking support into mpg123, has anyone
attempted anything like this before?
nick.
-k num, --skip num
Skip first num frames. By default the decoding starts
at the first frame.
-n num, --frames num
Decode only num frames. By default the complete stream
is decoded.
|