Hello, I need to use an video in some textures but keep getting errors when trying to use a video or image sequence with the Media nodes. I have tried the tutorials online that outline the following:
Create a Movies folder in Content > Movies
Copy your movie files into that folder using file explorer
Create a File Media Source node and choose the desired clip
Create a Media Player node and select the box to also create an asset
Enable the electra plugin and restart
When I open the media player node and try to play back an mp4 or mov file, I get the following error:
LogElectraPlayer: Most recent log messages:
0.000: Opening stream
0.062: MP4 parser: Invalid filler data size of 0x68646c6a to read at offset 0xad18f3 in box 0x00000000 (size 0x68646c72, offset 0xad18eb, dataoffset 0xad18f3)
0.073: Playback paused
0.073: Error: error=8 in MP4 playlist reader: code 1, "Failed to parse mp4 "file://M:/SpaceshipCockpit%205.2/Content/Movies/screen01.mp4" with error 8"
0.074: Stopped
I have tried enabling DirectX11 instead of 12 which is commonly recommended online, but that did nothing.
When I tried to use an image sequence, I get the following error when trying to play it back with the Media Player node:
LogImgMedia: Error: The directory M:/SpaceshipCockpit 5.2/Content/Movies/ does not contain any image files
Welcome to the Unreal Engine forums! This may sound like a weird thing to try. But, try deleting the space between SpaceshipCockpit and 5.2. (So that it becomes M:/SpaceshipCockpit5.2/Content/etc) Then try it again.
Thanks FrostyJas, but it is still not working after removing the space. I changed the project name to M:/SpaceshipCockpit5.2/ then launched Unreal and tried everything again.
I’m getting the same 2 errors as before, but I also noticed something very strange. If I import some random, non-sequenced jpeg’s into the Content/Movies folder, the Media Player will play those just fine.
Is there some specific way to create the mp4/mov file that I’m missing maybe?
I tried changing the mp4 codec to mpeg4 and got a new error:
LogElectraPlayer: Most recent log messages:
0.000: Opening stream
0.084: Got master playlist
0.084: Playback paused
0.084: Error: error=0 in MP4 playlist: code 1, "No playable streams in this mp4"
0.084: Stopped
EDIT - I just tried the same steps with a jpg sequence I extracted from my mp4 video file online and it is working now with the Image Media Source node. Seems this is a workaround for now but an mp4 solution would be nice.
For anyone trying to fix this, I’ve used ffmpeg to convert to h264 with the following command :
ffmpeg -i video.mp4 -c:a h264 convertedvideo.mp4
For some reason my video was not in h264. Hence why it wasnt working for me, also make sure your video is an mp4 as it wont work with other extensions.