Hi Paul,
Thanks for the help.
Am 23.06.2017 19:56, schrieb Paul Nicholson:
Because @raw3 is format float8 instead of int2 as you
expected.
Hm, i did expect that @raw3 has the same format as @raw2 and that the
only difference is the changed samplerate.
@raw2 is int2 but the resampling into @raw defaults to
float8 again.
You can drop one of the stages:
sudo vtcard –d hw:1,0 –r96000 –b32 –c8 –B @raw
vtresample –r24000 –B @raw:1,2,3 @raw2,i2
vtwrite –B @raw2 /media/usbstick
will have the desired effect because @raw2 is int2 format
All right. But what if the vtcat stage would be not obsolete for some
reasons, how could i change the @raw3 format into ,i2 again? I tried
vtresample -r24000 @raw2 @raw3,i2 but the the process aborts, i.e. it
does not work like that.
and vtwrite always writes with the format of its input
stream.
I did expect that, RR.
If you don't need to tee anything else off @raw2,
you can pipeline it and save some overhead of the
circular buffer:
vtresample –r24000 –B @raw:1,2,3 -- -,i2 |
vtwrite –B @raw2 /media/usbstick
Very good, i will do so.
73, Stefan
|