MP3 file 'working' in some cases but not others

56 Views Asked by At

I using rust to get an MP3 file from a YouTube link using the rusty_ytdl crate, but using the download implementation from the Video struct results in a rather odd mp3 file. The file plays fine using windows' native media player, but trying to play it using the rodio crate results in an error with Decoder; IoError("end of stream"). Trying to play the file through VS Code also doesn't work, saying that An error occured while loading the audio file. Both the rodio crate and VS Code's native mp3 player work just fine with other MP3 files, and problems only occur with files downloaded through the rusty_ytdl crate. Why is this occuring and how do I fix it? Edit: the mp3 file in question is https://www.dropbox.com/scl/fi/sj0xxjh52ipnbapgcjit3/Amour.mp3?rlkey=dlaad2yauzd688d1lgy7k4tjb&dl=0

0

There are 0 best solutions below