Ffprobe

added ffprobe for metadata extraction and many bug fixes.