# Enable video This section outlines the prerequisites for video functionality, steps to render video, and methods to validate video playback and video recording. The following workflow shows the sequence to get started with video functionality: **Figure: Getting started workflow for video** The workflow outlines the essential steps for initializing and starting a video-based system: 1. Prerequisites: Build and flash the required software, and establish an SSH connection to the target device. 2. Setup: Run the necessary commands from an SSH terminal and push a prerecorded video to the device. 3. Run: Run the required commands to validate video playback and recording. ## Prerequisites - Build and flash the software. For information, see [Qualcomm Linux Build Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-254/build_landing_page.html). - Connect to the device using SSH. For information, see [Sign in using SSH](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-254/how_to.html#use-ssh). ## Set up video rendering The setup procedure helps you render video content on the display and transfer it to the device. Follow these steps from an SSH terminal: 1. To render video on the display, run the following commands in another shell: mount -o rw,remount / export XDG_RUNTIME_DIR=/dev/socket/weston export WAYLAND_DISPLAY=wayland-1 Copy to clipboard 2. For video playback, transfer a prerecorded H.264 video to the device using the following command: scp -r root@[DEVICE IP-ADDR]:/opt Copy to clipboard Note When prompted for a password, enter `oelinux123`. ## Validate playback and video recording You can run a set of commands on the device terminal to validate the video playback and recording functionality. **Validate video playback functionality** 1. To validate the video playback functionality, run the following command: gst-launch-1.0 filesrc location=/opt/H264_480p_30fps.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=4 output-io-mode=4 ! video/x-raw,format=NV12 ! waylandsink fullscreen=true Copy to clipboard 2. To stop the use case, select CTRL + C. **Validate video recording functionality** Attention As a prerequisite, to enable audio when recording a video, follow the steps outlined in **encode audio using the GStreamer application** in the [Enable audio with GStreamer](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-16/enable-audio.html#enable-audio-with-gstreamer) section. 1. To validate the video recording functionality, run the command: gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw, format=NV12,width=1280,height=720,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=4 output-io-mode=4 extra-controls="controls,video_bitrate=1000000,video_gop_size=29;" ! queue ! h264parse ! muxer. pulsesrc do-timestamp=true provide-clock=false volume=10 ! audio/x-raw,format=S16LE,channels=1,rate=48000 ! audioconvert ! queue ! lamemp3enc ! mp4mux name=muxer ! queue ! filesink location=/opt/720p_AVC_MP3.mp4 Copy to clipboard 2. To stop the use case, select CTRL + C. 3. To pull the recorded content from the device, run the following Secure Copy Protocol (SCP) command: scp -r root@[DEVICE IP-ADDR]:/opt/720p_AVC_MP3.mp4 user1@[HOST IP-ADDR]:/workspace Copy to clipboard 4. Play the content on your host computer. ## Next steps - [Build video source components](https://docs.qualcomm.com/doc/80-70030-20/topic/software.html#concept-vjz-bs3-bzb) - [Explore video sample applications](https://docs.qualcomm.com/doc/80-70030-20/topic/interfaces.html#concept-bpj-kg3-bzb) Last Published: Jun 26, 2026 [Previous Topic Video overview](https://docs.qualcomm.com/bundle/publicresource/80-70030-20/topics/overview.md) [Next Topic Video architecture](https://docs.qualcomm.com/bundle/publicresource/80-70030-20/topics/architecture.md)