Open ChristopherGabba opened 1 month ago
Guten Tag, Hans here.
It seems you are encountering a bug with onRecordingFinished
returning width and height of 0. Please ensure that the camera settings and permissions are correctly configured in your application. It would be helpful to provide more details about your setup or any specific steps that lead to this issue.
Additionally, if you wish for more in-depth support from ze mrousavy and ze team, consider supporting the project by sponsoring. This helps keep ze project active and allows for quicker responses on issues.
Danke schรถn!
Note: If you think I made a mistake by closing this issue, please ping
@mrousavy
to take a look.
@ChristopherGabba How can I reduce the size of a video that is 151 MB for a 1-minute recording? The bitRate setting does not seem to be working. https://github.com/mrousavy/react-native-vision-camera/issues/3113
I have provided my entire setup in the details above, not sure what else I could provide. I'm also following all the steps in the docs unless I missed something that I'm not seeing.
Maybe this is related a pre-defined video resolution in the camera format (useCameraFormat
). In that case shouldn't this return the predefined resolution?
I'm seeing the same after trying to upgrade from 4.3.2 -> latest.
Seems to be a bug introduced in 4.4.0, since that's where it starts to break for me, returning {width: 0, height: 0}.
Edit: Also appears to work on Android, just not iOS.
INFO {"format": {"autoFocusSystem": "phase-detection", "fieldOfView": 69.46971893310547, "maxFps": 60, "maxISO": 3264, "minFps": 1, "minISO": 34, "photoHeight": 2340, "photoWidth": 4160, "supportsDepthCapture": false, "supportsPhotoHdr": false, "supportsVideoHdr": false, "videoHeight": 540, "videoStabilizationModes": ["auto", "cinematic", "off", "standard", "cinematic-extended"], "videoWidth": 960}}
INFO {"videoFile": {"duration": 1.666647041, "height": 0, "path": "file:///private/var/mobile/Containers/Data/Application/30BA39A7-BF93-4BE7-B19C-2EDF73B610B7/tmp/0AA41CE1-CFD4-49D5-9016-8EB9101FDAD3.mov", "width": 0}}
@mrousavy Sorry, it said about to ping you if we think this is still an issue.
sorry the bot probably shouldn't have closed this.
thanks for letting me know, I'll try to find some time to look into this. sponsoring me will prioritize that ;)
thanks for letting me know, I'll try to find some time to look into this. sponsoring me will prioritize that ;)
Done -- Even though this issue is relatively low priority, doesn't affect me that much just wanted to show some appreciation!
Thanks so much Christopher! :) ๐ โค๏ธ
Hm, I'm browsing the diff but I really can't see anything that might've broken the naturalSize
getter, for me it's also always returning 0
now... Are you guys both sure that 4.3.2 worked fine?
Could this be an Xcode bug? lol.. I don't see how naturalSize
can suddenly be 0x0 https://github.com/mrousavy/react-native-vision-camera/blob/77e98178f84824a0b1c76785469413b64dc96046/package/ios/Core/Recording/Track.swift#L59-L61
Hm, I'm browsing the diff but I really can't see anything that might've broken the
naturalSize
getter, for me it's also always returning0
now... Are you guys both sure that 4.3.2 worked fine?
Yeah, you're totally correct. I'm not sure what I was seeing yesterday, but is indeed broken on 4.3.2 too.
I unfortunately bumped mine from 4.0.4 all the way to 4.5.1 in one big jump. I truthfully cannot confirm if the issue was there in 4.0.4 but I never remember seeing it until this new version. So I can't be of much help in the immediate until I revert versions and bump up until I find it.
Okay I'll take another look at the changelog, maybe something was missing in the video configuration options
Hey @ChristopherGabba sorry this is going to take a bit longer than usually because I'm in the middle of finishing Nitro Modules, and then I'm going to leave for a 5 day vacation. It's on my TODO list, promised!
@mrousavy nitro on brother, no worries! Enjoy your vacation
Can confirm this is happening on Android as well (Pixel 5 emulator)
What's happening?
No matter which camera I use (front or back) on my iPhone 12 physical device, I'm getting the width and height of 0.
Reproduceable Code
Relevant log output
Camera Device
Device
iPhone 12 Physical
VisionCamera Version
4.5.1
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information