Thanks baker
>>107921241>>107945993Me again. This time I got a LITTERAL perfect setup for intelligent naming + metadata embed + WORKING thumbnail in Windows (this old shit).
Corrected config file :
# EJS scripts challenge solver
--remote-components ejs:github
# Max quality
# bv* : Best video, any format, ba : Best Audio, /b : any pre-merged best
-f bv*+ba/b
# Future-proof container
--merge-output-format mkv
# Allow playlists
--yes-playlist
# Start with last (optionnal)
--playlist-reverse
# Downloads folder
-P Downloads
# Clean naming with smart date in YYYY-MM-DD format (sorry burgers)
-o "%(upload_date>%Y-%m-%d)s - %(title)s.%(ext)s"
# ffmpeg
# --ffmpeg-location "ffmpeg/bin"
# Continue even if a video dies midway
# --ignore-errors
# Pull browser cookies
--cookies-from-browser YOUR_BROWSER_NAME
# Manual + auto subtitles (YouTube)
--write-subs
--write-auto-subs
--sub-langs ja,en
--embed-subs
# Other data
--embed-thumbnail
--embed-metadata
--embed-info-json
Command :
>yt-dlp -P "Downloads/SUBFOLDER_NAME" -o "%(was_live&Streams|Videos)s/%(upload_date>%Y-%m-%d)s - %(title)s.%(ext)s" --download-archive "Downloads/SUBFOLDER_NAME\Archive_Download.txt" --cookies "cookies.firefox-private.txt" https://www.youtube.com/playlist?list=UUMOZlDXzGoo7d44bwdNObFacg=> What it does :
Places videos in a subfolder "Videos" if they are videos, "Streams", if they're streams. Yeah I figured we might want to know the difference. Also embeeds the video thumbnail into the mkv file directly, as well as subtitles (with JP as default). Because playlists are a special case, I overwrote the output to make a difference between streams and videos, using the same command for just a video would place it in a subfolder. Works, but useless.
I removed subs conversion into .srt because it turns out to be absolute dog water, makes them display on top of each other like lego bricks. Also you'll need to delete the subs files manually, there's no option for it. If you don't, they appear a second time when opening the video, and it triples the files number.
IMPORTANT : Microsoft, being the useless fucks they are, didn't judge good to rework the explorer for it to crawl mkv files content to pull a cover from inside of it and use it as a file thumbnail. Thanksfully some people did a program exactly for that.
https://www.videohelp.com/software/IcarosEasy video on how to use :
https://youtu.be/iDzj9SHHvCA?t=559What it does is basically the job the explorer should do : use ffmpeg to pull specific frames of a video OR an image file embeded into it, and serve it to the explorer to use as icon. Also allows to remove the program icon on it and the reel edges. If you don't use this (only one launch needed) you WILL have the generic VLC icon on the mkv file.
Note that using mp4 extensions allows to have thumbnails working without this BUT the mp4 container doesn't allow custom metadata fields (such as the description) AND it also needs the thumbnail in jpeg or png, making it slightly heavier after conversion.
Also, I added all video metadata to the file; That includes video description, date, URL, Duration (yeah Windows can't even pull that itself) ; AND all extractor infos into a JSON. Contains notably view count, comment count, available and downloaded formats. If you don't care you can remove "--embed-info-json".
Fixing all that took me the day again. At least I didn't think about breaking my hands against the wall this time.