视频无法播放 The video cannot be played 動画が再生できません

我制作了一段5秒的视频动画,并尝试用AGM去播放它。

我先把这个动画,从MP4格式转换成ogv格式。

视频两个格式都可以在PC上用视频软件打开,没问题。

但是我将此视频导入AGM里,然后用VideoStreamPlayer去播放它,却没有任何反应。

不知道哪个环节出错了。

是不是这个视频分辨率过高?(4K)导致的不识别?

请大家给予帮助,感谢!

(注:附上AGM源文件,还有ogv格式视频。)

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.)

私は5秒のビデオアニメーションを作成し、AGMで再生しようとしました。
私はまずこの動画をMP 4形式からogv形式に変換します。
ビデオはどちらのフォーマットもPC上でビデオソフトで開くことができますので、問題ありません。
しかし、私はこのビデオをAGMに導入し、VideoStreamPlayerで再生しましたが、何の反応もありませんでした。
どのコーナーが間違っているのか分からない。
このビデオの解像度が高すぎるのではないでしょうか。(4 K)による不識別?
みんなに助けてもらって、ありがとう!
(注:AGMソースファイルを添付し、ogv形式のビデオもあります。)

视频播放测试.rar (3.5 MB)

Dream 3.rar (3.4 MB)

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.

Resolution: 3840 * 2160
Bit rate: 1.5Mbit/s

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…

1080P.rar (3.7 MB)

I was able to convert the video and get it working with VLC :

  1. Open VLC and go to Media > Convert / Save

  2. Click Add and select your MP4 file. Click Convert / Save

  3. In the Profile dropdown, select Video - Theora + Vorbis (OGG)

  4. 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

  5. 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

  6. 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.

1 Like

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!

1 Like

You’re very welcome! Thanks for the additional bit rate tip.

1 Like