← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #291742]: missing part of command line output

 

Question #291742 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291742

    Status: Answered => Solved

tranquillo confirmed that the question is solved:
Thank your RaiMan,

same behaviour here on attempts with ffmpeg insteat of sox here. The used cmdline with that is:
query = 'ffmpeg.exe  -i "T002.wav" -af volumedetect -f null null.wav'

-> result: Only the first line of the output is returned to sikulix/the
script.

FYI: If on the windows shell the output pipe (in Windows ">" or ">>") is
used for that, the output file is always empty. Maybe this helps for
debugging.

> The following would be helpful:
> run on commandline:
> sox.exe "a.wav" -n stat 1>logOut.txt 2>logError.txt

The logOut.txt has a size of 0byte and the logError.txt contains the
needed lines of output i needed.


The workaround with subprocess seems to be working fine with:

query = 'f:\\...\\ffmpeg.exe  -i "f:\...\T002.wav" -af volumedetect -f null foo.wav'
proc = subprocess.Popen(query, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1)
print proc.communicate()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.