summaryrefslogtreecommitdiff
path: root/doc/protocols.texi
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2014-02-25 21:50:54 +0100
committerNicolas George <george@nsup.org>2014-03-08 12:36:57 +0100
commit97e87e09c841701798a27eb4f18e2fb6a612ec88 (patch)
tree29f08bde2f718305988c65375c7dd6a844e013e1 /doc/protocols.texi
parentbc6901c94944e4a81be49a6b11183cd0c55d2738 (diff)
lavf: add subfile protocol.
Diffstat (limited to 'doc/protocols.texi')
-rw-r--r--doc/protocols.texi24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/protocols.texi b/doc/protocols.texi
index 304b216f43..c39ab614f3 100644
--- a/doc/protocols.texi
+++ b/doc/protocols.texi
@@ -951,6 +951,30 @@ this binary block are used as master key, the following 14 bytes are
used as master salt.
@end table
+@section subfile
+
+Virtually extract a segment of a file or another stream.
+The underlying stream must be seekable.
+
+Accepted options:
+@table @option
+@item start
+Start offset of the extracted segment, in bytes.
+@item end
+End offset of the extracted segment, in bytes.
+@end table
+
+Examples:
+
+Extract a chapter from a DVD VOB file (start and end sectors obtained
+externally and multiplied by 2048):
+@example
+subfile,,start,153391104,end,268142592,,:/media/dvd/VIDEO_TS/VTS_08_1.VOB
+@end example
+
+Play an AVI file directly from a TAR archive:
+subfile,,start,183241728,end,366490624,,:archive.tar
+
@section tcp
Transmission Control Protocol.