Thanks for the clarification.
Apparently it works as expected when it is called in a different order. /tmp ▶ sox -r 16000 -n silence.wav trim 0s 4000s /tmp ▶ sox --i silence.wav Input File : 'silence.wav' Channels : 1 Sample Rate : 16000 Precision : 32-bit Duration : 00:00:00.25 = 4000 samples ~ 18.75 CDDA sectors File Size : 16.1k Bit Rate : 515k Sample Encoding: 32-bit Signed Integer PCM Sorry, I guess I don't really understand things very well. Also I don't really understand why it would be different when using samples or...
Apparently it works as expected when it is called in a different order. /tmp ▶ sox -r 16000 -n silence.wav trim 0s 4000s /tmp ▶ sox --i silence.wav Input File : 'silence.wav' Channels : 1 Sample Rate : 16000 Precision : 32-bit Duration : 00:00:00.25 = 4000 samples ~ 18.75 CDDA sectors File Size : 16.1k Bit Rate : 515k Sample Encoding: 32-bit Signed Integer PCM Sorry, I guess I don't really understand things very well. Also I don't really understand why it would be different when using samples or...
Apparently it works as expected when it is called in a different order. /tmp ▶ sox -r 16000 -n silence.wav trim 0s 4000s /tmp ▶ sox --i silence.wav Input File : 'silence.wav' Channels : 1 Sample Rate : 16000 Precision : 32-bit Duration : 00:00:00.25 = 4000 samples ~ 18.75 CDDA sectors File Size : 16.1k Bit Rate : 515k Sample Encoding: 32-bit Signed Integer PCM Sorry, I guess I don't really understand things very well.
Apparently it works as expected when it is called in a different order. /tmp ▶ sox -r 16000 -n silence.wav trim 0s 4000s /tmp ▶ sox --i silence.wav Input File : 'silence.wav' Channels : 1 Sample Rate : 16000 Precision : 32-bit Duration : 00:00:00.25 = 4000 samples ~ 18.75 CDDA sectors File Size : 16.1k Bit Rate : 515k Sample Encoding: 32-bit Signed Integer PCM Sorry, I guess I don't really understand things very well. Still it is kind of weird that it does work when seconds are used in stead of ...
trim nr samples different behavior from nr seconds