Skip to content

Commit adfce96

Browse files
committed
Refactoring
1 parent fdcb1cc commit adfce96

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -78,31 +78,33 @@ Multiple effects on clips, tracks, and stacks:
7878

7979
![Multiple Effects Graph](images/MultipleEffectsGraph.svg)
8080

81-
FFmpeg
82-
======
83-
The toucan command line renderer can output raw frames to standard out.
84-
These frames can be piped to FFmpeg for encoding as a movie file.
81+
FFmpeg Encoding
82+
===============
83+
Toucan currently only writes image sequences, but these can be converted
84+
into movie files with FFmpeg. The image sequences can be written to disk
85+
and then converted with FFmpeg, or they can be piped directly to FFmpeg
86+
without the overhead of disk I/O.
8587

86-
Example command line:
88+
Example command line for piping images to FFmpeg:
8789
```
8890
toucan-render Transition.otio - -raw rgba | ffmpeg -y -f rawvideo -pix_fmt rgba -s 1280x720 -r 24 -i pipe: output.mov
8991
```
90-
Notes:
91-
* The "-" tells toucan to use standard out instead of an output file.
92-
* The "-raw" option specifies the pixel format of the frames. This should match
93-
the "-pix_fmt" option given to FFmpeg. One exception to this is the toucan
92+
* The "-" argument uses standard out instead of an output file.
93+
* The "-raw rgba" option sets the pixel format of the frames. This should
94+
match the "-pix_fmt" option given to FFmpeg. One exception is that toucan
9495
options do not specify the endian, the endian of the current machine is used.
9596
So for example the toucan option "-raw rgbaf16" might match the FFmpeg option
96-
"-pix_fmt rgbaf16le" for the current machine.
97-
* The "-y" flag tells FFmpeg to overwrite the output file.
98-
* The "-f rawvideo" flag tells FFmpeg the input is raw video frames.
99-
* The "-pix_fmt rgba" option specifies the input pixel format as described above.
100-
* The "-s 1280x720" option specifies the size of the input frames. Toucan can
101-
be used to find the image size of a timeline with the "-print_size" option.
102-
* The "-r 24" option specfies the frame rate. Toucan can be used to find the
103-
frame rate of a timeline with the "-print_rate" option.
104-
* The "-i pipe:" option tells FFmpeg to use standard input.
105-
* Finally "output.mov" specifies the output movie file.
97+
"-pix_fmt rgbaf16le" for the current machine. Check the toucan-render command
98+
line help for the list of available formats.
99+
* The "-y" option overwrites the output file if it already exists.
100+
* The "-f rawvideo" option sets the input to raw video frames.
101+
* The "-pix_fmt rgba" option sets the input pixel format as described above.
102+
* The "-s 1280x720" option sets the size of the input frames. The toucan-render
103+
can be used to find the image size with the "-print_size" option.
104+
* The "-r 24" option sets the frame rate. The toucan-render can be used to
105+
find the frame rate with the "-print_rate" option.
106+
* The "-i pipe:" option uses standard input instead of a file.
107+
* The "output.mov" is the output movie file.
106108

107109
Building
108110
========

0 commit comments

Comments
 (0)