Files
streamshifter/audio/editing-notes
2018-11-16 09:23:54 -08:00

12 lines
440 B
Plaintext

make low-bitrate preview for finding cutpoints:
ffmpeg -i src.m4a -acodec libvo_aacenc -ac 1 -ab 8k tmp.m4a
convert to Matroska for faster editing:
mkvmerge -o tmp.mka --split "timecodes:0:12:34,1:23:45,..." src.m4a
merge cuts (we want the even-numbered files):
mkvmerge -o tmp.mka `ls tmp-*[02468].mka | sed "s/^/+/;s/+\(.*\)-002.mka/\1-002.mka/"`
put back into .m4a:
mkvextract tracks tmp.mka 1:tmp.aac && MP4Box -add tmp.aac dest.m4a