-1

How do I 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

Tsyvarev
  • 60,011
  • 17
  • 110
  • 153
  • 7
    Possible duplicate of [How to run linux commands in java code?](http://stackoverflow.com/questions/3403226/how-to-run-linux-commands-in-java-code) – dnsh Sep 22 '16 at 11:22

1 Answers1

0
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 it this helps

Sahil Manchanda
  • 9,812
  • 4
  • 39
  • 89