VSIDO Community

VSIDO Support => Scripts and How To's => How To's => Topic started by: VastOne on April 27, 2014, 11:59:54 PM

Title: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: VastOne on April 27, 2014, 11:59:54 PM
This How To is simple but incredibly valuable to me when I want to record from VSIDO/Linux.  I constantly record from Pithos/Pandora and put it on my Nexus for later play whilst practicing my love of golf. (Practice is fun but epically BORING)

Step One:

sudo apt-get install sox libsox-fmt-all

Step Two: Start Any music playing app or online stream such as Pithos/Pandora

Step Three: in terminal run

rec -C 320 callthiswhatyouwant.mp3

My example is

rec -C 320 "Pithos - Classic Rock Station II.mp3"

- this way I can already have it named for my music file structure

Step Four: Enter Pulse Audio Volume Control from any way you want ... from terminal it is

pavucontrol

From the Record Tab and Dropdown area select what is your recording device:

(http://www.zimagez.com/miniature/screenshot-04272014-064637pm.php) (http://www.zimagez.com/zimage/screenshot-04272014-064637pm.php)

This is what I have on mine, once you have something recording you can see what is there and available

Step Five:  Record from terminal for as long as you want ... I have recorded as much as 12 hours at a time with no issues... at 320 bitrate quality that is quite the file size (over a gig, but well worth it)

Step Six:  Open any Tag program you like (EasyTag or Puddletag) and tag your file.  Then add it to your device or music library and ...

Profit!

This sox manpage (http://linux.die.net/man/1/sox) gives you all the great details on the different parameters you can use for recording including using flac, ogg, different bit rates etc etc
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: hakerdefo on April 28, 2014, 05:36:28 PM
Nice one! Thanks for sharing this VastOne!
Cheers!!!
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: VastOne on April 28, 2014, 05:37:15 PM
^ Sure and thanks!
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: VastOne on April 28, 2014, 06:14:22 PM
Make sure you note the edit of me adding the quotes in my example of:

rec -C 320 "Pithos - Classic Rock Station II.mp3"

As you know, linux needs quotes for spaces in command structures
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: Digit on December 22, 2014, 08:42:38 PM
awesome.  sox thread.

i'm a long time user of sox.

99% of the time, i just use it merely as:rec file.flac~ no options, and i just hit ctrl-c when i am done recording.... making sure to let it carry on recording for a good few seconds more if it's been a very long recording, or it tends to chop off the end.

sox's manpage reveals more of its many uses, and i tend to think of it almost like it's imagemagick for audio, but i love it best for being able to quickly jot down something i need in audio, really quick.   ... hrmmm, i suppose i could script n keybind it so that i dont even need to type "rec andwhatevernameihavetothinkupfirstbeforeihitrecord.flac", n get to rename it after the fact.  :)
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: Snap on December 23, 2014, 12:02:37 PM
Thanks for bumping this up. SoX is always one of those things I always want to try and always forget about... Nice timing to try a crap christmas recording noob attempt.
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: statmonkey on December 23, 2014, 04:23:32 PM
Great stuff.  Completely forgot about sox.  I was actually looking for something else when I came across this and a better solution than mine (of course).  I had a bunch of sox scripts and like everything else ... no idea what I did with them.

Happy H'days everyone.
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: VastOne on December 23, 2014, 07:00:32 PM
^ Glad we are all in agreement...

Linux RoX with SoX
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: Snap on December 23, 2014, 08:18:45 PM
QuoteI had a bunch of sox scripts and like everything else ... no idea what I did with them.

Why this happens with scripts all the time?

If you happen to find them, please, share. We'll lose them all again for you.  :D  But maybe in the meantime we can make a good use of them.
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: zephyr on December 31, 2015, 07:44:33 AM
Decided to give this a shot, works as advertised. Simple set up and user friendly. Thanks - Z
Title: Re: How To : Record effortlessly from terminal in VSIDO/Linux
Post by: VastOne on December 31, 2015, 01:49:46 PM
Thanks Z

I continue to use this at least once a week to record my Pithos mix for running riding or working out