chewie icon indicating copy to clipboard operation
chewie copied to clipboard

This error occurs in Flutter when using the video_player (chewie) package, and it’s related to ExoPlayer's failure to render the video due to a codec or hardware decoding issue

Open ChiragGajjar opened this issue 7 months ago • 4 comments

❌ Video initialization failed: PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [640, 480, 29.970055, ColorInfo(BT601, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES, null, null)

ChiragGajjar avatar May 05 '25 07:05 ChiragGajjar

+1

Shivam-dev925 avatar May 11 '25 11:05 Shivam-dev925

❌ Video initialization failed: PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [640, 480, 29.970055, ColorInfo(BT601, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES, null, null)

+1

andes2912 avatar May 22 '25 16:05 andes2912

+1

AbbasAsadi avatar May 26 '25 08:05 AbbasAsadi

Any news for this issue ?

andes2912 avatar May 30 '25 14:05 andes2912

@ChiragGajjar as stated in the README, this library merely creates a UI over the video_player plugin.

Please raise an issue with the Flutter Team, since this looks like it affects the Android implementation.

diegotori avatar Jul 14 '25 20:07 diegotori

the issue occurs because error handling is missing for underlying video player controller initialization calls (example https://github.com/fluttercommunity/chewie/blob/c094ed8ec7751e597a0f09dcf5b6689503793d04/lib/src/chewie_player.dart#L621)

the initialization future might complete with platform exception

Alex-Usmanov avatar Jul 31 '25 06:07 Alex-Usmanov

PlatformException (PlatformException(VideoError, Failed to load video: Cannot Open: This media format is not supported.: The operation couldn’t be completed. (CoreMediaErrorDomain error -12939 - received more bytes 1865 + 7410 = (9275) than promised (5300)), null, null)),,,,,,,,Similar problem, it seems that the returned video format is not standard, but I don't know how to deal with it

liuqinghe123 avatar Sep 15 '25 05:09 liuqinghe123