help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A way to watch (some) videos about Emacs with wget and mpv


From: Eduardo Ochs
Subject: Re: A way to watch (some) videos about Emacs with wget and mpv
Date: Thu, 29 Dec 2022 19:47:38 -0300

Hi Yuri, Emanuel, and all,

These tests work:

• (eepitch-shell)
• (eepitch-kill)
• (eepitch-shell)

  mpv --sub-file=http://angg.twu.net/eev-videos/emacsconf2021.vtt \
      http://angg.twu.net/eev-videos/emacsconf2021.mp4

  dl-video () {
      local urls=${1:-$(<$DL_FILE)}
      yt-dlp $dlp_opts -f 'bestvideo' ${=urls}
  }
  dl-720 () {
      local urls=${1:-$(<$DL_FILE)}
      yt-dlp $dlp_opts -f 'bestvideo[height=720]+bestaudio' ${=urls}
  }

  rm -Rv /tmp/dl-test/
  mkdir  /tmp/dl-test/
  cd     /tmp/dl-test/
  dl-video 'http://www.youtube.com/watch?v=vs3-HGB6iEw'
  # dl-720 'http://www.youtube.com/watch?v=vs3-HGB6iEw'

I commented out the one with "dl-720" because it produces a file with
the same name as the one with "dl-video" - this one:

  How to Read a Greek Play [vs3-HGB6iEw].webm

Emanuel, do you have tricks to convert a youtube URL to the filename
of the saved file, or to make yt-dlp save the name in a place that is
easy to retrieve?

  Cheers,
    Eduardo Ochs
    http://angg.twu.net/eepitch.html
    http://angg.twu.net/eev-videos.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]