ytfzf icon indicating copy to clipboard operation
ytfzf copied to clipboard

ytdl-format (option not found)

Open AaronStiff opened this issue 1 year ago • 4 comments

Before Making This Post

  • [x] I have taken a look at both man pages, ytfzf(1) and ytfzf(5)

What do you need help with?

When I try to play a video with alt+v, I get this error:

Error parsing option ytdl-format (option not found)
Setting commandline option --ytdl-format=bestvideo+bestaudio/best/bestvideo/bestaudio failed.

I've already installed youtube-dl and yt-dlp. I've seen several flags related to youtube-dl, but the man pages don't list what options I can pass them.

AaronStiff avatar Apr 01 '23 16:04 AaronStiff

What version of mpv do you have?

Euro20179 avatar Apr 04 '23 21:04 Euro20179

mpv 0.35.0-348-g0f13c38e72 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects

AaronStiff avatar Apr 04 '23 22:04 AaronStiff

I'm sorry, but idk what the problem is here. I can't replicate it, but the error is probably coming from mpv on this line $use_detach_cmd mpv --ytdl-format="$ytdl_pref" $(eval echo "$url_handler_opts") "$@" in the video_player function. That's about as much as I can figure out.

You could try uninstalling youtube-dl as having both youtube-dl and yt-dlp is unnecessary, and yt-dlp tends to work better.

Euro20179 avatar Apr 04 '23 22:04 Euro20179

No worries, it's not a very clear issue and I can't really offer much useful information. I probably messed something up compiling it all. Will try uninstalling youtube-dl.

AaronStiff avatar Apr 04 '23 23:04 AaronStiff