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

    PlayStation FFmpeg Recording causes Seg Fault in RetroPie 4.0.2 (Recording Megadrive, VCS, etc still fine)

    Scheduled Pinned Locked Moved Help and Support
    retropie 4.0.2recordingffmpegretroarchrgui
    26 Posts 5 Posters 10.5k 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
      RetroResolution @BuZz
      last edited by

      @BuZz Thanks, I'll see if I can determine what's changed.

      I'm confused as to why RGUI is showing a radically new UI, but reporting the same version number.

      Do you know if lr-pcsx-rearmed has been updated between 4rc1 and 4.0.2?

      Maybe I should leave investigating this until a stable version 4 release is made?

      If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

      RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

      1 Reply Last reply Reply Quote 0
      • R
        RetroResolution @BuZz
        last edited by

        @BuZz could you tell me if it is possible for me to pull a specific commit of retropie's forked version of RetroArch from Git when rebuilding it with the 'disable-ffmpeg' parameter removed? Ideally I'd like to obtain the version used in retroPie 4rc1.

        I've done similar to force retrieval of a specific version of the FFmpeg framework, but I'm not sure how the forked versions of components used by RetroPie are stored.

        If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

        RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

        BuZzB 1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators @RetroResolution
          last edited by BuZz

          @RetroResolution it's not forked. Nothing changed from rc1 unless you are building from source. Then you get the latest code.

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          R 2 Replies Last reply Reply Quote 0
          • R
            RetroResolution @BuZz
            last edited by

            @BuZz okay, thanks for confirming that.

            The problem is apparently in the very latest RetroArch 1.3.6 (version with the new UI) - I replaced my RetroPie 4.0.2's RetroArch with the ffmpeg-enabled version 1.3.4 from my RetroPie 3.8 system and was able to record from the PlayStation.

            I initially tried replacing the lr-pcsx-rearmed PlayStation core from my RetroPie 3.8 build, but as expected it made no difference (both are version r22).

            Unfortunately I didn't back up my RetroPie 4 rc1's ffmpeg-enabled build of RetroArch 1.3.6 before I updated everything earlier.

            I need to look into pulling and building a specific version of RetroArch.

            If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

            RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

            1 Reply Last reply Reply Quote 0
            • R
              RetroResolution @BuZz
              last edited by

              @BuZz I'm confused - under RetroPie's github entry RetroArch is listed as forked:

              RetroArch
              forked from libretro/RetroArch
              Reference frontend for the libretro API.
              Updated on 17 Jun 2015

              If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

              RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

              R BuZzB 2 Replies Last reply Reply Quote 0
              • R
                RetroResolution @RetroResolution
                last edited by

                There is a change specific to ffmpeg recording in the latest retroarch commit , adding a new null reference check, which perhaps is the issue with lr-pcsx-rearmed.

                I've located the source for the July 17th release of RetroArch, and shall investigate building this with ffmpeg recording enabled. I'm aiming to have a workaround - building against a known-good recent version -whilst retroarch is in flux.

                https://github.com/libretro/RetroArch/archive/v1.3.6.tar.gz

                I'll aim to post an issue to the retroarch git repository later as well.

                For the record, I've tested recording vcs, megadrive, SNES and 32x with 4.0.2 and retroarch 1.3.6 (very latest) and all of these work perfectly as before.

                If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators @RetroResolution
                  last edited by

                  @RetroResolution said in PlayStation FFmpeg Recording causes Seg Fault in RetroPie 4.0.2 (Recording Megadrive, VCS, etc still fine):

                  @BuZz I'm confused - under RetroPie's github entry RetroArch is listed as forked:

                  RetroArch
                  forked from libretro/RetroArch
                  Reference frontend for the libretro API.
                  Updated on 17 Jun 2015

                  That is not used by the retropie-setup script.

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    RetroResolution @BuZz
                    last edited by

                    @BuZz okay, thanks

                    If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                    RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                    1 Reply Last reply Reply Quote 0
                    • R
                      RetroResolution
                      last edited by RetroResolution

                      Okay, I have determined the steps required to pull a specific version of RetroArch from the Git releases, and have the existing RetroPie setup system build this (instead of the default behaviour of pulling the very latest source code).

                      From test it seems that sometime in the last few days some changes have been made to RetroArch 1.3.6; as well as adding a very funky new UI, when recording is enabled using FFmpeg something fails when the PlayStation emulator lr-pcsx-rearmed is used. Recording from VCS, Megadrive, 32X, and SNES were all working as normal.

                      I'll write this up as an addendum to my original guide, but for now the required process is:

                      OBTAIN AND BUILD SPECIFIC VERSION OF RETROARCH TO ENABLE FFMPEG RECORDING

                      Modify the RetroPie setup script for RetroArch:

                      cd /home/pi/RetroPie-Setup

                      remove paramater which is disabling ffmpeg in retroarch:

                      sed -i "s/--disable-ffmpeg//" scriptmodules/emulators/retroarch.sh

                      Edit the script to prevent call which obtains the very latest version of RetroArch source from git repository:

                      sed -i 's@\(gitPullOrClone "$md_build" https://github.com/libretro/RetroArch.git\)@#\1@' retroarch.sh

                      Obtain RetroArch version 1.3.6 (as a tar) from the git archive:

                      cd /home/pi/RetroPie-Setup/tmp/build

                      wget https://github.com/libretro/RetroArch/archive/v1.3.6.tar.gz

                      Unpack tar archive file:

                      tar xzvf v1.3.6.tar.gz

                      Remove the tar file:

                      rm v1.3.6.tar.gz

                      Rename directory to that expected by setup script:

                      mv RetroArch-1.3.6/ retroarch

                      Run the setup script to build RetroArch 1.3.6 with ffmpeg enabled:

                      cd /home/pi/RetroPie-Setup

                      sudo ./retropie_packages.sh retroarch

                      Replace the modified script file (to prevent issues when running future updates via the retropie setup script, due to uncommitted changes in the local git repository casused by modifying this file)

                      git checkout scriptmodules/emulators/retroarch.sh

                      NOTE:
                      after running the script, the temporary build folder should be empty
                      /home/pi/RetroPie-Setup/tmp/build

                      ...and /opt/retropie/emulators/retroarchshould contain the freshly rebuilt version 1.3.6 retroarch

                      If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                      RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                      meleuM 1 Reply Last reply Reply Quote 0
                      • meleuM
                        meleu @RetroResolution
                        last edited by meleu

                        @RetroResolution it seems that you changed the Menu Driver to xmb.

                        Usually changed in Settings -> Driver -> Menu Driver. It is usually rgui, but it seems that it changed to xmb.

                        (Edit: it is menu_driver in retroarch.cfg.)

                        • Useful topics
                        • joystick-selection tool
                        • rpie-art tool
                        • achievements I made
                        R 1 Reply Last reply Reply Quote 1
                        • R
                          RetroResolution @meleu
                          last edited by

                          @meleu hi,
                          Didn't know about that option - thanks!

                          As it happens I didn't make any changes explicitly - I grabbed the very latest version of retroarch this morning as a by-product of helping someone who posted a comment on my guide this morning. This variant of retroarch 1.3.6 is newer than that from which the binary version was built (the one you normally get when updating RetroPie).

                          It seems that in the overnight build that option is now default - on my machine I ended up with no icons in the menu. I posted a screen grab earlier, but I can't see the picture on the thread for some reason.

                          The new menu looks like it'll be very slick. Also means several of my guides are out of date again...

                          If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                          RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                          dankcushionsD 1 Reply Last reply Reply Quote 0
                          • dankcushionsD
                            dankcushions Global Moderator @RetroResolution
                            last edited by

                            @RetroResolution that xmb menu is quite old now but is nice looking. it shouldn't be the default as retropie has the menu_driver set to rgui in the /all/retroarch.cfg, no? i don't know as i've been intentionally using the xmb driver for ages.

                            and yeah i would say your guides aren't out of date as i imagine retropie will keep using the rgui (old menu) as it's lighter on resources (although on an rpi3 i don't see any difference in game).

                            meleuM R 2 Replies Last reply Reply Quote 1
                            • meleuM
                              meleu @dankcushions
                              last edited by

                              @dankcushions I took a look at the configure_retroarch function and there's no default setting to video_driver. I think it would be useful to set it to rgui.

                              • Useful topics
                              • joystick-selection tool
                              • rpie-art tool
                              • achievements I made
                              dankcushionsD 1 Reply Last reply Reply Quote 1
                              • R
                                RetroResolution @dankcushions
                                last edited by

                                @dankcushions thanks for the insight - that menu being different really threw me this morning, and given the problems with recording I just assumed it was new. Glad my other guides can be left as-is!

                                If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                                RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                                meleuM 1 Reply Last reply Reply Quote 0
                                • dankcushionsD
                                  dankcushions Global Moderator @meleu
                                  last edited by

                                  @meleu you're right! hmm, interesting. perhaps the xmb will in fact be the default from now on :) i just asked in the retroarch IRC channel and apparently it's defaulted differently on different systems, so who knows when it changed.

                                  like i said, it's fine on the pi3 but not sure about pi2 and 1.

                                  meleuM 1 Reply Last reply Reply Quote 0
                                  • meleuM
                                    meleu @dankcushions
                                    last edited by

                                    @dankcushions said in PlayStation FFmpeg Recording causes Seg Fault in RetroPie 4.0.2 (Recording Megadrive, VCS, etc still fine):

                                    perhaps the xmb will in fact be the default from now on

                                    It's a bad idea for Android phones. The xmb doesn't accept input from the touchscreen...

                                    • Useful topics
                                    • joystick-selection tool
                                    • rpie-art tool
                                    • achievements I made
                                    1 Reply Last reply Reply Quote 0
                                    • meleuM
                                      meleu @RetroResolution
                                      last edited by

                                      @RetroResolution can you please paste here the output of this command:

                                      grep video_driver /opt/retropie/configs/all/retroarch.cfg
                                      

                                      I'm curious if it is really the default or if somehow it is explicitly xmb.

                                      • Useful topics
                                      • joystick-selection tool
                                      • rpie-art tool
                                      • achievements I made
                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        RetroResolution @meleu
                                        last edited by

                                        @meleu hi,

                                        the video block is as follows:

                                        #### Video
                                        
                                        # Video driver to use. "gl", "xvideo", "sdl"
                                        # video_driver = "gl"
                                        

                                        All commented out...

                                        If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                                        RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                                        dankcushionsD 1 Reply Last reply Reply Quote 0
                                        • dankcushionsD
                                          dankcushions Global Moderator @RetroResolution
                                          last edited by

                                          @RetroResolution @meleu i think you want the menu_driver block :)

                                          meleuM 1 Reply Last reply Reply Quote 1
                                          • meleuM
                                            meleu @dankcushions
                                            last edited by meleu

                                            ooops! Indeed! I mean menu_driver

                                            @RetroResolution

                                            grep menu_driver /opt/retropie/configs/all/retroarch.cfg
                                            
                                            • Useful topics
                                            • joystick-selection tool
                                            • rpie-art tool
                                            • achievements I made
                                            R 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.