Converting a video to a vertical video with blurred sidebars

I was trying to convert a video to a vertical video with blurred sidebars in the android app. I tried the following code in the windows cmd command it works like a charm but when I tried it on android it just stuck in the processing part. Snapshot of my code for converting a video into vertical video``

String[] command = {"-i", inputfile,"-filter_complex","[0:v]scale=-2:iw*16/9,boxblur=luma_radius=min(h,w)/20:luma_power=1:chroma_radius=min(cw,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=w=ih*9/16",String.valueOf(outputFile)};

Am I missing any codecs here like x264?