Failed to open file (Permission denied)
I solved the problem, for some reason the name of the file I was using caused that error.
I used to get a date, convert it to a string and eliminate all spaces; something like this:
SunSep0914:31:19GMT+00:002018.3gp
Now, while debugging my app I changed it to test.3gp
and it works like a charm...