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

[SCRIPT] RetroPie Convert Videos

Scheduled Pinned Locked Moved Projects and Themes
conversionomxscriptvideoyuv
133 Posts 29 Posters 34.1k 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.
  • M
    mitu Global Moderator @toimas
    last edited by mitu 24 Dec 2019, 08:54

    @toimas How are you running the script ? What parameters are you using ? Did you add --to-ces yuv420p ?

    1 Reply Last reply Reply Quote 0
    • T
      toimas
      last edited by 24 Dec 2019, 08:57

      tried

      ./retropie-convert-videos.sh --from-ces "yuv444p" --to-ces "yuv420p" --scraper "sselph" --convert-systems "arcade"
      

      or also with the config

      # From color (optional)
      # Target only videos with this particular C.E.S.
      # If left blank, it will target all videos, regardless of the C.E.S.
      # (e.g. "yuv444p")
      
      from_ces = "yuv444p"
      
      # To color (mandatory)
      # Convert videos to this particular C.E.S.
      # (e.g. "yuv420p")
      
      to_ces = "yuv420p"
      

      same result... no conversion of matching source-videos in yuv444p to yuv420p

      1 Reply Last reply Reply Quote 0
      • M
        mitu Global Moderator
        last edited by mitu 24 Dec 2019, 09:25

        Weird, it worked for me before with the arcade videos I downloaded from adb.arcadeitalia.net and your parameters are correct.

        EDIT: can you upload somewhere the .mp4 file ?

        1 Reply Last reply Reply Quote 0
        • T
          toimas
          last edited by 24 Dec 2019, 09:32

          Well... I don't think it's the videos but rather the script...
          WIthout further investigation I'd suggest that the following case is rather 'counter-productive'

          results+=("> \"$(basename "$video")\" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': '$from_ces'.")
          

          I just can't think of a single case where I first check a file for matching conditions only to 'not convert' it then...

          C 1 Reply Last reply 24 Dec 2019, 10:04 Reply Quote 0
          • T
            toimas
            last edited by toimas 24 Dec 2019, 09:37

            I've uploaded a yuv444p file (orginally from screenscsraper.fr)
            https://www.dropbox.com/s/o0x30tzv0fpni7l/centiped-video.mp4?dl=0

            1 Reply Last reply Reply Quote 0
            • C
              Clyde @toimas
              last edited by 24 Dec 2019, 10:04

              @toimas said in [SCRIPT] RetroPie Convert Videos:

              I just can't think of a single case where I first check a file for matching conditions only to 'not convert' it then...

              I may misunderstand you, but why check something only to ignore the result afterwards?

              Conversion needs time and extra storage space, if only temporarily. Imagine that you have 5000 videos (not uncommon with MAME romsets), but only some of them are in 444p. You may not want to convert all 5000 just for a handful of them.

              1 Reply Last reply Reply Quote 0
              • T
                toimas
                last edited by 24 Dec 2019, 10:11

                My goodness... so many misunderstandings...
                Currently the script ignores conversion for videos THAT MATCH the FROM condition...

                H 1 Reply Last reply 27 Dec 2019, 09:50 Reply Quote 0
                • H
                  hiulit
                  last edited by 26 Dec 2019, 19:37

                  Hi everyone! I've just released a new version 2.1.1 with the Skyscraper's video path fixed :)

                  My little contributions to the RetroPie project:

                  • Shell-Script-Boilerplate
                  • Fun-Facts-Splashscreens
                  • Limit-Last-Played-Games
                  1 Reply Last reply Reply Quote 2
                  • H
                    hiulit @memodellocos
                    last edited by hiulit 26 Dec 2019, 19:39

                    @memodellocos Can you try with the new version? I've merged your PR. Thanks! ;)

                    My little contributions to the RetroPie project:

                    • Shell-Script-Boilerplate
                    • Fun-Facts-Splashscreens
                    • Limit-Last-Played-Games
                    1 Reply Last reply Reply Quote 0
                    • H
                      hiulit @toimas
                      last edited by 27 Dec 2019, 09:50

                      @toimas I'll take a look at that when I have the time. The idea is that if from_ces and to_ces are equal, the script won't convert that video. But your settings should work.

                      My little contributions to the RetroPie project:

                      • Shell-Script-Boilerplate
                      • Fun-Facts-Splashscreens
                      • Limit-Last-Played-Games
                      1 Reply Last reply Reply Quote 0
                      • H
                        hiulit
                        last edited by 28 Dec 2019, 22:26

                        I've just released a new version 2.1.2.

                        Changelog

                        Fixed

                        • The check_CES() function was checking incorrectly if the C.E.S from the video was equal to from_ces and thus not converting the videos.

                        @toimas Could you check if the script is working for you know? Thanks!

                        My little contributions to the RetroPie project:

                        • Shell-Script-Boilerplate
                        • Fun-Facts-Splashscreens
                        • Limit-Last-Played-Games
                        T 1 Reply Last reply 31 Dec 2019, 18:08 Reply Quote 3
                        • H
                          hiulit
                          last edited by 28 Dec 2019, 22:33

                          BTW, the script is using libav-tools, should I change it for ffmpeg? What do you think?

                          My little contributions to the RetroPie project:

                          • Shell-Script-Boilerplate
                          • Fun-Facts-Splashscreens
                          • Limit-Last-Played-Games
                          M 1 Reply Last reply 29 Dec 2019, 06:10 Reply Quote 0
                          • M
                            mitu Global Moderator @hiulit
                            last edited by 29 Dec 2019, 06:10

                            @hiulit The new Debian Buster release doesn't have libav-tools anymore, they've switched back to ffmpeg (https://packages.debian.org/stretch/libav-tools). I think that you should transition to ffmpeg to have the script keep working in newer releases of Debian/Raspbian/Ubuntu.

                            H 1 Reply Last reply 29 Dec 2019, 16:47 Reply Quote 2
                            • H
                              hiulit @mitu
                              last edited by 29 Dec 2019, 16:47

                              @mitu Thanks. I'll do it then.

                              My little contributions to the RetroPie project:

                              • Shell-Script-Boilerplate
                              • Fun-Facts-Splashscreens
                              • Limit-Last-Played-Games
                              R 1 Reply Last reply 29 Dec 2019, 18:00 Reply Quote 1
                              • R
                                Rion @hiulit
                                last edited by 29 Dec 2019, 18:00

                                @hiulit Any plans to release a standalone version for linux? Would be great to use this on my stationary desktop.

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

                                H 1 Reply Last reply 30 Dec 2019, 20:48 Reply Quote 1
                                • H
                                  hiulit @Rion
                                  last edited by 30 Dec 2019, 20:48

                                  @Rion What do you mean by standalone? With a GUI? I never though about it actually, and I don't think I will ever make such an app, mainly because I wouldn't know how, hehe :) But I could make a version of the script (or adapt it) to work without the RetroPie settings. If that's what you meant, I could do that ;)

                                  My little contributions to the RetroPie project:

                                  • Shell-Script-Boilerplate
                                  • Fun-Facts-Splashscreens
                                  • Limit-Last-Played-Games
                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    mitu Global Moderator
                                    last edited by 30 Dec 2019, 21:06

                                    Maybe @Rion meant 'standalone' as in 'no RetroPie installation required' - just a video conversions script. Something like Handbrake maybe ? It has a convenient GUI and can also be run from command line.

                                    H 1 Reply Last reply 30 Dec 2019, 22:24 Reply Quote 2
                                    • H
                                      hiulit @mitu
                                      last edited by 30 Dec 2019, 22:24

                                      @mitu @Rion Yes, that 'standalone' script I could do. It would just be a matter of removing all chechkings about RetroPie being installed. I will look into that once I've done the change from libav-tools to ffmpeg .

                                      My little contributions to the RetroPie project:

                                      • Shell-Script-Boilerplate
                                      • Fun-Facts-Splashscreens
                                      • Limit-Last-Played-Games
                                      R 1 Reply Last reply 31 Dec 2019, 01:18 Reply Quote 1
                                      • R
                                        Rion @hiulit
                                        last edited by 31 Dec 2019, 01:18

                                        @hiulit said in [SCRIPT] RetroPie Convert Videos:

                                        @mitu @Rion Yes, that 'standalone' script I could do. It would just be a matter of removing all chechkings about RetroPie being installed. I will look into that once I've done the change from libav-tools to ffmpeg .

                                        Yes that's exactly what i meant. Sorry for being so vague :)

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

                                        H 2 Replies Last reply 31 Dec 2019, 07:40 Reply Quote 1
                                        • H
                                          hiulit @davidonabus
                                          last edited by 31 Dec 2019, 07:39

                                          @davidonabus It should be fixed in the new version. Could you try it?

                                          My little contributions to the RetroPie project:

                                          • Shell-Script-Boilerplate
                                          • Fun-Facts-Splashscreens
                                          • Limit-Last-Played-Games
                                          1 Reply Last reply Reply Quote 0
                                          79 out of 133
                                          • First post
                                            79/133
                                            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