refactored vlc and ffmpeg to retain source