RedditPP Mascot

RedditPP

r/youtubedl • … • u/EOverM

Why isn't my template working?

Hi all,

I'm using the YT-DLP Web UI Docker container by marcobaobao, which just passes the commands in the templates I define to a YT-DLP command within the container. It's downloading fine, and I've had considerable success getting audio-only for music, but I don't seem to be able to get it to filter based on video codec. The template I'm trying to use is

--no-mtime -f "bv*[vcodec^=avc][height<=1080]+ba/b[ext=mkv]"

I can't figure out why this isn't working. I've tried various variations on the theme, but none of them work - it just downloads the "best" available, which in this case is an AV1 encode. Several h.264 encodes are available at various resolutions, including the one I'd like this to grab. It's an older movie, so the highest res available is 480p, which should be covered by this. What I want is to get h.264 video, with whatever the best audio available is, no larger than 1080p. As far as I can tell, what I have *should* work, but it's being ignored. What am I getting wrong? I've bashed my head against the documentation for hours and can't find *anything* to tell me why it's not working.

I'm not married to the MKV part - I have Tdarr set up to remux everything anyway, so that's not necessary. It'd just be nice for it to be done in the download process if possible.

Edit: for anyone coming along later and seeing this - it seems like it doesn't currently pass those arguments through. To pick quality, you can't set it once and forget. You have to enable the setting to allow video/audio format selection and manually choose for each video. Which is... less than ideal. Might be time to find a new web UI for it, of which many exist.

— 0