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 619.3k 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 @fieldofcows
      last edited by

      @fieldofcows Ok I repeat the same steps than before with debug option enabled, the log is very similar than before, but now on exit i have force close:

      lvl2: EmulationStation - v2.0.1a, built Nov 16 2016 - 22:29:20
      lvl2: Creating surface...
      lvl2: Created window successfully.
      lvl2: Added known joystick XInput Controller #1 (instance ID: 0, device index: 0)
      lvl2: Checking available OpenGL extensions...
      lvl2: ARB_texture_non_power_of_two: ok
      lvl2: Loading system config file P://.emulationstation/es_systems.cfg...
      lvl2: Parsing XML file "P://.emulationstation/gamelists/atari2600/gamelist.xml"...
      lvl2: req sound [video.menuOpen]
      lvl2: (missing)
      lvl1: OptionListComponent too narrow!
      lvl1: OptionListComponent too narrow!
      lvl2: req sound [video.menuOpen]
      lvl2: (missing)
      lvl1: OptionListComponent too narrow!
      lvl1: OptionListComponent too narrow!

      Now i'll see windows log.

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

        @fieldofcows Windows log:

        Nombre de la aplicación con errores: emulationstation.exe, versión: 2.0.1.0, marca de tiempo: 0x582cf386
        Nombre del módulo con errores: ucrtbase.dll, versión: 10.0.14393.0, marca de tiempo: 0x57898db2
        Código de excepción: 0xc0000409
        Desplazamiento de errores: 0x000891cb
        Identificador del proceso con errores: 0x6084
        Hora de inicio de la aplicación con errores: 0x01d2411eba035dc9
        Ruta de acceso de la aplicación con errores: P:\emulationstation.exe
        Ruta de acceso del módulo con errores: C:\WINDOWS\System32\ucrtbase.dll
        Identificador del informe: fbb3ce93-59f0-4caa-aa8a-635b70120108
        Nombre completo del paquete con errores:
        Identificador de aplicación relativa del paquete con errores:

        If you need translation to english tell me.

        fieldofcowsF 1 Reply Last reply Reply Quote 0
        • fieldofcowsF
          fieldofcows @Nismo
          last edited by

          @Nismo No need to translate thanks. That's a stack corruption bug. It's going to be hard to find without reproducing it here. Does this still happen if you remove the video from the theme?

          N 3 Replies Last reply Reply Quote 0
          • N
            Nismo @fieldofcows
            last edited by

            @fieldofcows ok i'll remove the videos, one minute.

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

              @fieldofcows Yes still the same, it's happening since your Issue #7 commit, so maybe you can find what changed there...

              The log still no clean exit.

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

                @fieldofcows OMG!! I tried all versions beta 1, beta 2, and beta 3 and now no one saves.

                Maybe a theme error? if it's saving for you maybe is a problem i have. Sorry so much I need to test this and find what's the problem.

                fieldofcowsF 1 Reply Last reply Reply Quote 0
                • fieldofcowsF
                  fieldofcows @Nismo
                  last edited by

                  @Nismo Yes, it's quite possible that the bug is not mine :) That's why I wanted to exclude the video from the theme as it's the most likely to cause an issue.

                  I've downloaded your theme and I'm transferring my configuration over to Windows to see if I can reproduce this.

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

                    @fieldofcows Tested with default theme, still doesn't save. Maybe never saved? I'm going crazy.

                    Yes I remember it saved before because I need to replace all full path with relative paths before I turned off save metadata on exit.

                    Also I checked that gamelist.xml is not read-only.

                    Maybe I need to do a clean install :(

                    fieldofcowsF 1 Reply Last reply Reply Quote 0
                    • fieldofcowsF
                      fieldofcows @Nismo
                      last edited by

                      @Nismo Are you sure it's not just taking ages to save the gamelist. I've just set mine up with about 1800 games and it takes minutes to exit. It looks like ES has gone but it's there in the background processing the metadata.

                      Start ES, exit then look in task manager to see if it is still there taking CPU cycles.

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

                        @fieldofcows After a lot of hours I've found that is something wrong in my roms folder, that's because doesn't save. I have one folder inside my megadrive's rom folder for unlicensed games. If I removed the folder "unlicensed" inside my roms folder, all works again. Maybe path too long? I don't know, it's supossed to work but not. It's too late here and i'm very tired but almost now you know that was my problem.

                        Now it saves but still the relative path issue (I use notepad++ and replace relative paths in a second). But if I want to use it portable I need to disable "save metadata on exit" and then it doesn't save ratings and times played, last played, etc. I hope you can fix it soon.

                        I'm very glad to tell you that now the sound works perfect, even on exit it stop inmediately. For sure was emulationstation didn't clean exit.

                        Sorry so much for all the headaches.

                        Omg! it takes to you minutes to exit for saving an xml? I think that something is wrong there. For me it close at the moment. Less than a second, even if I use an slow pendrive USB and i have a lot of games too. (I use the pendrive for testing your builds I usually use a portable 2.5" HDD)

                        Do you finally try the theme? what do you think? keep in mind that still w.i.p. I don't like that some wheel art is difficult to see on megadrive.

                        Sorry so so much for all the headaches, thanks for all your tips, support, and take your time for trying to help me. Regards.

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

                          Updated Oldroom theme to beta 2:

                          • Resized gamelist and logo to see more room and better looking of the theme.

                          • Resized and moved marquee-Wheel art for megadrive theme.

                          • Resized md_image (3d box cartridge) to match 1:1 scales of 3d boxes images downloaded.

                          • Added shadow for 3d box cartridge.

                          • Added empty 3d box cartridge for games without image. This also solves the problem when a game doesn't have image, you still can see the shadow. Whould be better that the 3d boxes images has shadows itself but it doesn't.

                          Now it's time to add a new system to the theme.

                          Download: http://www.mediafire.com/file/uzn8re6e5522chl/oldroom_beta_2.zip

                          Regards.

                          R fieldofcowsF 2 Replies Last reply Reply Quote 1
                          • R
                            robertybob @Nismo
                            last edited by

                            @Nismo Only 80 systems to go 😁

                            fieldofcowsF 1 Reply Last reply Reply Quote 1
                            • fieldofcowsF
                              fieldofcows @robertybob
                              last edited by

                              @robertybob Haha! :D

                              1 Reply Last reply Reply Quote 0
                              • fieldofcowsF
                                fieldofcows @Nismo
                                last edited by

                                @Nismo Fantastic work! I've downloaded this and it looks great although I'm only using mame at the moment.

                                Here's a treat for you. I've built a new version that gives some flexibility in showing preview images and videos. I quite liked having the preview image when the video is unavailable because I have a lot of actual game snapshots rather than the mixed art you have so I made it configurable.

                                The <video> tag in the theme now supports these options (in addition to the standard position ones):

                                <delay>
                                Delay in seconds between highlighting game and starting video

                                <default>
                                Full or relative path to a video file that will be rendered when no game video is available

                                <showSnapshotNoVideo>
                                Show the contents of the <image> gamelist tag if no video is available (overridden by <default>)

                                <showSnapshotDelay>
                                Show the contents of the <image> gamelist tag during the video startup delay

                                To show either the game video or the default video if there is no game video:

                                <video>
                                  <delay>0.2</delay>
                                 <default>./art/static1.mp4</default>
                                 <showSnapshotNoVideo>false</showSnapshotNoVideo>
                                 <showSnapshotDelay>false</showSnapshotDelay>
                                </video>
                                

                                To show the game video if available or the static <image> if no video is available:

                                <video>
                                  <delay>0.2</delay>
                                 <showSnapshotNoVideo>true</showSnapshotNoVideo>
                                 <showSnapshotDelay>false</showSnapshotDelay>
                                </video>
                                

                                To show the game video if available, the default video if unavailable but only start the video after a delay showing the static <image> until the video starts:

                                <video>
                                  <delay>2.5</delay>
                                 <default>./art/static1.mp4</default>
                                 <showSnapshotNoVideo>false</showSnapshotNoVideo>
                                 <showSnapshotDelay>true</showSnapshotDelay>
                                </video>
                                

                                Download it here: https://github.com/fieldofcows/EmulationStation/releases/tag/v0.1-beta.4

                                N 2 Replies Last reply Reply Quote 2
                                • N
                                  Nismo @fieldofcows
                                  last edited by

                                  @fieldofcows woowww!!! thank you very much!!!

                                  I have done genesis theme (not megadrive), 32x, neo geo, nes and snes (I need to test nes &snes).

                                  I need the relative path fixed on marquees and video tags when saving metadata, please, do your magic..

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

                                    @fieldofcows I'ts working very good!!, but I think you can implement "default" video in a better way.

                                    I'll try to explain myself:

                                    If I delete one video inside the videos folder, the theme doesn't show "static.mp4" on tv, I can delete all my videos and static.mp4 still not showing, but if I edit my gamelist.xml and delete video tag from one game, now "static.mp4" works, so I assume that your code only check if there's a video tag in gamelist.xml for that game.

                                    I think whould be a lot of better if the code also can check the path to the video and check if video exist or not (if it's possible), it's more precise for static.mp4 to work.

                                    All my games has a video tag because i use an script that insert all the video and marquee paths for all games, and after that I only need to use fatmach program to match the videos and marquees with my roms names, so I can have 800 roms and only 600 videos but all 800 games entries on gamelist.xml has video tag.

                                    Anyway you did a great job. I'm very happy with our new emulationstation.

                                    Thank you!!.

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

                                      Should things like Delay and whether a snapshot be shown if no video, be held in the main es_config file?

                                      fieldofcowsF 1 Reply Last reply Reply Quote 0
                                      • fieldofcowsF
                                        fieldofcows @robertybob
                                        last edited by

                                        @robertybob Good question. What if you want different configurations for different systems though?

                                        1 Reply Last reply Reply Quote 0
                                        • fieldofcowsF
                                          fieldofcows @Nismo
                                          last edited by

                                          @Nismo I see your point about checking the file system and not just the gamelist. I'll make that change.

                                          N 2 Replies Last reply Reply Quote 2
                                          • N
                                            Nismo @fieldofcows
                                            last edited by Nismo

                                            @fieldofcows Thanks! Good change.

                                            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.