I created a 5-second video animation and attempted to play it using AGM.
I will first convert this animation from MP4 format to OGV format.
Both video formats can be opened on a PC using video software, no problem.
But I imported this video into AGM and played it using VideoStreamPlayer, but there was no response.
I don’t know which link went wrong.
Is the resolution of this video too high? Unrecognized due to 4K?
Please help, thank you!
(Note: Attached are AGM source files and OGV format videos.)
I tried your video in a regular Godot 4.5 project and it wouldn’t play either. What tool did you use to convert the video? Show us the export settings if you have them.
It seems that the problem lies in the video file.
I use a popular format conversion software in China called Format Factory.
I am trying to convert the format again and take a screenshot.
I am trying to output videos with different bitrates to give it a try.
At the same time, I will see if other software can be used to generate OVG format files.
At the beginning, the source video output was HEVC encoding with 4K resolution, and I think there should be an issue with this HEVC. Then I tried outputting H264 encoded, 1080P resolution mp4 files, but it still didn’t work.
I will upload this MP4 source file. (H264,1080P)
If possible, please help me test if there are any issues with this source file.
If there is no problem, then it can only be a problem that occurred when converting the format…
I was able to convert the video and get it working with VLC :
Open VLC and go to Media > Convert / Save
Click Add and select your MP4 file. Click Convert / Save
In the Profile dropdown, select Video - Theora + Vorbis (OGG)
Click the Settings (Wrench icon) next to the profile:
Encapsulation: Ensure Ogg/Ogm is selected
Video codec: Verify “Video” is checked and codec is Theora
Audio codec: Verify “Audio” is checked and codec is Vorbis
Click Save
Choose a Destination file and ensure the filename ends in .ogv (e.g., myvideo.ogv). You might have to select All Files to be able to use .ogv as the file extension
Click Start
When you click Start the VLC will go black and you will see the playback bar increasing representing the progress. Slightly confusing, but works.
Thank you so much, truly thank you so much, you are my god!
I used your method for transcoding and successfully played it on AGM. The only minor issue is that the video quality has significant flaws. I tried many methods and finally found that as long as the bitrate is increased, it can be solved.
Add the following steps:
In step 4 of your method, adjust the bit rate to 【10000kb/s】
Other unchanged.
The video is perfectly converted and restored to its original quality even when placed in AGM.
Thank you again, Mr. Bas, for your help and for adding an opening animation to my project in the future, which solved the technical difficulties.
Love you!