various changes to add analogue capture card support (not) finished