Upload profile video, instead of profile photo [closed]

I am trying to upload a MP4 file instead of a image file jpg,gif.

I tried changing the function in the thumb nail creation from image extensions to video MP4 extensions, which never work, as the thumb nail GD function don’t support video files.

I modified the gd function to get the upload MP4 file to the folder where the profile updates is stored, with it original file name, Instead of the unique id name meant to bind to the actual file,

It also never update the database

I think it something to do with the GD support function, but how could I do it without this function, and bind file instead of binding the thumbnail.

Profile photo

I am basically trying to use MP4 instead!! Please check the above