# Update video encode parameter use case

Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/57_Update_video_encode_parameter_use_case.html](https://docs.qualcomm.com/doc/80-88500-3/topic/57_Update_video_encode_parameter_use_case.html)

This use case describes how to update the static and dynamic parameters.

## Update static parameters

1. Run the following command to set the bit rate, rate control, and I-frame interval
          through the `qtic2venc` plug-in.

        gst-launch-1.0 -e qtiqmmfsrc name=qmmf camera=0 ! video/x-raw\(memory:GBM\),format=NV12,width=3840,height=2160,framerate=30/1 ! queue ! qtic2venc target-bitrate=6000000 control-rate=2 ! queue ! h264parse ! mp4mux ! queue ! filesink location=/data/output/mux.mp4Copy to clipboard
2. The `qtiqmmfsrc` element captures the 1080p resolution stream from camera.
3. The `qtic2venc` plug-in encodes it with bit rate to 6 Mbps, bit rate control set to constant, and I-frame interval set to 29, that is, every thirtieth frame is I-frame.
4. The `h264parse` and `mp4mux` elements process the bit stream and prepare them for storage.
5. The queue element ensures that each path and track run independently of the other.
6. The `filesink` elements store the buffers in the corresponding file.

## Update dynamic bit rate parameters

1. Run the use case using the Qualcomm `gst-pipeline-app` command-line tool
          to set bit rate through the `qtic2venc` plug-in dynamically when the
          pipeline is in PLAYING state.

        gst-pipeline-app -e qtiqmmfsrc name=qmmf camera=0 ! video/x-raw\(memory:GBM\),format=NV12,width=3840,height=2160,framerate=30/1 ! queue ! qtic2venc ! queue ! h264parse ! mp4mux ! queue ! filesink location=/data/output/mux.mp4Copy to clipboard
2. Select the element for which the property should be modified. All the properties that can be updated are listed with description. For the mentioned example, `c2_vencencoder0` is selected.
3. To choose the property, type the option number and the current value.

**Parent Topic:** Multimedia use cases

Last Published: Sep 26, 2023

Previous Topic
 
Overlay: 1080p video preview with user text Next Topic

Video composition use case