[FFmpeg-devel] [PATCH v2 1/3] avformat/file: add fd protocol
Rémi Denis-Courmont
remi at remlab.net
Mon Dec 12 18:35:06 EET 2022
Le sunnuntaina 11. joulukuuta 2022, 17.17.27 EET Zhao Zhili a écrit :
> From: Zhao Zhili <zhilizhao at tencent.com>
>
> Unlike the pipe protocol, fd protocol has seek support if it
> corresponding to a regular file.
> ---
> v2: dup the file descriptor for safety
>
> doc/protocols.texi | 24 ++++++++++++++++++
> libavformat/Makefile | 1 +
> libavformat/file.c | 55 +++++++++++++++++++++++++++++++++++++++++
> libavformat/protocols.c | 1 +
> libavformat/version.h | 4 +--
> 5 files changed, 83 insertions(+), 2 deletions(-)
>
> diff --git a/doc/protocols.texi b/doc/protocols.texi
> index 5e9198e67c..d9f2d2dec3 100644
> --- a/doc/protocols.texi
> +++ b/doc/protocols.texi
> @@ -275,6 +275,30 @@ For example, to convert a GIF file given inline with
> @command{ffmpeg}: ffmpeg -i
> "data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywA
> AAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=" smiley.png @end example
>
> + at section fd
> +
> +File descriptor access protocol.
> +
> +The accepted syntax is:
> + at example
> +fd:[@var{number}]
> + at end example
C.f. what I wrote in the previous version thread.
--
Реми Дёни-Курмон
http://www.remlab.net/
More information about the ffmpeg-devel
mailing list