# Crash on video play with electra player plugin enabled

**URL:** <https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 18, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857 "2024-06-18T15:15:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iridescent](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iridescent/32/950301_2.png) [@Iridescent](https://forums.unrealengine.com/u/Iridescent)\
**Post date:** [June 18, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857/1 "2024-06-18T15:15:24Z")

</div>

Ever since i upgraded to 5.4, when a video plays the engine crashes  
here is the crash report:

[UECC-Windows-13396B1D41AFE7550831248AD2F728F0\_0001.rar](https://forums.unrealengine.com/uploads/short-url/pCStoOvGevokcdi7e2AxFinXvyx.rar) (220.4 KB)

---

<div class="post-metadata">

**Author:** ![ssh4RKseb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ssh4RKseb](https://forums.unrealengine.com/u/ssh4RKseb)\
**Post date:** [July 15, 2024, 2:59pm UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857/2 "2024-07-15T14:59:41Z")

</div>

Hi,  
I faced same issue and maybe found a solution.  
In your log, it is saying : Unexpected MPEG color primaries value!  
I’ve re-encode with handbrake and a different codec and worked for me, here are the settings i’ve used

CODEC : H.264 (NVEnc) file in .mp4 format  
Color Space : BT.709 → you’ll find this in the filter tab and this is probably the thing that solve the mpeg color primaies value issue.

Tell me if it worked for you and apply solved if it’s ok  
Thanks

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1223962_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [July 15, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857/3 "2024-07-15T16:43:58Z")

</div>

Just had the same error with Unreal Engine 5.4 and exported project.

The file is in MP4 codec, other MP4 play fine.  
Need ElectraPlayer to play \*.mpd files.

The code

```auto
#include "HAL/Platform.h"
#include "ColorManagementDefines.h"

namespace ElectraColorimetryUtils
{
	static constexpr uint8 DefaultMPEGColorPrimaries = 1;
	static constexpr uint8 DefaultMPEGMatrixCoefficients = 1;
	static constexpr uint8 DefaultMPEGTransferCharacteristics = 1;

	UE::Color::EColorSpace TranslateMPEGColorPrimaries(uint8 InPrimaries)
	{
		switch (InPrimaries)
		{
			case 1: // Rec709
			case 2: // unknown
				return UE::Color::EColorSpace::sRGB;
			case 9: // Rec2020
				return UE::Color::EColorSpace::Rec2020;
			default:
				check(!"Unexpected MPEG color primaries value!");
		}
		return UE::Color::EColorSpace::sRGB;

```

**Submitted an Error Report**

 ![Screenshot 2024-07-15 184206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/1/841f45a0e8f2a81b6b0298a89ccc9b7214eda5d8.png)

---

<div class="post-metadata">

**Author:** ![STrike3Ds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@STrike3Ds](https://forums.unrealengine.com/u/STrike3Ds)\
**Post date:** [November 9, 2024, 12:57am UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857/4 "2024-11-09T00:57:03Z")

</div>

Thank you very much. Your solution works!

---

<div class="post-metadata">

**Author:** ![Keyston72](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/keyston72/32/1039004_2.png) [@Keyston72](https://forums.unrealengine.com/u/Keyston72)\
**Post date:** [March 28, 2025, 5:24pm UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857/5 "2025-03-28T17:24:11Z")

</div>

This Fixed things for me as well. Cheers mate.

---

<div class="post-metadata">

**Author:** ![Blindness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blindness](https://forums.unrealengine.com/u/Blindness)\
**Post date:** [November 7, 2025, 11:15pm UTC](https://forums.unrealengine.com/t/crash-on-video-play-with-electra-player-plugin-enabled/1907857/6 "2025-11-07T23:15:59Z")

</div>

> [@ssh4RKseb](#):
>
> in the filter tab and this is probably the thing that solve the mpeg color primaies value issue.
> 
> Tell me if it worked for you and apply solved if

This isnt a fix… the colours of the video are touched (washed out) can someone confirm if on 5.6 it works.  
This isnt a fix… the colours of the video are touched (washed out) can someone confirm if on 5.6 it works.

Edit: I found the solution. in HandBrake colorspace custom put primaries=bt709:transfer=bt709:matrix=bt709:range=limited

Why my video are washed out after hb? i did a test video with sharex and it use bt.601 by default  
Why another video are saturated after hb? a double transform using bt.709

For both cases it Works!!. keeps the video color intact.
