Program for video file size

2 Ansichten (letzte 30 Tage)
Abdulaziz Alamri
Abdulaziz Alamri am 4 Jul. 2020
Beantwortet: Kawin Kumaran am 5 Jul. 2020
How can i find the video size in GB?

Akzeptierte Antwort

Kawin Kumaran
Kawin Kumaran am 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)

Weitere Antworten (0)

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by