# Issues with GStreamer Pipeline on Raspberry Pi 5 – QTDemux Linking Error

**URL:** <https://discourse.gstreamer.org/t/issues-with-gstreamer-pipeline-on-raspberry-pi-5-qtdemux-linking-error/4402>\
**Category:** Application Development\
**Created:** [April 1, 2025, 8:44am UTC](https://discourse.gstreamer.org/t/issues-with-gstreamer-pipeline-on-raspberry-pi-5-qtdemux-linking-error/4402 "2025-04-01T08:44:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justo91](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/justo91/32/1255_2.png) [@Justo91](https://discourse.gstreamer.org/u/Justo91)\
**Post date:** [April 1, 2025, 8:44am UTC](https://discourse.gstreamer.org/t/issues-with-gstreamer-pipeline-on-raspberry-pi-5-qtdemux-linking-error/4402/1 "2025-04-01T08:44:29Z")

</div>

Hi everyone,

I’m having trouble building a GStreamer pipeline on my Raspberry Pi 5. The pipeline is meant to read an MP4 file, demux it, decode the H265 stream, apply a 3D rotation effect, and finally display it. However, I consistently encounter an error related to the qtdemux element.

Here are the details:

1. Pipeline Using fakesink Works  
When I run:

2. Pipeline Fails When Linking to Decoder and Effect  
When I modify the pipeline to decode and process the video:

It appears that while qtdemux successfully creates a “video\_0” pad, the downstream elements are not being linked to it. The error “failed delayed linking pad video\_0 of GstQTDemux named demux to some pad of GstQueue named queue0” indicates that the automatic (delayed) pad linking is failing—resulting in an “Internal data stream error” and the pipeline not moving past the PRE-ROLL phase.

Potential causes/solutions I’ve considered:

- File Integrity: Although the file plays with a simple fakesink test, it might contain metadata or structure that causes qtdemux to fail when linking further elements.
- Manual Linking: Removing `parsebin` (or replacing it with `h265parse`) might be necessary, as it seems that the delayed linking isn’t completing correctly.
- Element Availability: I’ve also checked that the decoding elements (like v4l2slh265dec, avdec\_h265) are available and properly installed.
- Alternative Pipeline Construction: I’m considering building the pipeline by manually specifying the demux output to avoid delayed linking issues.

Any help or suggestions on how to resolve the pad linking problem with qtdemux would be greatly appreciated!

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ystreet00](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/y/3d9bf3/32.png) [@ystreet00](https://discourse.gstreamer.org/u/ystreet00)\
**Post date:** [April 1, 2025, 10:29am UTC](https://discourse.gstreamer.org/t/issues-with-gstreamer-pipeline-on-raspberry-pi-5-qtdemux-linking-error/4402/2 "2025-04-01T10:29:20Z")

</div>

> [@Justo91](#):
>
> ```auto
> gst-launch-1.0 filesrc location=/home/intenscity/Videos/test.mp4 ! qtdemux name=demux \
> demux.video_0 ! queue ! h265parse ! avdec_h265 ! videoconvert ! gltransformation rotation-x=30 rotation-y=20 rotation-z=10 ! autovideosink
> 
> ```

This is missing a `glupload ! glcolorconvert` before `gltransformation`. Also, there is no guarantee that the video sink chosen by `autovideosink` will accept the output of `gltransformation`. If you need that, you should use `glimagesink` directly.

---

<div class="post-metadata">

**Author:** ![Justo91](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/justo91/32/1255_2.png) [@Justo91](https://discourse.gstreamer.org/u/Justo91)\
**Post date:** [April 1, 2025, 11:33am UTC](https://discourse.gstreamer.org/t/issues-with-gstreamer-pipeline-on-raspberry-pi-5-qtdemux-linking-error/4402/3 "2025-04-01T11:33:52Z")

</div>

Thanks @ystreet00 ! It’s good now
