I am new to ffmpeg.
I want to get a video duration through ffmpeg and declare it to a variable. where I can use the value for a different function. I am using power shell.
This is my code:
ffmpeg -i 1aef53e6-92ac-4d28-89f8-4cce28fa0f58.mp4 2>&1 | sed -n 's/Duration: \(.*\), start/\1/gp'