Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.6.4] Post-processing large > 4GB MP4 files leads to corrupted file #137

Closed
bartosej opened this issue Oct 20, 2021 · 7 comments
Closed
Assignees
Labels
Bug 🐛 Something isn't working fixed The issue has been fixed and will be available in the next release windows
Milestone

Comments

@bartosej
Copy link

bartosej commented Oct 20, 2021

I need to capture screen of our built app. Short captures are OK but the longer ones result in a corrupted file.

  • Unity version: 2020.3.10f1
  • AVPro Movie Capture version: 4.6.4
  • Operating system version: Windows 10 Home - 20H2, 19042.1288
  • Capture component used: CaptureFromScreen
  • Capture settings (resolution, frame-rate, codec):
    - Realtime
    - StartTriggerMode.Manual
    - StopMode.None
    - OutputTarget.VideoFile
    - CaptureBase.DownScale.Original
    - FrameRate = 30
    - VideoCodec = H264

To Reproduce
I have ran our application, the capturing is started automatically after some event in the app. After cca 26 minutes the capturing was automatically stopped (also reaction on some event) and the application waited on FileWritingHandler.IsFileReady() before exit of the application. I am waiting on it like:
image

Logs
No error was thrown. AVPro logs from log file:

[AVProMovieCapture] Init version: 4.6.4 (plugin v4.6.4) with GPU NVIDIA GeForce GTX 1060 6GB Direct3D 11.0 [level 11.1] OS: Windows 10 (10.0.19042) 64bit
[AVProMovieCapture] Start File Capture: 1920x1080 @ 30,00fps [RGBA32] vcodec:'H264' to file: 'D:\test\Route_80206.mp4'
....
[AVProMovieCapture] Stopping capture 0
....
[AVProMovieCapture] File processing complete

Screenshots
246939945_423480255791011_8360557265427340247_n

The details tab is completely empty, no info about mp4 at all.

@kahnivore
Copy link

Hi @bartosej

  1. Have you tried with the latest version, 4.7.1?
  2. Are you handling the shorter captures in exactly the same way?
  3. The 'test' folder you're saving the video to, is that a folder outside of the Unity project?

@kahnivore kahnivore changed the title Corrupted file in case of longer recordings [4.6.4] Corrupted file in case of longer recordings Oct 20, 2021
@bartosej
Copy link
Author

bartosej commented Oct 21, 2021

Hi @kahnivore

  1. Have you tried with the latest version, 4.7.1?

I have updated the plugin to latest 4.7.1 -> unfortunately the result is still the same.
[AVProMovieCapture] Init version: 4.7.1 (plugin v4.7.1) with GPU NVIDIA GeForce GTX 1060 6GB Direct3D 11.0 [level 11.1] OS: Windows 10 (10.0.19042) 64bit
[AVProMovieCapture] Start File Capture: 1920x1080 @ 30,00fps [RGBA32] vcodec:'H264' to file: 'D:\test\Route_35850.mp4'

  1. Are you handling the shorter captures in exactly the same way?

Yes, I am attaching some screenshots of two files (Route_35850.mp4 is OK). The capturing (starting, exiting application included) executes in the same way.
image
image
image
image

  1. The 'test' folder you're saving the video to, is that a folder outside of the Unity project?

Yes, but I do not run the app from the editor. I run compiled and built app. It looks like the location of the target directory does not affect the result (in case of shorter recording is everything ok).

@AndrewRH
Copy link
Member

Are you building a 64-bit app? 32-bit might have problems with such large file sizes (over 4GB)

@bartosej
Copy link
Author

@AndrewRH Yes, we are building the app for windows as 64-bit.

@AndrewRH
Copy link
Member

AndrewRH commented Nov 1, 2021

Thanks. I wonder whether it's the post-operations that's trashing the file. Could you try turn off the 3 post-operation (fast-start, stereo, 360 layout)?

Thanks,

@bartosej
Copy link
Author

bartosej commented Nov 3, 2021

@AndrewRH

I have turned off all (three) post-operations and the video file is not broken anymore.

I'll send it to testers for more testing but it seems that one of these operations is corrupting the file.

@AndrewRH
Copy link
Member

AndrewRH commented Nov 3, 2021

thanks @bartosej that's a great lead! I will do some testing to try to reproduce the issue so we can fix it. If I'm not able to reproduce it I may ask you for your video file...

hopefully will have a solution soon.

@AndrewRH AndrewRH added the Bug 🐛 Something isn't working label Nov 3, 2021
@AndrewRH AndrewRH self-assigned this Nov 3, 2021
@AndrewRH AndrewRH added this to the Next Release milestone Nov 3, 2021
@AndrewRH AndrewRH changed the title [4.6.4] Corrupted file in case of longer recordings [4.6.4] Post-processing large > 4GB MP4 files leads to corrupted file Nov 3, 2021
@AndrewRH AndrewRH added the fixed The issue has been fixed and will be available in the next release label Dec 1, 2021
@AndrewRH AndrewRH modified the milestones: Next Release, 4.7.6 Dec 2, 2021
@AndrewRH AndrewRH closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working fixed The issue has been fixed and will be available in the next release windows
Projects
None yet
Development

No branches or pull requests

3 participants