From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Thanos Apollo <public@thanosapollo.com>
Newsgroups: gmane.emacs.devel
Subject: Re: [NonGNU ELPA] Package suggestion: yeetube
Date: Thu, 05 Oct 2023 13:44:29 +0300
Message-ID: <87mswxiavi.fsf@thanosapollo.com>
References: <87ttr67rkt.fsf@thanosapollo.com>
 <CADwFkm=OV5rmDvVuyhrn8HusxsbJRe_THPNUrMNPjLzMssPjMg@mail.gmail.com>
 <E1qoLWe-0004Nd-T5@fencepost.gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="25847"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: mu4e 1.10.7; emacs 29.1.50
Cc: Stefan Kangas <stefankangas@gmail.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:48:14 2023
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1qoMpx-0006U0-E5
	for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Oct 2023 13:48:14 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces@gnu.org>)
	id 1qoMEl-0000ZN-DI; Thu, 05 Oct 2023 07:09:47 -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 <public@thanosapollo.com>)
 id 1qoMEk-0000Yh-49
 for emacs-devel@gnu.org; Thu, 05 Oct 2023 07:09:46 -0400
Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <public@thanosapollo.com>)
 id 1qoMEh-0002Qf-UE; Thu, 05 Oct 2023 07:09:45 -0400
Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id E95513200C08;
 Thu,  5 Oct 2023 07:09:40 -0400 (EDT)
Original-Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Thu, 05 Oct 2023 07:09:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 thanosapollo.com; h=cc:cc:content-type:content-type:date:date
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1696504180; x=1696590580; bh=uOuGsK/t7xaVRe5r7xqeUhfOWqfiHOrjNPZ
 zMnhqfXU=; b=yYJkpvNeJqSgiILfCxyDwemgKv1+cpTlafhoF7oUK0/ocx5XQz7
 RLP15K0nEU/tB6oFU7aIxv2kqNmcYHNEkZScV+c0p/hIdaelVKBMzPegX6Z/Sf83
 JZdc9il+bVptyozCjsB41kzAkteJcZFVBPgZ89iCRDDRu1BwDzbKfwwKTahmoTt9
 +8Tqxvrb4CQ6dg8nIkcbZvtYdYuA34Z2eIFKFiYBtkJB+5ztB1dm1J//8Wywqhje
 P4hL7W1Z0EIayg/vm/THAUXHYmUPwBQE42o9dFkkOEzzLVx/hoGl0CDr/nLH2ONF
 BXcg+90AtVKF7yXzAwcTdnYs4ovKh1MAlJg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm2; t=1696504180; x=1696590580; bh=uOuGsK/t7xaVR
 e5r7xqeUhfOWqfiHOrjNPZzMnhqfXU=; b=CkvSHfK+0qJTF86I9pBn5SnQs64Xj
 YuW/cCIkNqQ5vmekSFlLEbxoygF0olGYq9ZvXUU8gWl7mKdUmQM8sRpSjBq5ku6x
 ip7Hl77scu28bLHLt5NvxKU4mdQH+d8zoIR/4j5ukFLOgHHpYDtJNSHAQr2REEw/
 nIRLYMNuFVoSTC7o76peum77jZINc/MW43o5FNu/0JK4tg6SnhFjbxQCpzN6MNGB
 f+cFwQPVmhHaUVtuRjaGPfmDw9eBFl6rn+o+XgCo4DaWDScbBOKVgsF1enjZWHu9
 VX9RQk6aaTSdk93UvTuwCGftyRyjP5HDGoDKBwNbGD0gpfmuu/z7zBllg==
X-ME-Sender: <xms:dJkeZYjEnHin4aGOOY-Hw1JiGWH3hD2_mdlIGAMvqatQk4PqAlSKNg>
 <xme:dJkeZRD6p5iIhO0PzUk2Aq0h8TGQ1CyCODWTOTY_3tA9waFgPQmBURlC5quRYn6Bd
 PCZCrMCykSCB1lMlFw>
X-ME-Received: <xmr:dJkeZQExUEj-5MTyM9YGE-wxvAAWJhuuFsmpPfCqL4LpaWQ7v_4_kw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgeeggdefgecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvhhgrnhho
 shcutehpohhllhhouceophhusghlihgtsehthhgrnhhoshgrphholhhlohdrtghomheqne
 cuggftrfgrthhtvghrnhepteetgedvvdffffegfffglefggeduteefhfduheefveetleel
 kedvveevvdegudevnecuffhomhgrihhnpehthhgrnhhoshgrphholhhlohdrtghomhenuc
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpuhgslhhi
 tgesthhhrghnohhsrghpohhllhhordgtohhm
X-ME-Proxy: <xmx:dJkeZZQv-yXSbKDgOiGaeikm6pZ7_mn-6AQ7Wg_4rwDZt2t5cCR61Q>
 <xmx:dJkeZVz-ZUmJvttmakAZ_uKZoZnA6MziHJ2YqrcW0ZDa6NDP7GmoAQ>
 <xmx:dJkeZX6Rqqgopo0gKqxS5YQ9NL9OBvzVMY6r6SV1ozaCsFmdJ9gSxQ>
 <xmx:dJkeZWoZqc9Fku9TrjWyq7OAoLAQttpZnJ4ew_vYEyZUbaBVi_0OiA>
Feedback-ID: if6014997:Fastmail
Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 5 Oct 2023 07:09:39 -0400 (EDT)
In-reply-to: <E1qoLWe-0004Nd-T5@fencepost.gnu.org>
Received-SPF: pass client-ip=64.147.123.21;
 envelope-from=public@thanosapollo.com; helo=wout5-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-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." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=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:311297
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/311297>


Richard Stallman <rms@gnu.org> 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.
>

I'm not a web developer (or any kind of developer), but I don't 
think it uses any javascipt, apologies for my ignorance if that's 
not the case. I wanted this to be an 'Invidious' but as a text 
buffer for Emacs, without relying on the invidious project.


>   > >     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.
>

It has a custom option to use any other media player. I'm just 
familiar with mpv.

For example you can use GNU/Emms like so:

```
(setf yeetube-player #'emms-play-url)
```

which you can setup to use vlc.


>   > >     Download video using yt-dlp
>
> Does this work on invidio.us?
>

Yes

>   > >     A minimal yt-dlp front-end, which is independent of 
>   > >     the rest
>
> Can someone explain this concreely?
>
>   > >     YouTube functionality, to download multiple urls.
>
> Can someone explain this concreely?

yt-dlp is not specific to youtube. You can use it download videos 
from news sites etc since it accepts any m3u/mpd url


If you are familiar with ffmpeg, it works similarly to this 
command (function wise):


```
ffmpeg -protocol_whitelist file,crypto,data,https,tls,tcp -stats 
-i <URL.m3u> -codec copy <FILE.mp4>
```

e.g `yeetube-download-videos` just prompts the user to input any 
URL they like and downloads them as NAME. It also includes custom 
options to export content as audio only format etc.

-- 

Thanos Apollo
https://thanosapollo.com