Ffmpeg get video duration windows. So ffmpeg. mp4 and ‘grep’ the duration value of the video. In case you haven't heard of it, FFmpeg is a command line tool that can handle anything related to media. I ended up getting the video duration in seconds for 200+ videos for one of my video courses to help seed my local database with realistic values for the course platform I’m building. exe to do the video processing, then a separate call to ffprobe. I have a shared hosting solution so I have no FFmpeg support. I came across the issue of getting some strange and incorrect metadata from some video files I was working with and I couldn't succeed on finding a pattern or any type of handling using code and tools like ffmpeg, mp4box, ffprobe, mediainfo, mplayer, to get the real duration of the video. This article will introduce several commonly used techniques. Assuming ffprobe is installed, you can easily use this to obtain the duration of a video clip (say, in input. This tells ffprobe to only return the duration. smmkw izgceu unvm visj wck hdsr qbl gqjy zgruo wjckbsu