FFprobe Command to Get Video Duration in Seconds & Milliseconds
1 |
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4 |
FFMPEG Command to Get Video Duration in Seconds & Milliseconds
1 |
ffmpeg -i input.mp4 -f null - |