Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    [Recalbox 6.1] Splash Video Fade Out?

    Themes & Interface
    [recalbox 6.1] splash fade
    3
    3
    1209
    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.
    • The_Mole
      The_Mole last edited by

      Hello there,

      it's been a while. You could help me with a little problem I have: Where did the fade out option from the Splash Screen go?

      Older versions had this in S02Splash:

        if [[ $? -eq 0 && $videolength -gt -1 ]]; then
          recallog "Let's play the video for $videolength seconds"
          # Wait for emulationstation or Kodi, but not more than $videolength seconds
          count=0
      while [[ ! -f "/tmp/emulationstation.ready" && ! -e "/var/run/kodi.msg" && $count -lt $videolength ]]; do
              sleep 1
              ((count++))
          done
          # Finish with a one second fade out.
      	sleep 30
          audio_fade=1
          video_fade=250
          while [[ $video_fade -gt 0 ]]; do
              sleep .02
              dbus-send --print-reply=literal --session --dest=org.mpris.MediaPlayer2.omxplayer /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Volume double:$audio_fade >/dev/null
              dbus-send --print-reply=literal --session --dest=org.mpris.MediaPlayer2.omxplayer /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.SetAlpha objpath:/not/used int64:$video_fade >/dev/null
              audio_fade=`echo "$audio_fade .02" | awk '{printf "%.2f", $1-$2}'`
              ((video_fade=video_fade-5))
          done
          # Ready flag set or timeout occured; stop video process.
          dbus-send --print-reply=literal --session --dest=org.mpris.MediaPlayer2.omxplayer /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Action int32:15 >/dev/null
      else
          recallog "Let's play the video entirely"
      fi
      

      After updating I found that It's now S03Splash without the fadeout:

        function stopPlayerWhenFrontendReady() {
          local playerPID="$1"
          local timeout="$2"
          local count=0
        
          [ ${timeout} -eq -1 ] && return
          until [ -f "/tmp/emulationstation.ready" ] || [ -e "/var/run/kodi.msg" ] || [ ${count} -ge ${timeout} ]; do
            sleep 1
            let count++
          done
          kill -9 ${playerPID}
        }
      

      With the fadeout the transition from splash video to menu looks WAY better, so I'd like it back.
      Is it possible to add it somewhere there?
      Thanks for your help!

      Arcadelix 1 Reply Last reply Reply Quote 0
      • Pol
        Pol last edited by

        @The_Mole I was wondering that too... Maybe you can fix it, will you share it please?

        1 Reply Last reply Reply Quote 0
        • Arcadelix
          Arcadelix Banned @The_Mole last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Want to support us ?

          73
          Online

          90.3k
          Users

          26.3k
          Topics

          181.8k
          Posts

          Copyright © 2021 recalbox.com