How to play video file in City sample?

Hi i’m trying to play a video file in Unreal engine City Sample

the ploblem is media player is freeze after few frames i play the video or just black screen like this

whith this error message in log

LogElectraPlayer: Error: [000004C597BD0C00][000004C590C535D0] ReportError: "error=8 in MP4 playlist reader: code 1, “Failed to parse mp4 “file://C:/Users/Song/Videos/Captures/ICVFXProductionTest%20-%20%C5B8%B9AC%C5BC%20%C5D0%B514%D130%202022-06-09%2017-03-39.mp4” with error 7"”
LogElectraPlayer: [000004C597BD0C00][000004C590C535D0] IMediaPlayer::Close()
LogElectraPlayer: [000004C597BD0C00][000004C590C535D0] Playback stopped. Last play position 0.000
LogElectraPlayer: [000004C597BD0C00][000004C590C535D0] Electra player statistics:
OS: Windows 10 (21H2) [10.0.19044.1766]
GPU Adapter: NVIDIA GeForce RTX 2060
URL: file://C:/Users/Username/Videos/Captures/ICVFXProductionTest - 2022-06-09 17-03-39.mp4
Time after master playlist loaded: -1.000s
Time after stream playlists loaded: -1.000s
Time for initial buffering: -1.000s
Initial video stream bitrate: 0 bps
Initial buffering bandwidth bps: 0.000
Initial buffering latency: 0.000s
Time for initial preroll: -1.000s
Number of times moved forward: 0
Number of times moved backward: 0
Number of times looped: 0
Number of times rebuffered: 0
Total time spent rebuffering: 0.000s
Longest rebuffering time: 0.000s
First media timeline start: -1.000s
First media timeline end: -1.000s
Last media timeline start: -1.000s
Last media timeline end: -1.000s
Media duration: 0.000s
Play position at start: -1.000s
Play position at end: -1.000s
Number of quality upswitches: 0
Number of quality downswitches: 0
Number of drastic downswitches: 0
Bytes of video data streamed: 0
Bytes of audio data streamed: 0
Number of segments fetched across all quality levels:
Currently active playlist URL:
Currently active resolution: 0 * 0
Current state: Paused
Number of video frames dropped: 0, worst time delta 0.000 ms
Number of audio frames dropped: 0, worst time delta 0.000 ms
Last error: error=8 in MP4 playlist reader: code 1, “Failed to parse mp4 “file://C:/Users/username/Videos/Captures/ProductionTest%20-%20%C5B8%B9AC%C5BC%20%C5D0%B514%D130%202022-06-09%2017-03-39.mp4” with error 7”
Subtitles URL:
Subtitles response time: 0.000s
Subtitles last error:

these are the plunins i enabled




is this something like City sample’s project setting things? or direct 12 thing?
when i play same video on new empty project it works fine

is there someone how to solve this problem?

Hi ULreal,

In the context of City Sample (uses Nanite and Lumen that requires DirectX 12?) this is a bad solution, but I’ve seen some people fix media player issues by changing Project Settings → Default RHI to DirectX 11

Fingers crossed this will be fixed in 5.1

Thanks for your reply Astrotronic!

but I need nanite and lumen for city scene and actually even if I use Direct 11, Video is still freeze.
I guess maybe something else is the problem

I think this was about resolution
I tried to play 4k videos and it failed

after converting it in to 2k(1920x1080) it played well with Electra plater