Results 1 to 5 of 5

Thread: PyQt5 Media Player Won't Render On Ubuntu 22.04

  1. #1
    Join Date
    Oct 2015
    Beans
    3

    PyQt5 Media Player Won't Render On Ubuntu 22.04

    Recently installed Ubuntu 22.04 on a new laptop. I've got a simple Python video app that uses QMediaPlayer. I'm getting the following error in the console: Error: "Internal error: could not render surface" when I open a mp4 file.

    Believe I'm running X11; In /etc/gdm3/custom.conf has a line "WaylandEnabled=false".
    The Python application runs fine on my old laptop running Ubuntu 20.04.


    There are no changes to the program between Ubuntu 20.04 and 22.04.

    Googled all around and can't find anything.

  2. #2
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: PyQt5 Media Player Won't Render On Ubuntu 22.04

    I'm not sure if I can help with this, but is this installed?
    Code:
    gstreamer1.0-plugins-base-apps
    Info:
    Code:
     nala show gstreamer1.0-plugins-base-apps
    Package: gstreamer1.0-plugins-base-apps
    Version: 1.20.3-2
    Architecture: amd64
    Installed: yes
    Priority: optional
    Essential: no
    Section: utils
    Source: gst-plugins-base1.0
    Origin: Ubuntu
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Original-Maintainer: Maintainers of GStreamer packages <gst-plugins-base1.0@packages.debian.org>
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Installed-Size: 190 KB
    Depends: 
      libc6 (>= 2.34)
      libglib2.0-0 (>= 2.56)
      libgstreamer-plugins-base1.0-0 (>= 1.20.0)
      libgstreamer1.0-0 (>= 1.20.0)
      gstreamer1.0-tools
    Conflicts: gstreamer1.0-plugins-base-apps
    Homepage: https://gstreamer.freedesktop.org
    Download-Size: 38 KB
    APT-Sources: http://us.archive.ubuntu.com/ubuntu/ lunar/main amd64 Packages
    Description: GStreamer helper programs from the "base" set
     GStreamer is a streaming media framework, based on graphs of filters
     which operate on media data.  Applications using this library can do
     anything from real-time sound processing to playing videos, and just
     about anything else media-related.  Its plugin-based architecture means
     that new data types or processing capabilities can be added simply by
     installing new plug-ins.
     .
     This package contains helper programs from the "base" set, an essential
     exemplary set of elements.
    I find mutter a challenge this go round.

  3. #3
    Join Date
    Jun 2016
    Beans
    2,935
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: PyQt5 Media Player Won't Render On Ubuntu 22.04

    Quote Originally Posted by mike375 View Post
    Believe I'm running X11;
    To be sure, what session type is selected at login?

    Error: "Internal error: could not render surface"
    I would wonder if running your program with LIBGL_ALWAYS_SOFTWARE=1 environment variable set might make any difference?
    Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  4. #4
    Join Date
    Oct 2015
    Beans
    3

    Re: PyQt5 Media Player Won't Render On Ubuntu 22.04

    Thanks. I'm seeing gstreamer1.0-plugins-base-apps is installed. Might need to go back to 20.04. V

  5. #5
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: PyQt5 Media Player Won't Render On Ubuntu 22.04

    Quote Originally Posted by mike375 View Post
    Thanks. I'm seeing gstreamer1.0-plugins-base-apps is installed. Might need to go back to 20.04. V
    +1 Nothing beats a reliable working system
    And halogen2 had a worth a shot suggestion as well.
    Good Luck

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •