$ ffprobe -v error -show_entries format=duration -sexagesimal -of default=noprint_wrappers=1:nokey=1 input.mp3
0:36:57.968000
여기서 -sexagesimal 옵션을 제거하면 초단위로 나온다.
2217.968000
*참고 : https://superuser.com/questions/650291/how-to-get-video-duration-in-seconds
'Bite Bits > Windows Tips' 카테고리의 다른 글
터미널 코드페이지 변경하기 (0) | 2019.08.13 |
---|---|
ffmpeg 을 이용해 동영상 합치기 (0) | 2018.09.14 |
ffmpeg 와 작업 스케쥴러를 이용한 스트리밍 예약 녹음하기 (0) | 2017.08.07 |
시각장애인 지원 프로그램 (스크린 리더) 사용하기 (0) | 2017.02.14 |
Ram Disk 만들어 브라우져 cache 폴더로 사용하기 (0) | 2017.01.24 |