Rescuing a Truncated Recording Using ffmpeg

tl;dr: Well, it’s cheating because it’s not ‘rescuing’ what isn’t recorded, just retrieving and appending Last night I played a few rounds of some cooperative gameplay with some good friends, and as usual I recorded the session for posterity. However, when looking over the file created, neither VLC nor ffmpeg could determine a duration. I […]

Continue Reading

[Fixed] MySQL: Table is marked as crashed and last (automatic?) repair failed (+ WordPress)

tl;dr: run myisamchk on the problematic table I’ve run into the following error in my Apache error.log recently: Table ‘database.tablename’ is marked as crashed and last (automatic?) repair failed Fortunately the fix is simple: run myisamchk on the table which is marked as crashed: $ sudo su # service mysql stop # cd /var/lib/mysql/databasename # […]

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

[Solved] “Logical volume is used by another device”

tl;dr: use dmsetup remove before trying lvremove Note: Volume group and logical volume names have been substituted here. I’m not entirely sure it’s necessary, but better safe than sorry. If following this, please use the names of your volume group[s] and logical volume[s] I am in the process of combining fileserver information, and so I […]

Continue Reading