# Audio-video playback
Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/gst-audio-video-playback.html](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-audio-video-playback.html)
The **gst-audio-video-playback** application supports simultaneous audio and video
decoding and playback of FLAC/MP3 audio and AVC/HEVC video.
The following are the applicable scenarios to use the gst-audio-video-playback
application:
- Media player applications
- Streaming services
- Video conferencing
- Surveillance systems
- Educational platforms
- Entertainment platforms that can play back audio and video files in various
formats
As shown in the following figure, the pipeline involves several elements for audio and
video playback. For more information about these elements, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-audio-video-playback.html#gst-audio-video-playback__section_g4v_31g_4bc).
Figure : gst-audio-video-playback pipeline
## Run the application
1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70022-50/topic/mm_sample_apps_prerequisites.html).
2. Input `.mp4`,
`.mp4`,
`.mp4`,
`.mp4` video files on the target
device.
3. In the terminal of the target device, run the use
case:
gst-audio-video-playback -v 1 -a 1 -i /etc/media/.mp4Copy to clipboard
The following table provides a description of the command-line
parameters: | Command-line parameter | Description |
| --- | --- |
| `-v` | Specifies the video codec.
1 = AVC (H.264)
2 = HEVC (H.265)
|
| `-a` | Specifies the audio codec.
1 = FLAC
2 = MP3
|
| `-i` | Specifies the absolute path to the MP4 input file. |
For example, run the commands in the following list for different
audio and video formats:
- AVC video with FLAC
audio:
gst-audio-video-playback -v 1 -a 1 -i /etc/media/.mp4 Copy to clipboard
- AVC video with MP3
audio:
gst-audio-video-playback -v 1 -a 2 -i /etc/media/.mp4Copy to clipboard
- HEVC video with FLAC
audio:
gst-audio-video-playback -v 2 -a 1 -i /etc/media/.mp4Copy to clipboard
- HEVC video with MP3
audio:
gst-audio-video-playback -v 2 -a 2 -i /etc/media/.mp4Copy to clipboard
4. To stop the use case, use CTRL +
C.
5. In the terminal of the target device, run the following command in the SSH shell
to display the available help
options:
gst-audio-video-playback --helpCopy to clipboard
## Expected output
- The AVC/HEVC video is displayed on the screen.
- The audio plays through the device speaker.
Figure : Expected output for gst-audio-video-playback application

## Pipeline flow
The following table lists the plugins used to run the audio-video playback
pipeline:| Plugin | Description |
| --- | --- |
| filesrc | Reads the video data. |
| qtdemux | Demultiplexes the video data into separate audio and video streams. |
| h264parse | Parses the H.264 video stream. |
| h265parse | Parses the H.265 video stream. |
| [v4l2h264dec](https://docs.qualcomm.com/doc/80-70022-50/topic/v4l2h264dec.html) | Decodes the H.264 video streams. |
| [v4l2h265dec](https://docs.qualcomm.com/doc/80-70022-50/topic/v4l2h265dec.html) | Decodes the H.265 video stream. |
| [Waylandsink](https://docs.qualcomm.com/doc/80-70022-50/topic/waylandsink.html) | Displays the video stream on Wayland display. |
| flacparse or mpegaudioparse | Parses the audio stream. |
| flacdec or mpg123audiodec | Decodes the audio stream. |
| [pulsesink](https://docs.qualcomm.com/doc/80-70022-50/topic/pulsesink.html) | Allows playback of the audio stream. |
## Related information
[Audio-video use cases](https://docs.qualcomm.com/doc/80-70022-50/topic/audio-video-use-cases.html)
**Parent Topic:** [Run sample applications for video and audio](https://docs.qualcomm.com/doc/80-70022-50/topic/audio-sample-applications.html)
Last Published: Feb 20, 2026
[Previous Topic
Multi format decode](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/gst-videocodec-concurrent-playback.md) [Next Topic
Video transcoding](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/gst-video-transcode-example.md)