Program for video file size
2 views (last 30 days)
Show older comments
Abdulaziz Alamri
on 4 Jul 2020
Answered: Kawin Kumaran
on 5 Jul 2020
How can i find the video size in GB?
0 Comments
Accepted Answer
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)
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!