#!/bin/sh
#] 
#] *********************
#] $ bash  "$d_bin""audio capture.sh"
# www.BillHowell.ca   16Oct2017 initial - copied from Leovo /media/bill/ATA_WDC_500G/Video production/audio capture/0_audio capture.sh
# use a stereo cable for soundboard jacks

# Pulse Audio setup and hdwr listings :
# EMU20k2 [X-Fi Titanium Series]  -> "Creative X-Fi" in alsamixer F6 sound card list
# line out - 2nd from left, line in - 1st left (green furtherest)

# Can't use for recording? : GFU High definition audio controller -> "HDA Nvidia" in alsamixer F6 sound card list (I'm not sure if this is correct)


# DVD Album "David Bowie - A reality tour"  2003 Dublin Ireland concert, 2004 ISO records made under license to Sony BMG Music Entertainment
#d_music_Bowie="/home/bill/Music/Bowie, David/"
#arecord -t wav -r 19200 "$d_music_Bowie""A reality tour.wav"
#arecord -t wav -r 19200 "$d_music_Bowie""At the end of your knife.wav"
#arecord  -f cd  -t wav -r 19200 "$d_music_Bowie""As the world falls down.wav"


# "Michael Jackson Number Ones"  2003 MJJ Productions, copyrights for tracks from 1987-2003,  Distributed by Sony Music Canada
#d_music_Jackson="/home/bill/Music/Jackson, Michael/"
#arecord -t wav -r 19200 "$d_music_Jackson""Michael Jackson Number Ones.wav"
#arecord -f cd -t wav -r 19200 "$d_music_Jackson""Michael Jackson Thriller.wav"


# Elton John - Greatest Hits 
#d_music_John="/home/bill/Music/John, Elton/"
#arecord -f cd -t wav -r 19200 "$d_music_John""Elton John Greatest Hits.wav"

# Cold Play - Viva LaVida
#d_music_ColdPlay="/home/bill/Music/Cold Play/"
#arecord -f cd -t wav -r 19200 "$d_music_ColdPlay""Cold Play - Viva LaVida.wav"

# Abba Greatest Hits
#d_music_Abba="/home/bill/My Music/Abba/"
#arecord -f cd -t wav -r 19200 "$d_music_Abba""Abba - Greatest hits.wav"

# van Morrison Greatest Hits
#d_music_vanMorrison="/home/bill/My Music/van Morrison/"
#arecord -f cd -t wav -r 19200 "$d_music_vanMorrison""vanMorrison - Greatest hits.wav"


# 21Nov2019 
# d_inn="/media/bill/HOWELL_BASE/My Music/Other musicians/"
# d_out="/media/bill/HOWELL_BASE/My Music mp3/Other musicians/"
# f_bas="Strange Advance - We run 3m55s"
# avconv -i  "$d_inn$f_bas.wav"  "$d_out""$f_bas.mp3"  


# 21Nov2019 capture ESA's Earth’s magnetic song during calm space weather conditions
#http://www.esa.int/Science_Exploration/Space_Science/Earth_s_magnetic_song_recorded_for_the_first_time_during_a_solar_storm
#d_inn="$d_web"'oops"
#d_out="$d_web"'oops"
#f_bas="231023 FECC webinar"
#arecord -f cd -t wav -r 19200 "$d_inn$f_bas"'.wav'
#cut from 00:00:14 to 00:00:28
#avconv -i  "$d_inn$f_bas.wav"  -ss 00:00:14  -t  00:00:14  "$d_out""$f_bas.mp3"  


# 23Oct2023 FECC webinar
#https://canadiannuclearsociety.webex.com/wbxmjs/joinservice/sites/canadiannuclearsociety/meeting/download/54090e897dfa4367979d8d59bb5b3b80?siteurl=canadiannuclearsociety&MTID=macc6a90c9e944e2aa2da9d5f021a4068&fromPanelistJoin=true
d_inn="$d_web"'My sports & clubs/natural- FECC Fusion/'
d_out="$d_web"'My sports & clubs/natural- FECC Fusion/'
#f_bas="231023 FECC webinar"
#f_bas="231023 FECC webinar2"
#f_bas="231023 FECC webinar3"
#f_bas="231023 FECC webinar4"
#f_bas="231023 FECC webinar5"
#f_bas="231023 FECC webinar6"
#f_bas="231023 FECC webinar7"
#f_bas="231023 FECC webinar8"
f_bas="231023 FECC webinar9"
arecord -f cd -t wav -r 19200 "$d_inn$f_bas"'.wav'
#cut from 00:00:14 to 00:00:28
#avconv -i  "$d_inn$f_bas.wav"  -ss 00:00:14  -t  00:00:14  "$d_out""$f_bas.mp3"  




# to run   $ bash "$d_bin"'audio capture.sh'
# Ctrl-C to terminate




# enddoc
