ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

"File not found" when run inside a .jar

Open sameda opened this issue 5 years ago • 3 comments
trafficstars

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?

sameda avatar Jan 02 '20 12:01 sameda

Have you solved it?

stormstricker avatar Jan 28 '20 22:01 stormstricker

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.

Katsute avatar Apr 08 '20 20:04 Katsute

Would it be valid writing a temporary file from the InputStream, and delete on exit?

dfernandezm avatar Apr 10 '20 07:04 dfernandezm