• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Gaps between tracks

    Scheduled Pinned Locked Moved
    General Discussion
    1
    5
    229
    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.
    • T
      TakeFive
      last edited by


      Detachment of offtopic comments from the Feature Request thread about an option to insert silent intervals between tracks: alternatives using shell scripts ( https://forum.strawberrymusicplayer.org/topic/3417/optional-gap-between-each-song-playback ).


      A little update on the variant that would not need to modify the playlist: right now it has been running for several hours without a glitch but it is dangerous. When the problem arose, not only Strawberry got frozen but sometimes mpv (pipewire), kid3 (gstreamer) and even the whole audio system stopped producing sound.

      Everything can be restored, though I have yet to find a precise procedure to do it (no single recipe works every time) and understand the problem better to reproduce it at will. I'll tell you about that, either because the script seems safe to test or as a case of a problematic situation for the devels to be aware of.

      After that I'll give a try to the rebuild & replace way (gap fellows: don't hold your breath) if nobody has come up with their own suggestion.

      1 Reply Last reply Reply Quote 0
      • T TakeFive referenced this topic on
      • T
        TakeFive
        last edited by

        A first version of a different script from the one mentioned above. No more freezes, but this could be related also to the new official version of Strawberry. I'd recommend you to update it beforehand. Read the comments about that and the script limitations at its beginning.

        https://pastebin.com/Y2GxuzaY

        You're very welcome to bash it and share any fixes or ideas.

        T 1 Reply Last reply Reply Quote 0
        • T
          TakeFive @TakeFive
          last edited by

          Public exposure was deactivated, sorry. Fixed now.

          T 1 Reply Last reply Reply Quote 0
          • T
            TakeFive @TakeFive
            last edited by TakeFive

            /usr/bin/env: ‘bash\r’: No such file or directory
            /usr/bin/env: use -[v]S to pass options in shebang line
            

            Not nice on pastebin's part to add \r characters to the end of lines of the downloaded file, and I don't see any setting to prevent it.

            Use dos2unix myscript or copy&paste https://pastebin.com/raw/Y2GxuzaY to an empty file. Make it executable chmod a+x myscript and run ./myscript -h

            1 Reply Last reply Reply Quote 0
            • T
              TakeFive
              last edited by

              Fortunately, it seems nobody broke their systems with the script. If there's no need of improvements, I'll put it on hold as a proof of concept, along with the attempts to the interspersed-track variants. Comments on this are welcome anytime.

              For newer testers:

              cd ~/tmp 
              wget -O testscript https://pastebin.com/raw/Y2GxuzaY 
              dos2unix testscript
              chmod a+x testscript
              less testscript #     --->  mind the configurable countdown_step
              echo ; echo 
              ./testscript -h
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors