[FFmpeg-devel] [PATCH v3 0/8] add fd protocol

Zhao Zhili quinkblack at foxmail.com
Wed Dec 14 19:10:06 EET 2022


From: Zhao Zhili <zhilizhao at tencent.com>

v2:
1. Forbid pass file descriptor via fd:{num}, instead of -fd option
2. Set CLOEXEC
3. Prefer fd over pipe for fftools

v1: dup file descriptor

Zhao Zhili (8):
  avformat/file: add fd option for pipe
  avformat/file: reindent after the previous commit
  avformat/file: dup file descriptor for pipe
  avformat/file: add fd protocol
  fftools/ffmpeg_demux: disable stdin interaction for fd protocol
  fftools/ffplay: prefer fd over pipe for seek support
  fftools/ffprobe: prefer fd over pipe for seek support
  fftools/ffmpeg_demux: prefer fd over pipe for seek support

 doc/protocols.texi      |  31 +++++++-
 fftools/ffmpeg_demux.c  |   3 +-
 fftools/ffplay.c        |   2 +-
 fftools/ffprobe.c       |   4 +-
 libavformat/Makefile    |   1 +
 libavformat/file.c      | 152 +++++++++++++++++++++++++++++++---------
 libavformat/protocols.c |   1 +
 libavformat/version.h   |   4 +-
 8 files changed, 156 insertions(+), 42 deletions(-)

-- 
2.25.1



More information about the ffmpeg-devel mailing list