I had the same problem too.
I solved it by adding .avi or .mp4 to the "$VIDEOFILE" parameter..... "$VIDEOFILE.mp4"
I had the same problem too.
I solved it by adding .avi or .mp4 to the "$VIDEOFILE" parameter..... "$VIDEOFILE.mp4"