Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for actual existence of TMPDIR before initiating ffmpeg? #82

Open
roschler opened this issue Nov 22, 2020 · 0 comments
Open

Check for actual existence of TMPDIR before initiating ffmpeg? #82

roschler opened this issue Nov 22, 2020 · 0 comments

Comments

@roschler
Copy link

I just had a long head-scratching session that could be solved with a simple addition to audiosprite. On Linux at least, audiosprite uses the directory found in the TMPDIR environment variable for temporary file creation. Because it is the only app on my PC that uses that variable it took me a while to figure out what my root problem was with my audiosprite runs, since they were failing with the dreaded ENOENT error. The problem turned out to be that the directory value assigned to TMPDIR was invalid. That is, the value assigned to TMPDIR did not exist on my disk. Once I figured this out I changed TMPDIR to a valid directory and audiosprite worked fine.

I suggest having audiosprite do a directory existence check for the directory found in TMPDIR, before actually trying to run ffmpeg, and reporting a fatal error if the directory is not found.

Thank you for creating this useful utility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant