Package Details: spotify-videos 1.8-1

Git Clone URL: https://aur.archlinux.org/spotify-videos.git (read-only)
Package Base: spotify-videos
Description: Watch Youtube music videos for the currently playing Spotify songs
Upstream URL: https://github.com/marioortizmanero/spotify-music-videos
Licenses: custom:MIT
Submitter: marioom
Maintainer: marioom
Last Packager: marioom
Votes: 2
Popularity: 1.102630
First Submitted: 2019-08-18 17:03
Last Updated: 2019-08-18 23:49

Latest Comments

marioom commented on 2019-08-20 11:27

That does sound super interesting! But I'll have to experiment with it a bit because I'm not sure how this could be implemented with the current APIs being used.

Spotify has an audio analysis feature that could give more information about the song - https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-analysis/

And the YouTube video is played with VLC directly, so the videos aren't fully downloaded and it may make the audio analysis harder to do. We would need a more dynamic way to do it on the go. That, or change how the videos are played.

I'll take a look into how it could be done. If you want to help, go ahead. I'll make an issue on GitHub to track the progress. Thanks for the link to that project.

pinkman commented on 2019-08-20 06:56

Hello again,

If you want to look into signal processing, there are solutions to synchronize audio streams based on their frequencies (FFT).

https://github.com/allisonnicoledeal/VideoSync/blob/master/alignment_by_row_channels.py

If i have some more time i am willing to help developing

pinkman commented on 2019-08-19 16:35

I guess there is no simple way to achieve this, therefore i am happy with how it is working right now.

A manual delay might help only for one video so that is not a permanent solution and i (personally) won't adjust it every few minutes :D

marioom commented on 2019-08-19 16:17

Yeah I don't know what else to do to sync the videos. The web API works best for that if it's what you want, as long as you don't change the position (the API calls there are restricted to 1 per second). Also, most Youtube songs are longer than the Spotify songs because the music video has a starting scene or something like that.

Would a flag to add/substract milliseconds to the offset manually help?

pinkman commented on 2019-08-19 15:08

Thanks, it is working fine. The synchronization is a bit off but i saw the explanation about the missing position API call.

In case somebody might need it: adding googlevideo.com to the adblock whitelist works in OpenWRT.

marioom commented on 2019-08-18 23:53

Fixed on 1.8!

marioom commented on 2019-08-18 20:06

Hey @pinkman I'm glad you like the package :)

I've had trouble with python-dbus too. I just implemented a more modern dbus API (pydbus) instead and will update the repo soon.

I'll try to fix the install, thanks for the feedback.

pinkman commented on 2019-08-18 19:02

Nice package!

I had to install dbus-python via pip manually and I had to disable the adblocker in my openwrt router because VLC crashed when trying to receive something from a google-adserver. After that, the result was fine. Thank you very much :)