Video streaming API - Easily run video streams from camera capture or static picture files to RTP.
More...
Detailed Description
Video streaming API - Easily run video streams from camera capture or static picture files to RTP.
Typedef Documentation
Small API to display a local preview window.
Function Documentation
VideoStream* video_stream_new2 |
( |
const char * |
ip, |
|
|
int |
loc_rtp_port, |
|
|
int |
loc_rtcp_port |
|
) |
| |
Creates an VideoStream object listening on a RTP port for a dedicated address.
- Parameters:
-
| loc_ip | the local ip to listen for RTP packets. Can be ::, O.O.O.O or any ip4/6 addresses |
[in] | loc_rtp_port | the local UDP port to listen for RTP packets. |
[in] | loc_rtcp_port | the local UDP port to listen for RTCP packets |
- Returns:
- a new AudioStream.
Ask the video stream to send a Full-Intra Request.
- Parameters:
-
[in] | stream | The videostream object. |
Ask the video stream to generate a Video Fast Update (generally after receiving a Full-Intra Request.
- Parameters:
-
[in] | stream | The videostream object. |
Gets the size of the video that is sent.
- Parameters:
-
[in] | stream | The videostream for which to get the sent video size. |
- Returns:
- The sent video size or MS_VIDEO_SIZE_UNKNOWN if not available.
Gets the size of the video that is received.
- Parameters:
-
[in] | stream | The videostream for which to get the received video size. |
- Returns:
- The received video size or MS_VIDEO_SIZE_UNKNOWN if not available.
Gets the framerate of the video that is sent.
- Parameters:
-
[in] | stream | The videostream. |
- Returns:
- The actual framerate, 0 if not available..
Gets the framerate of the video that is received.
- Parameters:
-
[in] | stream | The videostream. |
- Returns:
- The received framerate or 0 if not available.
Returns the name of the video display filter on the current platform.
Gets the camera sensor rotation.
This is needed on some mobile platforms to get the number of degrees the camera sensor is rotated relative to the screen.
- Parameters:
-
stream | The video stream related to the operation |
- Returns:
- The camera sensor rotation in degrees (0 to 360) or -1 if it could not be retrieved
Ask the video stream whether a decoding error should be reported (eg. to send a VFU request).
- Parameters:
-
[in] | stream | The VideoStream object. |
[in] | ms | The minimum interval in milliseconds between to decoding error report. |
- Returns:
- TRUE if the decoding error should be reported, FALSE otherwise.
Tell the video stream that a decoding error has been reported.
- Parameters:
-
[in] | stream | The VideoStream object. |
Tell the video stream that a decoding error has been recovered so that new decoding can be reported sooner.
- Parameters:
-
[in] | stream | The VideoStream object. |
Force a resolution for the preview.
- Parameters:
-
[in] | stream | The VideoStream object. |
[in] | vsize | video resolution. |
Force a resolution for the preview.
- Parameters:
-
[in] | stream | The VideoStream object. |
[in] | fps | the frame rate in frame/seconds. A value of zero means "use encoder default value". |
Link the audio stream with an existing video stream. This is necessary to enable recording of audio & video into a multimedia file.
Unlink the audio stream from the video stream. This must be done if the video stream is about to be stopped.
Stops the video preview graph but keep the source filter for reuse. This is useful when transitioning from a preview-only to a duplex video. The filter needs to be passed to the #video_stream_start_with_source function, otherwise you should detroy it.