-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
  • 52,146
  • 16
  • 84
  • 120
  • 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
  • 9,403
  • 4
  • 39
  • 82