I want to write my own media converter application using ffmpeg. I have a couple of questions
我想用ffmpeg编写自己的媒体转换器应用程序。我有一些问题
-
Can I use a command line to make the conversion. I don't think that would work if the user hasn't installed ffmpeg on to his system. If that's the case, how'd I overcome it. I don't believe their API has anything for media conversion.
我可以使用命令行进行转换。如果用户没有在他的系统上安装ffmpeg,我认为这不会起作用。如果是这样的话,我怎么克服它。我不相信他们的API有任何媒体转换。
-
Is it possible to write it in Java?
是否可以用Java编写它?
1 个解决方案
#1
0
You can provide an ffmeg binary with your application, and use the ProcessBuilder and/or Runtime class to invoke it. You would need a different binary for each OS you intend to target though.
您可以为应用程序提供ffmeg二进制文件,并使用ProcessBuilder和/或Runtime类来调用它。对于您想要定位的每个操作系统,您需要一个不同的二进制文件。
#1
0
You can provide an ffmeg binary with your application, and use the ProcessBuilder and/or Runtime class to invoke it. You would need a different binary for each OS you intend to target though.
您可以为应用程序提供ffmeg二进制文件,并使用ProcessBuilder和/或Runtime类来调用它。对于您想要定位的每个操作系统,您需要一个不同的二进制文件。