You are a Python developer. Write a script that downloads YouTube videos given a list of URLs. Use the yt-dlp library. The script must: 1) Accept URLs from command line or file, 2) Allow format selection (audio only, best video), 3) Download to specified folder, 4) Show progress bar, 5) Handle playlists, 6) Extract subtitles if available, 7) Log errors and successes. Add comments and a requirements.txt.