# Could not display a video on a screen with cubox-M with buildroot system

**URL:** <https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499>\
**Category:** NXP i.MX8M Plus\
**Created:** [October 19, 2022, 4:39pm UTC](https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499 "2022-10-19T16:39:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tom](https://community.solid-run.com/u/Tom)\
**Post date:** [October 19, 2022, 4:39pm UTC](https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499/1 "2022-10-19T16:39:35Z")

</div>

Hi,

I am using a cubox-M with a custom buildroot system.  
I am trying to display a video with gstreamer.  
I use this command:  
`gst-launch-1.0 playbin uri=file:///root/background_video.mov`  
I know that is working on a yocto image but on my buildroot system I have this type of error:

```auto
# gst-launch-1.0 playbin uri=file:///root/background_video.mov                  
Setting pipeline to PAUSED ...                                                  
Pipeline is PREROLLING ...                                                      
error: XDG_RUNTIME_DIR not set in the environment.                              
WARNING: from element /GstWaylandSink:waylandsink0: Could not initialise Wayland
 output                                                                         
Additional debug info:                                                          
../ext/wayland/gstwaylandsink.c(362): gst_wayland_sink_find_display (): /GstWayl
andSink:waylandsink0:                                                           
Failed to create GstWlDisplay: 'Failed to connect to the wayland display '(defau
lt)''                                                                           
Redistribute latency...                                                         
error: XDG_RUNTIME_DIR not set in the environment.                              
Redistribute latency...                                                         
Pipeline is PREROLLED ...                                                       
Setting pipeline to PLAYING ...                                                 
New clock: GstSystemClock                                                       
Got EOS from element "playbin0".                                                
Execution ended after 0:00:10.041199000                                         
Setting pipeline to NULL ...                                                    
Freeing pipeline ...        

```

and nothing is displayed on my hdmi screen.  
However, I am able to display an image with fbv.

In my defconfig I have selected:

```auto
BR2_PACKAGE_GSTREAMER1=y

BR2_PACKAGE_GST1_PLUGINS_GOOD=y

BR2_PACKAGE_GST1_PLUGINS_BAD=y

BR2_PACKAGE_GST1_PLUGINS_UGLY=y

BR2_PACKAGE_GST1_LIBAV=y

BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENH264=y

BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOCONVERT=y

BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUTODETECT=y

BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_DEINTERLACE=y

BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL=y

BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GL=y

BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_QMLGL=y

BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2=y

```

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 20, 2022, 1:37pm UTC](https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499/2 "2022-10-20T13:37:21Z")

</div>

I have mainly focused on the Yocto builds. I will review the BuildRoot kernel and update patches by Monday to try and rectify this issue.

---

<div class="post-metadata">

**Author:** ![Tom](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tom](https://community.solid-run.com/u/Tom)\
**Post date:** [October 21, 2022, 7:51am UTC](https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499/3 "2022-10-21T07:51:22Z")

</div>

Great thanks!  
Indeed, it was working correctly on yocto

---

<div class="post-metadata">

**Author:** ![Tom](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tom](https://community.solid-run.com/u/Tom)\
**Post date:** [October 24, 2022, 4:11pm UTC](https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499/4 "2022-10-24T16:11:27Z")

</div>

Hi!  
Did you find any correction for the problem of gstreamer on the Buildroot system?

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 25, 2022, 5:34am UTC](https://community.solid-run.com/t/could-not-display-a-video-on-a-screen-with-cubox-m-with-buildroot-system/499/5 "2022-10-25T05:34:28Z")

</div>

There is way more missing in BuildRoot than I expected for fully working iMX8M Plus. I will get it, but it will take a bit more time than I anticipated.
