Closed 54way closed 1 year ago
Hey @54way, the "can't find moov or mdat chunks" will just be a side-effect of the capture failing elsewhere (it's output by the post-process script). Could you provide a full log for a capture that has failed to help identify what is going wrong?
can't find moov or mdat chunks
UnityEngine.Debug:LogError (object)
RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:Process (System.IO.Stream,System.IO.Stream) (at Assets/Plugins/RenderHeads/AVProMovieCapture/Runtime/Scripts/Internal/Mp4FileProcessing.cs:243)
RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile (string,string,RenderHeads.Media.AVProMovieCapture.MP4FileProcessing/Options) (at Assets/Plugins/RenderHeads/AVProMovieCapture/Runtime/Scripts/Internal/Mp4FileProcessing.cs:218)
RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile (string,bool,RenderHeads.Media.AVProMovieCapture.MP4FileProcessing/Options) (at Assets/Plugins/RenderHeads/AVProMovieCapture/Runtime/Scripts/Internal/Mp4FileProcessing.cs:185)
RenderHeads.Media.AVProMovieCapture.MP4FileProcessing/<>c__DisplayClass32_0:
I got this error when I had Use Wait For End Of Frame unchecked
Thanks @woodrowproctor,
@54way, does that help you?
We've also discovered an issue with the auto-filename generation - we're looking into a fix but the above error can be reproduced if we hammer creation of new videos within a second of eachother (you might be able to bypass with custom names/subfolders if so).
Cheers,
The auto-filename generation issue has been fixed and will make it into the next release. This should hopefully resolve the crash you are seeing.
Version 5.0.2 has just been released and includes a fix for this issue.
Describe the bug
We have a surveillance system with 7 cameras in a game. When something occurs, the surveillance starts recording footage for that event. It's okay at first, but after 2 to 3 hours running, we start to get footages with size 0. And the log file appears "can't find moov or mdat chunks". When the error occurs, it can't recording any normal footage anymore, even if we use capture's inspector to menually press a "Start Capture" button in editor mode. In addition, after pressing "Start Capture", the preview on inspector doesn't present either.
Your Setup (please complete the following information):
three 300x 720
frame-rate: 30 codec: H264
To Reproduce Steps to reproduce the behavior:
Logs can't find moov or mdat chunks