Giter Site home page Giter Site logo

Recording starts too late about spotrec HOT 3 OPEN

bleuzen avatar bleuzen commented on August 17, 2024
Recording starts too late

from spotrec.

Comments (3)

Bleuzen avatar Bleuzen commented on August 17, 2024

Hi, it is hard to get it right. Every system is a little slower/faster. SpotRec already gives ffmpeg some time to start up, but in your case it seems not enough.
For now, you can tweak it by changing this variable in the script:

_recording_time_before_song = 0.25

Currently it is set to a quarter of a second, but you can increase it to for example a half of a second by changing it to:

_recording_time_before_song = 0.5

I may also check your example song / album when I get to that, maybe increase the pre-configured time.


Just out of interest, because it could play a role:
Are you using PulseAudio or Pipewire (as pulse replacement)?

from spotrec.

lewumpy avatar lewumpy commented on August 17, 2024

Currently it is set to a quarter of a second, but you can increase it to for example a half of a second by changing it to:

_recording_time_before_song = 0.5

Thanks for your reply! I played around with the time a bit. Unfortunately, it did not bring success. Even when I set 5 seconds, there was 5 seconds of silence at the beginning of the song and and still the first sound was cut off anyway. Unfortunately I have no idea if you can make settings for ffmpeg somewhere else.

Just out of interest, because it could play a role: Are you using PulseAudio or Pipewire (as pulse replacement)?

I'm using PulseAudio.

from spotrec.

Rijul-A avatar Rijul-A commented on August 17, 2024

Can you try my working-config branch? The large differences are

  • When a song change is detected, Spotify is paused. This way, the next song does not feature in the current song's recording.
  • Spotify remains paused until time needed to cleanly finish the FFmpeg process.
  • A larger wait time is used between starting a new FFmpeg process and resuming the paused song.

Of course, this method will produce some silence at both ends of the song; this is trimmed later in post-processing.py.

from spotrec.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.