Comments (3)
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:
Line 52 in eda66b1
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.
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.
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)
- Disable longer recording at the end? HOT 2
- Time padding after song stops HOT 9
- Coverart error when using --output-directory
- ffmpeg options HOT 4
- [FEATURE] Option to save artwork to file instead
- Suddenly no recording possible anymore HOT 1
- Add requirements.txt or similar to define dependencies
- Additional file formats as option
- repeating same song HOT 4
- add option for continuous recording HOT 1
- Issue when running spotrec ( AUR edition ) HOT 1
- Special caracter in the "title" or "artist" name
- Allow to skip existing titles
- Hacky solution for more automatic/accurate track separation HOT 8
- Failed to connect to Spotify HOT 3
- ffmpeg - Unknown input format: 'pulse' (EndlessOS, pavucontrol flatpak) HOT 5
- Qobuz instead of spotify HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotrec.