mpvytdlp.sh 273 B

1234567891011
  1. #!/bin/sh
  2. content=$1
  3. cd /tmp || return
  4. yt-dlp --output yt-dlp_cache "$content"
  5. mv yt-dlp_cache* yt-dlp_cache
  6. ffmpeg -i yt-dlp_cache -vf scale=-2:480 -c:v libx264 -crf 0 -preset veryslow -c:a copy yt-dlp_cache-edit
  7. mpv yt-dlp_cache-edit
  8. rm -rf yt-dlp_cache*
  9. cd - || return