RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Announcing Pegasus Frontend

    Scheduled Pinned Locked Moved Ideas and Development
    frontendpegasusc++developmentqml
    1.7k Posts 145 Posters 5.1m Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pjftP
      pjft
      last edited by

      @phulshof @fluffypillow I'd love to learn more about gstreamer, why you chose it, advantages and disadvantages, as well as how it's actually used in the code to render videos.

      I don't want to sidetrack this thread, though. Would you mind if I start a new thread and tag the two of you about it tomorrow or Thursday?

      Thanks.

      P 1 Reply Last reply Reply Quote 0
      • DarksaviorD
        Darksavior @phulshof
        last edited by

        @phulshof This is mine made from sselph's scraper and handbrakecli.exe
        I'm not sure what settings he's using but it doesn't happen with every video converted, but it 100% happens with the same games.
        0_1498597180012_20170627_135532[1].jpg

        P 1 Reply Last reply Reply Quote 0
        • P
          phulshof @pjft
          last edited by

          @pjft said in Announcing Pegasus Frontend:

          @phulshof @fluffypillow I'd love to learn more about gstreamer, why you chose it, advantages and disadvantages, as well as how it's actually used in the code to render videos.

          I don't want to sidetrack this thread, though. Would you mind if I start a new thread and tag the two of you about it tomorrow or Thursday?

          That's fine. 😀 I can tell you how it's used, but I have no idea why Emb chose this library over other ones to be honest.

          1 Reply Last reply Reply Quote 0
          • P
            phulshof @Darksavior
            last edited by

            @Darksavior said in Announcing Pegasus Frontend:

            @phulshof This is mine made from sselph's scraper and handbrakecli.exe
            I'm not sure what settings he's using but it doesn't happen with every video converted, but it 100% happens with the same games.

            Alien 3 for the SNES?
            I'll give it a try tomorrow, and let you know.

            DarksaviorD 1 Reply Last reply Reply Quote 0
            • DarksaviorD
              Darksavior @phulshof
              last edited by Darksavior

              @phulshof Yes, using
              scraper.exe -download_videos -convert_videos -console_src ss with handbrakecli.exe in the same folder as scraper.exe.

              P 1 Reply Last reply Reply Quote 0
              • S
                sselph
                last edited by

                FYI This is how my code is transcoding the video. I didn't write this so not sure exactly what it does but here is a rough equivalent command
                HandBrakeCLI -i <input> -o <output> -e x264 -w 320 -l 240 -r 30 --keep-display-aspect --decomb --audio 1 -B 80 -E av_aac

                Auto-scraper: https://github.com/sselph/scraper
                Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

                1 Reply Last reply Reply Quote 0
                • P
                  phulshof @Darksavior
                  last edited by

                  @Darksavior said in Announcing Pegasus Frontend:

                  @phulshof Yes, using
                  scraper.exe -download_videos -convert_videos -console_src ss with handbrakecli.exe in the same folder as scraper.exe.

                  I'll need some more input here; this doesn't look like a command for the pi, and if it is then I don't know where to find scraper.exe (sounds like Windows) nor handbrakecli.exe. The ES videos you linked to don't contain Alien 3 for the SNES, so I cannot test it from there either. :( Any chance you could simply put the result video on dropbox or something similar for me to download?

                  DarksaviorD 1 Reply Last reply Reply Quote 0
                  • DarksaviorD
                    Darksavior @phulshof
                    last edited by Darksavior

                    @phulshof Sorry, it is in windows. I also didn't link any videos, but I will now.
                    Alien 3 (USA)-video.mp4

                    @fluffypillow Not sure if this bug's known. Can't reboot/shutdown. Using latest build. 0_1498713721085_20170628_193811[1].jpg

                    1 Reply Last reply Reply Quote 0
                    • fluffypillowF
                      fluffypillow
                      last edited by

                      @pjft If I understand correctly, ffmpeg/libav is a set of libraries and codecs for the various media formats, while gstreamer is a multimedia framework above such plugins, and provides a common interface for playing, recording, editing, etc. them. It can use ffmpeg as a plugin, and it should have hardware acceleration support on the Pi too.
                      Pegasus uses the Qt Multimedia library as a cross platform interface, which uses gstreamer on Linux. Additional plugins can be developed hovewer, and I also plan to try out a few things to fix the video issues.

                      @phulshof most of the videos in the es-toolkit-videos repo have problems; if I remember correctly, the gameboy videos have stripes, the snes ones have audio only, etc. I'll double check this afternoon.

                      @Darksavior looks like your user has no permission to shutdown/reboot the device. It's usually allowed on Debian distros for regular users, I guess it's disabled on RetroPie? Will check this too.

                      DarksaviorD 1 Reply Last reply Reply Quote 0
                      • DarksaviorD
                        Darksavior @fluffypillow
                        last edited by Darksavior

                        @fluffypillow It's odd because on earlier builds, it would refuse to shutdown/reboot if I was logged in through ssh on pc, but on a later build it wouldn't care. Now I get that "must be root". I also changed the pegasus permissions to 777. At least I can use pegasus now, so yay for that.

                        1 Reply Last reply Reply Quote 0
                        • fluffypillowF
                          fluffypillow
                          last edited by fluffypillow

                          @Darksavior by earlier build, you mean alpha2 or a previous continuous build? I don't remember changing the shutdown code, so such difference is interesting... Pegasus runs until the Shutting down... message, then calls the system commands reboot and poweroff; do you have the permission to run them on their own?

                          Also thanks for actively testing!

                          DarksaviorD 1 Reply Last reply Reply Quote 0
                          • DarksaviorD
                            Darksavior @fluffypillow
                            last edited by Darksavior

                            @fluffypillow Well, from what I can remember, with alpha2 it wouldn't shutdown if i had an ssh session opened. Closing it would then fix that. Later, I tried one of the continuous builds from a few days ago and that seemed to ignore the ssh session and shutdown.

                            I tried to re-create the problem now but I can't. Same error message with alpha2.. Not sure what I did to change that. I've just updated the retropie script/emulators and not the kernel. I can reboot/shutdown by typing it in with sudo, yea. I can shutdown/reboot fine with ES too.

                            I do need to fix permissions on every build otherwise I can't run it. Maybe it's related to that.

                            Yea, pegasus is my daily driver. I'm just waiting on being able to remap controls so I won't need my kb..or just have the ability to use the analog stick to be used in the menu(my dpad is seen by pegasus as an analog stick for some reason).I can live without scraping the logos, no videos, and no icon pictures for the retropie section.

                            One request: The arcade sections look sloppy with using the flyer pictures, maybe someday I can have the ability to resize the layout so it looks neater with marquee pictures.

                            1 Reply Last reply Reply Quote 0
                            • fluffypillowF
                              fluffypillow
                              last edited by

                              @Darksavior I've confirmed and fixed the restart/shutdown problem: a tool called PolicyKit is used to allow regular users/programs to restart/halt/power off the device, which is not (no longer?) installed by default on the Pi (it certainly is on desktop, as I've accidentally rebooted my PC several times before). You have to install policykit-1, then reboot the Pi (technically, reload all sessions). It will ask for the root password on SSH, but works without it on the board.

                              Of course, this is only required for running as a regular user. If I remember correctly, RetroPie runs ES and the shutdown/reboot commands with sudo, so the issue doesn't appear there.

                              I do need to fix permissions on every build otherwise I can't run it. Maybe it's related to that.

                              I've never had any permission issues. I'm usually wgeting then extracting the latest zip, and the permissions are 775/rwxrwxr-x, uid: 1000/pi, gid: 1000/pi. Do you get something like in this issue?

                              my dpad is seen by pegasus as an analog stick for some reason

                              Try export QT_GAMEPAD=sdl2 before launching Pegasus.

                              The arcade sections look sloppy

                              Can you show me a screenshot?

                              DarksaviorD 1 Reply Last reply Reply Quote 0
                              • lilbudL
                                lilbud
                                last edited by

                                Is it normal for so many libraries to be missing? Because Pegasus tries to run but say libinput is missing, but libinput can't be install because it's not found.

                                Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                                Backlog: http://backloggery.com/lilbud

                                1 Reply Last reply Reply Quote 0
                                • DarksaviorD
                                  Darksavior @fluffypillow
                                  last edited by Darksavior

                                  @fluffypillow Thanks, installing policykit-1 fixed the shutdown/reboot problem.

                                  If I download pegasus from windows and then transfer it to the pi via ssh, the permissions it has are 644 -rw-r--r-- and yes, it seems to be the same problem from the issues thread on github. The problem (or minor annoyance, really) can be reproduced. I just change it to 777 each time.

                                  export QT_GAMEPAD=sdl2 makes my pad not work anymore. It seems inconvenient to run it each time too. Somehow one of my other pads dpad's works, so I can use that.

                                  About the sloppyness..it's just that arcade games have no box art, so I'm trying to find the best way to be easy to read. Inconsistent sizes of marquees or flyers make it look sloppy. Flyers are hard to read too. Might have to go with title screen screenshots since I can scrape most of those. Just a vanity issue.

                                  @lilbud You'll need to install libinput10. scroll up to 19days ago for the full requirements of Pegasus.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    phulshof
                                    last edited by

                                    I just tested that Alien 3 video, but I had no trouble under RetroFE. I don't use omx though; that may be of impact here.

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      phulshof @phulshof
                                      last edited by

                                      Which gstreamer packages did you install so far?

                                      1 Reply Last reply Reply Quote 0
                                      • fluffypillowF
                                        fluffypillow
                                        last edited by

                                        Week 15:

                                        • Qt 5.7 is now supported; in theory Pegasus can be build on Debian 9/Ubuntu 17.04 with the Qt version available from the official repos, except I haven't found the gamepad module yet in any of the Qt packages...
                                        • Scripting support (in progress): you can add scripts that will run on quit, before reboot, or before shutdown; on-config-change event is also planned

                                        @phulshof I'm using the good/bad/ugly sets, the plugin-base-dev and omx packages. Apparently building the latest gstreamer and using its ffmpeg plugin improves the quality, at least on Odroid. I wonder if it'd work on the Pi as well.

                                        As for the videos, all of them in the es-matrix-videos repo have issues ("stripes", mostly). Their format is MPEG4 H.263/Simple@L1 profile. However, the videos I've downloaded from ScreenScraper (and haven't touched with Handbrake) use AVC/High@L3.1 profile, and they work perfectly well. So I guess this might be a problem with the plugin that handles H.263-encoded videos.

                                        P 1 Reply Last reply Reply Quote 1
                                        • AndersHPA
                                          AndersHP
                                          last edited by

                                          @fluffypillow will the final Pegasus version support favourites?

                                          It's cool to have every game ever developed for a certain system, but these infinitely long lists are not very inspiring - you'd have to remember which games you love and actively search for them.

                                          I don't understand why EmulationStation doesn't already support favourites, a switch between "favourites mode" and "explore catalog mode" with a buttonclick, as well as a button dedicated for starring and un-starring games for the favourites list, would be fantastic to have. Is this something that can be implemented? I would donate good cash for this functionality.

                                          My "Bubble Bobble" Themed Bartop Arcade
                                          My Gameboy

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            phulshof @fluffypillow
                                            last edited by

                                            @fluffypillow said in Announcing Pegasus Frontend:

                                            As for the videos, all of them in the es-matrix-videos repo have issues ("stripes", mostly). Their format is MPEG4 H.263/Simple@L1 profile. However, the videos I've downloaded from ScreenScraper (and haven't touched with Handbrake) use AVC/High@L3.1 profile, and they work perfectly well. So I guess this might be a problem with the plugin that handles H.263-encoded videos.

                                            All of them? Could you give me a specific example to test? I'll run it on both my Linux PC and my Pi to see if it works for me. I used to have similar display problems with RetroFE, but one of the other programmers fixed it. If it works on RetroFE we could have a look to see what the problem might be.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.