# Set up video

Source: [https://docs.qualcomm.com/doc/80-88500-5/topic/set_up_video.html](https://docs.qualcomm.com/doc/80-88500-5/topic/set_up_video.html)

## Video encoding

To encode the video using qtic2venc, do the following on the RB5 development kit:

**H.264 video encoding**

1. Run the following command:
          
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=3840,height=2160,framerate=30/1 ! qtic2venc ! queue ! h264parse ! mp4mux ! queue ! filesink location="/data/mux4K.mp4"Copy to clipboard
2. Download the  `/data/mux4K.mp4` file from the device and open it with a video player. The video plays as expected.

**H.265 video encoding**

1. Run the following command:
          
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=3840,height=2160,framerate=30/1 ! qtic2venc ! queue ! h265parse ! mp4mux ! queue ! filesink location="/data/mux4K.mp4Copy to clipboard
2. Download the  `/data/mux4K.mp4` file from the device and open it with a video player. The video plays as expected.

## Video decoding

To decode the video using qtic2vdec, do the following on the RB5 development kit:

**H.264 video decoding**

1. Push the video `3840_2160_H264_30fps.mp4` file to the device.
2. Run the following command:

        export XDG_RUNTIME_DIR=/run/user/root && gst-launch-1.0 filesrc location=/data/mux4K.mp4 ! qtdemux ! queue ! h264parse ! qtic2vdec ! queue ! waylandsink sync=true fullscreen=trueCopy to clipboard

**H.265 video decoding**

1. Push the video `3840_2160_H265_30fps.mp4` file to the device.
2. Run the following command:

        export XDG_RUNTIME_DIR=/run/user/root && gst-launch-1.0 filesrc location=/data/mux4K.mp4 ! qtdemux ! queue ! h265parse ! qtic2vdec ! queue ! waylandsink sync=true fullscreen=trueCopy to clipboard

**Parent Topic:** [Set up the device](https://docs.qualcomm.com/doc/80-88500-5/topic/set_up_the_device.html)

Last Published: Nov 25, 2025

[Previous Topic
Set up audio](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/set_up_audio.md) [Next Topic
Wayland sink for playback](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/wayland_sink_for_playback.md)