problems mit pvf
Marc SCHAEFER (schaefer@alphanet.ch)
13 Dec 1998 1914:13:09 +0100
Gert Doering <gert@greenie.muc.de> wrote:
> Looks like the compression number is missing:
Well, I also experimented problems with wavtopvf when the input is
stereo.
The following script is a work-around on the problem. It basically
merges the two channels first before going pvftools.
If you don't go that step, the resulting PVF is corrupted and gives
no result to pvffile, and is played bizarrely on the ZyXEL.
NB: Also checked with SPEED=9600. Depending on your ZyXEL firmware
11025 doesn't work.
#! /bin/sh
# Convert from WAV to high-quality ZyXEL 2864
if [ $# != 1 ]; then
echo "$0: bad args."
exit 2
fi
SOX=~/ported/sox10p11/sox
PVFTOOLS=/usr/lib/mgetty/pvftools/
SPEED=11025
FNAME=$1
TMP_FNAME=/tmp/convert_$$
# Merge into one channel (maybe that could be done merged)
$SOX -t wav $FNAME -t wav -c 1 $TMP_FNAME
$PVFTOOLS/wavtopvf < $TMP_FNAME | $PVFTOOLS/pvfspeed -s $SPEED | $PVFTOOLS/pvftormd ZyXEL_2864 4 > $FNAME.rmd