Recording and playing is now working with libav 0.8.x/9 series and FFMPEG 0.10-1.2 series. Little bit cleaning up also so there is not so much noise when playing