youtube-dl downloading unplayable audio files

169 Views Asked by At

I am trying to write a small youtube client for the blind. I am using 3 packages, fast-youtube-search, sound-lib which uses bass dll, and os to pass on comments to youtube-dl. I for an example enter the following

os.system("youtube-dl.exe -x --audio-format opus --output .dl.opus https://www.youtube.com/watch?v=5Ex5mrhJsh8") The download seems to go fine, no errors show up. But this file then can not be played, the bass is giving error 41, unsupported file type, but it usually plays Ogg files. Is there something I am doing wrong here?

0

There are 0 best solutions below