Author Topic: How To : Record effortlessly from terminal in VSIDO/Linux  (Read 2844 times)

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
How To : Record effortlessly from terminal in VSIDO/Linux
« 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:

Code: [Select]
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

Code: [Select]
rec -C 320 callthiswhatyouwant.mp3
My example is

Code: [Select]
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

Code: [Select]
pavucontrol
From the Record Tab and Dropdown area select what is your recording device:



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 gives you all the great details on the different parameters you can use for recording including using flac, ogg, different bit rates etc etc
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

hakerdefo

  • Posts: 467
    • View Profile
    • Looking at Linux through the Windows of Life
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #1 on: April 28, 2014, 05:36:28 PM »
Nice one! Thanks for sharing this VastOne!
Cheers!!!
You Can't Always Git What You Want

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #2 on: April 28, 2014, 05:37:15 PM »
^ Sure and thanks!
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #3 on: April 28, 2014, 06:14:22 PM »
Make sure you note the edit of me adding the quotes in my example of:

Code: [Select]
rec -C 320 "Pithos - Classic Rock Station II.mp3"
As you know, linux needs quotes for spaces in command structures
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

Digit

  • Techno Hippie
  • Posts: 295
  • savant (alegedly), polymath (wannabe)
    • View Profile
    • wastedartist.com
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #4 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:
Code: [Select]
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.  :)

Snap

  • Posts: 462
    • View Profile
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #5 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.

statmonkey

  • Posts: 330
    • View Profile
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #6 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.

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #7 on: December 23, 2014, 07:00:32 PM »
^ Glad we are all in agreement...

Linux RoX with SoX
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

Snap

  • Posts: 462
    • View Profile
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #8 on: December 23, 2014, 08:18:45 PM »
Quote
I 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.

zephyr

  • Posts: 112
  • Never lost, no matter where, you are there.
    • View Profile
    • https://sourceforge.net/projects/zephyrlinux/
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #9 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
VSIDO/ Star/ Zephyr/ Devuan

VastOne

  •      v-ger
  • Posts: 3784
    • View Profile
    • VSIDO Community
Re: How To : Record effortlessly from terminal in VSIDO/Linux
« Reply #10 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
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO