• 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.
  • 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
      • H
        hiulit @Rion
        last edited by 31 Dec 2019, 07:40

        @Rion No worries! I'll have a look and see what I can do :)

        My little contributions to the RetroPie project:

        • Shell-Script-Boilerplate
        • Fun-Facts-Splashscreens
        • Limit-Last-Played-Games
        1 Reply Last reply Reply Quote 0
        • T
          toimas @hiulit
          last edited by 31 Dec 2019, 18:08

          @hiulit Thank for the update... 'sadly' I can't test it right now, I've trancoded my few videos 'by hand' meanwhile... and since I've also switched to Debian Buster I also had to use ffmpeg-tools anyway...

          H 1 Reply Last reply 1 Jan 2020, 10:13 Reply Quote 1
          • H
            hiulit @Rion
            last edited by 1 Jan 2020, 10:12

            @Rion When you think about that "standalone" script, what do you have in mind? How would it work?
            I took a look at the code and it super dependant of RetroPie, hehe! :) All the video paths, the scraper paths...
            I'm trying to figure out how could I make it work, that's why I'm asking for suggestions. Happy new year!

            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 1 Jan 2020, 10:13

              @toimas That's ok, no worries! I'll be updating again the script. I changed libav-tools for ffmpeg.

              My little contributions to the RetroPie project:

              • Shell-Script-Boilerplate
              • Fun-Facts-Splashscreens
              • Limit-Last-Played-Games
              K 1 Reply Last reply 14 Feb 2020, 20:38 Reply Quote 1
              • K
                kdeman @hiulit
                last edited by kdeman 14 Feb 2020, 20:38

                @hiulit I am trying out your tool but get the message "woops! the 'libav-tools' package is not installed!". Trying to install it doesn't work (the package has been obsoleted, and replaced by ffmpeg). You mention you changed from libav-tools to ffmpeg - I did a latest pull from github, still I get this message. Is there another place where I should get the ffmpeg enabled version? Many thanks in advance!

                C H 2 Replies Last reply 14 Feb 2020, 21:35 Reply Quote 0
                • C
                  Clyde @kdeman
                  last edited by Clyde 14 Feb 2020, 21:35

                  @kdeman How did you try to install the transitional package libav-tools? It should a) install the package ffmpeg if it's not already installed, and b) create these links for backwards compatibility:

                  avconv  -> ffmpeg
                  avplay  -> ffplay
                  avprobe -> ffprobe
                  

                  You can install libav-tools with this command:

                  sudo apt install libav-tools
                  

                  And you can read its description with its dependency ffmpeg and the link list above with this command:

                  apt show libav-tools
                  

                  (No sudo required for the latter one.)

                  edit: Are you using the normal Retropie image that's based on Debian Stretch or another Linux distribution?

                  K 2 Replies Last reply 14 Feb 2020, 23:37 Reply Quote 0
                  • K
                    kdeman @Clyde
                    last edited by 14 Feb 2020, 23:37

                    @Clyde

                    Using Buster (10) on a Pi 4. I installed Retropie manually, quite some time ago now, all working really well, haven't had any real issues so far, except this one.

                    I tried to install it exactly as you say. Message coming back in the order of "package not available, but is referred to by another package. The following packages replace it: ffmpeg"

                    ffmpeg in indeed installed and working fine. However, as I mentioned, when I try to run the video conversion script, it states I need to have "libav-tools" installed...

                    However, I don't think the backward compatibility works - as when I type avconv or avplay or avprobe it states "command not found".

                    1 Reply Last reply Reply Quote 0
                    • K
                      kdeman @Clyde
                      last edited by 15 Feb 2020, 00:22

                      @Clyde

                      Solved it. I ended up installing the libav-tools by downloading them manually from the debian.org site and this fixed the problem. Thanks for the prompt reply!

                      1 Reply Last reply Reply Quote 0
                      • C
                        Clyde
                        last edited by Clyde 15 Feb 2020, 08:33

                        Ah, so they have removed the transitional package in Buster. Good to hear that you've solved it nonetheless.

                        To get rid of the message without having to manually install libav-tools, just delete line #33 of the script that says readonly DEPENDENCIES=("libav-tools" "bc"). An update of the script may restore it, though, if @hiulit doesn't change it in the repo.

                        1 Reply Last reply Reply Quote 0
                        • H
                          hiulit @kdeman
                          last edited by 19 Feb 2020, 10:10

                          @kdeman Hey, sorry for the late reply! I have the changes on the develop branch, which I'm currently working on. I'll release a new version with ffmpeg and some other stuff pretty soon :)

                          My little contributions to the RetroPie project:

                          • Shell-Script-Boilerplate
                          • Fun-Facts-Splashscreens
                          • Limit-Last-Played-Games
                          C K 2 Replies Last reply 19 Feb 2020, 12:49 Reply Quote 1
                          • C
                            Clyde @hiulit
                            last edited by 19 Feb 2020, 12:49

                            @hiulit Thanks, I have taken this for a reason to update my own script accordingly. 👍

                            1 Reply Last reply Reply Quote 0
                            • H
                              hiulit
                              last edited by hiulit 20 Feb 2020, 14:31

                              Hi there!

                              I've just released RetroPie Convert Videos v3.0.0! :D


                              Changelog

                              NOTE: This release may contain breaking changes!

                              Deprecated

                              • libav-tools for ffmpeg.

                              Added

                              • New option --gui to start the GUI. It lets you perform all the functions, but in a more friendly manner. If standalone is passed as a parameter, the script doesn't check if RetroPie is installed, which it does by default.

                              @kdeman Could you give it a try and see if you have any issues now?
                              @Rion I've added an option to use the script as a standalone app. Check the docs, but basically now you can execute the script like this ./retropie-convert-videos.sh --gui standalone and it will open a nice GUI and it won't check if RetroPie is installed. I don't know if that's what you meant, but there, I've done it :)

                              EDIT:
                              I've updated the first post with the new documentation.

                              My little contributions to the RetroPie project:

                              • Shell-Script-Boilerplate
                              • Fun-Facts-Splashscreens
                              • Limit-Last-Played-Games
                              R 1 Reply Last reply 21 Feb 2020, 01:18 Reply Quote 3
                              • R
                                Rion @hiulit
                                last edited by 21 Feb 2020, 01:18

                                @hiulit Thanks! This is really a big QOL improvement and speeds up the process of converting video snaps from the desktop.

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

                                H 1 Reply Last reply 21 Feb 2020, 08:59 Reply Quote 1
                                • H
                                  hiulit @Rion
                                  last edited by 21 Feb 2020, 08:59

                                  @Rion You're welcome! Let me know if it works for you the way you thought it would 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
                                  • K
                                    kdeman @hiulit
                                    last edited by 21 Feb 2020, 21:29

                                    @hiulit Excellent! thank you very much...

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      KarateInSpace
                                      last edited by KarateInSpace 25 Feb 2020, 12:35

                                      I just can't seem to get this to work on any of my videos. Keep running into this error for all my videos:

                                      daphne
                                      ------
                                      Converting -> "ace.mp4" ... (1/4)
                                      (standard_in) 1: syntax error
                                      ERROR: 'ace.mp4' has 0 frames!
                                      

                                      This happens with every emulator. I'm using v3.0.0 and I set the scraper to

                                      ./retropie-convert-videos.sh --scraper "skyscraper"
                                      

                                      and all my videos are in /home/pi/RetroPie/roms/<system>/media/videos/

                                      H 1 Reply Last reply 25 Feb 2020, 16:06 Reply Quote 1
                                      • H
                                        hiulit @KarateInSpace
                                        last edited by 25 Feb 2020, 16:06

                                        @KarateInSpace I think I might know what is causing the issue :/ I'll release a new version asap.

                                        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 25 Feb 2020, 16:25

                                          I've just released RetroPie Convert Videos v3.1.0!


                                          Changelog

                                          Fixed

                                          • Replaced legacy libav-tools (avprobe) commands for the new ffmpeg's equivalents (ffprobe).

                                          @KarateInSpace Could you try it now and see if it works? :)

                                          My little contributions to the RetroPie project:

                                          • Shell-Script-Boilerplate
                                          • Fun-Facts-Splashscreens
                                          • Limit-Last-Played-Games
                                          K 1 Reply Last reply 25 Feb 2020, 21:06 Reply Quote 2
                                          • 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