download using python
brew install yt-dlp ffmpeg
update .bash_profile with this function (remember to source)
convert_to_mp4() {
if [ -z "$1" ]; then
echo "Usage: convert_to_mp4 <input_file>"
return 1
fi
input_file="$1"
output_file="${input_file%.*}.mp4"
ffmpeg -i "$input_file" -vcodec h264 -acodec aac "$output_file"
echo "Converted: $input_file -> $output_file"
}