Skip to content
Permalink
Browse files

switch to low latency enconding

  • Loading branch information...
sonium0 committed Apr 9, 2016
1 parent cfd971c commit a7afc2d11ab18960fd69adddc5979470f0d65b44
Showing with 16 additions and 1 deletion.
  1. +16 −1 host_applications/linux/apps/raspicam/RaspiVid.c
@@ -61,7 +61,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <netinet/in.h>
#include <arpa/inet.h>

#define VERSION_STRING "v1.3.12"
#define VERSION_STRING "v1.3.12l"

#include "bcm_host.h"
#include "interface/vcos/vcos.h"
@@ -1746,6 +1746,21 @@ static MMAL_STATUS_T create_encoder_component(RASPIVID_STATE *state)
// Continue rather than abort..
}


//set low latency h264 flag
if (mmal_port_parameter_set_boolean(encoder_output, MMAL_PARAMETER_VIDEO_ENCODE_H264_LOW_LATENCY, 1) != MMAL_SUCCESS)
{
vcos_log_error("failed to set H264 LOW LATENCY FLAG parameters");
// Continue rather than abort..
}

//set LOW DELAY HRD h264 flag
if (mmal_port_parameter_set_boolean(encoder_output, MMAL_PARAMETER_VIDEO_ENCODE_H264_LOW_DELAY_HRD_FLAG, 1) != MMAL_SUCCESS)
{
vcos_log_error("failed to set H264 LOW DELAY HRD FLAG parameters");
// Continue rather than abort..
}

//set INLINE VECTORS flag to request motion vector estimates
if (state->encoding == MMAL_ENCODING_H264 &&
mmal_port_parameter_set_boolean(encoder_output, MMAL_PARAMETER_VIDEO_ENCODE_INLINE_VECTORS, state->inlineMotionVectors) != MMAL_SUCCESS)

0 comments on commit a7afc2d

Please sign in to comment.
You can’t perform that action at this time.