I have been made confused by the Storage Info of my phone since it shows 3.16 GB of videos took up my internal space. But then I checked, the videos not even passed 250 MB in total size.

Can't seem to find the solution in the Internet yet, I've been searching tho. I am using Venus phone by Vestel (a Turkey's made)



Update 1: The result I got after using Disk Usage app:


Update 2: The result I got after using SD Maid app:


Update 3: The result I got after using Termux app with first given command:


Update 4: The result I got after using Termux app with second given command:


Update 5: The result I got after using 'dumpsys' command on my PC connected to my phone by means of USB Debugging:

Update 6: after redo commands of 1st and 2nd but with adding 'grep'

Update 7: result of commands 'dumpsys -l' and 'dumpsys diskstats'

  • it's been days and i think the only way i can get more information of this problem is by rooting my phone Apr 11, 2019 at 2:31

1 Answer 1



Let's simplify things. You tap a text document, it opens with text editor. You click on a picture, it opens with image viewer. Whether to open a file with a document viewer, or a photo editor, or a media player, or something else, is determined by MIME type, or Media Type, or in simple words File Type.

The simple and easy way to determine file type is the file extension; we know a file ending with .mp4 is a video file. That's how Windows set preferred program to open a file. *NIX operating systems usually rely on file's magic to determine mime type. That's what file command does. Android's toybox file doesn't seem to have a large collection of magics, so the primary source to guess file types on Android is file extensions.

That said, the size of Videos that appear under Internal Storage usage details, is the total size of files which have mime type video/*, based on extensions vs file category mapping used by Settings app (1, 2, 3, 4, 5). If you think the size shown is inaccurate, you can cross check yourself. Use some app or simply a terminal emulator like Termux to find all video files:

~$ find /sdcard/ -type f | grep -iE '\.wrf$|\.movie$|\.wvx$|\.wmx$|\.wm$|\.asx$|\.mng$|\.lsx$|\.lsf$|\.mxu$|\.qt$|\.vob$|\.mpe$|\.fli$|\.dv$|\.dif$|\.dl$|\.mpeg$|\.mpg$|\.mp4$|\.m4v$|\.mov$|\.3gp$|\.3gpp$|\.3g2$|\.3gpp2$|\.mkv$|\.webm$|\.ts$|\.avi$|\.wmv$|\.asf$'

* If using Termux, grant Storage permission to allow /sdcard access.

This will find every file on you storage which is considered video by OS, though one might not be a video in actual and just disguising itself with a video file extension.
To find out individual file sizes and total size, extend the command a bit:

~$ find /sdcard/ -type f | grep -iE '\.wrf$|\.movie$|\.wvx$|\.wmx$|\.wm$|\.asx$|\.mng$|\.lsx$|\.lsf$|\.mxu$|\.qt$|\.vob$|\.mpe$|\.fli$|\.dv$|\.dif$|\.dl$|\.mpeg$|\.mpg$|\.mp4$|\.m4v$|\.mov$|\.3gp$|\.3gpp$|\.3g2$|\.3gpp2$|\.mkv$|\.webm$|\.ts$|\.avi$|\.wmv$|\.asf$' | xargs -I {} du -b '{}' | sort -n | awk '{sum += $1} {print} END {print sum}'

* All commands are very basic, usually part of busybox distributions.

This will show the individual and total file size in bytes. Convert that to MBs or GBs, and that should match the size appearing in Settings. In the same way, you can calculate size of other file types like audio and images.

The same categorized files can be viewed in the left menu of Android's default Files app (at least on Pie). However there could be possible differences. For instance, a file with .mpe extension will reflect in videos size shown in Settings, but won't appear under videos of Files app or other gallery apps. It's because the file extension vs mime type mapping which media scanner uses doesn't include .mpe extension in video category. In addition to file extension, media scanner takes further steps to segregate files for default apps and preferred activities.

Another way to get total size of video files is dumpsys diskstats service which reads from file /data/system/diskstats_cache.json. DiskStatsLogService runs once every 24 hours when device is idle and charging, and the extensions vs file category mapping it relies on is similar to the one used by Settings. So the sizes should be same when diskstats_cache file is updated:

~$ dumpsys diskstats | grep Videos

RELATED: How disk space is used on Android device?

  • What else is on your sdcard? Output of find /sdcard/ -type f | xargs -I {} du -b '{}' | sort -n | awk '{sum += $1} {print} END {print sum}? Remove any personal data from output if necessary. Apr 15, 2019 at 4:53
  • I trima and no result, just empty at sir Apr 15, 2019 at 10:10
  • You don't have a single file in /sdcard? How's that possible! Apr 15, 2019 at 14:09
  • I myself do dont understand that either. After i pasted the command into Termux then i pressed Enter, it outputted nothing. Apr 16, 2019 at 15:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .