Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-f '(mp4)[height=1080' ERROR: requested format not available #497

Closed
QrchackOfficial opened this issue Dec 17, 2021 · 5 comments
Closed
Labels
is: bug Something isn't working

Comments

@QrchackOfficial
Copy link

Built in resolution setting (Max quality) probably has a typo, at least for subscriptions:
image

The issue appeared yesterday after I pulled the nightly Docker image to update my copy

Sample:

Error while retrieving info on video with URL https://www.youtube.com/watch?v=4ucN1ETDXTE with the following message:
Error: Command failed with exit code 1:
/app/node_modules/youtube-dl/bin/youtube-dl -o subscriptions/channels/w2aew/%(title)s.%(ext)s
--write-info-json --print-json -f '(mp4)[height=1080'
--cookies appdata/cookies.txt --write-thumbnail --embed-subs
--mark-watched --write-auto-sub --sub-lang en -r 50K --embed-subs
 --mark-watched --write-auto-sub --sub-lang en --dump-json http://www.youtube.com/watch?v=4ucN1ETDXTE
ERROR: requested format not available

Note the lack of closing bracket near -f '(mp4)[height=1080'. So far I've worked around this by setting Max quality to best and adding a global custom arg, but this is probably a bug so I'm reporting here.

@ghost
Copy link

ghost commented Dec 20, 2021

I'm having this same issue and the same cause when using lower resolutions as well.

@GlassedSilver GlassedSilver added the is: bug Something isn't working label Jan 9, 2022
@a1ad
Copy link

a1ad commented Feb 12, 2022

Same here, I can't download any video of my subscriptions. @QrchackOfficial what custom arg do I need to add?

@QrchackOfficial
Copy link
Author

At the moment I'm using yt-dlp downloader and added this as my global custom args:

--embed-subs,,--mark-watched,,--write-auto-sub,,--sub-lang,,en,,-f,,best[height<=1440][ext=mp4]/best[height<=1440]/best[ext=mp4]/best,,-r,,50K

All subscriptions are set to "Best" Max quality with no custom arguments.

@GlassedSilver
Copy link
Collaborator

GlassedSilver commented Apr 9, 2022

Please restart your YoutubeDL-Material container. (and consider pulling the latest nightly of the docker container as well)

That will trigger an update of yt-dlp (if you use that, which I recommend!). A new release of yt-dlp dropped yesterday and it helped a LOT with my downloads succeeding! :)

Alternatively you can bash into your YTDL-M container and update the yt-dl fork binary like so (regardless of which binary you selected by the, but again, yt-dlp is the recommended one):

/app/node_modules/youtube-dl/bin/youtube-dl -U

@GlassedSilver
Copy link
Collaborator

Blocked by #544 as far as I can tell. Progress on this will be tracked there from now on. Feel free to discuss there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants