Android Can not play mp4 video bigger than 2GB
#1
Question 
I just installed 14.0 RC2 Andriod ARM version on my Samsung Galaxy S4 yesterday. I found that all the video(mp4 h.264 format) on my micro-SD card bigger than 2G can not be played any more. When I select video bigger than 2G, kodi lost response, then I choose other video bigger than 2G, a warn message box appeared and tell me the file can not be played. If I choose a file size below 2G, It was played normally. Pls check if it is a bug.

The older version: 14.0 beta4 can play video more than 2G normally. I tried to upload the log file, but it seemed not the correct file, id: http://xbmclogs.com/show.php?id=363433

BTW: I use a VR glass for 3D movie. So I need the system output to a side by side mode. In System-video output part, I changed the stereoscopic 3D Mode(current) to SBS, and then played a movie and then stop. I system turned back to 2D mode. I think this is why (current) means. Can we save this SBS mode permanently as a preset?

Many Thanks for your excellent software!
Reply
#2
Is your SD card formatted fat32?
Reply
#3
Yes, FAT32 is the recommended format for the T-Flash card. But the previous version 14.0 beta4 support this perfectly. All the MP4 video is less than 4GB in my phone, otherwise it can not be copied to the card.
Reply
#4
Seems to me CPosixFile::Seek (https://github.com/xbmc/xbmc/blob/master...e.cpp#L179) should use off64_t/fseek64, shouldn't it?
Android does not handle FILE_OFFSET_BITS correctly

ping @Karlson2k
Reply
#5
Hope correct this bug in next version. Thanks!
Reply
#6
Koying, what would you recommend for Android?
Local define, configure check, #ifdef?
Reply
#7
xgfu, could you try a test build: http://mirrors.kodi.tv/test-builds/andro...bi-v7a.apk ?
Reply
#8
(2014-12-09, 02:04)Karlson2k Wrote: xgfu, could you try a test build: http://mirrors.kodi.tv/test-builds/andro...bi-v7a.apk ?

Yes, This time it is OK. Movie larger than 2GB can be played very well.
Reply
#9
xgfu, could you try an updated build: http://mirrors.kodi.tv/test-builds/andro...bi-v7a.apk ?
Reply
#10
As far as I know files larger than 4GB can NOT be stored on a FAT32 formatted volume, and for FAT16 (FAT) that file-size limit is 2GB.

So isn't this just a file-size limitation of FAT16 and FAT32? Formatting the flash drive as NTFS (or exFAT) will resolve this issue

Anyway looks like other have had the same issue here on older Android OS https://groups.google.com/forum/#!topic/...lF-avcQNfI
Reply
#11
(2014-12-10, 14:11)Hedda Wrote: As far as I know files larger than 4GB can NOT be stored on a FAT32 formatted volume, and for FAT16 (FAT) that file-size limit is 2GB.

So isn't this just a file-size limitation of FAT16 and FAT32? Formatting the flash drive as NTFS (or exFAT) will resolve this issue

Anyway looks like other have had the same issue here on older Android OS https://groups.google.com/forum/#!topic/...lF-avcQNfI

Most Android system only support FAT32, and file large than 4GB can not be copied. When I used Kodi beta4, the video files on my phone played very well, as well as file size more than 2GB. After updated to RC2, Files more than 2GB can not be played.

The version that Karlson2k gave me solved this bug. Yesterday I updated to RC3, it works well.

So this should not be the TF card format problem.

(2014-12-10, 13:15)Karlson2k Wrote: xgfu, could you try an updated build: http://mirrors.kodi.tv/test-builds/andro...bi-v7a.apk ?

Any update from the version you gave me and RC3? I updated the KODI to RC3 yesterday. It also works well with larger file.

If you want test, I'll try it tomorrow.
Reply
#12
xgfu, RC3 didn't fix anything. The problem is in file seeking, so you might be able to playback some large files, but seek will fail after 2GB limit.
Test build contains special fix for Android. It report itself as RC3 too, but with different Git number and build date. You can see this in log and in GUI in system info.
And please recheck RC3 with seeking.
Reply
#13
Karlson2k: I tried as you said. 2 files, one 2.7GB, one 3GB. They are played normally. I searched to the movie end and it can locate to the right scene.
I think there is no problem. Any test method can give?

I'll try the update version you gave later.
Reply
#14
(2014-12-10, 13:15)Karlson2k Wrote: xgfu, could you try an updated build: http://mirrors.kodi.tv/test-builds/andro...bi-v7a.apk ?

Karlson2k, This updated version work well with larger file than 2GB.
Reply
#15
Pls refer to http://forum.kodi.tv/showthread.php?tid=210638,

This problem appears again in the newest version: 14 Release. Why?
Reply

Logout Mark Read Team Forum Stats Members Help
Can not play mp4 video bigger than 2GB0