From 3458651010a68c2384a19ba485e81e22c825782f Mon Sep 17 00:00:00 2001 From: Mark Gaiser Date: Thu, 28 Apr 2022 14:18:29 +0200 Subject: [PATCH] stream_lavf: add support for ipfs and ipns ffmpeg 5.1 adds support for IPFS (the ipns:// and ipfs:// protocols). This patch enables those protocols to be fist-class citizens in mpv. Thus allowing for playing IPFS resources on mpv like: "mpv ipfs://QmbGtJg23skhvFmu9mJiePVByhfzu5rwo74MEkVDYAmF5T" --- stream/stream_lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 2269bfba2c..c9e4bd268a 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -411,7 +411,7 @@ const stream_info_t stream_info_ffmpeg = { .protocols = (const char *const[]){ "rtmp", "rtsp", "rtsps", "http", "https", "mms", "mmst", "mmsh", "mmshttp", "rtp", "httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt", - "srtp", "gopher", "gophers", "data", + "srtp", "gopher", "gophers", "data", "ipfs", "ipns", NULL }, .can_write = true, .stream_origin = STREAM_ORIGIN_NET,