Error: No decoder available for type 'video/x-h264

  • I am trying to play a video in my app and getting the No decoder available for type 'video/x-h264 error. At first I thought it was my code, so I tried running some of the sample apps that come with Qt. None of the sample video apps are working for me. I have almost every gstreamer related package installed. My machine is 64bit Ubuntu 16.04. I need a solution now as I am have to demo my app tomorrow and if video is not working I have to leave it out. I though it would be trivial to get video playing with Qt. I asked this question on SO as well and provided more debugging info there, in case someone there knows what is wrong:

    Sorry for the double post, but I need an answer soon. Help please!

  • Qt Champions 2019

    @Aras Are you able to play same video in for example VLC on same machine?

  • Lifetime Qt Champion


    Check the version of gstreamer that the plugin uses. It could be 0.1. In that case the quick and dirty way is to install that version of gstreamer with the corresponding plugin packages.

    Hope it helps