History

Apply misc fixes spotted by Diego to protocols.texi.

Originally committed as revision 24726 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 209e4511 parent 63f805f1 file · +31 −32Browse files

Unified · Split

doc/protocols.texi+31−32
@@ -4,9 +4,9 @@ · 3 unmodified lines
4Protocols are configured elements in FFmpeg which allow to access4Protocols are configured elements in FFmpeg which allow to access
5resources which require the use of a particular protocol.5resources which require the use of a particular protocol.
6 6
7When you configure your FFmpeg build, all the supported protocols7When you configure your FFmpeg build, all the supported protocols are
8are enabled by default. You can list them using the configure option8enabled by default. You can list all available ones using the
9"--list-protocols".9configure option "--list-protocols".
10 10
11You can disable all the protocols using the configure option11You can disable all the protocols using the configure option
12"--disable-protocols", and selectively enable a protocol using the12"--disable-protocols", and selectively enable a protocol using the
@@ -15,7 +15,7 @@ particular protocol using the option · 2 unmodified lines
15"--disable-protocol=@var{PROTOCOL}".15"--disable-protocol=@var{PROTOCOL}".
16 16
17The option "-protocols" of the ff* tools will display the list of17The option "-protocols" of the ff* tools will display the list of
18the supported protocols.18supported protocols.
19 19
20A description of the currently available protocols follows.20A description of the currently available protocols follows.
21 21
@@ -23,10 +23,10 @@ A description of the currently available protocols follows. · 1 unmodified line
23 23
24Physical concatenation protocol.24Physical concatenation protocol.
25 25
26Allow to read and seek from many resource in sequence as they were an26Allow to read and seek from many resource in sequence as if they were
27unique resource.27a unique resource.
28 28
29An url accepted by this protocol has the syntax:29An URL accepted by this protocol has the syntax:
30@example30@example
31concat:@var{URL1}|@var{URL2}|...|@var{URLN}31concat:@var{URL1}|@var{URL2}|...|@var{URLN}
32@end example32@end example
@@ -57,9 +57,9 @@ use the command: · 24 unmodified lines
57ffmpeg -i file:input.mpeg output.mpeg57ffmpeg -i file:input.mpeg output.mpeg
58@end example58@end example
59 59
60Note that if not specified otherwise, the ff* tools will use the file60The ff* tools default to the file protocol, that is a resource
61protocol by default, that is a resource specified with the name61specified with the name "FILE.mpeg" is interpreted as the URL
62"FILE.mpeg" is interpreted as it were the url "file:FILE.mpeg".62"file:FILE.mpeg".
63 63
64@section gopher64@section gopher
65 65
@@ -67,7 +67,7 @@ Gopher protocol. · 1 unmodified line
67 67
68@section http68@section http
69 69
70HTTP (Hyper Text Trasfer Protocol).70HTTP (Hyper Text Transfer Protocol).
71 71
72@section mmst72@section mmst
73 73
@@ -77,20 +77,20 @@ MMS (Microsoft Media Server) protocol over TCP. · 3 unmodified lines
77 77
78MD5 output protocol.78MD5 output protocol.
79 79
80Computes the MD5 hash of data written, and on close writes this to the80Computes the MD5 hash of the data to be written, and on close writes
81designated output or stdout if none is specified. It can be used to81this to the designated output or stdout if none is specified. It can
82test muxers without writing an actual file.82be used to test muxers without writing an actual file.
83 83
84Some examples follow.84Some examples follow.
85@example85@example
86# write the MD5 hash of the encoded AVI file in the file output.avi.md586# Write the MD5 hash of the encoded AVI file in the file output.avi.md5.
87ffmpeg -i input.flv -f avi -y md5:output.avi.md587ffmpeg -i input.flv -f avi -y md5:output.avi.md5
88 88
89# write the MD5 hash of the encoded AVI file to stdout89# Write the MD5 hash of the encoded AVI file to stdout.
90ffmpeg -i input.flv -f avi -y md5:90ffmpeg -i input.flv -f avi -y md5:
91@end example91@end example
92 92
93Note that some formats (typically mov) require the output protocol to93Note that some formats (typically MOV) require the output protocol to
94be seekable, so they will fail with the MD5 output protocol.94be seekable, so they will fail with the MD5 output protocol.
95 95
96@section pipe96@section pipe
@@ -105,26 +105,25 @@ pipe:[@var{number}] · 8 unmodified lines
105@end example105@end example
106 106
107@var{number} is the number corresponding to the file descriptor of the107@var{number} is the number corresponding to the file descriptor of the
108pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr).108pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr). If @var{number}
109If @var{number} is not specified will use by default stdout if the109is not specified, by default the stdout file descriptor will be used
110protocol is used for writing, stdin if the protocol is used for110for writing, stdin for reading.
111reading.
112 111
113For example to read from stdin with @file{ffmpeg}:112For example to read from stdin with @file{ffmpeg}:
114@example113@example
115cat test.wav | ffmpeg -i pipe:0114cat test.wav | ffmpeg -i pipe:0
116# this is the same as115# ...this is the same as...
117cat test.wav | ffmpeg -i pipe:116cat test.wav | ffmpeg -i pipe:
118@end example117@end example
119 118
120For writing to stdout with @file{ffmpeg}:119For writing to stdout with @file{ffmpeg}:
121@example120@example
122ffmpeg -i test.wav -f avi pipe:1 | cat > test.avi121ffmpeg -i test.wav -f avi pipe:1 | cat > test.avi
123# this is the same as122# ...this is the same as...
124ffmpeg -i test.wav -f avi pipe: | cat > test.avi123ffmpeg -i test.wav -f avi pipe: | cat > test.avi
125@end example124@end example
126 125
127Note that some formats (typically mov), require the output protocol to126Note that some formats (typically MOV), require the output protocol to
128be seekable, so they will fail with the pipe output protocol.127be seekable, so they will fail with the pipe output protocol.
129 128
130@section rtmp129@section rtmp
@@ -139,18 +138,18 @@ The required syntax is: · 8 unmodified lines
139rtmp://@var{server}[:@var{port}][/@var{app}][/@var{playpath}]138rtmp://@var{server}[:@var{port}][/@var{app}][/@var{playpath}]
140@end example139@end example
141 140
142Follows the description of the accepted parameters.141The accepted parameters are:
143@table @option142@table @option
144 143
145@item server144@item server
146It is the address of the RTMP server.145The address of the RTMP server.
147 146
148@item port147@item port
149It is the number of the TCP port to use (by default is 1935).148The number of the TCP port to use (by default is 1935).
150 149
151@item app150@item app
152It is the name of the application to acces. It usually corresponds to151It is the name of the application to access. It usually corresponds to
153the the path where the application is installed on the RTMP server152the path where the application is installed on the RTMP server
154(e.g. @file{/ondemand/}, @file{/flash/live/}, etc.).153(e.g. @file{/ondemand/}, @file{/flash/live/}, etc.).
155 154
156@item playpath155@item playpath
@@ -170,7 +169,7 @@ ffplay rtmp://myserver/vod/sample · 13 unmodified lines
170Real-Time Messaging Protocol and its variants supported through169Real-Time Messaging Protocol and its variants supported through
171librtmp.170librtmp.
172 171
173Require the presence of the headers and library of librtmp during172Requires the presence of the librtmp headers and library during
174configuration. You need to explicitely configure the build with173configuration. You need to explicitely configure the build with
175"--enable-librtmp". If enabled this will replace the native RTMP174"--enable-librtmp". If enabled this will replace the native RTMP
176protocol.175protocol.
@@ -188,11 +187,11 @@ The required syntax is: · 11 unmodified lines
188where @var{rtmp_proto} is one of the strings "rtmp", "rtmpt", "rtmpe",187where @var{rtmp_proto} is one of the strings "rtmp", "rtmpt", "rtmpe",
189"rtmps", "rtmpte", "rtmpts" corresponding to each RTMP variant, and188"rtmps", "rtmpte", "rtmpts" corresponding to each RTMP variant, and
190@var{server}, @var{port}, @var{app} and @var{playpath} have the same189@var{server}, @var{port}, @var{app} and @var{playpath} have the same
191meaning has specified for the RTMP native protocol.190meaning as specified for the RTMP native protocol.
192@var{options} contains a list of space-separated options of the form191@var{options} contains a list of space-separated options of the form
193@var{key}=@var{val}.192@var{key}=@var{val}.
194 193
195See the manual page of librtmp (man 3 librtmp) for more information.194See the librtmp manual page (man 3 librtmp) for more information.
196 195
197For example, to stream a file in real-time to an RTMP server using196For example, to stream a file in real-time to an RTMP server using
198@file{ffmpeg}:197@file{ffmpeg}:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t