ffmpeg -i input.mp4 -c:v libx264 -crf 19 -strict experimental output.mp4
I have used the above command to convert codec. Video converted successfully