ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
"File not found" when run inside a .jar
I used this library in my spring-boot application and it was running OK, but when I deployed the application with a jar file, compression stopped working as it expects to find the input file in the file system, whereas the file is located in the resources, inside the jar. Is there a solution for this, as the setInput() method of the builder only accepts the file path, and not an InputStream for example?
Have you solved it?
The library itself does not format files, it wraps the FFMPEG exe; meaning that since FFMPEG itself does not offer input streams as a valid input, the java library also can't offer the input stream as an input.
Would it be valid writing a temporary file from the InputStream, and delete on exit?