From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: A way to watch (some) videos about Emacs with wget and mpv Date: Thu, 29 Dec 2022 19:47:38 -0300 Message-ID: References: <87mt79ys2v.fsf@posteo.net> <87tu1h11u5.fsf@dataswamp.org> <873590mgiy.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33152"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org, Yuri Khan , Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 23:48:13 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pB1h6-0008OG-TJ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 23:48:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pB1gp-0004sJ-T4; Thu, 29 Dec 2022 17:47:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pB1go-0004rv-Dx for help-gnu-emacs@gnu.org; Thu, 29 Dec 2022 17:47:54 -0500 Original-Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pB1gm-0005wi-S6 for help-gnu-emacs@gnu.org; Thu, 29 Dec 2022 17:47:54 -0500 Original-Received: by mail-io1-xd30.google.com with SMTP id h6so10361365iof.9 for ; Thu, 29 Dec 2022 14:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ihoeshJcZsoDoRBbZEEBTFknqsQuJFyYgnmL5mSBmx0=; b=CvQAjab63nSTqUzhR165Mk3ge0+eT66Kg3XzyZuVH0THSiTZLUkimtSPIRip/DfUzh 32suRRH7wN9vjfmsUopK6VLgf+B3QHIxt15t1li42XfsaiUSZWqNWaj+RzpUslGhdrfB ODxUELgNwZFg2aysBz76hHzpdTZW0c3A+yBmJLEEQ25j+YiN89AtP+1eSe+/SJdCaQho Sf7BWdSW0NqgyEVFKwxEnFlhyb9dxVwm3Jq6884eMmrchPH3d299b5bQXTh5JUUJXRVP PD14vdGA+fIGdD4PqVQUZWimxjgiUG5xL/wkt6sztTFt79oOX5Oaix+KX9Nwt68Rss7O S0Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ihoeshJcZsoDoRBbZEEBTFknqsQuJFyYgnmL5mSBmx0=; b=ByuKNKK8vB8WIc9UcgTZFJkLqN8/ijcRBDDIYiEIUy99/b2pZ+SYWH4peYZvx3JNuD iV3v7yqB+L+5BXV5BFQr4dFE/tZVAHjKAORiSRrTRyplMb9xI21GEYC6opyczAc9zr0E diszOIXp05LpnOmIDOH1JErQ9YhuTwa/yPKED1JP1G5sdIxALTQzrLN0g8wmqdhABfpV skF/nhQm0XJY3qqAfRPELYdqMzaMDFGUv1Pj/DTyO2MTnNRUj6J6l36N9ZTK2vBXAxUD A1XT3fnDxS4vye/uyFAv/2uphYKf1reUvgnodan4OBVbH8Uk39ENG+KoAxWrd/gaENJs kIHw== X-Gm-Message-State: AFqh2kp1vdMyxd3j8Dptl+lldlUGi9HPumjamSgPh3jI3ax0H3QPyQ87 t4SxDzNmEolltxayW342zj5MEK186vCw6hXvEnMMEeNpXoA= X-Google-Smtp-Source: AMrXdXtQx5Iv17SQXFGf/IEeiYnLAjUHKQ0xIQSdZX0TY7Zc8CQUzqxTw/NbT/3agSyPbEA0++V+Pxp4X0RC3MCee20= X-Received: by 2002:a05:6638:329f:b0:39d:6ef4:d1d5 with SMTP id f31-20020a056638329f00b0039d6ef4d1d5mr2462200jav.227.1672354070642; Thu, 29 Dec 2022 14:47:50 -0800 (PST) In-Reply-To: <873590mgiy.fsf@dataswamp.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::d30; envelope-from=eduardoochs@gmail.com; helo=mail-io1-xd30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142050 Archived-At: Hi Yuri, Emanuel, and all, These tests work: =E2=80=A2 (eepitch-shell) =E2=80=A2 (eepitch-kill) =E2=80=A2 (eepitch-shell) mpv --sub-file=3Dhttp://angg.twu.net/eev-videos/emacsconf2021.vtt \ http://angg.twu.net/eev-videos/emacsconf2021.mp4 dl-video () { local urls=3D${1:-$(<$DL_FILE)} yt-dlp $dlp_opts -f 'bestvideo' ${=3Durls} } dl-720 () { local urls=3D${1:-$(<$DL_FILE)} yt-dlp $dlp_opts -f 'bestvideo[height=3D720]+bestaudio' ${=3Durls} } rm -Rv /tmp/dl-test/ mkdir /tmp/dl-test/ cd /tmp/dl-test/ dl-video 'http://www.youtube.com/watch?v=3Dvs3-HGB6iEw' # dl-720 'http://www.youtube.com/watch?v=3Dvs3-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