Uses a codec that every social network accepts
$pip install codec-social-network
from codec_social_network import convert_vid
# If you are having problems uploading your videos to social networks,
# use this function to convert them. The codec works with every social network
# folders will be created if they don't exist
# ffmpeg must be installed
convert_vid(r"F:\newvidxx2.mp4",r"F:\convertedvideossocialnet\newvidxx2.mp4")