Skip to content

Instantly share code, notes, and snippets.

@jlnbxn
jlnbxn / getaudiofileduration.txt
Created July 5, 2023 16:25
Get Audio file duration in Mac Terminal
ffprobe your_file.mp3 2>&1 | grep "Duration"
@jlnbxn
jlnbxn / merge-mp4.sh
Last active November 7, 2021 15:08 — forked from bdurrow/merge-mp4.sh
Bash script to merge all mp4 videos in current directory (recursively 2 levels). It also updates the chapter marks to retain the folder/filename of source dir
#!/bin/bash
#http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
## Script to merge all mp4 videos in current directory (recursively 2 levels)
## And update chapter marks to retain the folder/filename
## Script for merging videos