Browse Source

doc/protocols/file: document general file protocol URL syntax

Also drop confusing ff* tools reference about exceptions to the
file:FILENAME syntax, which is not ff* tool specific.

With various edits by Alexander Strasser <eclipse7@gmx.net>.
tags/n2.2-rc1
Stefano Sabatini 11 years ago
parent
commit
98ecbf0093
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      doc/protocols.texi

+ 12
- 4
doc/protocols.texi View File

@@ -119,16 +119,24 @@ File access protocol.


Allow to read from or read to a file. Allow to read from or read to a file.


A file URL can have the form:
@example
file:@var{filename}
@end example

where @var{filename} is the path of the file to read.

An URL that does not have a protocol prefix will be assumed to be a
file URL. Depending on the build, an URL that looks like a Windows
path with the drive letter at the beginning will also be assumed to be
a file URL (usually not the case in builds for unix-like systems).

For example to read from a file @file{input.mpeg} with @command{ffmpeg} For example to read from a file @file{input.mpeg} with @command{ffmpeg}
use the command: use the command:
@example @example
ffmpeg -i file:input.mpeg output.mpeg ffmpeg -i file:input.mpeg output.mpeg
@end example @end example


The ff* tools default to the file protocol, that is a resource
specified with the name "FILE.mpeg" is interpreted as the URL
"file:FILE.mpeg".

This protocol accepts the following options: This protocol accepts the following options:


@table @option @table @option


Loading…
Cancel
Save