From patchwork Sun Apr 2 23:09:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy Lee X-Patchwork-Id: 3251 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.44.195 with SMTP id s186csp2952649vss; Sun, 2 Apr 2017 16:16:29 -0700 (PDT) X-Received: by 10.223.132.39 with SMTP id 36mr12708509wrf.75.1491174989073; Sun, 02 Apr 2017 16:16:29 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 94si17453493wrj.209.2017.04.02.16.16.28; Sun, 02 Apr 2017 16:16:29 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0FB55688287; Mon, 3 Apr 2017 02:16:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2D8BA680782 for ; Mon, 3 Apr 2017 02:16:18 +0300 (EEST) Received: by mail-pg0-f66.google.com with SMTP id 81so25791794pgh.3 for ; Sun, 02 Apr 2017 16:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=8DbUkdCemZOtnxyRg3omE18BtoTVZClnxKM2T8ib1mk=; b=AOzZGCy/Ag4RMe4Tuo2VLYJsxvGTT9itbzivJM+1TdB6/w/4L1k/ERqTmmRnJVHzg5 zUVq6aEU8pcqIHVQfc1v4J+MGPUCMI3OY245P9KCGyjun/zy1sUsCmkulShB019h6u1o x4ZVbOwflQ5otH4v01q2I3uknisK+QlQQdE678NN2vH8Y8sIYJmv6asPCDiPPKkHrD5H B48FsCmTh+yIxWihL+F5rgcKptX2gH79gUR2vaonpyzdCwG1P93CbemyddAX9qhuKgt2 i9lwLAc7SVVedJY61kp70MBxz39xzg8PDKdVao8wlLaWhTdAi0dGeKevDLuFOKHGb9uN iDmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=8DbUkdCemZOtnxyRg3omE18BtoTVZClnxKM2T8ib1mk=; b=hn+m7P3yyjdN7fQatUP07iFrteHR0fp5IDF4DXqyGR14/tEQk1BafqpZ8QH5uy7AaU Yjq7L38u22HdpkD9dnH1y9uBj//B4DHKrI5yUO5XV4TMSHWzaeWnLiwAEij/nC3BgI2h ZCVihi06pbqQgXWPtFU1BRE/xpVDOrjZXjsMdXEIMr4UlSsGOgwx0AazVrtcbz9iMdeg YO2bXOG7X+9eoAT08olUAd2p6Lzwdv5hilYOn9+9bdaF/HTesxhZMTTVSPGQK5mqcn2D Ea5x6Xas0spDLeIkN/O+z1eQJ5/Tsm7A4ckfWbuf8WE6hx2NT+fiRp+ZZDnRGTqap0jO sM6g== X-Gm-Message-State: AFeK/H1QSJKLfRKBIeJWGDpdFH8e6Hev0g2OWX6ymFQCNi4mp+Q9xGqma3CrOXNpkGmxXA== X-Received: by 10.99.94.195 with SMTP id s186mr14365962pgb.198.1491174593903; Sun, 02 Apr 2017 16:09:53 -0700 (PDT) Received: from localhost.localdomain (59-100-13-146.mel.static-ipl.aapt.com.au. [59.100.13.146]) by smtp.gmail.com with ESMTPSA id p6sm2213393pgn.9.2017.04.02.16.09.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Apr 2017 16:09:53 -0700 (PDT) From: Timothy Lee To: ffmpeg-devel@ffmpeg.org Date: Mon, 3 Apr 2017 09:09:31 +1000 Message-Id: <20170402230932.10906-2-timothy.ty.lee@gmail.com> X-Mailer: git-send-email 2.12.1 In-Reply-To: <20170402230932.10906-1-timothy.ty.lee@gmail.com> References: <20170402230932.10906-1-timothy.ty.lee@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/3] doc: add capture protocol documentation X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Document the capture protocol, with description for the accepted option, and an example of it being used under ffplay. --- doc/protocols.texi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index a7968ff56e..89a1f2afa8 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -103,6 +103,29 @@ Cache the input stream to temporary file. It brings seeking capability to live s cache:@var{URL} @end example +@section capture + +Input stream capturing protocol. + +A capture URL has the form: +@example +capture:@var{URL} +@end example + +This protocol accepts the following option: +@table @option + +@item capture_file +Name of the capture file. +If not specified, the input stream will be written into @file{capture.dat}. + +@end table + +For example, to capture the input stream as @file{stream.sav} during playback: +@example +ffplay -capture_file stream.sav capture:@var{URL} +@end example + @section concat Physical concatenation protocol.