From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] Package suggestion: yeetube Date: Thu, 05 Oct 2023 11:07:55 +0000 Message-ID: <8734ypjpis.fsf@localhost> References: <87ttr67rkt.fsf@thanosapollo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , public@thanosapollo.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 05 13:07:35 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qoMCc-0005jH-FO for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Oct 2023 13:07:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoMBi-0005j4-WC; Thu, 05 Oct 2023 07:06:39 -0400 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 1qoMBd-0005PM-PY for emacs-devel@gnu.org; Thu, 05 Oct 2023 07:06:33 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoMBb-0001MB-Co for emacs-devel@gnu.org; Thu, 05 Oct 2023 07:06:33 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 151DB240105 for ; Thu, 5 Oct 2023 13:06:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696503989; bh=UEvZBLi1hH1Se5/QUCqGO6T1jHY4eZIqXoyVOuKljss=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=QzgSvPWKubEk7AbUf7sFuGBf61Ge73lCpAjiE9Pmym9r1IB9ZE3OnPE1WokB3gVtY yGfAZReKrxVMAqvmT/v7FftB1E3j7Y1ZPFaI7lJ4Seq7/tHcECqUPcjmVCftkoI9+M m5q2UoBrqyFqrAmhwkxW0wNpBHDz86gJpdfJjbm+lhLRV7bFTghHnPYQBjUz3gMA/J 9k3eoT2m0gAge6b/AWZup8NgmnaBFO+gUYjGdVlm/2A6ATGJUJ8tIRwpVdldFhrD/x kcO/qFSRc8QVcx8nKoj7Mcbl4kWoDday3l8xR+qyozau1iGmpImRf4s9aHWOeRV1jm NeIIGD/uYjH8Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1TJh231sz6tsf; Thu, 5 Oct 2023 13:06:27 +0200 (CEST) In-Reply-To: Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311295 Archived-At: Richard Stallman writes: > > > Search Youtube for query > > It must not use the actual youtube site, since that requires users to > run nonfree JS software. However, it is ok to access those videos > using the invidio.us proxies. AFAIU, no JS is involved here. Only `url-retrieve-synchronously' + parsing the retrieved URL. > > > Play video url, by default using mpv > > Is there a specific reason to prefer mpv rather than vlc? > I don't know which is better, but if we are going to make Emacs > prefer one, let's find which one is better and why. Both VLC and MPV support watching youtube videos via URL. (And not only youtube). AFAIU, the difference is that VLC implements reverse-engineered youtube API directly inside VLC, while MPV relies on external tool - yt-dlp. The advantage of VLC is that it never executes javascript, while yt-dlp may do it for some websites, including youtube (see https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/youtube.py#L3101) > > > Download video using yt-dlp > > Does this work on invidio.us? yt-dlp works on a large number of websites, including invidio instances. I am not sure about VLC (I do not use VLC now). > > > A minimal yt-dlp front-end, which is independent of the rest > > Can someone explain this concreely? yt-dlp is a program (Unlicense license, compatible with GNU GPL) that is able to _download_ videos from various websites, including websites that actively try to prevent users from downloading videos (for example, youtube and twitch). >From ethical perspective, yt-dlp (and thus mpv) has a disadvatage that it may sometimes execute downloaded javascript to work around websites that try to force users use javascript in order to watch videos. However, the amount of executed javascript is much smaller compared to using a proper browser - javascript is executed when website uses a complex javascript algorithms, that cannot be reverse-engineered, to generate access tokens to retrieve video stream. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at