Video stopped recording after ~31 minutes I attempted to record a long video with my Nexus 5, only to discover that the video stopped capturing partway through.  I searched for a possible explanation, but nothing I found seems to match this particular case:


It doesn't appear to be a file size limitation, because the recording stopped at 3891MB (4,081,007,519 bytes), a ways off from 4GB.1
It doesn't appear to be a storage capacity limitation, as I had ~10 GB of free storage before the recording began
It doesn't appear to be a time-based limitation, as the recording stopped at 31:50, not a "rounded" number like 30:00 or 60:00
It doesn't appear to be a battery limitation, as I had ~47% battery after the recording had finished
I am not inclined to suspect a heat limitation, as I don't remember the phone feeling particularly warm when I picked it up -- although that wasn't until a couple minutes later


1 Additionally, the Nexus 5 stores to internal memory rather than an SD card, and I understand that the filesystem is ext4, which supports files well over 4GB

For what other reason would video stop recording?  And how could I prevent this issue from occurring in the future?

This question and this question suggest installing a separate camera app; that will be the next thing I try. However, both of those questions solve a slightly different problem and do not offer an explanation as to why my video stopped recording.

For more information:  I am running OS version 4.4.3 and I am using the default camera app.  When I returned to the phone, the screen was still on, the app was still running, and I was able to record more video.  The video saved properly and does not appear to be corrupt. I am fairly certain that the screen was not touched during the recording process.  I was recording in 1080p from the back-facing camera.
This issue of video stopping at the size ~3.80GB seems to be file size restriction embedded in the camera app, irrespective of the filesystem your SD card has, or the space left in it. (Note that some camera apps also has a default limitation of 1-hour video duration, however, it is not related to the relevant issue here.)

My default camera app in OnePlus One device  gives me a toast "File size limit reached" when this file limit is reached by the camera recording 4k video for duration 8:20. Depending upon the resolution of your video the duration will vary. 

It is also to be noted that the industry wide standard of 1GB is 1000MB compared to 1024MB of computer science, and so, (4000x1000x1000) / (1024x1024) = ~3815MB or ~3.8GB &rarr; where the video seems to stop finally.