# Camera static parameter use case: LDC and SHDR

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

This topic describes use cases for static parameters of the camera.

## Lens distortion correction (LDC)

1. Run the following command for the LDC use case.

        gst-launch-1.0 -e qtiqmmfsrc name=qmmf ldc=TRUE qmmf.video_0 ! video/x-h264,format=NV12,width=3840,height=2160,framerate=30/1 ! h264parse ! mp4mux ! queue ! filesink location="/data/mux.mp4"Copy to clipboard
2. Play the content on the device.
3. To stop the use case, press CTRL + C, pull
          the recorded content out from the device using the following `adb pull`
          command, and then play the content on a host PC.

        adb pull /data/mux.mp4Copy to clipboard

## Staggered high dynamic range (SHDR)

1. Run the following command to ensure that `cameraoverride` is enabled for
          SHDR if `disableAFDStatsProcessing` is not present in the
            /etc/camera/camxoverridesettings.txt. 

        adb shell "echo disableAFDStatsProcessing=TRUE >>/etc/camera/camxoverridesettings.txt" Copy to clipboard

        adb shell pkill qmmf-server Copy to clipboard
2. Run the following `gst-launch` command to enable SHDR from the
            `qtiqmmfsrc` element.

        gst-launch-1.0 -e qtiqmmfsrc name=qmmf shdr=TRUE qmmf.video_0 ! video/x-h264,format=NV12,width=3840,height=2160,framerate=30/1 ! h264parse ! mp4mux ! queue ! filesink location="/data/mux.mp4"Copy to clipboard

**Parent Topic:** [Multimedia use cases](https://docs.qualcomm.com/doc/80-88500-3/topic/28_Multimedia_use_cases.html)

Last Published: Sep 26, 2023

[Previous Topic
Five H.264/AVC encoded streams with SHDR and LDC enabled](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/46_Five_H264_AVC_encoded_streams_with_sHDR_and_LDC_enabled.md) [Next Topic
Camera dynamic parameters – update with gst-pipeline-app](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/48_Camera_dynamic_patametres___update_with_gst_pipeline_app.md)