Fixed
Status Update
Comments
er...@google.com <er...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
ic...@gmail.com <ic...@gmail.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
er...@google.com <er...@google.com>
ch...@google.com <ch...@google.com>
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 42f8e2cb8d62518f22be5ee87297ce5c54169034
Author: charcoalchen <charcoalchen@google.com>
Date: Sun Apr 12 18:06:25 2020
Set CameraView's VideoCapture aspect ratio as 16:9
Relnote: "Fixed the VideoCapture's default aspect ratio to be 16:9 in CameraView."
Bug: b/153237864
Test: ./gradlew bOS & maunal test
Change-Id: Ie6a7bf344e6e08b25e47109557288b07187b3f7a
M camera/camera-view/src/main/java/androidx/camera/view/CameraXModule.java
https://android-review.googlesource.com/1285093
Branch: androidx-master-dev
commit 42f8e2cb8d62518f22be5ee87297ce5c54169034
Author: charcoalchen <charcoalchen@google.com>
Date: Sun Apr 12 18:06:25 2020
Set CameraView's VideoCapture aspect ratio as 16:9
Relnote: "Fixed the VideoCapture's default aspect ratio to be 16:9 in CameraView."
Bug:
Test: ./gradlew bOS & maunal test
Change-Id: Ie6a7bf344e6e08b25e47109557288b07187b3f7a
M camera/camera-view/src/main/java/androidx/camera/view/CameraXModule.java
ch...@google.com <ch...@google.com> #5
VideoCapture in CameraView's default aspect ratio has been updated as 16:9.
This fix should be included in CameraX's next release.
This fix should be included in CameraX's next release.
Description
ANDROID OS BUILD NUMBER: QQ2A.200305.002
DEVICE NAME: Pixel 3a
DESCRIPTION:
1) I use CameraView from CameraX library, for recording video. Earlier I used old library version 1.0.0-alpha08 and default resolution(1920 х 1080) suited me, but that version had some issues. For now I'm using 1.0.0-beta02, I get very strange resolution (1600 x 1200 - Pixel 3a 1400x1200 - Huawei p20 lite).
2) And I can't find any settings of video recording process for CameraView. How can i set, resolution, bitrate, framerate, or just HIGHT, LOW, MEDIUM preset?
STEPS TO REPRODUCE:
1. Set CameraView in layout.
2. Call startRecording() fun.
3. Check saved file, it will has resolution 1600x1200
OBSERVED RESULTS: strange resolution 1600x1200
EXPECTED RESULTS: minimum, as earlier 1920x1080, it is desirable that I myself can set the quality
REPRODUCIBILITY: 5 of 5
ADDITIONAL INFORMATION: Log about format
D/CCodecConfig: c2 config diff is Dict {
c2::u32 algo.bitrate-mode.value = 3
c2::i32 algo.priority.value = -1
c2::u32 algo.quality.value = 50
c2::float algo.rate.value = 4.2039e-44
c2::u32 coded.bitrate.value = 20000000
c2::float coded.frame-rate.value = 30
c2::u32 coded.pl.level = 20480
c2::u32 coded.pl.profile = 20480
c2::u32 coded.vui.color.matrix = 0
c2::u32 coded.vui.color.primaries = 0
c2::u32 coded.vui.color.range = 0
c2::u32 coded.vui.color.transfer = 0
c2::i32 coding.gop.intra-period = 1
c2::u32 coding.request-sync-frame.value = 0
Buffer coding.temporal-layering = {
00000000: 10 00 00 00 07 20 01 52 01 00 00 00 00 00 00 00 ..... .R........
}
c2::u32 default.color.matrix = 0
c2::u32 default.color.primaries = 0
c2::u32 default.color.range = 0
c2::u32 default.color.transfer = 0
c2::u32 input.delay.value = 8
string input.media-type.value = "video/raw"
c2::u32 output.buffers.prepend-header.value = 2
c2::u32 output.delay.value = 8
string output.media-type.value = "
D/CCodecConfig: no c2 equivalents for encoder
D/CCodecConfig: c2 config diff is c2::u32 coded.bitrate.value = 8388608
c2::i32 coding.gop.intra-period = 30
c2::u32 raw.pixel-format.value = 34
c2::u32 raw.size.height = 1200
c2::u32 raw.size.width = 1600
D/CCodec: setup formats input: AMessage(what = 0x00000000) = {
Rect crop(0, 0, 1599, 1199)
int32_t color-standard = 0
int32_t color-range = 0
int32_t color-transfer = 0
int32_t frame-rate = 30
int32_t height = 1200
int32_t i-frame-period = 30
string mime = "video/raw"
int32_t prepend-sps-pps-to-idr-frames = 1
int32_t priority = 1
int32_t width = 1600
int32_t android._dataspace = 0
int32_t android._color-format = 2130708361
int32_t color-format = 2130708361
} and output: AMessage(what = 0x00000000) = {
int32_t bitrate = 8388608
int32_t bitrate-mode = 1
Rect crop(0, 0, 1599, 1199)
int32_t width = 1600
int32_t color-standard = 0
int32_t color-range = 0
int32_t color-transfer = 0
int32_t frame-rate = 30
int32_t height = 1200
int32_t i-frame-period = 30
int32_t level = 1
int32_t max-bitrate = 8388608
string mime = "video/avc"
int32_t prepend-sps-pps-to-idr-frames = 1
int32_t priority = 1
int32_t profile = 1
}
D/CCodec: input format changed to AMessage(what = 0x00000000) = {
Rect crop(0, 0, 1599, 1199)
int32_t color-standard = 1
int32_t color-range = 2
int32_t color-transfer = 3
int32_t frame-rate = 30
int32_t height = 1200
int32_t i-frame-period = 30
string mime = "video/raw"
int32_t prepend-sps-pps-to-idr-frames = 1
int32_t priority = 1
int32_t width = 1600
int32_t android._dataspace = 260
int32_t android._color-format = 2130708361
int32_t color-format = 2130708361
}