move avformat_write_header after first frame received
Merge branch 'master' of github.com:mltframework/mlt
Refactor handling MLT_PRESETS_PATH environment var.