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

    Retroarch recording and sound

    Scheduled Pinned Locked Moved Help and Support
    recordingretroarchretroarch cfgsound
    3 Posts 2 Posters 912 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.
    • H
      hellricer
      last edited by hellricer

      Does gameplay recording through retroarch work for anyone without messing up the sound?

      On almost every libretro core I tried, the start of the recording messes up the sound of the game (although the resulting video looks and sounds great).

      The only three cores that work without messing up the audio are lr-bsnes, lr-snes9x* and lr-dosbox-pure. But what's interesting is that the recordings from these cores always end up in /home/pi while all the other cores respect the recording_output_directory property from retroarch.cfg

      What's going on? It's like there are two different systems for recording although I always start it the same way through the retroarch menu.

      1 Reply Last reply Reply Quote 0
      • H
        hellricer
        last edited by

        The reason why only snes and pc systems were working is that I had config file overrides for them 🤦‍♂️.

        By comparing them to my global retroarch.cfg, I found out that having video_record_quality set to anything else but "4" (lossless) causes the audio issues while recording.

        2Play2 1 Reply Last reply Reply Quote 0
        • 2Play2
          2Play @hellricer
          last edited by 2Play

          @hellricer I was about to say that you might have overrides (reading your top post), therefore the diff output location
          on RA 1.15 the output dir is simply named records and the configs go to records_config folder (for example you can have custom config.cfg file in there.

          As per RA docs you need also to have custom FFMPEG compile with
          --enable-libx264 --enable-gpl --enable-libmp3lame options
          but this does not fix the hissing sound which I believe you hear when you start the recording.
          As you stated, the output file though is video/audio ok which I also confirm from my testings

          Since you say you tested all other options in video_record_quality, you can test this override config and retest

          Option 1:
          Edit your main retroarch.cfg file in /configs/all/ and set
          video_record_quality = "4"
          and save. You can do from network share or locally to the file if easier for you.

          Option 2:
          create a config.cfg file, in /configs/all/retroarch/records_config/
          and add the above line in there and save.

          If you compile the ffmpeg as per docs you can add even more settings to it such as:

          vcodec = libx264rgb
          acodec = libmp3lame
          audio_global_quality = 75
          sample_rate = 44100
          threads = 0
          video_preset = ultrafast
          video_record_quality = "4"
          

          or just

          video_record_quality = "4"
          

          Then select in ra the file or again change in your retroarch.cfg
          from
          rgui_config_directory = ""
          to
          rgui_config_directory = "~/.config/retroarch/config"

          Forgot to add. If you use shaders you should also enable in either option the
          video_gpu_record = "true" default is false BUT i noticed with lossless it causing video stutter.

          Your friend,
          2Play!

          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.