.mp4 file not playing in chrome

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official image.
vim4-android-11-64bit-v221228.raw.img.xz and vim4-android-11-64bit-v230428.raw.img.xz

Please describe your issue below:

I put an mp4 file with h.264 video and aac audio on a web server and can’t play it in chrome.
mp4 transcoded from h.264 video to av1 video can be played.

Even with the image that I downloaded aosp source code for vim4 and built, I could not play the mp4 file in chrome.

AMPlayer can play mp4 files downloaded under /sdcard/.

Where in the aosp source code should I change to be able to play mp4 files?

@hiroshi Please provide me with the corresponding website address to try.

@goenjoy Please access Sample MP4 video files and play.

@hiroshi The issue you mentioned has been reproduced, and we will follow up on this issue.

Perhaps you can try this patch?
It seems to affect all Amlogic devices.

$ adb remount
$ adb shell
# vi /vendor/build.prop

add this line to the end of the file and reboot.

or you can run this command in a terminal
setprop media.omx.out_buffer1 3

Thank you. I tried it, but I couldn’t play.


device/khadas$ git diff

--- a/kvim4/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/kvim4/overlay/frameworks/base/core/res/res/values/config.xml
@@ -115,7 +115,7 @@
     <!-- True if the device supports split screen as a form of multi-window. -->
     <bool name="config_supportsSplitScreenMultiWindow">true</bool>
-    <integer name="config_defaultUiModeType">1</integer>
+    <integer name="config_defaultUiModeType">4</integer>
     <bool name="config_lockUiMode">true</bool>

frameworks/base$ git diff
--- a/packages/SystemUI/res/values-television/config.xml
+++ b/packages/SystemUI/res/values-television/config.xml
@@ -29,7 +29,8 @@
-        <item>com.android.systemui.statusbar.tv.TvStatusBar</item>
+       <item>com.android.systemui.statusbar.phone.StatusBar</item>
+       <item>com.android.systemui.recents.Recents</item>

I applyed your patch and chrome on VIM4 is playing .mp4 file normally.
Thank you.