- video_writer <-
target: file
|name|code - File or URL the video is written to, or code that is executed with the
writer and each chunk of encoded data.
- video_writer <-
size: size
- Size of the frames. Sizes are rounded down to an even number of pixels,
as most codecs require.
- video_writer <-
frame_rate: num
- Frames per second. Frames appended without a time follow each other at
this rate.
- video_writer <-
codec: name*
- The video encoder. @nil
until the file is opened, which uses the best encoder for the format
unless one was given.
- video_writer <-
quality: 0..100*
- Quality, where 100 is the best. @nil
uses a default of the encoder.
- video_writer <-
frames: int
- Number of frames appended.
- video_writer <-
audio_frequency: int*
- Samples per second of the sound, or @nil
if the video has no sound. The encoder may change the frequency given to video_writer
->audio.
- video_writer <-
audio_channels: int*
- Number of channels of the sound.
- video_writer <-
audio_codec: name*
- The audio encoder, set when the file is opened.
- video_writer <-
status: {new,open,closed}
new before the first frame, open while frames
can be appended and closed after video_writer->close.
- video_writer <-
format: name*
- The container, e
.g., mp4, mov, mpegts, webm, matroska,
flv or hls. @nil
selects it from the target: the extension of a file, the protocol of a
URL and fragmented mp4 for code. Set it before the first
frame.
- video_writer <-
live: bool
- If @on, the
video is encoded with low latency and a constant bitrate, and video_writer
->append
drops frames rather than waiting if the encoder falls behind. @on
by default for a URL. Set it before the first frame.
- video_writer <-
bitrate: 1..*
- Bits per second of the video, or @nil
to use video_writer
<-quality.
A live writer without a bitrate uses about 0.1
bit per pixel. Set it before the first frame.
- video_writer <-
dropped: int
- Frames dropped by a live writer because the encoder fell behind.
- video_writer <-
recording: frame
|window* - Frame or window recorded by video_writer
->record.