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

Looking for testers for ES Video Preview on Raspberry Pi

Scheduled Pinned Locked Moved Ideas and Development
emulationstatiovideotheme
171 Posts 17 Posters 90.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.
  • F
    fieldofcows
    last edited by fieldofcows 12 Jul 2016, 23:01 4 Dec 2016, 11:13

    Hi everyone,

    I've produced a Raspberry Pi build of EmulationStation that adds support for video preview of games in the gamelist. The ongoing discussion of the development of this feature is here: https://retropie.org.uk/forum/topic/4820/video-preview-in-emulationstation.

    I would like to get this feature pulled back into the retropie ES fork in order for others to make use of it. To achieve this, seeing as it is quite a major feature addition I am asking for volunteers to help test the feature to ensure it works reliably. Really, I'm just after getting people to try this on their raspberry pi's and report back any issues or suggestions.

    I have made a build available that can be installed on retropie 4.1 for Raspberry Pi 2/3. I have personally only tested it on RPi3 so would appreciate some feedback on how well it works on RPi2. It may work on RPi1 but I doubt it.

    The build only includes the video preview view - none of the other fixes or improvements from the development thread (such as the screensaver) are included. This is so I can isolate just this change and ensure it is stable. I highly recommend you install this on a fresh SD card rather than trying it on your configuration you have spent many hours on - I cannot be held responsible for losing hours of work because of issues in this build.

    I would recommend try @Nismo 's theme as an excellent example of how to theme this new view. @Nismo has spent a lot of time developing a theme that supports video preview for multiple systems. This can be downloaded from the development thread I linked above.

    Installation instructions:

    1. Download a fresh copy of retropie from https://github.com/RetroPie/RetroPie-Setup/releases/download/4.1/retropie-4.1-rpi2_rpi3.img.gz and install it on an SD card
    2. Connect the raspberry pi to the network
    3. Boot the raspberry pi and exit ES back to the terminal
    4. Install dependencies:
    sudo apt-get install libvlc5 libvlccore8 vlc-plugin-sdl
    
    1. Download or copy the new ES that supports video from https://github.com/fieldofcows/EmulationStation/releases/download/v0.2-RPi-beta.1/emulationstation into the home directory, e.g.
    wget https://github.com/fieldofcows/EmulationStation/releases/download/v0.2-RPi-beta.1/emulationstation
    
    1. Make executable and replace the original ES
    chmod +x emulationstation
    sudo cp emulationstation /opt/retropie/supplementary/emulationstation/
    1. Setup your themes and games

    Theming:

    Themes now support the "Video" view:

    <theme>
    	<formatVersion>3</formatVersion>
    	<view name="video">
    		<image name="md_marquee">
    			<pos>0.0293 0.039</pos>
    			<origin>0.0 0.0</origin>
    			<size>0.5488 0.181</size>
    		</image>
    		<video name="md_video">
    			<pos>0.3050 0.472</pos>
    			<origin>0.5 0.5</origin>
    			<size>0.3740 0.3540</size>
    			<delay>0.0</delay>
    			<default>~/resources/default.wma</default>
    			<showSnapshotNoVideo>false</showSnapshotNoVideo>
    			<showSnapshotDelay>false</showSnapshotDelay>
    		</video>
    	    	<text name="md_publisher">
    			...
    			
    

    The <video> tag as well as the standard properties supports the following:

    delay
    The time in seconds to wait between selecting the game and the video starting. This may take some load off the system when scrolling quickly through the list (although the RPi3 seems to cope fine with a delay of 0)

    showSnapshotNoVideo
    If true, shows the "snapshot" or "image" metadata element if no video file is present. If false then either shows a blank area or the default video if defined

    showSnapshotDelay
    If true shows the "snapshot" or "image" metadata element during the video start delay
    default: Path to a video that is displayed if showSnapshotNoVideo is false and the current game has no video

    Gamelist.xml
    The gamelist.xml has a couple of extra fields too:

    <game>
    	<path>./1944.zip</path>
    	<name>1944 - the loop master (000620 USA)</name>
    	<desc>1944 - the loop master (000620 USA)</desc>
    	<video>~/.emulationstation/videos/1944.xmv</video>
    	<image>~/.emulationstation/images/1944.png</image>
    	<marquee>~/.emulationstation/marquees/1944.png</marquee>
    	<rating>0.5</rating>
    	<releasedate>20000101T000000</releasedate>
    	<developer>Capcom / 8ing / Raizing</developer>
    	<publisher>2000 Capcom / 8ing / Raizing</publisher>
    	<genre>Shooter / Flying Vertical</genre>
    	<players></players>
    </game>
    

    The 'marquee' tag is used to display in image in the md_marquee theme element. The 'video' tag defines the video file to play.

    N H 2 Replies Last reply 4 Dec 2016, 11:38 Reply Quote 6
    • N
      Nismo @fieldofcows
      last edited by Nismo 12 Apr 2016, 13:16 4 Dec 2016, 11:38

      @fieldofcows I can't test it but maybe the systemsound tag can break the theme for a build that doesn't support it.

      Anyway if it cause some problems it's so easy to fix it.

      Open folder theme named "oldroom" and edit oldroom.xml file and delete this text between lines 16 to 18:

      <sound name="systemSound">
                  <path>./art/systemsound.wav</path>
              </sound>
      

      Regards.

      F 1 Reply Last reply 4 Dec 2016, 12:35 Reply Quote 1
      • F
        fieldofcows @Nismo
        last edited by 4 Dec 2016, 12:35

        @Nismo said in Looking for testers for ES Video Preview on Raspberry Pi:

        maybe the systemsound tag can break the theme

        Good point. It worked ok on my Pi yesterday but maybe I was using an older theme without that tag.

        1 Reply Last reply Reply Quote 0
        • H
          herb_fargus administrators @fieldofcows
          last edited by 4 Dec 2016, 17:33

          @fieldofcows I still need to find some time to test this out but when I was testing the gridview fork, there were some issues with theming options not being backward compatible eg if we used a gridview theme on the non gridview ES things crashed. Is that likely to happen here with nismos theme and if so is there something that can be done to mitigate that?

          If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

          Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

          N F 2 Replies Last reply 4 Dec 2016, 20:10 Reply Quote 1
          • N
            Nismo @herb_fargus
            last edited by Nismo 12 Apr 2016, 20:39 4 Dec 2016, 20:10

            @herb_fargus almost on windows the theme never crashed ES. Sometimes i was needed to "downgrading" ES version to test some commits from fieldofcows, and never crashed, simply the theme doesn't load if the version doesn't support some features, you know, on system view only black text and white background, and on simple or detailed view looks without theming, white background and black text, but no issues with ES.

            Regards.

            1 Reply Last reply Reply Quote 0
            • F
              fieldofcows @herb_fargus
              last edited by 4 Dec 2016, 22:51

              @herb_fargus If you try to open nismo's theme on the current Retropie version of ES then you get a warning in the console saying "unknown tag 'video'" but the theme loads OK and drops back to the detailed view. Any <video> or <marquee> tags in the gamelists will be lost if the metadata is saved on exit though.

              N 1 Reply Last reply 5 Dec 2016, 06:42 Reply Quote 0
              • N
                Nismo @fieldofcows
                last edited by Nismo 12 May 2016, 06:43 5 Dec 2016, 06:42

                @fieldofcows That remembers to me that i need to work in the detailed view of the theme, but actually i'm focused in video view and add more systems.

                1 Reply Last reply Reply Quote 0
                • G
                  GtBFilms
                  last edited by 7 Dec 2016, 02:40

                  said in Looking for testers for ES Video Preview on Raspberry Pi:

                  Make executable and replace the original ES

                  chmod +x emulationstation
                  cp emulationstation /opt/retropie/supplementary/EmulationStation/

                  Hi,

                  I got to this step (6) and on my install it fails, turns out this was because the directory doesn't have capital letters, also I didn't have sufficient permission?

                  So I used:

                  sudo cp emulationstation /opt/retropie/supplementary/emulationstation/

                  and it worked.

                  However got stumped on step 7, as I'm not sure what I'm editing?

                  I tried putting the oldroom theme (entire oldroom directory) into \etc\emulationstation\themes using WinSCP but don't have permission.

                  Sorry.

                  F 1 Reply Last reply 7 Dec 2016, 23:00 Reply Quote 1
                  • F
                    fieldofcows @GtBFilms
                    last edited by 7 Dec 2016, 23:00

                    @GtBFilms said in Looking for testers for ES Video Preview on Raspberry Pi:

                    However got stumped on step 7, as I'm not sure what I'm editing?
                    I tried putting the oldroom theme (entire oldroom directory) into \etc\emulationstation\themes using WinSCP but don't have permission.

                    Thanks for pointing out the error in the capitalisation. I'll fix that.

                    You're on the right track - using oldroom is what I would recommend is it looks fantastic and shows what the video preview can do.

                    Try downloading the oldroom theme to the home directory and then using the following command:

                    sudo cp -r ~/oldroom /etc/emulationstation/themes
                    
                    G 1 Reply Last reply 8 Dec 2016, 02:26 Reply Quote 0
                    • G
                      GtBFilms @fieldofcows
                      last edited by GtBFilms 12 Aug 2016, 02:28 8 Dec 2016, 02:26

                      @fieldofcows Thanks for that, I managed to get a copy of the oldroom theme onto my pi now.

                      It appears as a selectable theme now:

                      0_1481163421693_IMG_20161208_021433.jpg

                      But unfortunately when selected, it's a bit sparse!

                      0_1481163442947_IMG_20161208_021448.jpg

                      I thought this might be a permissions issue so I went and chmod +rw everything I could find in /etc/emulationstation/themes but that didn't fix it.

                      The oldroom/mame/art directory contains:
                      bg.jpg
                      borders.png
                      scanlines.png
                      static.mp4
                      system_art.jpg
                      system.svg

                      ...and the images look fine.

                      Ah, when I shut down, I'm getting a load of error messages flashing up briefly saying "Unknown element of type 'video'!"

                      N 1 Reply Last reply 8 Dec 2016, 02:31 Reply Quote 0
                      • N
                        Nismo @GtBFilms
                        last edited by Nismo 12 Aug 2016, 02:32 8 Dec 2016, 02:31

                        @GtBFilms No problems with the theme. That is the detailed view, that is not finished.

                        To get the theme working properly, you need to have almost one video for one game in each system, and of course the correct path in the gamelist.xml.

                        If ES detects one game with video then automatically changes to video view, and load the theme.

                        G 1 Reply Last reply 8 Dec 2016, 02:33 Reply Quote 0
                        • G
                          GtBFilms @Nismo
                          last edited by GtBFilms 12 Aug 2016, 02:33 8 Dec 2016, 02:33

                          @Nismo Ah, that makes sense, sorry for being dumb!

                          I'll stick some videos in!

                          Thanks!

                          N 2 Replies Last reply 8 Dec 2016, 02:35 Reply Quote 0
                          • N
                            Nismo @GtBFilms
                            last edited by Nismo 12 Aug 2016, 02:48 8 Dec 2016, 02:35

                            @GtBFilms Anyway i notice you select "arcade", there is no arcade system on my theme, in my theme there is mame system or neo geo system so change your settings for arcade system in es_systems.cfg or rename the folder mame to arcade inside oldroom folder.

                            If not you still no theming on arcade system.

                            Or simply copy mame folder and paste inside oldroom theme and rename to arcade, that way you still have mame folder and arcade folder.

                            The theme still work in progress and i'm concentrated on video view, that's because detailed view looks ugly.

                            Don't forget the paths in game list like this example for each game:

                            <video>~/.emulationstation/roms/mame/videos/1944.mp4</video>
                            <marquee>~/.emulationstation/roms/mame/marquees/1944.png</marquee>
                            
                            

                            Marquee is not neccessary for theme to work.

                            1 Reply Last reply Reply Quote 0
                            • N
                              Nismo @GtBFilms
                              last edited by 8 Dec 2016, 02:46

                              @GtBFilms Also be sure you have the latest version of theme: http://www.mediafire.com/file/jzkfqe796w00qij/oldroom_1.6_720p.zip

                              You can see if it's the latest version opening with text editor themes>oldroom>oldroom.xml on top you can see version and must be 1.6.

                              G 1 Reply Last reply 9 Dec 2016, 00:13 Reply Quote 0
                              • B
                                Bluescreen
                                last edited by 8 Dec 2016, 23:18

                                it works fine
                                i can´t find any bugs.
                                The only thing ist my pi goes overheating
                                The temperature at the video preview is 76.9'C

                                sorry for my bad english ;)

                                F 1 Reply Last reply 9 Dec 2016, 00:02 Reply Quote 1
                                • F
                                  fieldofcows @Bluescreen
                                  last edited by 9 Dec 2016, 00:02

                                  @Bluescreen Thanks for testing.

                                  The only thing ist my pi goes overheating
                                  The temperature at the video preview is 76.9'C

                                  Wow! What RPi are you testing on? Has it been overclocked? What codec do your videos use and what size are they?

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    GtBFilms @Nismo
                                    last edited by GtBFilms 12 Sept 2016, 01:43 9 Dec 2016, 00:13

                                    @Nismo

                                    Thanks for your help, I now have this working on my Rpi3!

                                    My problems were twofold:

                                    i) I was being a dumbass last night and using the wrong SD card - which didn't have the updated version of Emulationstation on it - doh! (it was too late at night and I had had a few drinks, sorry)

                                    ii) Using the arcade folder was still causing me problems, despite making a copy of the mame folder in oldroom called 'arcade', I got the oldroom theme to display, but it still wasn't finding the video clips for some reason. I gave up on the arcade folder, and just moved my ROMS to the mame-libretro folder as you have on yours, edited the appropriate gamelist.xml in /home/pi/.emulationstation/gamelists/mame-libretro/gamelist.xml to add in the <video> and <marquee> tags pointing to the appropriate mp4 and jpg files (which I placed in a video and marquee directories in my roms folder) and it all worked!

                                    0_1481242484130_romsfolder.jpg

                                    0_1481242314030_IMG_20161209_000238.jpg

                                    0_1481242366554_IMG_20161209_000228.jpg

                                    0_1481242372090_IMG_20161209_000222.jpg

                                    Awesome work, thanks!

                                    For the record, my rPi is in a case like this:

                                    0_1481243112399_pi_case.jpg

                                    with a copper heatsink on the cpu:

                                    0_1481243139292_heatsink.jpg

                                    It's not overclocked.

                                    ...with the case lid closed, it's running at 65 - 70 degrees centigrade when running the video preview system (ambient room temp is about 20C)

                                    My video clips are all 240 x 320 clips from Emumovies.com

                                    The whole menu is running pretty smooth, no noticeable pauses.

                                    I'll try it with a bunch more roms and video clips over the weekend, my test setup has a smallish set of roms (about 150) that benefit from a 4-way controller.

                                    N 1 Reply Last reply 9 Dec 2016, 04:08 Reply Quote 1
                                    • B
                                      Bluescreen
                                      last edited by Bluescreen 12 Sept 2016, 01:27 9 Dec 2016, 01:26

                                      i use the x264 codec with 640x480 for all videos. I have the same case and no overclocking.
                                      now with heatsink 65-70´C

                                      1 Reply Last reply Reply Quote 0
                                      • N
                                        Nismo @GtBFilms
                                        last edited by 9 Dec 2016, 04:08

                                        @GtBFilms Nice, i'm happy you finally you got it working, when I have time I want to make a little tutorial to automate the process for the gamelist and I want to upload optimized art that fix in the theme.

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          Nismo
                                          last edited by Nismo 12 Sept 2016, 09:22 9 Dec 2016, 08:30

                                          New little update for oldroom theme:

                                          • added Game boy system.
                                          • added Game boy Color system. (I need better gbc image for this theme).
                                          • Fixed detailed view.

                                          Somebody have a Game boy Color and can make a photo holding it in his hand?

                                          Now detailed view looks this way :

                                          alt text

                                          Download: http://www.mediafire.com/file/ur2k9sbp2ua6yn9/oldroom_1.7_720p.zip (Recommended for Rpi)

                                          1080p version: http://www.mediafire.com/file/vvylrsgh8waqkkk/oldroom_1.7_1080p.zip

                                          Sorry @fieldofcows this time i didn't have time to provide an 800x600 fix but i'll do soon.

                                          I can't make work marquee on top of "rating" on detailed view, i'm not sure if can't be possible on detailed view or it's my fault.

                                          Enjoy.

                                          F 1 Reply Last reply 9 Dec 2016, 09:22 Reply Quote 1
                                          20 out of 171
                                          • First post
                                            20/171
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received