|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::FFmpegDemuxContext::open_device | ( | const std::string & | device_name, |
| const std::string & | format_name, | ||
| AVDictionary ** | options = nullptr |
||
| ) |
Open an FFmpeg device input (camera, screen capture, etc.).
Calls av_find_input_format() then avformat_open_input() with the supplied options dict. avdevice_register_all() must have been called before this method.
| device_name | Platform device string (e.g. "/dev/video0"). |
| format_name | FFmpeg input format name (e.g. "v4l2", "avfoundation"). |
| options | AVDictionary of format options; consumed and freed on return. |
Definition at line 64 of file FFmpegDemuxContext.cpp.
References close(), format_context, init_ffmpeg(), and m_last_error.
Here is the call graph for this function: