Get Video Duration in Seconds Using FFmpeg / FFprobe

preview_player
Показать описание
We'll get back the duration in seconds as well as HH:MM:SS if you prefer.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

THE TOOLS I USE / GEAR
---------------------------------------------------

FOLLOW ME ELSEWHERE
---------------------------------------------------

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:31 -- Getting the duration in seconds in 2 different ways
1:47 -- Real world use case
2:16 -- They both run at about the same speed
2:59 -- The v flag lets us see more information (log level)
3:42 -- Getting the value in HH:MM:SS format
4:13 -- Rounding up the seconds with xargs and printf
5:17 -- Handling edge cases with your locale and printf
Рекомендации по теме
Комментарии
Автор

I do a lot of Unix scripting but I always learn something new from you, Nick. I think you mostly said "rounding up" but it should be noted that 45.1 is nicely rounded down to 45.

robwilson
Автор

FFmpeg / FFprobe, i am using opentoonz and both are using my cpu to high please give me soluetion for it

AnkitDhimanClub
visit shbcf.ru