Quantcast
Channel: OKWAVE 閲覧数の多い質問(Java/253)【本日】
Viewing all articles
Browse latest Browse all 68675

javaからffmpegの利用

$
0
0
ffmpegを呼び出してmp3変換を行いたいのですがずっと動いたまま終了せずに困っています。 import java.io.IOException; public class Cratemp3 { public static void main(String[] args) throws IOException, InterruptedException { ProcessBuilder processBuilder = new ProcessBuilder( "./ffmpeg", "-y" , "-i" , "sample.flv", "-acodec" , "copy" , "sample.mp3" ); Process process = processBuilder.start(); process.waitFor(); } } process.waitFor()を抜くと上手く動きますが process.waitFor()をいれると上手く動きません。 ffmpegで変換したmp3ファイルを使用して処理を続けたいのですがどうしたらいいのでしょうか? よろしくお願いします。

Viewing all articles
Browse latest Browse all 68675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>