Program for video file size

2 views (last 30 days)
How can i find the video size in GB?

Accepted Answer

Kawin Kumaran
Kawin Kumaran on 5 Jul 2020
To find the size of a file in bytes :
info = dir('video1.avi');
filesize = info.bytes;
Then to convert bytes to GB it can be done mathematically :
gb_size = filesize / (1024^3)

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!