# Video encode
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The camera and video encode use cases demonstrate various scenarios for encoding and
processing live 4K and 1080p camera streams.
Before you begin executing the use cases, ensure that you complete the preconditions
mentioned in [Multimedia use cases](https://docs.qualcomm.com/doc/80-70017-50/topic/multimedia-use-cases.html).
## One stream - 1080p AVC RTSP from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows one 1080p stream taken from the camera and sent to the encoder.
The encoded stream is sent over the network using the RTSP streaming.
Figure : Pipeline for encoding 1080p RTSP stream

- Run the RTSP server on target with udpsrc (You can run it in the background as a
service):
gst-rtsp-server -p 8900 -a "< IP_address of the device >" -m /live "( udpsrc name=pay0 port=8554 caps=\"application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96\" )"Copy to clipboard
- Run the pipeline in another console on the
target:
gst-launch-1.0 -e qtiqmmfsrc name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse config-interval=-1 ! rtph264pay pt=96 ! udpsink host=< IP_address of the device > port=8554Copy to clipboard
The streamed video is displayed as an RTSP stream on a host.
To stop the use case, press CTRL + C.
### View RTSP stream on host PC
**Prerequisites:**
- Install the VLC media player on the host machine.
- Set the binary/executable paths in the environment variables.
On the Linux host, do one of the following:
- vlc -vvv rtsp://<IP\_address of the device>:8900/live
[Ubuntu 18.04 with VLC version 3.0.8]
- ffplay -rtsp\_transport tcp rtsp://<IP\_address of the
device>:8900/live
On the Windows host, do the following:
1. Open the VLC media player.
2. Go to Media > Open Network Stream, or press CTRL +
N.
3. Enter rtsp://<IP\_address of the device>:8900/live.
4. Click Play.
## Two streams – 4K AVC and 1080p AVC from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows one 4k stream and one 1080p stream taken from the camera and sent
to encoder. Each encoded stream is multiplexed into a different file.
Run the use case:
gst-launch-1.0 -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=3840,height=2160,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux1.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux2.mp4"Copy to clipboard
To
stop the use case, press CTRL + C, pull the
recorded content from the device using the following `scp` command, and
then play the content on a host PC.
The MP4 file can be played on a media player. Pull the recorded
content:
scp -r root@[DEVICE IP-ADDR]:/opt/mux1.mp4 user1@[HOST IP-ADDR]:/workspace/Copy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/mux2.mp4 user1@[HOST IP-ADDR]:/workspace/Copy to clipboard
The figure shows the flow of the pipeline execution:
Figure : Pipeline for encoding two (4k and 1080p) camera streams

## Three 1080p AVC streams from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows three 1080p streams taken from the camera and sent to the encoder.
Each encoded stream is multiplexed into a different file.
Run the
pipeline:
gst-launch-1.0 -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux1.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux2.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux3.mp4"Copy to clipboard
To
stop the use case, press CTRL + C, pull the
recorded content out from the device using the following `scp` command,
and then play the content on host PC.
The content from the MP4 files can be played on a media player. Pull the recorded content
using one of the following
commands:
scp -r root@[DEVICE IP-ADDR]:/opt/mux1.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/mux2.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/mux3.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
The figure shows the flow of the pipeline execution:
Figure : Pipeline for encoding three 1080p camera streams

## Three streams - 1080p AVC, 1080p HEVC, and 1080p YUV from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows three 1080p stream taken from the camera. Two streams are sent to
the encoder with one stream encoded as H.264 and the other as HEVC. These streams are
multiplexed into different files. The third stream is sent to display.
Run the
pipeline:
gst-launch-1.0 -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux1.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 ! queue ! h265parse ! mp4mux ! queue ! filesink location="/opt/mux_hevc.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! waylandsink sync=false fullscreen=true enable-last-sample=falseCopy to clipboard
To stop the use case, press CTRL + C, pull
the recorded content from the device using the following `scp` command,
and then play the content on host PC.
The camera stream is displayed. The MP4 file can be played on a media player.
scp -r root@[DEVICE IP-ADDR]:/opt/mux1.mp4 user1@[HOST IP-ADDR]:/workspace/Copy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/mux_hevc.mp4 user1@[HOST IP-ADDR]:/workspace/Copy to clipboard
The figure shows the flow of the pipeline execution:
Figure : Pipeline for encoding 1080p AVC, 1080p HEVC, and 1080p YUV camera streams

## Three streams - 1080p AVC MP4, 1080p AVC MPEGTS, and 1080p AVC MP4 from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows three 1080p streams taken from the camera and sent to the encoder.
Each stream is encoded as H.264 and multiplexed into different files – two as MP4 and one as
MPEGTS.
Run the
pipeline:
gst-launch-1.0 -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux1.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mpegtsmux name=muxer ! queue ! filesink location="/opt/mux_mpegts.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 ! queue ! h265parse ! mp4mux ! queue ! filesink location="/opt/mux3.mp4"Copy to clipboard
To stop the use case, press CTRL + C, and
then pull recorded content from the device using the following `scp`
commands, and play content on the host PC using a media player.
scp -r root@[DEVICE IP-ADDR]:/opt/mux1.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/mux_mpegts.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/mux3.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
The figure shows the flow of the pipeline execution:
Figure : Pipeline for encoding 1080p AVC MP4, 1080p AVC MPEGTS, and 1080p AVC MP4 camera
streams

## Three streams – 1080p AVC file save , 1080p AVC RTSP, and 1080p YUV from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows three 1080p streams from the camera. Two are sent to the encoder
with each stream encoded as H.264. The first stream is multiplexed and saved to a file. The
second stream is sent over the network through RTSP streaming. The third stream is sent to
the display.
Run the pipeline:
# Run RTSP server in a separate console on target with udpsrc (can be run in backround as service):
gst-rtsp-server -p 8900 -a -m /live "( udpsrc name=pay0 port=8554 caps=\"application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96\" )"Copy to clipboard
# Run the pipeline in same or another console on target:
gst-launch-1.0 -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux.mp4" camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse config-interval=-1 ! rtph264pay pt=96 ! udpsink host= port=8554 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! waylandsink fullscreen=true async=true sync=falseCopy to clipboard
To stop the use case, press CTRL + C, and
then pull recorded content from device using the following `scp` command,
and play content on host PC.
scp -r root@[DEVICE IP-ADDR]:/opt/mux1.mp4 user1@[HOST IP-ADDR]:/workspace/Copy to clipboard
The MP4 file can be played on any media player. The streamed video is played as an RTSP
stream on a host. The third stream from the camera is displayed.
The figure shows the flow of the pipeline execution:
Figure : Pipeline for encoding three 1080p camera streams

**Related Information**
- [View RTSP stream on host PC](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html#one_stream_1080p_avc_rtsp_from_live_source__section_ayq_2nh_pyb)
## Three stream – 4K JPEG snapshot, 1080p AVC MP4, 1080p YUV from live source
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The pipeline shows three streams taken from the camera. The first stream is a 4k
stream for JPEG snapshot. The second stream is a 1080p stream, which is encoded as H.264 and
then multiplexed. The third 1080p stream is sent to the display.
Run the
pipeline:
gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux.mp4" camsrc.image_1 ! "image/jpeg,width=3840,height=2160,framerate=30/1" ! multifilesink location=/opt/frame%d.jpg sync=true async=false camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! waylandsink fullscreen=true async=true sync=falseCopy to clipboard
A menu is displayed on the `cmd`line terminal.
1. Select Playing mode, the pipeline starts the
streaming.
2. Press Enter.
3. Select the Plugin mode and select
`camsrc`.
4. Select Capture image signal.
5. Select either video or still
capture.
6. Enter the number of snapshots that you want to capture.
To stop the use case, select Back and then
Quit the options from the menu.
The MP4 file and snapshots can be played. The stream from camera is displayed.
Pull recorded content out from device and play content on the host PC.
scp -r root@[DEVICE IP-ADDR]:/opt/mux.mp4 user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
scp -r root@[DEVICE IP-ADDR]:/opt/frame*.jpg user1@[HOST IP-ADDR]:/workspaceCopy to clipboard
The figure shows the flow of the pipeline execution:
Figure : Pipeline for three camera streams – 4k to JPEG snapshot, 1080p to encoding, 1080
to display

## Two stream – 1080p MJPEG encoder
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
The MJPEG encoder encodes and writes the captured video stream in an MJPEG format.
Run the use cases for encoding, saving to file, and previewing on display.
Note: For QCS9075, the MJPEG video encode is currently not
supported.
The following are the various use cases for this encoder:
- H.264 encode and MJPEG dump to a
file:
gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux.mp4" camsrc. ! "image/jpeg,width=3840,height=2160,framerate=30/1" ! queue ! avimux ! filesink location=/opt/4k_mjpeg.avi sync=true async=falseCopy to clipboard
The
mux.mp4 and 4k\_mjpeg.avi files are
stored at /opt/.
- H.265 encode and MJPEG dump to a
file:
gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 ! queue ! h265parse ! mp4mux ! queue ! filesink location="/opt/mux.mp4" camsrc. ! "image/jpeg,width=3840,height=2160,framerate=30/1" ! queue ! avimux ! filesink location=/opt/4k_mjpeg.avi sync=true async=falseCopy to clipboard
The
mux.mp4 and 4k\_mjpeg.avi files are
stored at /opt/.
- Preview on display with MJPEG encoding in a file:
gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! waylandsink fullscreen=true camsrc.video_1 ! "image/jpeg,width=1920,height=1080,framerate=30/1" ! queue ! avimux ! filesink location=/opt/mjpeg.avi sync=true async=falseCopy to clipboard
The
video is previewed on a screen and the mjpeg.avi file is
stored at /opt/.
- Preview on display with MJPEG and H.264 encoding in a file:
gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! waylandsink fullscreen=true camsrc.video_1 ! "image/jpeg,width=1920,height=1080,framerate=30/1" ! queue ! avimux ! filesink location=/opt/mjpeg.avi sync=true async=false camsrc.video_2 ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux.mp4"Copy to clipboard
The
video is previewed on a screen and the mux.mp4 and
mjpeg.avi files are stored at
/opt/.
## Slice-based encoding
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
With slice support for video encoding, the video stream is divided or sliced into
multiple separate sections so that you can encode them in parallel.
You can use slice-based encoding for video playback, teleconferencing, and security
camera use cases.
The following commands enable you to implement slice-based encoding on a camera
stream.
### H.264
- 1280x720, maximum slices per frame =
10:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1280,height=720,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=1;" ! filesink location="/opt/encoded.h264"Copy to clipboard
- 1280x720, slices per frame =
8:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1280,height=720,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=1,number_of_mbs_in_a_slice=460;" ! filesink location="/opt/encoded.h264"Copy to clipboard
- 1920x1080, slices per frame
=3:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=1,number_of_mbs_in_a_slice=2720;" ! filesink location="/opt/encoded.h264"Copy to clipboard
- 1280x720, Max Bytes
mode:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1280,height=720,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=2;" ! filesink location="/opt/encoded.h264"Copy to clipboard
### H.265
- 1280x720, maximum slices per frame =
10:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1280,height=720,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=1;" ! filesink location="/opt/encoded.h265"Copy to clipboard
- 1280x720, slices per frame =
8:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1280,height=720,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=1,number_of_mbs_in_a_slice=460;" ! filesink location="/opt/encoded.h265"Copy to clipboard
- 1920x1080, slices per frame =
3:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=1,number_of_mbs_in_a_slice=2720;" ! filesink location="/opt/encoded.h265"Copy to clipboard
- 1280x720, Max Bytes
mode:
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1280,height=720,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h265enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,slice_partitioning_method=2;" ! filesink location="/opt/encoded.h265"Copy to clipboard
## Intra-frame smart codec (H.264 and H.265)
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
Intra-frame (I frame) is a data compression technique that enables smaller file sizes
and lower bitrates. Run the use cases for 1080p@30 HEVC streams with smart codec and noise
reduction.
### 1080p@30 HEVC stream with smart bitrate, smart framerate, and smart GOP – noise
reduction enabled
- H.264
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 levels-override="LevelsOverride,bitrate_static=160000,bitrate_low=358000,bitrate_medium=700000,bitrate_high=1400000,fr_static=16,fr_low=4,fr_medium=2,fr_high=1;" roi-quality-cfg="ROIQPs,car=2,person=1,tree=-2;" encoder="v4l2h264enc" max-bitrate=4200000 name=scb ! queue ! h264parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
- H.265
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 levels-override="LevelsOverride,bitrate_static=160000,bitrate_low=358000,bitrate_medium=700000,bitrate_high=1400000,fr_static=16,fr_low=4,fr_medium=2,fr_high=1;" roi-quality-cfg="ROIQPs,car=2,person=1,tree=-2;" encoder="v4l2h265enc" max-bitrate=4200000 name=scb ! queue ! h265parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
### 1080p@30 HEVC stream with smart bitrate only – noise reduction enabled
- H.264
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 smart-framerate=false smart-gop=false encoder="v4l2h264enc" max-bitrate=4200000 name=scb ! queue ! h264parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
- H.265
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 smart-framerate=false smart-gop=false encoder="v4l2h265enc" max-bitrate=4200000 name=scb ! queue ! h265parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
### 1080p@30 HEVC stream with smart bitrate, smart framerate, and smart GOP – noise
reduction disabled
- H.264
gst-launch-1.0 -ev qtiqmmfsrc video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h264enc" max-bitrate=4200000 name=scb ! queue ! h264parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
- H.265
gst-launch-1.0 -ev qtiqmmfsrc video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h265enc" max-bitrate=4200000 name=scb ! queue ! h265parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
### 1080p@30 HEVC streamed over TCP with smart bitrate, smart framerate, and smart
GOP – noise reduction enabled
- H.264
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h264enc" max-bitrate=4200000 name=scb ! queue ! h264parse config-interval=1 ! mpegtsmux name=muxer ! queue ! tcpserversink port=8900 host= camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
- H.265
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h265enc" max-bitrate=4200000 name=scb ! queue ! h265parse config-interval=1 ! mpegtsmux name=muxer ! queue ! tcpserversink port=8900 host= camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! scb.sink_ctrlCopy to clipboard
To play the stream over TCP, do the following on the Windows host:
1. Open the VLC media player.
2. Select Media > Open Network Stream
or press CTRL + N).
3. Enter tcp://<ip\_address>:8900/live.
4. Click Play.
### 1080p@30 HEVC stream with smart bitrate, smart framerate, and smart GOP – noise
reduction enabled
- H.264
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h264enc" max-bitrate=1000000 name=scb ! queue ! h264parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! tee name=split ! queue ! scb.sink_ctrl split. ! queue ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/opt/yolov8_det_quantized.tflite ! queue ! qtimlvdetection threshold=50.0 results=5 module=yolov8 labels=/opt/coco_labels.txt constants="YOLOv8,q-offsets=<-107.0, -128.0, 0.0>,q-scales=<3.093529462814331, 0.00390625, 1.0>;" ! text/x-raw ! queue ! scb.sink_mlCopy to clipboard
- H.265
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h265enc" max-bitrate=1000000 name=scb ! queue ! h265parse ! queue ! mp4mux ! queue ! filesink location=/opt/video.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! tee name=split ! queue ! scb.sink_ctrl split. ! queue ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/opt/yolov8_det_quantized.tflite ! queue ! qtimlvdetection threshold=50.0 results=5 module=yolov8 labels=/opt/coco_labels.txt constants="YOLOv8,q-offsets=<-107.0, -128.0, 0.0>,q-scales=<3.093529462814331, 0.00390625, 1.0>;" ! text/x-raw ! queue ! scb.sink_mlCopy to clipboard
### Concurrent two 1080p@30 HEVC streams with smart bitrate, smart framerate,and
smart GOP – noise reduction enabled
- H.264
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview video_1::extra-buffers=20 name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb1.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h264enc" max-bitrate=4200000 name=scb1 ! queue ! h264parse ! queue ! mp4mux ! queue ! filesink location=/opt/video_scb1.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1 ! queue ! scb2.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h264enc" max-bitrate=4200000 name=scb2 ! queue ! h264parse ! queue ! mp4mux ! queue ! filesink location=/opt/video_scb2.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! tee name=ctrl_t ! queue ! scb1.sink_ctrl ctrl_t. ! queue ! scb2.sink_ctrlCopy to clipboard
- H.265
gst-launch-1.0 -ev qtiqmmfsrc noise-reduction=2 video_0::extra-buffers=20 video_0::type=preview video_1::extra-buffers=20 name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! queue ! scb1.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h265enc" max-bitrate=4200000 name=scb1 ! queue ! h265parse ! queue ! mp4mux ! queue ! filesink location=/opt/video_scb1.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1 ! queue ! scb2.sink qtismartvencbin default-gop=30 max-gop=600 encoder="v4l2h265enc" max-bitrate=4200000 name=scb2 ! queue ! h265parse ! queue ! mp4mux ! queue ! filesink location=/opt/video_scb2.mp4 camsrc. ! video/x-raw\(memory:GBM\),format=NV12,width=640,height=480,framerate=15/1 ! queue ! tee name=ctrl_t ! queue ! scb1.sink_ctrl ctrl_t. ! queue ! scb2.sink_ctrlCopy to clipboard
## MJPEG video encode in CPU and GPU
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
For MJPEG encoding, if the hardware is not available, support is required for CPU and
GPU. The use cases include the capabilities to encode 16 channel 1080p@2fps
video.
Note: For QCS9075, the MJPEG video encode is currently not
supported.
### Prerequisites
For MJPEG encoding, support
for 1080p@2fps in CPU/GPU is required.
Set the following environment variables before
running the use
cases:
export XDG_RUNTIME_DIR=/dev/socket/westonCopy to clipboard
export WAYLAND_DISPLAY=wayland-1Copy to clipboard
### YUV file 1920x1080@30 → 16 x jpegenc → AVI file
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg1.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg2.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg3.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg4.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg5.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg6.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg7.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg8.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg9.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg10.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg11.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg12.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg13.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg14.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg15.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg16.aviCopy to clipboard
### YUV file 1920x1080@30 → 12 x jpegenc → AVI file and 1920x1080@30 AVI → 12 x
jpegdec > JPEG
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg1_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg2_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg3_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg4_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg5_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg6_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg7_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg8_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg9_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg10_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg11_%d.jpeg max-files=1 &
gst-launch-1.0 -v filesrc location=/opt/mjpeg.avi ! avidemux ! queue ! jpegdec ! multifilesink location=/opt/mjpeg12_%d.jpeg max-files=1 &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg1.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg2.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg3.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg4.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg5.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg6.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg7.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg8.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg9.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg10.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg11.avi &
gst-launch-1.0 -e filesrc location=/opt/1920_1080.yuv ! videoparse width=1920 height=1080 format=nv12 framerate=2/1 ! jpegenc ! avimux ! filesink location=/opt/mjpeg12.aviCopy to clipboard
## Enable 24 end-to-end concurrent video sessions
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
Run the use cases for 24 parallel 1080p streams taken from files and sent to a
display. Each stream is displayed at different positions on the screen.
### H.264 – 24 session decode
ulimit -n 4096 && gst-launch-1.0 qtivcomposer name=mix sink_0::position="<0, 0>" sink_0::dimensions="<240, 270>" \
sink_1::position="<240, 0>" sink_1::dimensions="<240, 270>" \
sink_2::position="<480, 0>" sink_2::dimensions="<240, 270>" \
sink_3::position="<720, 0>" sink_3::dimensions="<240, 270>" \
sink_4::position="<960, 0>" sink_4::dimensions="<240, 270>" \
sink_5::position="<1200, 0>" sink_5::dimensions="<240, 270>" \
sink_6::position="<1440, 0>" sink_6::dimensions="<240, 270>" \
sink_7::position="<1680, 0>" sink_7::dimensions="<240, 270>" \
sink_8::position="<0, 270>" sink_8::dimensions="<240, 270>" \
sink_9::position="<240, 270>" sink_9::dimensions="<240, 270>" \
sink_10::position="<480, 270>" sink_10::dimensions="<240, 270>" \
sink_11::position="<720, 270>" sink_11::dimensions="<240, 270>" \
sink_12::position="<960, 270>" sink_12::dimensions="<240, 270>" \
sink_13::position="<1200, 270>" sink_13::dimensions="<240, 270>" \
sink_14::position="<1440, 270>" sink_14::dimensions="<240, 270>" \
sink_15::position="<1680, 270>" sink_15::dimensions="<240, 270>" \
sink_16::position="<0, 540>" sink_16::dimensions="<240, 270>" \
sink_17::position="<240, 540>" sink_17::dimensions="<240, 270>" \
sink_18::position="<480, 540>" sink_18::dimensions="<240, 270>" \
sink_19::position="<720, 540>" sink_19::dimensions="<240, 270>" \
sink_20::position="<960, 540>" sink_20::dimensions="<240, 270>" \
sink_21::position="<1200, 540>" sink_21::dimensions="<240, 270>" \
sink_22::position="<1440, 540>" sink_22::dimensions="<240, 270>" \
sink_23::position="<1680, 540>" sink_23::dimensions="<240, 270>" \
mix. ! fpsdisplaysink text-overlay=true video-sink="waylandsink fullscreen=true" -v \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! mix.Copy to clipboard
### H.265 – 24 session decode
ulimit -n 4096 && gst-launch-1.0 qtivcomposer name=mix sink_0::position="<0, 0>" sink_0::dimensions="<240, 270>" \
sink_1::position="<240, 0>" sink_1::dimensions="<240, 270>" \
sink_2::position="<480, 0>" sink_2::dimensions="<240, 270>" \
sink_3::position="<720, 0>" sink_3::dimensions="<240, 270>" \
sink_4::position="<960, 0>" sink_4::dimensions="<240, 270>" \
sink_5::position="<1200, 0>" sink_5::dimensions="<240, 270>" \
sink_6::position="<1440, 0>" sink_6::dimensions="<240, 270>" \
sink_7::position="<1680, 0>" sink_7::dimensions="<240, 270>" \
sink_8::position="<0, 270>" sink_8::dimensions="<240, 270>" \
sink_9::position="<240, 270>" sink_9::dimensions="<240, 270>" \
sink_10::position="<480, 270>" sink_10::dimensions="<240, 270>" \
sink_11::position="<720, 270>" sink_11::dimensions="<240, 270>" \
sink_12::position="<960, 270>" sink_12::dimensions="<240, 270>" \
sink_13::position="<1200, 270>" sink_13::dimensions="<240, 270>" \
sink_14::position="<1440, 270>" sink_14::dimensions="<240, 270>" \
sink_15::position="<1680, 270>" sink_15::dimensions="<240, 270>" \
sink_16::position="<0, 540>" sink_16::dimensions="<240, 270>" \
sink_17::position="<240, 540>" sink_17::dimensions="<240, 270>" \
sink_18::position="<480, 540>" sink_18::dimensions="<240, 270>" \
sink_19::position="<720, 540>" sink_19::dimensions="<240, 270>" \
sink_20::position="<960, 540>" sink_20::dimensions="<240, 270>" \
sink_21::position="<1200, 540>" sink_21::dimensions="<240, 270>" \
sink_22::position="<1440, 540>" sink_22::dimensions="<240, 270>" \
sink_23::position="<1680, 540>" sink_23::dimensions="<240, 270>" \
mix. ! fpsdisplaysink text-overlay=false video-sink="waylandsink fullscreen=true" -v \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/FlyingBirdFlock_1920x1080_30fps_HEVC_7862Kbps_withAudio.mp4 ! qtdemux ! h265parse ! v4l2h265dec capture-io-mode=5 output-io-mode=5 ! mix.Copy to clipboard
### AV1 – 24 session decode
ulimit -n 4096 && gst-launch-1.0 qtivcomposer name=mix sink_0::position="<0, 0>" sink_0::dimensions="<240, 270>" \
sink_1::position="<240, 0>" sink_1::dimensions="<240, 270>" \
sink_2::position="<480, 0>" sink_2::dimensions="<240, 270>" \
sink_3::position="<720, 0>" sink_3::dimensions="<240, 270>" \
sink_4::position="<960, 0>" sink_4::dimensions="<240, 270>" \
sink_5::position="<1200, 0>" sink_5::dimensions="<240, 270>" \
sink_6::position="<1440, 0>" sink_6::dimensions="<240, 270>" \
sink_7::position="<1680, 0>" sink_7::dimensions="<240, 270>" \
sink_8::position="<0, 270>" sink_8::dimensions="<240, 270>" \
sink_9::position="<240, 270>" sink_9::dimensions="<240, 270>" \
sink_10::position="<480, 270>" sink_10::dimensions="<240, 270>" \
sink_11::position="<720, 270>" sink_11::dimensions="<240, 270>" \
sink_12::position="<960, 270>" sink_12::dimensions="<240, 270>" \
sink_13::position="<1200, 270>" sink_13::dimensions="<240, 270>" \
sink_14::position="<1440, 270>" sink_14::dimensions="<240, 270>" \
sink_15::position="<1680, 270>" sink_15::dimensions="<240, 270>" \
sink_16::position="<0, 540>" sink_16::dimensions="<240, 270>" \
sink_17::position="<240, 540>" sink_17::dimensions="<240, 270>" \
sink_18::position="<480, 540>" sink_18::dimensions="<240, 270>" \
sink_19::position="<720, 540>" sink_19::dimensions="<240, 270>" \
sink_20::position="<960, 540>" sink_20::dimensions="<240, 270>" \
sink_21::position="<1200, 540>" sink_21::dimensions="<240, 270>" \
sink_22::position="<1440, 540>" sink_22::dimensions="<240, 270>" \
sink_23::position="<1680, 540>" sink_23::dimensions="<240, 270>" \
mix. ! fpsdisplaysink text-overlay=false video-sink="waylandsink fullscreen=true" -v \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix. \
filesrc location=/opt/sjxbqm_1080p30fps_25_4882Kbps.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! mix.Copy to clipboard
### H.264 – 12 sessions decode and encode
ulimit -n 4096 && gst-launch-1.0 filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_1.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_2.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_3.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_4.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_5.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_6.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_7.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_8.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_9.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_10.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_11.mp4 \
filesrc location=/opt/1920_1080_h264_30fps_1min.mp4 ! qtdemux ! h264parse ! v4l2h264dec capture-io-mode=5 output-io-mode=5 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! h264parse ! mp4mux ! filesink location=/opt/enc_12.mp4Copy to clipboard
### H264 – 24 sessions encode
gst-launch-1.0 filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_0.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_1.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_2.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_3.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_4.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_5.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_6.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_7.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_8.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_9.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_10.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_11.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_12.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_13.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_14.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_15.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_16.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_17.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_18.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_19.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_20.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_21.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_22.h264 \
filesrc blocksize=3133440 location=/tmp/dump_1080.yuv ! video/x-raw,format="NV12",width=1920,height=1080,framerate=30/1,interlace-mode=progressive,colorimetry=bt601 ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! filesink location=/opt/enc_23.h264Copy to clipboard
## AV1 decoder and 4K VP9 decoder with 240 fps playback
Source: [https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html](https://docs.qualcomm.com/doc/80-70017-50/topic/camera-and-video-encode.html)
Run the decoding use cases with the AV1 and VP9 decoders. These use cases are only
applicable to QCS9075.
### AV1 use cases
- 3840×2160
gst-launch-1.0 filesrc location=/opt/SeaOtters_AV1_3840x2160_30_25.0Mbps_Main_no_audio_30.0.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! fpsdisplaysink video-sink="waylandsink fullscreen=true" -vCopy to clipboard
- 1920×1080
gst-launch-1.0 filesrc location=/opt/CaribouHerd_AV1_1920x1080_30_39.38Mbps_Main_AAC_34.472.mp4 ! qtdemux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! fpsdisplaysink video-sink="waylandsink fullscreen=true" -vCopy to clipboard
- 1280×720
gst-launch-1.0 filesrc location=/opt/SeaOtters_AV1_1280x720_30_29.68Mbps_Main_AAC_60.008.mkv ! matroskademux ! av1parse ! v4l2av1dec capture-io-mode=5 output-io-mode=5 ! fpsdisplaysink video-sink="waylandsink fullscreen=true" -vCopy to clipboard
### VP9 use cases
3840×2160 with 240 fps
gst-launch-1.0 filesrc location=/opt/test_UHD_240FPS.ivf ! ivfparse ! queue ! v4l2vp9dec capture-io-mode=5 output-io-mode=5 ! queue ! fpsdisplaysink text-overlay=false video-sink="fakesink" -vCopy to clipboard
Last Published: Oct 01, 2026
[Previous Topic
Camera](https://docs.qualcomm.com/bundle/publicresource/80-70017-50/topics/camera.md) [Next Topic
Multi camera/Multi client use cases](https://docs.qualcomm.com/bundle/publicresource/80-70017-50/topics/multi-camera-multi-client-use-cases.md)