Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Mark Gaiser <markg85@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] ipfsgateway: Remove default gateway
Date: Tue, 16 Aug 2022 01:53:03 +0200
Message-ID: <CAPd6JnHAgDmaMMFLO+xfEAdGuWOK8bQa3mJt+eyZA02_EfXjyw@mail.gmail.com> (raw)
In-Reply-To: <YvrBOUcAjKl0qoCB@phare.normalesup.org>

On Mon, Aug 15, 2022 at 11:57 PM Nicolas George <george@nsup.org> wrote:

> Michael Niedermayer (12022-08-15):
> > It says this now:
> >                    "IPFS does not appear to be running.\n\n"
> >                    "Installing IPFS locally is recommended to "
> >                    "improve performance and reliability, "
> > That removes the gateway (because it cant be trusted and replaced it
> > by a litteral recommandition to install their software)
> > replace loging by code exec ... either you trust them or not
>
> The recommendation was already there, it was not changed by the patch.
> And it definitely should not be there, it is an error message, not a
> novel. Furthermore, even the actual error message, "IPFS does not appear
> to be running", is just wrong.
>
> The error message should be something like "IPFS gateway not
> configured." and the rest in the documentation, starting with which
> configuration files and environment variables it uses, and including
> warnings about security and privacy concerns.
>

I'd like to clarify a few points regarding the gateway. As like many things
said in this thread, it's not all just as black/white as it might appear at
first glance.

First an earlier message from Micheal:
> Before this patch, only "experts" needed to change the IPFS settings.
> After this patch everyone who wants to use IPFS needs to change the IPFS
> settings.

This is both true and false where it entirely depends on the situation.
If one is running an IPFS node and if that node is 0.15.0 or up (to be
released in the coming days or weeks) then:
- the gateway file exists as ~/.ipfs/gateway when IPFS is running
- ffmpeg will find it and use it
- the user uses the local gateway

Granted, that is in the happy day scenario. Users who don't have IPFS
running now have to provide the gateway with one of the available options.

Next the message I reply on, specifically:
>  "IPFS does not appear to be running", is just wrong.

I suspect the patch didn't do what it originally did when no gateway was
found (which is the new case).
This message was supposed to be shown in that scenario:

            av_log(h, AV_LOG_INFO,
                   "Installing IPFS locally is recommended to "
                   "improve performance and reliability, "
                   "and not share all your activity with a single IPFS
gateway.\n"
                   "There are multiple options to define this gateway.\n"
                   "1. Call ffmpeg with a gateway param, "
                   "without a trailing slash: -gateway <url>.\n"
                   "2. Define an $IPFS_GATEWAY environment variable with
the "
                   "full HTTP URL to the gateway "
                   "without trailing forward slash.\n"
                   "3. Define an $IPFS_PATH environment variable "
                   "and point it to the IPFS data path "
                   "- this is typically ~/.ipfs\n");

In the new reality that message still wouldn't be as accurate as it can be.
It would miss a line explaining the cause and it would likely be an error
typed message instead.
I'd be happy to review and test a patch that fixes this!

Another quote from an earlier message:
> The printed text is adequate to experts but not to the average user.
> It should either explain the privacy & security implications of the
> different options or point to some external documentation.
> Such external documentation needs to stay available at the given link
> also for the lifetime of the releases it is part of

I'd be happy to help to create log messages and documentation that make
sense to everyone targeted as a user.
However, I do consider both ffmpeg and ipfs as fairly low level tools where
it should be expected that some technical jargon would be acceptable. In
other terms, not foolproof but technically correct and clear enough.
Applications building on top of ffmpeg should probably be the one giving a
end user friendly message (for example, vlc, kodi, mpv, ..)

Just let me know how I can help!

Lastly, I'd really appreciate it if I can get a cc when there is a change
in the ipfsgateway implementation in ffmpeg.
I'm not an ffmpeg dev at all thus it can be assumed that I don't monitor
the ffmpeg mailing lists.
A cc would therefore be really helpful. My name and mail is in the source
file.


> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  reply	other threads:[~2022-08-15 23:53 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-10 22:27 Derek Buitenhuis
2022-08-11 12:08 ` Timo Rothenpieler
2022-08-11 16:26   ` Mark Gaiser
2022-08-11 16:49     ` Timo Rothenpieler
2022-08-11 17:21       ` Mark Gaiser
2022-08-11 17:35         ` Timo Rothenpieler
2022-08-11 17:56           ` Mark Gaiser
2022-08-11 19:18             ` Derek Buitenhuis
2022-08-11 20:18             ` Michael Niedermayer
2022-08-11 22:03               ` Timo Rothenpieler
2022-08-11 22:51                 ` Derek Buitenhuis
2022-08-12 13:43                   ` Mark Gaiser
2022-08-12 14:22                   ` Vittorio Giovara
2022-08-12 14:30                     ` Kieran Kunhya
2022-08-12 14:34                       ` Mark Gaiser
2022-08-12 14:45                         ` Kieran Kunhya
2022-08-12 14:48                         ` Derek Buitenhuis
2022-08-12 14:50                           ` Kieran Kunhya
2022-08-12 14:55                   ` Nicolas George
2022-08-12 15:05                 ` Michael Niedermayer
2022-08-12 17:01                   ` Nicolas George
2022-08-12 17:18                     ` Michael Niedermayer
2022-08-12 17:21                       ` Timo Rothenpieler
2022-08-13 16:29                         ` Michael Niedermayer
2022-08-13 19:06                           ` Timo Rothenpieler
2022-08-14 18:00                             ` Michael Niedermayer
2022-08-15 14:09                           ` Nicolas George
2022-08-15 14:27                             ` Jean-Baptiste Kempf
2022-08-17 15:03           ` Tomas Härdin
2022-08-18 14:31             ` Michael Niedermayer
2022-08-19  9:15               ` Tomas Härdin
2022-08-19 12:52                 ` Mark Gaiser
2022-08-22  9:12                   ` Tomas Härdin
2022-08-22 12:52                     ` Nicolas George
2022-08-23 12:53                       ` Ronald S. Bultje
2022-08-23 12:55                         ` Nicolas George
2022-08-24 16:35                       ` Tomas Härdin
2022-08-24 20:54                         ` Michael Niedermayer
2022-08-27  7:05                           ` Tomas Härdin
2022-08-28 14:14                             ` Michael Niedermayer
2022-08-24 21:03                         ` Michael Niedermayer
2022-08-24 21:18                           ` Kieran Kunhya
2022-08-25 13:57                             ` Michael Niedermayer
2022-08-25 14:41                               ` Kieran Kunhya
2022-08-27  7:29                           ` Tomas Härdin
2022-08-27  7:53                             ` Paul B Mahol
2022-08-27 11:30                               ` Tomas Härdin
2022-08-27 17:34                                 ` Baptiste Coudurier
2022-08-28 11:49                                   ` Tomas Härdin
2022-08-15 17:53 ` Michael Niedermayer
2022-08-15 19:35 ` Derek Buitenhuis
2022-08-15 19:37   ` James Almer
2022-08-15 21:47   ` Michael Niedermayer
2022-08-15 21:57     ` Nicolas George
2022-08-15 23:53       ` Mark Gaiser [this message]
2022-08-16 14:46     ` Michael Niedermayer
2022-08-14 13:24 thelostone123

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPd6JnHAgDmaMMFLO+xfEAdGuWOK8bQa3mJt+eyZA02_EfXjyw@mail.gmail.com \
    --to=markg85@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git