Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Get total duration of video files in a directory

find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} ;
149.233333
130.146667
275.690000

find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} ; | paste -sd+ -| bc
555.070000
Comment

PREVIOUS NEXT
Code Example
Shell :: lsb release command centos 
Shell :: linux combine zipped files 
Shell :: command not found: strings 
Shell :: bash: /bin/rm: Argument list too long 
Shell :: vlc linux 
Shell :: reset one branch onto another 
Shell :: vs code installed extensions list command 
Shell :: kill :80 port 
Shell :: az command to delete resource group 
Shell :: how to git merge with specific commit 
Shell :: npm ERR! fatal: not a git repository: /home/node/app/../../.git/modules/ 
Shell :: install aws cli mac 
Shell :: keycloak docker 
Shell :: linux check if dir is mounted 
Shell :: how to drive linux 2020 bluetooth on ubuntu 
Shell :: timeshift install 
Shell :: shell file automation 
Shell :: laptop slow performance linux 
Shell :: rm recursive file pattern 
Shell :: remove docker created network 
Shell :: revert vs reset vs restore 
Shell :: How do I hide the path in command line prompt on Windows? 
Shell :: extract tgz from ubuntu terminal 
Shell :: grep filetype 
Shell :: a script that compiles a C file but does not link 
Shell :: sqlmap POST request injection 
Shell :: how to rename files with mv in linux 
Shell :: “git force rebase abort” 
Shell :: ls human readable size 
Shell :: install jest 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =