File creation time on ext4 (Linux)

tl;dr: since coreutils stat does not show file ‘birth’ time, use debugfs -R stat <inode> FS I was curious as to when I wrote a particular time-saving script, so I figured I would look up the file creation time: $ stat ~/scripts/goprofootage.sh File: /home/robert/scripts/goprofootage.sh Size: 1001 Blocks: 8 IO Block: 4096 regular file Device: fe01h/65025d […]

Continue Reading

Compressing Teamspeak 3 Recordings Using sox

tl;dr: Loop through the files in bash, sox them to FLAC Success! I’ve been combining fileserver contents recently, and I came across a little archive of Teamspeak 3 recordings: $ du -sh . 483G /home/robert/storage/media/ts_recordings/ Eep. I wrote a quick-and-dirty script to convert the files: #!/bin/bash n=0 total=$(ls *.wav|wc) ls *.wav | while read file; […]

Continue Reading

Timesaver: import and combine GoPro Footage with FFmpeg

I’ve been taking my GoPro to Sunday Morning Football (as it is known) for a while now, so I figured I’d automate the process of importing the footage (moving it from microSD) and combining it into one file (GoPro splits recordings by default). So I have the following script: #!/bin/bash GOPRO=”/tmp/gopro” DATE=”$(date +%Y-%m-%d)” VIDEO_BASE=”/home/robert/mounts/storage/video/unsorted” VIDEO_DEST=”$VIDEO_BASE/$DATE” […]

Continue Reading