RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Streaming internet radio when browsing for games and on screensaver?

    Scheduled Pinned Locked Moved Ideas and Development
    internetradiostreamingmp3
    47 Posts 7 Posters 9.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.
    • mituM
      mitu Global Moderator
      last edited by mitu

      So it seems vlc has no direct usable CLI option to pass the volume, however it's possible to use gain to alter the sound output. The parameter works by multiplying the current volume % with the value. Assuming a 100% volume, then

      • --gain=1 would make the volume be 100%
      • --gain=2 would amplify the volume to 200%
      • --gain=0.3 would make the volume at 30%, etc.

      So modify the command line that starts vlc in your file, and instead of

      (sleep 10; [[ -f /home/pi/radio/list.txt ]] &&  vlc -I oldrc --rc-fake-tty --rc-unix /tmp/radio.sock -Zq --no-video /home/pi/radio/list.txt >/dev/null 2>&1) &
      

      add a --gain=<X> parameter with the <X> to your liking (the line below has --gain=1):

      (sleep 10; [[ -f /home/pi/radio/list.txt ]] &&  vlc --gain=1 -I oldrc --rc-fake-tty --rc-unix /tmp/radio.sock -Zq --no-video /home/pi/radio/list.txt >/dev/null 2>&1) &
      
      1 Reply Last reply Reply Quote 0
      • M
        mtib
        last edited by

        @mitu Thankyou so much!!! It works.

        1 Reply Last reply Reply Quote 0
        • M
          mtib
          last edited by

          Hi, it´s me again :)

          I disabled the initial text in Emulation Station with this command:

          emulationstation --no-splash #auto
          

          So this way:

          emulationstation --no-splash #auto
          
          while pgrep omxplayer >/dev/null; do sleep 1; done
          (sleep 10; [[ -f /home/pi/radio/list.txt ]] &&  vlc --gain=0.5 -I oldrc --rc-fake-tty --rc-unix /tmp/radio.sock -Zq --no-video /home/pi/radio/list.txt >/dev/null 2>&1) &
          

          I have no initial text and also no radio

          But when I put on the last line:

          while pgrep omxplayer >/dev/null; do sleep 1; done
          (sleep 10; [[ -f /home/pi/radio/list.txt ]] &&  vlc --gain=0.5 -I oldrc --rc-fake-tty --rc-unix /tmp/radio.sock -Zq --no-video /home/pi/radio/list.txt >/dev/null 2>&1) &
          
          emulationstation --no-splash #auto
          
          

          I have radio but the initial text persists. Is there a solution for this?

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

            @mtib said in Streaming internet radio when browsing for games and on screensaver?:

            Is there a solution for this?

            The parameter is correct (--no-splash) and the emulationstation command should always be last. If you run the command from the command line (after exiting Emulationstation), does the splash show up ?

            M 1 Reply Last reply Reply Quote 0
            • M
              mtib @mitu
              last edited by

              @mitu said in [Streaming internet radio when browsing for games and on screensaver?]

              If you run the command from the command line (after exiting Emulationstation), does the splash show up ?

              It doesn`t.

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

                @mtib So the command is correct, are you sure you're typing it right in the file ?

                M 1 Reply Last reply Reply Quote 0
                • M
                  mtib @mitu
                  last edited by

                  @mitu said in Streaming internet radio when browsing for games and on screensaver?:

                  @mtib So the command is correct, are you sure you're typing it right in the file ?

                  I just copied and pasted, it is the same command. Anyhow the radio script is disabling it. When I change the order it works nomarly.

                  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.