Closed dng-nguyn closed 2 weeks ago
Hi, Thanks for bringing this up.
Somehow the downloaded Youtube audio file is corrupted, maybe caused by the recent patch of the Youtube API. So I fixed it in #305.
If you are still experiencing the same error, please let me know.
Hello! After taking a closer look, it seems that the issue stemmed from the file was being saved as .wav file. The issue only occurred when BGM Separation was used and not normally, and this may have confused the model, as .wav file container with AAC is non-standard.
The fix worked because ffmpeg converted AAC into pcm_s16le, which was the default for muxing into .wav files and is standard. But this adds additional overhead and not needed.
A more simpler fix, eliminating the need for converting and the additional overhead would be saving the file as .mp4:
def get_ytaudio(ytdata: YouTube):
return ytdata.streams.get_audio_only().download(filename=os.path.join("modules", "yt_tmp.mp4"))
Never mind, it seems that UVR converts into raw .wav audio anyways. The initial fix doesn't add additional overhead.
Closing as resolved. Thanks!
Which OS are you using? Arch Linux On enabling BGM Separation Filter with any models, the temporary youtube audio files is not recognized and the transcription fails to continue.