Skip to content

Instantly share code, notes, and snippets.

@yene
Created May 12, 2023 18:05
Show Gist options
  • Save yene/f7dd6c6889fedc0b13feef2df3640dff to your computer and use it in GitHub Desktop.
Save yene/f7dd6c6889fedc0b13feef2df3640dff to your computer and use it in GitHub Desktop.
yt-dlp.conf
# do not stop on errors
--ignore-errors
# Write metadata to the video file
#--add-metadata
# skip modified time, use the current datetime for modification time
--no-mtime
# prefer mp4, and we don't need 4k
-f 'bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/bestvideo[height<=1080]+bestaudio'
# we want to merge with ffmpeg into mp4
--merge-output-format mp4
--ffmpeg-location /opt/homebrew/bin/ffmpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment