Thanks a lot for the help guys! The problem is now solved and it's working perfectly. Funny enough I was using a FFMPEG build from 2 days ago! Maybe it was erroneously compiled?