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 38.8k 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.
    • hiulitH
      hiulit @Rion
      last edited by

      @Rion Hmmm I'll take a look. It seems it has something to do with the videos path..

      Did you you Use the ROM folder for gamelists & media option in Lars Muldjord's Skyscraper?
      Did you set the scraper using the --scraper option? Or via the config file?

      My little contributions to the RetroPie project:

      • Shell-Script-Boilerplate
      • Fun-Facts-Splashscreens
      • Limit-Last-Played-Games
      RionR 1 Reply Last reply Reply Quote 0
      • RionR
        Rion @hiulit
        last edited by Rion

        @hiulit said in [SCRIPT] RetroPie Convert Videos:

        @Rion Hmmm I'll take a look. It seems it has something to do with the videos path..

        Did you you Use the ROM folder for gamelists & media option in Lars Muldjord's Skyscraper?
        Did you set the scraper using the --scraper option? Or via the config file?

        @hiulit Hi again and sorry for the late reply.

        I used Use the ROM folder for gamelists & media with Skyscraper and also set the scraper option to skyscraper
        inside retropie-convert-videos-settings.cfg. But i did get it to work if a moved all my video files from

        /home/pi/RetroPie/roms/fba/media/videos
        

        to

        /home/pi/RetroPie/roms/fba/media
        

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

        V 1 Reply Last reply Reply Quote 1
        • D
          davidonabus
          last edited by

          I'm not having much success. It seems like everything is setup correctly, but once it detects a video that is encoded in 444p it still decides not to convert it. Any idea what i might be doing incorrectly?


          root@retropie:/home/pi/RetroPie-Convert-Videos# ./retropie-convert-videos.sh --convert-systems "arcade"
          CLI mode

          Inputted systems: 'arcade'.
          Systems found: 'arcade'.

          Starting video conversion ...

          arcade

          3in1semi.mp4 --> Can't convert! Doesn't use the Color Encoding System (C.E.S set in 'from_ces': 'yuv444p'.
          "numanath.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.

          2 videos were unsuccessful.

          WeirdHW hiulitH 2 Replies Last reply Reply Quote 1
          • WeirdHW
            WeirdH @davidonabus
            last edited by

            @davidonabus said in [SCRIPT] RetroPie Convert Videos:

            3in1semi.mp4 --> Can't convert! Doesn't use the Color Encoding System (C.E.S set in 'from_ces': 'yuv444p'.
            "numanath.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.

            2 videos were unsuccessful.

            That output states those two videos aren't 444. That is why it decides not to process them.

            T 1 Reply Last reply Reply Quote 1
            • V
              Vman41 @Rion
              last edited by

              @hiulit I was having this same exact error too and this solution worked for me. Maybe the path you have coded for skyscraper needs to be updated in your script?

              1 Reply Last reply Reply Quote 1
              • hiulitH
                hiulit
                last edited by

                Hey y'all! I've followed this little guide https://github.com/RetroPie/RetroPie-Setup/wiki/Scraper#where-are-my-scraped-media-and-metadata-saved to set up the paths to the images and videos for each scraper. In principle the script should work fine. Have those paths changed?

                My little contributions to the RetroPie project:

                • Shell-Script-Boilerplate
                • Fun-Facts-Splashscreens
                • Limit-Last-Played-Games
                M 1 Reply Last reply Reply Quote 0
                • M
                  memodellocos @hiulit
                  last edited by

                  @hiulit For Skyscraper - I got this to work by copying the video files from /home/pi/roms/arcade/media/video to /home/pi/roms/arcade/media.

                  It wouldn't run otherwise with a few roms_path values I tried.

                  hiulitH 1 Reply Last reply Reply Quote 1
                  • hiulitH
                    hiulit @memodellocos
                    last edited by

                    @memodellocos Where does Skyscrapper store the videos?
                    /home/pi/RetroPie/roms/<system>/media/video or /home/pi/RetroPie/roms/<system>/media
                    Because I followed this guide https://github.com/RetroPie/RetroPie-Setup/wiki/Scraper#where-are-my-scraped-media-and-metadata-saved to get the paths for the scrapers, and here it says that Skyscraper, when setting the option ROM folder for gamelists & media, should store the videos in /home/pi/RetroPie/roms/<system>/media.
                    And that's the path I have in my script (I think). Maybe Skyscraper changed the path?

                    My little contributions to the RetroPie project:

                    • Shell-Script-Boilerplate
                    • Fun-Facts-Splashscreens
                    • Limit-Last-Played-Games
                    ClydeC 1 Reply Last reply Reply Quote 0
                    • ClydeC
                      Clyde @hiulit
                      last edited by

                      @hiulit Currently, SS uses subdirectories inside /home/pi/RetroPie/roms/<system>/media/ for the different kinds of content. Videos go into /home/pi/RetroPie/roms/<system>/media/videos/ by default.

                      hiulitH 1 Reply Last reply Reply Quote 1
                      • hiulitH
                        hiulit @Clyde
                        last edited by

                        @Clyde Thanks! Then I'll add it to the script. I'll let you know when I update it :)

                        My little contributions to the RetroPie project:

                        • Shell-Script-Boilerplate
                        • Fun-Facts-Splashscreens
                        • Limit-Last-Played-Games
                        1 Reply Last reply Reply Quote 2
                        • M
                          memodellocos
                          last edited by

                          @Clyde explained it perfectly! Thanks for this script too @hiulit !

                          hiulitH 1 Reply Last reply Reply Quote 1
                          • T
                            toimas @WeirdH
                            last edited by

                            @WeirdH No, it actually states that one video matches the 'from'-criteria but does not convert it anyway: "> "centiped-video.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.

                            1 Reply Last reply Reply Quote 0
                            • T
                              toimas
                              last edited by

                              No conversion if from-criteria is met
                              Just tried the script but all videos that matched the 'from-criteria' were not converted:

                              > "centiped-video.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.
                              

                              Why is there no conversion even if the criteria is met?

                              mituM 1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @toimas
                                last edited by

                                @toimas said in [SCRIPT] RetroPie Convert Videos:

                                Why is there no conversion even if the criteria is met?

                                Because the video doesn't need converting.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  toimas
                                  last edited by

                                  ??? The video is in yuv444p... the conversion should be to yuv420p...

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @toimas
                                    last edited by mitu

                                    @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

                                      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
                                      • mituM
                                        mitu Global Moderator
                                        last edited by mitu

                                        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

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

                                          ClydeC 1 Reply Last reply Reply Quote 0
                                          • T
                                            toimas
                                            last edited by toimas

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