filesink
The permission on the output file may be excessive, which may cause file information leakage.
During stream destruction, all plugins are stopped. Therefore, you need to ensure that the files have been saved.
Function |
Native GStreamer plugin, which writes the input data to a file and saves the file to the local host. |
|---|---|
Constraints |
None |
Plugin Base Class (Factory) |
filesink |
Input/Output |
Input: buffer Output: none |
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
append |
Adds to an existing file. The default value is false. |
No |
Yes |
buffer-mode |
Uses the buffer mode. The default value is -1. |
No |
Yes |
buffer-size |
Sets the buffer size. You can set the required bytes or the maximum buffer value. The default value is 65536. |
No |
Yes |
location |
Indicates the file location. There is no default value. |
Yes |
Yes |
max-transient-error-timeout |
Indicates the maximum wait time (in milliseconds) when a transient error occurs. Currently, the value is EACCES. The default value is 0. |
No |
Yes |
o-sync |
Uses O_SYNC to open files to implement I/O synchronization. The default value is false. |
No |
Yes |