ffmpeg¶
compress video¶
using a quick preset:
to 1.5mbps
convert video from to, e.G.: .flv to .mp4¶
ffmpeg -i input.flv -c copy output.mp4
for i in *.flv; do ffmpeg -i "$i" -c copy "${i%.flv}.mp4"; done
it might be required to encode the audio separately:
ffmpeg -i input.flv -c:v copy -c:a aac output.mp4
for i in *.flv; do ffmpeg -i "$i" -c:v copy -c:a aac "${i%.flv}.mp4"; done
cut video¶
just take the first 28 seconds, beginning at 0:
downsample mp3¶
hopefully make it somewhat smaller
using variable bitrate (vbr):
here's a table of the different VBR levels.
extract audio from video¶
generate gif from video¶
endless loop:
get file metadata¶
write metadata to a file:
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.
video information¶
just get the bitrate (in kbps):