Skip to content

Bug: forcing strictly "bestaudio" throws yt-dlp error on platforms that do not provide an audio-only stream #1

Description

@SKLD-xm

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.

Image The equivalent error in StashTrack:

Image

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions