Status Update
Comments
wu...@google.com <wu...@google.com>
le...@google.com <le...@google.com> #2
le...@google.com <le...@google.com>
ap...@google.com <ap...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
ap...@google.com <ap...@google.com> #4
Branch: androidx-main
commit 731951d4fd675c17c84465af92557247e4109777
Author: leo huang <leohuang@google.com>
Date: Wed Sep 04 18:50:57 2024
Catch storage full exceptions and trigger insufficient storage error while video recording
Relnote: "Fixed the VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE event is not triggered when recording a video and there is insufficient storage space available."
Bug: 356399842
Test: manully testing
Change-Id: Ia5b4f435e387b690fa4e7bb13e747d636a2d72b0
M camera/camera-video/src/main/java/androidx/camera/video/Recorder.java
M camera/camera-video/src/main/java/androidx/camera/video/internal/utils/StorageUtil.kt
le...@google.com <le...@google.com> #5
The solution will be included in 1.5.0-alpha02
le...@google.com <le...@google.com>
le...@google.com <le...@google.com> #6
1.5.0-alpha02
is on the way. We will postpone this fix on 1.5.0-alpha03
.
ap...@google.com <ap...@google.com> #7
Project: platform/frameworks/support
Branch: androidx-main
Author: leo huang <
Link:
Add insufficient storage error trigger for video recording
Expand for full commit details
Add insufficient storage error trigger for video recording
- A new setting has been added to specify the required free storage, defaulting to 50 MB. When available storage falls below this value, an "insufficient storage" error will be triggered.
- For efficiency and simplicity, storage size will not be periodically polled during recording. We assume storage is only consumed by the recording itself, and it will only refresh the available storage size once the recorded data exceeds the required free storage threshold.
- See go/camerax_videocapture_insufficient_storage
Bug: 356399842
Test: RecorderTest
Change-Id: Ib5bf3a44353acf264d6e68b5574191ef72dbd8e4
Files:
- M
camera/camera-video/src/androidTest/java/androidx/camera/video/RecorderTest.kt
- M
camera/camera-video/src/main/java/androidx/camera/video/Recorder.java
- A
camera/camera-video/src/main/java/androidx/camera/video/internal/OutputStorage.kt
- A
camera/camera-video/src/main/java/androidx/camera/video/internal/OutputStorageImpl.kt
- A
camera/camera-video/src/main/java/androidx/camera/video/internal/utils/StorageUtil.kt
Hash: 5253ac2e2ec412d8ca3edcb813717dc73960134b
Date: Fri Aug 30 14:28:18 2024
ap...@google.com <ap...@google.com> #8
Project: platform/frameworks/support
Branch: androidx-main
Author: leo huang <
Link:
Catch storage full exceptions and trigger insufficient storage error while video recording
Expand for full commit details
Catch storage full exceptions and trigger insufficient storage error while video recording
See go/camerax_videocapture_insufficient_storage
Relnote: "Fixed the VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE event is not triggered when recording a video and there is insufficient storage space available."
Bug: 356399842
Test: manully testing
Change-Id: I35779fd7edbbeaff77cdf917eea1b377dc3e2151
Files:
- M
camera/camera-video/src/main/java/androidx/camera/video/Recorder.java
- M
camera/camera-video/src/main/java/androidx/camera/video/internal/utils/StorageUtil.kt
Hash: 55bf8082aa50ebc33ff676801b9bd153ff6b638e
Date: Wed Sep 04 18:50:57 2024
le...@google.com <le...@google.com>
pr...@google.com <pr...@google.com> #9
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.camera:camera-video:1.5.0-alpha03
Description
But according to the androidx.camera.video.Recorder code, the VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE event is never called. In real use, I receive VideoRecordEvent.Finalize.ERROR_INVALID_OUTPUT_OPTIONS in VideoRecordEvent with the error java.io.FileNotFoundException: /data/user/0/**/file_name.mp4: open failed: ENOSPC (No space left on device).
Also, if the space runs out during recording, then VideoRecordEvent stops receiving any events, including VideoRecordEvent.Status