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

    Splashscreen video sound output

    Scheduled Pinned Locked Moved Help and Support
    asplashscreenomxplayergpio
    5 Posts 2 Posters 1.4k 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.
    • AnalogHeroA
      AnalogHero
      last edited by

      Hi,

      im going to skip the usual spec stuff as it doesnt apply here. I just want to ask if its possible to somehow make the sound output of omxplayer in asplashscreen.sh optional? Or is there a way to make an edit permanent?

      Everytime i update retropie-setup i have to edit the omxplayer line from -o both to -o hdmi.

      (Reason is that analog sound output of omxplayer doesnt work well with my fading led gpio stuff using softpwm.)

      Thanks!

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

        @analoghero omxplayer is just a script wrapper around omxplayer.bin, so you can modify it in /usr/bin/omxplayer and insert/remove any arguments you like.

        1 Reply Last reply Reply Quote 0
        • AnalogHeroA
          AnalogHero
          last edited by

          @mitu Ok. Thanks. But if asplashscreen.sh is calling omxplayer with -o both how do i modify the omxplayer script to bybass this?

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

            @analoghero Around line 67 there's the command

            LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"
            

            the "$@" contains the list of parametes used when omxplayer is run (including -o hdmi), so you can just replace it with your parameters as you see fit.
            Make sure you make a backup of the script, so in case something goes wrong you can start again with the default script.

            1 Reply Last reply Reply Quote 0
            • AnalogHeroA
              AnalogHero
              last edited by

              @mitu Thanks. It works now.

              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.