Open jkaufman opened 1 month ago
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavy
in his free time. To support@mrousavy
, please consider 💖 sponsoring him on GitHub 💖. Sponsored issues will be prioritized.
What's happening?
Videos captured with React Native Vision Camera sometimes fail to thumbnail using
AVAssetImageGenerator
(via Expo Video Thumbnails). This appears to happen when there is no video frame at time zero. There may be no video frame at time zero when the audio and video streams require synchronization within a container that necessarily has a duration longer than either component stream. We can reproduce this situation by setting a frame rate range onCamera
of[15, 30]
and transitioning between well-lit and very poorly lit environments during recording.Below are details for a video that successfully thumbs and a video that does not.
Working Video (well-lit throughout)
Video info
ffprobe ./filepath
Stream info
ffprobe -v error -show_entries format=duration -show_entries stream=codec_type,duration -of default ./filepath
Non-working video (transitions between light and dark)
Video info
ffprobe ./filepath
Stream info
ffprobe -v error -show_entries format=duration -show_entries stream=codec_type,duration -of default ./filepath
Other info
Reproduceable Code
Relevant log output
Camera Device
Device
iPhone 14 Pro
VisionCamera Version
4.4.3
Can you reproduce this issue in the VisionCamera Example app?
No, I have not tried to reproduce this issue in the example app, yet.
Additional information