agermanidis / autosub

[NO LONGER MAINTAINED] Command-line utility for auto-generating subtitles for any video file
MIT License
4.15k stars 1.65k forks source link

Temp Folder Permissions Denied on Windows 10 #15

Open Yasser-Mahmoud opened 8 years ago

Yasser-Mahmoud commented 8 years ago

I am running into this problem I don't know what to do

asd

aaoudi commented 8 years ago

I'm having the same issue, any luck?

Yasser-Mahmoud commented 8 years ago

No, I had to try it on linux. The code worked flawslessly but the output file is zero byte. Let me know if you had any luck

aaoudi commented 8 years ago

Interesting, still no luck on win32 but I'll try to run it on a nix box and see what happens, I'll let you know what happens.

aaoudi commented 8 years ago

ok, got it to work on Linux as well but the same issue, however I think I know why it's not working. The Speech API is no longer available for the public. I was trying to get my own API key but there doesn't seem to be away to do that unless you're working on the Chromium project.

https://www.chromium.org/developers/how-tos/api-keys

avi-barnea commented 8 years ago

close the .flac file before running ffmpeg on it. in class FLACConverter change to :

temp = tempfile.NamedTemporaryFile(suffix='.flac') temp.close()

command = ["ffmpeg", "-y", "-i" , self.source_path, "-ss", str(start), "-t", str(end-start), "-loglevel", "error", temp.name] subprocess.check_output(command)

os.system('stty sane')

return open(temp.name, "rb").read()

sknbl commented 8 years ago

temp = tempfile.NamedTemporaryFile(suffix='.flac', delete=False)

toannguyen3105 commented 8 years ago

Tks you

OldSchool297 commented 7 years ago

I have the same problem but i use Vista, how should i edit the autosub_app?

OldSchool297 commented 7 years ago

I solved it by only change temp = tempfile.NamedTemporaryFile(suffix='.flac', delete=False) Thanks very much for the help