some reformatting to match the code to what i'm used to from java
recording of streams with vlc implemented