lv2_apply.py - write output file in chunks to keep memory usage down