I am able to change the resolution of the video but I am getting error while trying to convert it to m3u8 format.
m3u8 format is not contains any video data, it just a text file of playlist someone gives a question like this from Quora
If you want to change the resolution of video by ffmpeg
, you can read document of scale
for example: ffmpeg -i input.mp4 -vf scale=320:240 output.mp4