Program for video file size

1 visualización (últimos 30 días)
Abdulaziz Alamri
Abdulaziz Alamri el 4 de Jul. de 2020
Respondida: Kawin Kumaran el 5 de Jul. de 2020
How can i find the video size in GB?

Respuesta aceptada

Kawin Kumaran
Kawin Kumaran el 5 de Jul. de 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)

Más respuestas (0)

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by