Skip to content

Instantly share code, notes, and snippets.

@kangarie
Created January 4, 2023 02:53
Show Gist options
  • Save kangarie/93b425e09cfe63cbb5a7d0abaab8f650 to your computer and use it in GitHub Desktop.
Save kangarie/93b425e09cfe63cbb5a7d0abaab8f650 to your computer and use it in GitHub Desktop.
list movies file on a folder with movie duration
for i in ./*.mkv
do
a=`ffmpeg -hide_banner -i $i 2>&1 | grep Duration | cut -d ',' -f1`
b=$i
echo $a $b
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment