Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloaded files skip during playback. please help! Spytify donator #351

Closed
Tykenology opened this issue Mar 31, 2021 · 22 comments
Closed
Labels
bug 🐞 discussion 💬 Will be converted to a Github Discussion thread needs feedback 📬 Cannot be close/fixed until users give more feedback

Comments

@Tykenology
Copy link

Tykenology commented Mar 31, 2021

please help. i donated to support spytify. would gladly donate more if i can get this issue resolved

@Tykenology Tykenology added the task ⚒ An improvement or general task to do label Mar 31, 2021
@Tykenology
Copy link
Author

#344

@Tykenology
Copy link
Author

#344
tried everything just like this user stated in his question. I also added comment on his issue.

@Tykenology Tykenology changed the title downloaded files skip during playback. Downloaded files skip during playback. please help! Spytify donator Apr 8, 2021
@Tykenology
Copy link
Author

Capture vac3

@Tykenology Tykenology reopened this Apr 8, 2021
@Tykenology
Copy link
Author

My computer specs show there should be no skipping on my end. Is it a glitch in spytify software or is there something i'm doing wrong that causes this to happen? Anyone help me or have same issue? Let me know please

@jwallet
Copy link
Owner

jwallet commented Apr 10, 2021

Thank you for donating, if you talk about loosing bits when recording, did you try to record in .wav to see if this still happens? if so, you might want to consider other tools, this software is based on naudio api, and when wav recording fails, that's not a good sign, it's hard to troubleshoot hardware that we don't have access.
if the wav recording is fine, you might want to look at libmp3 that converts the wav stream to mp3 after the recording, it needs a lot of cpu in a separate thread, normally PC are fine with that but laptop cares less about that, what they want is low consumption
and still the faq is a good place that have answers to some issues

@jwallet
Copy link
Owner

jwallet commented Apr 12, 2021

other stuff I thought about:

  • Don't connect your pc wiressly, last time I tried to debug an "skipping" issue, it turned out the user was on wifi and Spotify was lagging/buffering so it had skips at the source, the recorder cannot fix that kind of issue.
  • Follow the FAQ, if you have Spotify Free you should not set bitrate above the "Spotify Free" quality (160kpbs). For Spotify Premium, not over 320kbps, but you have to turn your optimal quality "on" in Spotify settings. Otherwise, you may records "skipping sounds" and even "fast-forward sounds" issues
  • Do not allow your computer to go to eco-mode, while playing/recording. If you don't know how to prevent it, I think there is a software call "caffeine" out there, that just keep running in the background, and simulate a random key to keep the PC awake.

@Tykenology
Copy link
Author

Tykenology commented Apr 13, 2021 via email

@Tykenology
Copy link
Author

Tykenology commented Apr 20, 2021 via email

@Tykenology
Copy link
Author

Tykenology commented Apr 20, 2021 via email

@Tykenology
Copy link
Author

One more note on the skipping issue. It takes place on every song I have ever recorded with spytify (over 1000 files). Every quality and format I have tried has the same issue. Adjusting the parameters both in my pc sound control panel to the vac and with the spytify software settings.

@jwallet
Copy link
Owner

jwallet commented Apr 22, 2021

I wonder if it's a naudio library limitation, that it supports and tested just a handful of sound cards, I know that my lenovo laptop has a decent sound card but was the worst to record with, my pc has a external pci sound card and it's fantastic, there are many things that can go wrong;

  • spotify stream needs a perfect connection to the internet
  • spotify sends the stream to wasapi
  • wasapi redirect the stream to the hardware
  • hardware plays the stream
  • spytify listen to the hardware that is playing the stream
  • spytify creates the stream back
  • spytify encodes the stream to mp3
  • do not ask your cpu for more, like windows update and virus scan, virtual machine or docker
  • do not run spytify inside a virtual machine
  • you can skip the stream to the hardware back to a stream by using virtual audio device

so internet connection, sound card quality (or device), cpu time, a ssd for fast writing

i will probably test spytify on a hard drive to see how slow it can be

@Tykenology
Copy link
Author

Tykenology commented Apr 22, 2021 via email

@jwallet
Copy link
Owner

jwallet commented Apr 23, 2021

actually no, no need for that, you said you tried with virtual audio cable, this virtual device replace a sound card. so like you said it did not work, so the problem is somewhere else.

i tried spytify on a hold hard drive and still get good result.

so one thing that may cause the issue is a security software that could put spytify in a blackbox. if you want to test if the issue comes from that you could build the solution yourself.

image

if you give it a try, it should not trigger any security software since you have the source code

@jwallet jwallet added bug 🐞 discussion 💬 Will be converted to a Github Discussion thread and removed task ⚒ An improvement or general task to do labels Apr 23, 2021
@Tykenology
Copy link
Author

Tykenology commented Apr 24, 2021 via email

@jwallet
Copy link
Owner

jwallet commented Apr 26, 2021

So I kind of forgot about that, it's in the FAQ, I know you read it, but better to check twice.
Based on the "How it works" section on Spytify website and "Audio Quality" section on Spotify website, if you have Spotify Premium it will send a better quality than the free version of the app. So in Spytify settings, instead of an audio quality of 160kpbs you should set 320kbps. For better results, your virtual device or your sound card should be set to 2 channel, 48hz, when recording mp3, even if other quality actually works. since you have issue, you might want to give it a try. Go to sounds settings and click on Sound Control Panel, go to recording, select your device, and change the format in advanced tab.
--using-sound-card-input
image
--using-virtual-device
image

@jwallet
Copy link
Owner

jwallet commented Apr 26, 2021

if I did not mention it, you can change priority to "Above norma" in Task Manager - Details, just right click on Spotify/Spytfiy
image

@jwallet
Copy link
Owner

jwallet commented Apr 26, 2021

I've also seen that Audacity has a dropouts detector in his recorder parameteres. I wonder if you will get the same results if you use WASAPI and detect dropouts "off". it also has a latency manager for the audio device, so if you set these to 0ms. Since spytify does not have these features, it may record files like spytfiy did. If you try it remember your previous values to change them back to your defaults

image

image

@Tykenology
Copy link
Author

Tykenology commented May 2, 2021 via email

@Tykenology
Copy link
Author

Tykenology commented May 3, 2021 via email

@Tykenology
Copy link
Author

Tykenology commented May 3, 2021 via email

@jwallet
Copy link
Owner

jwallet commented May 31, 2021

let me know if you have .NET framework 4.6 / 4.8 installed on your machine

4.6.1. https://www.microsoft.com/en-ca/download/details.aspx?id=49981

4.8 https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net48-web-installer

@jwallet
Copy link
Owner

jwallet commented May 31, 2021

  • Using naudio net48.zip wasapi lib used in spytify and compiled version of the demo of naudio lib on github https://github.com/naudio/NAudio
  • and .net 4.8 pre-installed .net framework 4.8 needed to run it
  • run the exe (as an admin) (1)
  • and select "WAV Recording" and click on "Load" (2)
  • select quality "48000", "stereo",
  • then api "WASAPI Loopback" and select YOUR endpoint (same as spotify) (3),
  • then "Start Recording", it will record a 30 seconds fragment. You can then record another 30 secs segment or enough samples to record the complete track.
  • After that you can "Play" the samples in the app or just "Open Folder" and see if naudio successfully recorded the track in wav format.

(1)
image

(2)
image

(3)
image

@jwallet jwallet added the needs feedback 📬 Cannot be close/fixed until users give more feedback label Aug 4, 2021
@jwallet jwallet closed this as completed Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 discussion 💬 Will be converted to a Github Discussion thread needs feedback 📬 Cannot be close/fixed until users give more feedback
Projects
None yet
Development

No branches or pull requests

2 participants