ANR (Application Not Responding) when loading large videos with pro_video_editor #603
Unanswered
viniciusddrft
asked this question in
Q&A
Replies: 1 comment
-
|
The pro_video_editor package only handles the 'rendering' and 'thumbnail extraction' processes. To display the video itself, however, it uses the video-player package. The UI is from the pro_image_editor package, which is built around the video player, but this should not affect it. What you can try to do now to find the problem is:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm experiencing an issue when using the pro_video_editor package with large video files in my Flutter app.
When I try to load large videos (e.g. over 100MB or Full HD resolution), the app freezes and eventually triggers an ANR (Application Not Responding), especially during the initial loading of the video in the editor.
Environment details:
Flutter: 3.32.7
Dart: 3.8.1
Packages:
pro_video_editor: ^0.2.2
pro_image_editor: ^10.5.4
Device: POCO F4 (Android)
Video size/resolution: approx. 100MB, .mp4, 1920x1080, 60fps
Additional notes:
I compress the video using FFmpeg before opening it in the editor, which reduces the file size and bitrate significantly.
However, the ANR still happens when opening the video, even after compression.
The freeze seems to occur during frame extraction or the initial timeline processing.
Relevant code
Here’s the part of the code responsible for rendering the video after editing:
Question:
Is there any recommended approach for handling large videos with this package?
Is it possible to load the video progressively or off the main thread to avoid UI blocking?
Would it be possible to control the preview/timeline quality to reduce the risk of ANRs?
Thanks in advance for any guidance. I'm happy to provide logs or run tests if needed.
Beta Was this translation helpful? Give feedback.
All reactions