Closed flt6 closed 2 years ago
It haven't occurred recently.
I found it usually happens when I use it in windows but never occur in Linux.
Does this happen on the latest version?
I have test this just after I install it from pypi as latest version.
What's your platform?
Bug description
When running with arg "-v", error occurred when creating audio. Output file like this: C:\Users\****\AppData\Local\Temp\tmpxyvgfm07\tsm_out.wav: Invalid argument
What command did you use
What properties does your input video have?
Comments
The key question is
-v
, it only occur when it is used. I added breakpoint at render/audio.py , and find file is not closed after function read. I checked file wavfile.py, and addfid.close()
at line 226, but it doesn't work. The file is still not closed. I broke at line 97, I found fileaf_out.wav
is not closed, which resulted in that error.I tried to call this function from other file, but it runs well. At the second stop,
af_out.wav
can be deleted. Test code (***
is hidden due to private):