Program for video file size

1 vue (au cours des 30 derniers jours)
Abdulaziz Alamri
Abdulaziz Alamri le 4 Juil 2020
How can i find the video size in GB?

Réponse acceptée

Kawin Kumaran
Kawin Kumaran le 5 Juil 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)

Plus de réponses (0)

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by