How do I get the total duration of a bunch of tiny video files in a folder?
I have a bunch of small video files in a folder and I thought clicking on Properties of the folder would give me the total duration of all the video clips combined but it didn't. What is the simplest way to count the total time of many different clips in a folder? In the same folder I have some .srt files too.
Also, I use VLC player; is there a way to use it to solve my problem? I don't have Windows Media Player.
Win 7. IE 8.
Solution 1:
You can use the Windows Explorer Filter.
- Open the desired folder on Windows Explorer (WindowsKey-E);
- Click at the search bar (or use Ctrl-F);
- Type
System.Kind:=Video
; - Select all video files from the result list;
- Open their properties (Right Mouse Button -> Properties);
The total duration calculation will be shown in the Details tab;
Solution 2:
As long as windows is able to read video metadata, right-clicking on them and going in Details does indeed show the total length. I just tested here on a combination of .MP4 and .WMV and it worked.
For windows to read video metadata properly, you may need to have Windows Media Player installed as well as appropriate codecs (using codec packs such as Shark007, K-Lite and CCCP is a good idea). Whether you can see thumbnails or not in Windows Explorer should give you an indication.
Other than that, you could use a media application that supports video and shows total time in playlists, such as Winamp.
Solution 3:
Its very very simple. Just select all the videos. Put into VLC media player. Now click on the toggle playlist button. There you will see on top left just beside playlist total video playtime is shown.
Solution 4:
You can use Mpv (for Windows too). Here I use it in Cygwin/Mingw:
mpv --term-playing-msg='SO_DURATION=${=duration}' --no-config --no-cache --quiet --frames=1 --vo=null --ao=null Selfie_del_futuro.ogv | grep ^SO_DURATION
SO_DURATION=45.053229
You can change SO_DURATION if you like, it is just a marker so that it can be grepped.