Would be wonderful, if we were able to do the same with videos on DVD, or Blueray.
#TIL #KDE #audiocd #ripping #music #opticaldisc #Linux #tech #deadformats
With regard the foregoing #toot, I append this #PSA.
Every morning I read the "links" over at #NakedCapitalism, which I consider to be the most important source of news on the web. It's a #CrowdSourced project. Readers send in the important links they've encountered and Naked Capitalism posts them with commentary.
There are a lot of X links in there, but Naked Capitalism isn't an X participant. They do the dirty work so you don't have to be on there. So, here's what I ask:
1. Support Naked Capitalism. You can find them here: https://www.nakedcapitalism.com
2. Then, use Naked Capitalism to help build out the #fediverse by #ripping X content and freeing it to #mastodon unattributed. My preferred tool is here: https://twittervideodownloader.com/en/
3. Finally, and this is important, do a little happy dance knowing your one of the many who are helping the world become a better place by sticking your foot squarely up the ass of #ElonMusk 🥳
#TIL that you can rip an audio CD in #KDE just by opening it in dolphin and copying out the folder named for the format you want it in.
These are a set of virtual folders that represent the formats supported by your system to rip them into.
How cool is that?
#audiocd #ripping #music #opticaldisc #Linux #tech #deadformats
Anyone have a recommendation for a readily available USB optical drive (CD/DVD/etc) that works reliably with Linux commandline ripping tools? I'm mostly interested in CDs (got a few sitting around that I'd like to extract audio from), but if DVD and/or bluray worked too, that'd be a bonus.
here is what i have prepared so far for my own automatic #dvd #ripping setup to use instead of the dogshit automaticrippingmachine scripts:
UDEV Rule:
# /etc/udev/rules.d/85-auto-rip.rules
ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr[0-9]*", ENV{DISK_MEDIA_CHANGE}=="1", RUN+="/usr/local/bin/auto-iso-rip.sh"
UDEV Trigger Script
# /usr/local/bin/auto-iso-rip.sh
#!/bin/bash
LOG="/var/log/optical_insert.log"
{
echo "==== Optical disc inserted ===="
echo "Date: $(date)"
echo "DEVNAME=$DEVNAME"
echo "DEVPATH=$DEVPATH"
echo "ID_CDROM_MEDIA=$ID_CDROM_MEDIA"
echo "ID_CDROM_MEDIA_DVD=$ID_CDROM_MEDIA_DVD"
echo "ID_FS_TYPE=$ID_FS_TYPE"
echo
DEVICE="$DEVNAME"
[ -z "$DEVICE" ] && exit 1
if [ "$ID_CDROM_MEDIA_DVD" = "1" ]; then
/bin/bash /usr/local/bin/copyiso.sh "$DEVICE" &
fi
} >> "$LOG"
ISO Ripping Script
# /usr/local/bin/copyiso.sh
set -e
OUTPUT_DIR="${HOME}/DVD_Backups"
LOG_FILE="${HOME}/auto-iso.log"
MAX_RETRIES=3
DEVICE="$1"
[ -z "$DEVICE" ] && exit 1
{
echo "=== Checking Disk Type on $DEVICE ==="
DVD_CHECK=$(udevadm info -q property -n "$DEVICE" | grep -c "ID_CDROM_MEDIA_DVD=1")
[ "$DVD_CHECK" -eq 0 ] && exit 0
DISC_TITLE=`makemkvcon -r info disc:0 2>/dev/null | grep -oP 'DRV:0,\d+,\d+,\d+,"[^"]+",".+",".+"'`
[ -z "$DISC_TITLE" ] && DISC_TITLE="\"Unknown_DVD\""
CLEAN_TITLE=$(echo "$DISC_TITLE" | cut -d, -f6 | awk '{print substr($0, 2, length($0)-2)}')
ISO_FILE="${OUTPUT_DIR}/${CLEAN_TITLE}_$(date +%Y%m%d_%H%M%S).iso"
LOG_FILE_ISO="${OUTPUT_DIR}/${CLEAN_TITLE}_$(date +%Y%m%d_%H%M%S)_ddrescue.log"
echo "Title: $CLEAN_TITLE"
echo "ISO Filename: $ISO_FILE"
echo "Log Filename: $LOG_FILE_ISO"
mkdir -p "$OUTPUT_DIR"
if [ -f "$ISO_FILE" ]; then
echo "ISO already exists: $ISO_FILE"
else
echo "Creating ISO: $ISO_FILE"
ddrescue -d -n -b 2048 -c 1 -r "$MAX_RETRIES" -v "$DEVICE" "$ISO_FILE" "$LOG_FILE_ISO"
if grep -q "errors:" "$LOG_FILE_ISO"; then
ddrescue -d -b 2048 -c 1 -r "$MAX_RETRIES" -v "$DEVICE" "$ISO_FILE" "$LOG_FILE_ISO"
fi
echo "ISO created: $(stat -c%s "$ISO_FILE") bytes"
fi
eject "$DEVICE"
echo "Disc ejected"
} >> $LOG_FILE
and now i will work on the makemkv automation, and then will work on the ffmpeg/handbrake automation.
Scheme CD ripper 1.4.0 released, contains many improvements.
- Added fuzzy metadata recrawler in MusicBrainz.
- Supported flexible path formatting
- Supported album cover image in Discogs
- Supported debian trixie package
- Supported multiple cd medium in single release
- Title filter with regex
- Can set ripping speed
Scheme CD ripper 1.1.0 released now.
Scheme CD Ripper is a linux CLI tool that rips audio CDs to FLAC, automatic fetches metadata from multiple CDDB servers and inserts tags into FLAC file.
This workflow is designed for processing large numbers of CDs continuously, for archiving usage.