Closed mrpredalien closed 3 weeks ago
Try to copy everything from default.py
to user.py
and modify what's needed.
Also, you have a typo in height
: bestvideo[hetght<=1080]
Thank you, my bad, missed this part of copying everything from default file. And thank you for typo fix also
I'm setting up video format settings for yt-dlp in user.py as described in readme to download 1920x1080 max, but worker still tries to get 4k if available. Same format options works fine with local yt-dlp and is set globally in my /etc/yt-dlp.conf
Added section of user.py regarding video format:
VIDEO_YTDL_OPTS = [ '--format', 'best[res=1920x1080]/best[height<=1080]/bestvideo[hetght<=1080]+bestaudio', '--write-thumbnail', '--convert-thumbnails', FINAL_THUMBNAIL_FORMAT, ]
Part of worker container logs:
As you can see in log, worker gets 'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4', which is default in default.py under app_worker/ytdl_opts
When I replace value in default.py it works just fine and gets desired format options: