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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -