Baseflow / Baseflow/XamarinMediaManager

getFrameAtTime: videoFrame is a NULL Pointer

Open
#848 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

I'm using in forms with

```
var mediaItem = await CrossMediaManager.Current.Extractor.CreateMediaItem(inURL);
var image = await CrossMediaManager.Current.Extractor.GetVideoFrame(mediaItem, TimeSpan.FromSeconds(0));

```
and getting in the Device log
```
Time Device Name Type PID Tag Message
02-09 17:17:45.848 pixel_5_-_api_30 Error 4044 MediaMetadataRetrieverJNI getFrameAtTime: videoFrame is a NULL pointer
02-09 17:17:45.848 pixel_5_-_api_30 Error 437 MetadataRetrieverClient failed to capture a video frame

```
and image comes back null. Some videos work and I get an image, and some I get this null. IN all cases the videos actually play, it just doesn't get a frame. I've tried different timespans, and not sure what else to do.

Any help appreciated! Thanks for this tool!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue through Extractor.CreateMediaItem and Extractor.GetVideoFrame on the Android Pixel 5/API 30 setup described. Compare videos that return a frame with those that produce the MediaMetadataRetrieverJNI and MetadataRetrieverClient errors. Done means the affected videos return a usable frame, or the limitation and supported inputs are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
audio-video-rtc, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.