for i in *.mp4; do ffmpeg -i "$i" -q:a 0 -map a "$(basename "$i" .mp4)".mp3 ; done
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
Thursday, July 12, 2018
ffmpeg: Extract audio to mp3 from multiple mp4 video files
Sunday, July 08, 2018
Linux: Download audo only from twitch (including live stream)
Show available video formats:
Download only audio:
youtube-dl --list-formats twitch_url_to_video
Download only audio:
youtube-dl -f audio_only twitch_url_to_video
Labels:
Linux,
twitch,
youtube-dl
Wednesday, July 04, 2018
Manjaro: Remove steam and microsoft office
sudo pacman -Rd steam-devices steam-manjaro ms-office-online
Labels:
Manjaro
Thursday, June 07, 2018
Cmake: compile using clang instead of gcc
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
cmake ..
Thursday, May 31, 2018
ssh config
Example
From: https://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/
# contents of $HOME/.ssh/config
Host dev
HostName dev.example.com
Port 22000
User fooey
From: https://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/
Labels:
ssh
Tuesday, May 29, 2018
vncviewer: Increase compression levels and reduce bandwitch
vncviewer -QualityLevel=7 -FullColor=0 -LowColorLevel=2 -CompressLevel=3 :3
Monday, May 28, 2018
i3: add rofi key $mod+d
Edit .config/i3/config:
bindsym $mod+d exec "rofi -combi-modi window,drun -show combi"
Friday, May 18, 2018
Tuesday, May 15, 2018
Search for a string in txt file in all sub-directories
find dir/ -name *.txt -type f -exec grep -H 'string' {} +
Labels:
Linux
Subscribe to:
Posts (Atom)