i have too many websites but you may be particularly interested in:
downloads video and audio from youtube. see github.com/yt-dlp/yt-dlp for the readme.
# video download, default settings:
yt-dlp [url]
# audio only, best quality:
yt-dlp -x -f "bestaudio" --audio-format mp3 $@
plays back audio and video from terminal.
# hotkeys
#
# q quit
# p pause
# m mute
# [ ] decrease/increase playback speed
convert, edit, and process audio files.
# get info on file
soxi [file]
# audio info
sox [file] -n stat
# convert wav to mp3
sox [file.wav] [file.mp3]
# normalize to -0.1
sox [input-file] [output-file] norm -0.1
# convert to 48k sampling rate
sox [input-file] [output-file] rate 48k
# trim
sox [input-file] [output-file] trim [start-sec] [length-sec]
# combine files
sox -m [first-file] [second-file] [output-file]
# stereo file to two mono files
sox [input-file] [output-file-l] remix 1
sox [input-file] [output-file-r] remix 2
# two mono files to stereo
sox -M [input-file-l] [input-file-r] [output-file]
# half-speed
sox [input-file] [output-file] speed 0.5
convert, edit, and process video (and audio) files
# mp4 to webm
ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus output.webm
# compress video
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
# cut region video
ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4
# slow down audio
ffmpeg -i input.mp3 -af atempo=0.83 output.mp3
# encoder wav to mp3
ffmpeg -i input.wav -b:a 320k output.mp3
# encoder a folder of waves to mp3
for file in *.wav; do ffmpeg -i $file -ar 44100 -b:a 320k ${file%.*}.mp3; done
last edit: 02/29/2024