|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< VideoFileWriter > MayaFlux::IO::IOManager::create_writer | ( | const std::string & | filepath, |
| uint32_t | width, | ||
| uint32_t | height, | ||
| double | frame_rate, | ||
| AVPixelFormat | src_pixel_format, | ||
| AVCodecID | codec_id = AV_CODEC_ID_NONE |
||
| ) |
Construct an open VideoFileWriter the caller drives manually.
Allocates and opens the writer. IOManager does not track this writer; the caller is responsible for calling close() or stop_recording() when done.
| filepath | Output file path. Extension determines container. |
| width | Frame width in pixels. |
| height | Frame height in pixels. |
| frame_rate | Average frame rate in frames per second. |
| src_pixel_format | AVPixelFormat of submitted pixel data. |
| codec_id | Encoder override; AV_CODEC_ID_NONE = container default. |
Definition at line 464 of file IOManager.cpp.
References MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, MF_ERROR, and width.