grab music HQ from spotify using vlc jack and pulseaudio

in this article i was just testing jack pulse vlc and spotify together to test how audio stream can be re-indirect  using these tools. so this is only a test , and illegal stuff it’s on your shoulder. i have tested this for fun.


sudo apt-get install pulseaudio-module-jack qjackctl

after that you need to restart pulseaudio

sudo service pulseaudio restart

if you have not service then just do this …

pkill -9 pulseaudio && pulseaudio &

ok now you have what you need to run jack flash pulseaudio together.




you should see something like this, click to CONNECT TO SEE THE SECOND WINDOW, if there are no connections then do by yourself … spotifygrabaudiohq make sure like you can see in this picture that spotify has set to jack sink in the audio , like you can see i use veromix instead of the classical kmixer … in this test i have tried mp3 codec with 128kbit like bitrate if you want better stuff just try other codecs and bitrate

cd /tmp ; cvlc  pulse://jack_in --sout "#transcode{acodec=mp3,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp3,dst=nowardev.mp3}}}"

in this example i used flac instead of mp3

cd /tmp ; cvlc  pulse://jack_in --sout "#transcode{acodec=flac,quality=100,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=flac,dst=nowardev.flac}}}"

you can even put this function in your $HOME/.bashrc in this way :

cvlc  pulse://jack_in --sout "#transcode{acodec=mp3,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp3,dst=nowardev.mp3}}}"

cd /tmp ; cvlc --jack-input-auto-connect screen:// --screen-fps=25 --input-slave pulse://jack_in --sout "#transcode{venc=x264,quality:100,scale=1,fps=30,acodec=mp3,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp4,dst=nowardev.mp4}}}"


after that , to load these function in your current session

source $HOME/.bashrc 

so now just type jack_grab_a and you will get the audio recorded where you prefer and into your quality ….


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: