How to execute linux command using Java -
how execute this:
ffmpeg -i missing/missing.mp4 -vf scale=-1:360 -c:v libx264 -crf 26 -preset veryslow -c:a copy missing_new123.m3u8
linux command using java code
runtime.getruntime().exec(new string[]{"sh", "-c", "ffmpeg -i missing/missing.mp4 -vf scale=-1:360 -c:v libx264 -crf 26 -preset veryslow -c:a copy missing_new123.m3u8"});
see helps
Comments
Post a Comment