Program for video file size

2 次查看(过去 30 天)
How can i find the video size in GB?

采纳的回答

Kawin Kumaran
Kawin Kumaran 2020-7-5
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 个)

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by