'I am a newbie with ffprobe. I want to make an applescript that shows the duration of media assets

Hello I am trying to make an applescript or something similar with ffprobe to be able to tell me the duration of media items (mp4 or wav). I am a newbie so please be patient.

Here is my script so far

fprobe -v 0 -of compact=p=0:nk=1 -show_entries stream=duration_time -select_streams v:0 "$f"

Any help would be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source