I am using ffmpeg to get some file durations Below is my code
$filename = '1aef53e6-92ac-4d28-89f8-4cce28fa0f58.mp4'
$duration = if ((ffmpeg -i $filename 2>&1 | Out-String) -match 'Duration:\s+([\d:.]+)') { $matches[1] }
Actual output would be like H :M :S : F 00:00:00.00
I need the output to be like 00:00:00:00 Between seconds and frame, there is a " . " full stop, I need it to be a " : "
any suggestions ?