Certain platforms, such as TikTok, do not appear to provide an audio-only stream accessible by yt-dlp. The use of the -f bestaudio flag, as used by StashTrack, hence causes a "requested format is not available" error when attempting to download from these platforms.
The equivalent error in StashTrack:
(for reference, the URL is https://www.tiktok.com/@www.heyselcuk.com/video/7658231236090957078.)
This can be resolved by passing "bestaudio/best" instead, like so:
yt-dlp -f "bestaudio/best" -x --audio-format wav --print after_move:filepath --output "<downloadFolder>/%(title)s.%(ext)s" <URL>
The fallback would use the more bandwidth-costly "best", which downloads the full pre-muxed stream directly, but it should prevent errors. I imagine this wouldn't be noticeable on most short-form content anyway.
Thank you for developing this VST, by the way. It's incredibly useful.
Certain platforms, such as TikTok, do not appear to provide an audio-only stream accessible by yt-dlp. The use of the
-f bestaudioflag, as used by StashTrack, hence causes a "requested format is not available" error when attempting to download from these platforms.(for reference, the URL is https://www.tiktok.com/@www.heyselcuk.com/video/7658231236090957078.)
This can be resolved by passing "bestaudio/best" instead, like so:
yt-dlp -f "bestaudio/best" -x --audio-format wav --print after_move:filepath --output "<downloadFolder>/%(title)s.%(ext)s" <URL>The fallback would use the more bandwidth-costly "best", which downloads the full pre-muxed stream directly, but it should prevent errors. I imagine this wouldn't be noticeable on most short-form content anyway.
Thank you for developing this VST, by the way. It's incredibly useful.