I want to get duration of all video files from "New Folder".
I have list of all videos but i don't know how to got to theirs duration.
public static void main(String[] args) throws IOException {
File file = new File("C:\\y\\ee\\t\\New Folder");
File[] list = file.listFiles();
for (int i = 0; i < list.length; i++) {
System.out.println(list[i].getName() + "Video duration: ");
}
}
I want to get sth like this
video1.webm Video duration: 0:34
video2.webm Video duration: 1:43
video3.webm Video duration: 0:54