changed to ffmpeg and put better file handling for all types, also fixed(maybe) lag issue