I'm using an old Android phone as a webcam. The camera lens is great, the DroidCam software is nifty, but the Android OS behind it is old and dying. My phone often needs rebooting. Which means that the app also needs restarting. The phone's screen faces away from me, so I can't interact with it. This is a quick guide (mostly notes to myself) about rebooting and starting an app from the command line. To find the package name, run adb shell pm list packages -f | grep -i PackageName In my…
Continue reading →
As ever, notes to myself. This is a method to take a .wav and .cue and transform it into individual files. In this case, .opus. Transform to .flac FLAC is a good intermediary file format, especially for surround sound files. avconv -i file.wav out.flac Transform to .opus An optional step if you want smaller files. Maximum quality for 6 channel audio. opusenc --bitrate 4096 out.flac out.opus Create an .mkv Add to an MKV with all the chapter information. mkvmerge -o test.mkv --chapters…
Continue reading →
Scratching my own itch. I have a bunch of directories which I want moved into alphabetic sub-directories. This is handy is you have a bunch of MP3s, books, or other catalogued files. This bash script moves a top level directory (and all the files and subdirectories under it), to a folder based on the (upper-case) version of the first character of the directory name. #!/bin/bash for dir in */ ; do start=${dir:0:1} mkdir -p ${start^^} mv "$dir" ${start^^} done Save that as…
Continue reading →