简体   繁体   中英

How to use ffmpeg on Java maven project?

I want to use pan control. But I'm confused how to use it. For example, I can run this command in terminal ffmpeg -i wmafile.wav -af “pan=stereo|c1=c1” outr.wav

How to implement this command in java?

Maven is also a dependency management solution, it will download libraries which you put in pom.xml. You can search for libraries here: https://mvnrepository.com/

If you want to use ffmpeg from java, you have at least two options:
find a ffmpeg library on mvnrepository and "import" it, or
use System.Diagnostics.Process.Start to run that command as a subprocess.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM