Record Only audio from Webcam logitech


Record From webcam’s mic

note some webcams could require -ac 2
note hw:1,0 it’s a parameter that could change to get it … just run this

 cat /proc/asound/pcm 

i get

 00-00: ALC861-VD Analog : ALC861-VD Analog : playback 1 : capture 1
00-06: Si3054 Modem : Si3054 Modem : playback 1 : capture 1
01-00: USB Audio : USB Audio : capture 1

so i need to use -i hw:1,0

the base command it’s this

ffmpeg -f alsa -ac 1 -ar 48000 -i hw:1,0 -acodec pcm_s16le -vn audio_recording.wav 

for mp3 , remember that if you get an error it’s because ffmpeg has not mp3 support … you need to compile it or just install some special packages from repos …

ffmpeg -f alsa -ac 1 -ar 48000 -i hw:1,0   -vn audio_recording.mp3

google translate in your shell golgu-translate !


some time i use google services to translate my own sentences … just to check if i have written well and maybe the pronunciation

so because of i use often terminal i decided to create my own tool to this job

and voila’

http://cli-apps.org/content/show.php?content=158355

adjustable clock javascripting


after some time :D … adjustable clock got the javascript support.I got a chat with Michal D and he was very open to ideas for aclock anyway this is the first test :D

Open destkop console

qdbus org.kde.plasma-desktop /MainApplication showInteractiveConsole

copy and paste this code in the destkop console :
example :

 
 var panel = new(Panel)
var clock =  panel.addWidget("adjustableclock") 
clock.writeConfig("clipboardExpressions","Clock.toString(Clock.Time\\, {'short': true}),Clock.toString(Clock.Time),,Clock.toString(Clock.Date\\, {'short': true}),Clock.toString(Clock.Date),,Clock.toString(Clock.DateTime\\, {'short': true}),Clock.toString(Clock.DateTime),Clock.toString(Clock.Year) + '-' + Clock.toString(Clock.Month) + '-' + Clock.toString(Clock.DayOfMonth) + ' ' + Clock.toString(Clock.Hour) + ':' + Clock.toString(Clock.Minute) + ':' + Clock.toString(Clock.Second),,Clock.toString(Clock.Timestamp)")
clock.writeConfig("theme","dbclock")
Follow

Get every new post delivered to your Inbox.