Captures a single frame from a V4L2 device or RTSP stream with
FFmpeg, and optionally adds a timestamp with GraphicsMagick. If the
input is an RTSP stream, the URL must start with rtsp://
.
The function returns the following error codes:
E_EMPTY
if camera input or output is empty.E_INVALID
if camera device or RTSP stream URL is invalid.E_IO
if FFmpeg command execution failed.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(camera_type), | intent(in) | :: | camera |
Camera type. |
||
character(len=*), | intent(in) | :: | output |
Output file. |
||
character(len=:), | intent(out), | optional, | allocatable | :: | command |
Executed command. |