• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

How to properly convert video snaps for emulationstation?

Scheduled Pinned Locked Moved Help and Support
video snaps
29 Posts 12 Posters 14.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.
  • J
    jell @akafox
    last edited by 5 Sept 2017, 10:20

    @akafox Yeah, that happened to me at first too. By size, do you mean dimensions or file size? The X parameter will limit the width of the output file. The -q 20 parameter will decrease the file size at the cost of video quality.

    1 Reply Last reply Reply Quote 0
    • A
      akafox
      last edited by akafox 14 Sept 2017, 05:58

      Ok this is what I used:

      HandBrakeCLI -e x264 -B 64 -r 29.97 -w 320 -l 240 -q 20 -i path/"file.mp4" -o path/"file.mp4"

      I took the gain out...I'll run them ALL back through and lower them.

      I changed the framerate to (NTSC) that's what I have here

      The quotes are needed because of spaces in the video snap names
      I made a batch file using a spreadsheet program and was able to let it run all night. Yes I was talking about file size not picture size.

      The reason I was being picky is because this is what the scraper uses when downloading the videos and then converting them for the pi. Just trying to keep "everything the same"

      Thanks for the help..made it SOOO much easier!

      People want things easy...but then complain that life is boring...

      J 1 Reply Last reply 15 Sept 2017, 13:32 Reply Quote 1
      • J
        jell @akafox
        last edited by 15 Sept 2017, 13:32

        @akafox So glad you got it working! I was surprised how much the video snaps added to the experience. It's fun browsing through and easier to pick games you've never played before. Happy tinkering!

        1 Reply Last reply Reply Quote 0
        • A
          akafox
          last edited by akafox 15 Sept 2017, 15:24

          Yeah it does. And it helps a lot when choosing a game..it really surprising.

          I am wondering if we can do wheel art in the future. I mean I don't want it to look like Attract Mode or Hyperspin..but I do like the "pop" that wheel art gives the games list.

          But the point of ES is that it is supposed to be "lean" so adding that might bog ES down. Even Herb has said that.

          People want things easy...but then complain that life is boring...

          J H 2 Replies Last reply 15 Sept 2017, 20:53 Reply Quote 0
          • J
            jell @akafox
            last edited by jell 15 Sept 2017, 20:53

            @akafox I've heard about the wheel art, but haven't looked too much into it. Actually, the pi was my gateway into emulation, dabbled before, but now am enjoying it very much!

            I meant to tell you about your HandBrakeCLI settings. I did the -w and -l settings the first time too, but the issue I ran into was that for my arcade games, it would stretch the vertical videos to 320x240, whereas the -X would make the video 320 at the widest, but if it were a vertical video, it would be less than 320 and maintain the aspect ratio.

            To process a folder from the command line I made a "converted" subfolder in the main folder then used the following:

            for f in *.mp4;do HandBrakeCLI -e x264 -B 64 -r 25 --gain -20.0 -X 320 -q 20 -i "$f" -o "./converted/$f";done

            Enjoy!

            R 1 Reply Last reply 15 Apr 2021, 16:55 Reply Quote 1
            • H
              HurricaneFan @akafox
              last edited by 15 Sept 2017, 21:25

              @akafox Wheelart is available today in ES. It's called Marquee in the gamelist.xml.

              Example xml entry:
              <marquee>./marquees/gamename.png</marquee>

              A 1 Reply Last reply 16 Sept 2017, 20:28 Reply Quote 0
              • A
                akafox @HurricaneFan
                last edited by akafox 16 Sept 2017, 20:28

                @jell Yeah I used the -X switch however it made everything come out 320x288 not 320x240 like the other scraped videos. These videos are not arcade (doing those last because I want to "clean them"). I just find it strange that the scraper will covert down and "without loss" and it uses the HandbrakeCLI just like I am. I looked at a video that the scraper converted and the original (scraped but not converted) compared the picture size frame rate and file size. Standard is one size converted for the pi is one size..using the gui is the same size (mb) but using the cli myself I get either a LARGER or even smaller than what the scrapper spits out. Just strange. Converting picture size and frame rate will of course make it smaller. (I get that and it's good for the tiny sd card on the pi.) But why the even smaller size when I do it.

                I'm being picky I'm sure..but it just frustrates me to know it can be done..but not be able to so it myself. I can give you numbers if you want. I also know that the scraper will scrape my local videos which makes building my list MUCH easier!
                The ones I am missing (i.e. don't exist) I make myself.

                @hurricanefan I saw a video on youtube that demonstrated how his list was wheel art and not just text but I can't seem to find it now. It would depend on the theme I am sure. (and yes I know I can use Attract Mode..that's next..) Do you know what themes support this feature in ES?

                People want things easy...but then complain that life is boring...

                H 1 Reply Last reply 16 Sept 2017, 22:46 Reply Quote 0
                • H
                  HurricaneFan @akafox
                  last edited by 16 Sept 2017, 22:46

                  @akafox There is a version of Comic Book theme that has wheel art/marquees and I believe the Old Room theme uses it too. Not sure what other ones take advantage of that feature.

                  A 1 Reply Last reply 17 Sept 2017, 02:10 Reply Quote 0
                  • A
                    akafox @HurricaneFan
                    last edited by 17 Sept 2017, 02:10

                    @hurricanefan Yeah I noticed that..and I do like the comic book theme. I found some others as well. Really all I need now is to just be able to hide the "RetroPie" selection easily (i know how but it's not "easy"). Just wanted to see if I could do that with the game list somehow and try it out while I had time. These "tweaks" I am doing..just learning..I am going to erase my image and make an updated one with all the tweaks already set up...just in case...

                    That was the last one i wanted to look into.

                    People want things easy...but then complain that life is boring...

                    H 1 Reply Last reply 17 Sept 2017, 02:42 Reply Quote 0
                    • H
                      HurricaneFan @akafox
                      last edited by 17 Sept 2017, 02:42

                      @akafox You could comment out the retropie section in es_systems.cfg.

                      I'd suggest making a copy of the file and put it in /home/pi/.emulationstation/ so that upgrades don't affect your change.

                      This page has the commands you need to make a copy.
                      https://retropie.org.uk/docs/Add-a-New-System-in-EmulationStation/

                      To comment out anything in that file you just use:

                      <!--
                      <system>....</system>
                       -->
                      
                      A 1 Reply Last reply 18 Sept 2017, 00:53 Reply Quote 0
                      • A
                        akafox @HurricaneFan
                        last edited by 18 Sept 2017, 00:53

                        @hurricanefan Yeah I knew how to do that. It's just "scary" because then I have to get in the "hard way" if something goes awry. Right now though that is the only option we have I guess. Just hate to be "stuck without a keyboard" if I take it anywhere...

                        People want things easy...but then complain that life is boring...

                        1 Reply Last reply Reply Quote 0
                        • D
                          dunky
                          last edited by 12 Sept 2018, 19:33

                          Thanks Jell for the loop command

                          In my case, sound was bad, some kind of underwater sound, i had to add sound options to not convert it "-E copy:aac"

                          Here was the full command:
                          for f in *.mp4;do sudo HandBrakeCLI -E copy:aac -e x264 -B 64 -r 25 --gain -20.0 -X 320 -q 20 -i "$f" -o "./converted/$f";done

                          All videos/sounds are now clean when scraped from ArcadeItalia

                          ClydeC 1 Reply Last reply 17 Apr 2021, 16:05 Reply Quote 1
                          • R
                            Ranma @jell
                            last edited by 15 Apr 2021, 16:55

                            @jell
                            ...And even in 2021 this script still does the trick! Many thanks for this. I tailored it a little sound-wise to suit my own setup but this has proved perfect for my MAME/FBNeo collection and its various shapes. Much easier than firing up the (awesome) Handbrake GUI and doing it that way.

                            Massive thumbs up!

                            1 Reply Last reply Reply Quote 0
                            • ClydeC
                              Clyde @dunky
                              last edited by 17 Apr 2021, 16:05

                              @dunky said in How to properly convert video snaps for emulationstation?:

                              Here was the full command:
                              for f in *.mp4;do sudo HandBrakeCLI -E copy:aac -e x264 -B 64 -r 25 --gain -20.0 -X 320 -q 20 -i "$f" -o "./converted/$f";done

                              Just two cents for optimisation: sudo shouldn't be necessary. It runs Handbrake with administrator privileges, which isn't required for converting videos. Running programs with admin powers may pose a security risk and thus, should only be used when necessary.

                              1 Reply Last reply Reply Quote 0
                              • R
                                Retro80s
                                last edited by 17 Apr 2021, 18:48

                                @batman

                                I had this problem so I feel your pain. Unfortunately, the scrape sources for games on the RetroPie can pull down videos that aren't encoded in a way that EmulationStation can run properly.

                                To get by this I use Skyscraper to download everything and build the Gameslist.xml file.

                                Then I go to: https://emumovies.com and get them from there. They are encoded perfectly and work great. They are a good resource for everything really.

                                I would recommend creating an account, then you can use their FTP server to download everything easily. - https://emumovies.com/ftpdetails/

                                Once you do that copy and replace your already downloaded videos with these. I literally just did all of this during this week for my MAME collection so I know it works and it will help you out.

                                It would be cool if the RetroPie could use them as a Scrape source.

                                1 Reply Last reply Reply Quote 1
                                • 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.

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