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

    Video Preview in EmulationStation

    Scheduled Pinned Locked Moved Ideas and Development
    emulationstatioraspberry pivideo
    552 Posts 46 Posters 620.0k 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.
    • N
      Nismo @ebtalk
      last edited by Nismo

      @ebtalk On windows create a new text document.

      Paste this code:

      $doc = [xml] (Get-Content -raw gamelist.xml)
      
      foreach ($gameEl in $doc.DocumentElement.game) { 
        # Use -replace to extract the filename without extension from the 
        # path contained in the <path> element.
        $gameName = $gameEl.path -replace '^.*/([^.]+)\..*$', '$1'
        # Append elements 'video' and 'marquee', but only if they don't already
        # exist.
        if ($null -eq $gameEl.video) {
          $gameEl.AppendChild($doc.CreateElement('video')).InnerText = "./Videos/${gameName}.mp4"
        }
        if ($null -eq $gameEl.marquee) {
          $gameEl.AppendChild($doc.CreateElement('marquee')).InnerText = "./Marquees/${gameName}.png"
        }
      }
      
      $writer = [System.IO.StreamWriter] "newFile.xml"
      $doc.Save($writer)
      $writer.Close()
      
      

      This will work for all systems if you have videos and marquees folders inside your roms folder, for example:
      rom/snes/videos and roms/snes/marquees

      or

      roms/megadrive/videos and roms/megadrive/marquees

      Or you can change the paths to fit your path for videos and marquees:

      "~/.emulationstation/roms/snes/Videos/${gameName}.mp4"
      
      "~/.emulationstation/roms/snes/Marquees/${gameName}.png"
      

      Save the document.

      Rename the extension from .txt to .ps1 for example "addvideo&marquees.ps1"

      Now you only need to place it inside a folder containing your gamelist.xml. (Create a backup of your gamelist.xml)

      Then click right mouse button on addvideo&marquees.ps1 and exec with powershell.

      A new file "newFile.xml" will be created with the tags.

      Just rename it to gamelist.xml.

      It takes the name from the <path> tag from your gamelist.xml, so then you need a program like fatmatch to match your videos and marquees with your rom name.

      Keep in mind than this will create video and marquees tags for all games in your gamelist, even if the videos or marquees doesn't exist.

      Also keep in mind that i have all my marquees in png format, so if you use some jpg files you will need a batch image converter or something similar...

      Known issue: One thing it does is cuts off remaining characters after a point.

      For instance. If the file name is Zany Golf (USA, Europe) (v1.1).zip

      The mp4 name will come back Zany Golf (USA, Europe) (v1.mp4

      Hope this helps. Regards.

      Edit: I created a new theme here: https://retropie.org.uk/forum/topic/6589/easy-way-to-add-video-and-marquees-tags-in-your-gamelist-for-video-support

      E 1 Reply Last reply Reply Quote 0
      • E
        ebtalk @Nismo
        last edited by

        @Nismo Life.....Saver.

        This is going to save me so much time. It does change your game name if you messed with that information but that takes way less time to clean up. Thanks so much.

        N 1 Reply Last reply Reply Quote 0
        • N
          Nismo @ebtalk
          last edited by

          @ebtalk I'm glad to help.

          Keep in mind that i have all my marquees in png format, so if you use some jpg files you will need a batch image converter or something similar...

          RionR 1 Reply Last reply Reply Quote 0
          • RionR
            Rion @Nismo
            last edited by

            @Nismo Universal XML Scraper has rudimentary support for this. Look here in this thread.

            FBNeo rom filtering
            Mame2003 Arcade Bezels
            Fba Arcade Bezels
            Fba NeoGeo Bezels

            N 1 Reply Last reply Reply Quote 1
            • N
              Nismo @Rion
              last edited by Nismo

              @Rion The problem i have with universal xml scraper is that doesn't find all my roms, but it's nice to have more alternatives.

              Would be nice if you can choose the gameDB instead of ScreenScraper or choose preferred order for servers.

              Also ScreenScraper has a lot of descriptions in french even if you choose english language.

              1 Reply Last reply Reply Quote 2
              • hansolo77H
                hansolo77
                last edited by

                I'm a little crazy when it comes to building my Retro systems. I feel like I need to have EVERYTHING I can get. So to that end, I currently have 32 systems on my RetroPie. Are there any plans to update the default Carbon theme to allow videos? If not, can somebody recommend a theme that will work with a lot of systems, without getting that "White Screen of Death"?

                Who's Scruffy Looking?

                E RookervikR 2 Replies Last reply Reply Quote 0
                • E
                  ebtalk @hansolo77
                  last edited by

                  @hansolo77 look at the Pixel thread. That is working for me and is being updated as well

                  1 Reply Last reply Reply Quote 0
                  • hansolo77H
                    hansolo77
                    last edited by

                    Yeah, but I'm not a fan of the pixelation. :)

                    Who's Scruffy Looking?

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nismo
                      last edited by Nismo

                      @hansolo77 I think there is any theme free of "white screen of death".

                      I have read that even simple default theme has that.

                      And yes, pixel and metapixel themes have amazing amount of systems.

                      1 Reply Last reply Reply Quote 0
                      • hansolo77H
                        hansolo77
                        last edited by

                        I'm using the Carbon theme, which is the default, and it hasn't hit me with the White Screen. But when I tried using a few of the others, as soon as ES finished loading, all I had was the White Screen, so I can't use them.

                        Who's Scruffy Looking?

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          Nismo @hansolo77
                          last edited by

                          @hansolo77 As far I know, simple theme is default theme for emulationstation...

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

                            @Nismo carbon is the default theme, due to it being light on memory usage.

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

                            Backlog: http://backloggery.com/lilbud

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              robertybob @lilbud
                              last edited by

                              @lilbud

                              Maybe he's referring to the Windows standalone Emulationstation as opposed to the RetroPie fork? In which case, he'd be correct.

                              N 1 Reply Last reply Reply Quote 0
                              • RookervikR
                                Rookervik Global Moderator @hansolo77
                                last edited by

                                @hansolo77 Once I get me an SD card with the latest Retropie build on it, I will finish the big Pixel update, and then add video to the official Carbon Theme. So long as Video support is included in the Retropie branch of ES. If not, then I can't even test it to see if it works. I won't release a default theme without actually testing it on the Pi.

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  jdrassa @Rookervik
                                  last edited by

                                  @Rookervik I submitted a pull request this morning to add video support to the Carbon theme.

                                  Get latest build of EmulationStation for Windows here

                                  RookervikR 1 Reply Last reply Reply Quote 0
                                  • RookervikR
                                    Rookervik Global Moderator @jdrassa
                                    last edited by

                                    @jdrassa Ooh, so I might not have to do it myself. That would be nice if it all works out. :D

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      Nismo @robertybob
                                      last edited by Nismo

                                      @robertybob @lilbud @hansolo77 I mean standalone version of emulationstation even for windows, Debian or Arch , simple theme is default theme made for emulationstation.

                                      When you speak about retropie, keep in mind that retropie is a "mix" of emulationstation and retroarch, and retropie developers maybe used carbon theme for betters results, but it's not the default theme from emulationstation.

                                      Standalone emulationstation only includes simple theme.

                                      http://www.emulationstation.org/#download

                                      @Rookervik If i have some time, maybe i can do the video thing for carbon theme, but i only can test it on windows.

                                      1 Reply Last reply Reply Quote 0
                                      • alphatoanantA
                                        alphatoanant
                                        last edited by

                                        Thank you so much @fieldofcows and @Nismo - this is awesome

                                        Your changes made to ES to add video (fieldofcows) and the oldroom companion theme (Nismo) has helped me start up a build of my first theme and learn something new. Also kudos to @mattrixk for his well-written theme tutorial - it's fantastic and is making the creation process nice and easy.

                                        @Nismo I was wondering if I could ask to use the static.mp4 fallback video from your oldroom theme in the theme I am building now? I would provide appropriate credit and just wanted to see if that would be ok.

                                        My RetroPie Themes:
                                        Art Book https://github.com/anthonycaccese/es-theme-art-book
                                        Art Book Next https://github.com/anthonycaccese/art-book-next-retropie
                                        TFT https://github.com/anthonycaccese/es-theme-tft

                                        N 1 Reply Last reply Reply Quote 3
                                        • N
                                          Nismo @alphatoanant
                                          last edited by Nismo

                                          @alphatoanant I'm glad to help people make this project better.

                                          No problems you can use what you need.

                                          But don't forget i'm still working on the theme, i have a few new systems added XD.

                                          1 Reply Last reply Reply Quote 1
                                          • hansolo77H
                                            hansolo77
                                            last edited by

                                            Is there a wiki page, or a documented list, as to what themes are available that support videos at this time? I think we should have a centralized location. Or at least update the RetroPie-Setup scripts to include an indication of video support.. such as:

                                            Carbon
                                            Carbon_v4 (Kid)
                                            Carbon (Video)

                                            Who's Scruffy Looking?

                                            J 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.