You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
how can i use an InputStream as input in the "setInput" option?
like defined in the audiowaveform example:
$ ffmpeg -i test.mp4 -f wav - | audiowaveform --input-format wav --output-format dat -b 8 > test
thank you
The text was updated successfully, but these errors were encountered:
Hello @AeonDave ,
Currently only objects from type java.io.File can be passed as parameter for the "setInput" function. As a workaround you could write the inputstream into an temporary File object and pass this into the function...
hello and Thank you!
it's a good workaround for the input, but how to use the output as string?
exactly as in the example above: "--output-format", if format is json, no file is created and there is only an array of numbers.
thank you for your work
Hi @AeonDave,
you can define the output to be a json file via setOutput(new File("path/to/myJsonOutput.json")) function. You could then read the json output file with for example Jacksons ObjectMapper class to an string or java class.
Hello!
how can i use an InputStream as input in the "setInput" option?
like defined in the audiowaveform example:
$ ffmpeg -i test.mp4 -f wav - | audiowaveform --input-format wav --output-format dat -b 8 > test
thank you
The text was updated successfully, but these errors were encountered: