using:
ffmpeg -y -threads 8 -loglevel fatal -i "H:\Output\iId_1_aid_1_DELAY_-53ms_17_50_53_5810_01.ac3" -ac 6 -ar 48000 -f sox - | sox --ignore-length --temp "H:\Temp" --buffer 524288 -S -t sox - -t wav h:\test.wav gain -n
the tmp file (libSoX.tmp.P1kAlM) used by sox doesn't get delete
when using:
ffmpeg -y -threads 8 -loglevel fatal -i "H:\Output\iId_1_aid_1_DELAY_-53ms_17_50_53_5810_01.ac3" -ac 6 -ar 48000 -f sox - | sox --ignore-length --temp "H:\Temp" --buffer 524288 -S -t sox - -t wav h:\test.wav gain -n
no temp file is deleted, running normalle multiple conversion calls in parallel I don't really know which sox instance created which tmp file, so manually deleting them isn't really an option.
adding -V -V to the call I get:
ffmpeg -y -threads 8 -loglevel fatal -i "H:\Output\iId_1_aid_1_DELAY_-53ms_17_50_53_5810_01.ac3" -ac 6 -ar 48000 -f sox - | sox -V -V --ignore-length --temp "H:\Temp" --buffer 524288 -S -t sox - -t wav h:\test.wav gain -n
sox: SoX v14.4.2
time: May 25 2016 08:58:44
compiler: gcc 5.3.0
arch: 1248 48 88 L OMP
Input File : '-' (sox)
Channels : 6
Sample Rate : 48000
Precision : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
sox INFO sox: Overwriting `h:\test.wav'
sox DBUG wav: Writing Wave file: Microsoft PCM format, 6 channels, 48000 samp/sec
sox DBUG wav: 1152000 byte/sec, 24 block align, 32 bits/samp
Output File : 'h:\test.wav'
Channels : 6
Sample Rate : 48000
Precision : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Comment : 'Processed by SoX'
sox DBUG libsox_i: mkstemp, name=H:\Temp/libSoX.tmp.P1kAlM (unlinked)
sox INFO sox: effects chain: input 48000Hz 6 channels (multi) 32 bits unknown length
sox INFO sox: effects chain: gain 48000Hz 6 channels 32 bits unknown length
sox INFO sox: effects chain: output 48000Hz 6 channels (multi) 32 bits unknown length
sox DBUG sox: start-up time = 0.050035
In:0.00% 00:00:33.38 [00:00:00.00] Out:1.60M [-=====|====- ] Hd:0.1 Clip:0
Done.
sox DBUG wav: Finished writing Wave file, 38449152 data bytes 1602048 samples
alternatively if one could name the temp file (not just the temp folder) I could identify the tmp file and delete it manually.
Would be nice if someone could look into this.
Windows doesn't allow deleting open files. To fix this, we'll have to keep track of all temp files created and delete from a cleanup function just before exit.