
I have two depending on what I’m grabbing is part of a playlist (where I want to maintain order) or not:
--download-archive archive.txt --write-auto-subs --sub-langs en --embed-subs -o "%(upload_date)s_%(title)s_%(id)s.%(ext)s" -S res,vcodec:h264,acodec:m4a
or
--download-archive archive.txt --write-auto-subs --sub-langs en --embed-subs -o "%(playlist_title)s/%(playlist_index)s_%(upload_date)s_%(title)s_%(id)s.%(ext)s" -S res,vcodec:h264,acodec:m4a
that --download-archive archive.txt
is a godsend for when I rediscover something I’ve already grabbed. I often move the files to better locations after, but archive.txt
doesn’t care. Embedding the subtitles, forcing h264/m4a (because more and more things are webp it seems), and renaming the file to the title + youtube ID are what make up the rest.
I’ve been lucky I guess – haven’t had a failure with force formats before, I always thought if it couldn’t download the format I wanted it was spinning the conversion over to ffmpeg. I haven’t really paid that close attention to the output. :-)