Re: [FFmpeg-devel] [PATCH v7 1/1] avformat: Add IPFS protocol support.

2022-02-21 Thread Tomas Härdin
tor 2022-02-17 klockan 15:26 +0100 skrev Mark Gaiser: > > > > > + > > > +    // Test $IPFS_GATEWAY. > > > +    if (getenv("IPFS_GATEWAY") != NULL) { > > > +    if (snprintf(c->gateway_buffer, sizeof(c- > > > >gateway_buffer), > > > "%s", > > > + getenv("IPFS_GATEWAY")) >= s

Re: [FFmpeg-devel] [PATCH v7 1/1] avformat: Add IPFS protocol support.

2022-02-17 Thread Mark Gaiser
On Thu, Feb 17, 2022 at 2:57 PM Tomas Härdin wrote: > > +IPFSGatewayContext *c = h->priv_data; > > +char ipfs_full_data_folder[PATH_MAX]; > > +char ipfs_gateway_file[PATH_MAX]; > > +struct stat st; > > +int stat_ret = 0; > > +int ret = AVERROR(EINVAL); > > +FILE *gatew

Re: [FFmpeg-devel] [PATCH v7 1/1] avformat: Add IPFS protocol support.

2022-02-17 Thread Tomas Härdin
> +    IPFSGatewayContext *c = h->priv_data; > +    char ipfs_full_data_folder[PATH_MAX]; > +    char ipfs_gateway_file[PATH_MAX]; > +    struct stat st; > +    int stat_ret = 0; > +    int ret = AVERROR(EINVAL); > +    FILE *gateway_file = NULL; > + > +    // Set the first character of c->gateway_

[FFmpeg-devel] [PATCH v7 1/1] avformat: Add IPFS protocol support.

2022-02-16 Thread Mark Gaiser
This patch adds support for: - ffplay ipfs:// - ffplay ipns:// IPFS data can be played from so called "ipfs gateways". A gateway is essentially a webserver that gives access to the distributed IPFS network. This protocol support (ipfs and ipns) therefore translates ipfs:// and ipns:// to a http:/