ffmpeg¶
get file metadata¶
write metadata to a file:
downsample mp3¶
hopefully make it somewhat smaller
using variable bitrate (vbr):
here's a table of the different VBR levels.
cut video¶
just take the first 28 seconds, beginning at 0:
merge / concat mp3 files¶
concatenate multiple audio files into one big one.
if you want to do this for a bunch of files in a folder
echo -n "ffmpeg -i \"concat:"; for i in *.mp3;do printf "%s${i}|";done;echo -n "\" -acodec copy output.mp3"
this will just spit out the ffmpeg command, for double checking, you know.
extract audio from video¶
video information¶
just get the bitrate (in kbps):
ffprobe -v error -select_streams v:0 -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 your-video.mp4
compress video¶
to 1.5mbps