Oh, and adding this block
sub = subprocess.Popen([
"sox",
inputfile,
"-C", "0",
"-b", "16",
"-r", "48000",
"-t", "flac",
"-"],
stdout=subprocess.PIPE,
stderr=devnull)
for line in sub.stdout:
line = line.rstrip()
log.debug(line)
I fill the log file with a nice FLAC-looking text so it's getting stuck in the pipe somewhere.
DEBUG transcode : 326: transcode() fLaC^@^@^@"^D<80>^D<80>^@^@^@^@^@^@^K¸^Bð^@®Fc^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^A°^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^GS^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^N¦^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^Uù^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^]L^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$<9f>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@+ò^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@3E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@:<98>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Aë^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@I>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@P<91>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Wä^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@_7^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@f<8a>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@mÝ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@u0^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@|<83>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<83>Ö^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<8b>)^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<92>|^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<99>Ï^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@¡"^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@¨u^@^@^@^@^@^@^@^@^@^@^@<84>^@^Aç ^@^@^@reference libFLAC 1.3.0 20130526^K^@^@^@^M^@^@^@TRACKTOTAL=13^K^@^@^@DISCTOTAL=1^R^@^@^@COPYRIGHT=Columbia^L^A^@^@DESCRIPTION=Interprètes : Depeche Mode, Performer; Martin L. Gore, Composer; Martin L. Gore, Lyricist; Ben Hillier, Producer; Christoffer Berg, Misc. Prod.; Ferg Peterkin, Engineer; Kurt Uenala, Misc. Prod.; Tomas Deltoro-Diaz, Assistant Engineer; Will Loomis, Ass...^S^@^@^@Album=Delta Machine^L^@^@^@DISCNUMBER=1^S^@^@^@Artist=Depeche Mode^K^@^@^@title=96.24