# If the mp4 vedio is without any frame (black screen) use this import os my_mp4="Video.mp4" base, ext = os.path.splitext(my_mp4) my_mp3 = base + '.mp3' os.rename(my_mp4, my_mp3)