react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

🐛 Video output

Open powerpivar opened this issue 2 years ago • 2 comments

What were you trying to do?

I wanted to record a video on Android with video format 640x480 but the video output did not corespondent to camera view input, with video format 1280x720 works fine.

For IOS works fine in both resolutions.

Reproduceable Code

const format = useMemo(() => {
    if (device) {
      return device.formats.find((item) => item.videoWidth === 640 && item.videoHeight === 480);
    }
    return null;
  }, [device]);

What happened instead?

Instead of getting the same video output as input, the recorded video is smaller than the camera view input.

Relevant log output

No response

Device

Xiaomi Mi 8 Lite

VisionCamera Version

2.13.2

Additional information

powerpivar avatar Apr 27 '22 14:04 powerpivar

Hi @mrousavy, any update here?

powerpivar avatar May 12 '22 12:05 powerpivar

I am also looking for the this solution. Any updated ?

pradeep61993 avatar Jun 14 '22 18:06 pradeep61993

Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.

I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?

Here's an instruction on how you can test that: https://github.com/mrousavy/react-native-vision-camera/pull/1674#issuecomment-1684104217

If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉 Otherwise please let me know and I'll keep this issue open to keep track of it.

Thank you!

mrousavy avatar Aug 18 '23 16:08 mrousavy