Comments (6)
@bramp Could this be related with #76?
from ffmpeg-cli-wrapper.
More failed tests with similar results
[1:0]adelay=10000[t1];[t1]amix=inputs=1
(remove the pipe|
)[1:0]adelay=10000[t1],[t1]amix=inputs=1
(replace the semicolon;
)
The last filter would allow us to run from the command line as ffmpeg -y -v error -i video.trk -i audio.trk -filter_complex [1:0]adelay=10000[t1],[t1]amix=inputs=1 -c:v copy out.webm
, but both produce wrong output when run from a Java program.
from ffmpeg-cli-wrapper.
It seems like it is related to how ProcessBuilder
handles those args, and the fact that certain args have to be escaped. I've managed to get it working with this workaround
ffmpeg = new ProcessBuilder(
new String[] { "/bin/sh", "-c", "/usr/local/bin/ffmpeg " + argsStr })
.redirectErrorStream(true).start();
Not sure the "/bin/sh" , "-c"
is something you want to have there. Should I upload a PR?
from ffmpeg-cli-wrapper.
@bramp Would you accept a pull request with this modification?
from ffmpeg-cli-wrapper.
There are a lot of Windows users of this library, so I wouldn't want to put a Linux specific fix in place. I will accept pull requests to fix this in a generic way.
from ffmpeg-cli-wrapper.
I just read more about the failings in how java handles character escaping. http://bugs.java.com/view_bug.do?bug_id=6468220 and http://bugs.java.com/view_bug.do?bug_id=6518827
It might be worth using https://commons.apache.org/proper/commons-exec/index.html instead of the process builder. Happy to accept that pull request.
from ffmpeg-cli-wrapper.
Related Issues (20)
- Get console output of FFMPEG.run command | volume detect HOT 1
- CVE-2023-39018: Assumed code injection vulnerability of `net.bramp.ffmpeg.FFmpeg.<constructor>` HOT 12
- This is an issue created by mistake.
- Release a new version HOT 2
- How to perform screen recorder using this library?
- FFmpegChapter id needs to be a long HOT 4
- FFmpegJob running. how to do force stop job? HOT 1
- Re-attaching to the progress TCP port HOT 1
- How To Use FFmpegBuilder Create The Thumb Image
- invalid time 'N/A' when use progress listener HOT 6
- Add missing Attachment codec types
- Replace animal sniffer with javac parameters
- Plan for moving to newer java versions + modernising library HOT 20
- Add FFmpegInputBuilder to support per input options HOT 1
- Publish a 0.9 version HOT 11
- Generating an incorrect command with a parameter "-f" HOT 2
- Why does `.addExtraArgs` call have to be added after `.addOutput` call? HOT 1
- Can I output to memory as byte array or buffer directly without creating a file?
- How to create custom inputs arguments. HOT 1
- Build failed for PR: #304, ffmpeg commandline utility stdout output to Appendable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-cli-wrapper.