I am working on live device to server streaming in android. I am able to send data in bytes on server but when i play that file during recording on server VLC
In my case ffmpeg wouldn't even let me recreate the container using:
ffmpeg -i video.mp4 -c copy out.mp4
It failed with the same corrupted STCO atom error.
I was able to fix this problem by opening up the video file in avidemux and re-exporting the video without encoding.
Then ffmpeg could read this file without problems.