[Abcde-users] FW: Abcde and aiff

josh poddmo at gmail.com
Tue Apr 22 09:24:49 BST 2025


On 22/4/25 13:40, josh wrote:
> On 22/4/25 10:52, Gabriel Rosenkoetter wrote:
>>
>> -------- Forwarded Message --------
>> From: Gabriel Rosenkoetter <gr at eclipsed.net>
>> Sent: Monday, April 21, 2025 at 8:50 PM EDT
>> To: Dry Martini Holding Company <qrp at kg4kgl.net>
>> Subject: RE: [Abcde-users] Abcde and aiff
>>
>> At a glance, you are including the tag step in your ACTIONS setting, 
>> which rules out, "You're just not telling abcde to tag the track", so 
>> that's good!
>>
>> These next questions may just demonstrate my ignorance of encoding as 
>> AIFF:
>>
>> What are you using for AIFF encoding?
>>
>> Does that embed the tagging step in encoding?
>>
>> If not, what are you using for tagging AIFF files?
>>
>
> Over the last couple of days I've been doing some more work on abcde, 
> adding the ability to detect and rip hidden track one audio [1]. I 
> just noticed in the tagging function that AIFF format files are not 
> tagged. See the code at this line is essentially a no-op:
>
> https://github.com/poddmo/abcde/blob/6e7795eb5fe951e9a6b2c32083cecb0c82e423c2/abcde#L1075 
>
>
> You will be able to confirm the state of your aiff files with 
> ffmpeg... please post the output of
>
> ffmpeg -i 01.trackname.aiff
>
> where 01.trackname.aiff is the abcde generated filename from a ripped CD
>
>
> [1] https://en.wikipedia.org/wiki/Hidden_track
>
>

My apologies but I was too hasty to declare that abcde does not tag aiff 
files. It does tag them during the encoding action.

Here is the link to the relevant function:

https://github.com/poddmo/abcde/blob/6e7795eb5fe951e9a6b2c32083cecb0c82e423c2/abcde#L1432

and copy and paste for quick reference:

aiff)
	case "$AIFFENCODERSYNTAX" in
		ffmpeg)
			if [ "$DOTAG" = "y" ]; then
				$RUN_COMMAND nice $EFFECTIVE_NICE $AIFFENCODER -i "$IN" $AIFFENCODEROPTS \
				 -metadata artist="$TRACKARTIST" -metadata album="$DALBUM" \
				 -metadata title="$TRACKNAME" -metadata track="${TRACKNUM:-$1}" \
				 -metadata date="$CDYEAR" -metadata genre="$CDGENRE" \
				 -metadata comment="$COMMENT" "$OUT"
			else
				$RUN_COMMAND nice $EFFECTIVE_NICE $AIFFENCODER -i "$IN" $AIFFENCODEROPTS "$OUT"
			fi
		;;
	esac
;;


>> (Unless I'm missing them, I don't see those specified in your config 
>> file.)
>>
>> I understand that it may not be the file format you'd like to store 
>> music in, but have you tried running abcde with MP3 encoding (I 
>> believe that's the most common use case, probably followed by FLAC)?
>>
>> I use lame for mp3 encoding:
>>
>> MP3ENCODERSYNTAX=lame
>> LAME=lame
>> LAMEOPTS='-V 2'
>> OUTPUTTYPE="mp3"
>>
>> and eyeD3 for tagging mp3s:
>>
>> EYED3=eyeD3-3.9
>> #EYED3OPTS=-Q
>>
>> It might be worth your time to try that on one track to see whether 
>> Rune on your Raspberry Pi picks up those tags.
>>
>> I've been busy today, and I'm not sure I'll have time tonight or 
>> tomorrow morning to do so, but I'll try producing AIFF files on my 
>> end so that I can give you more specific answers.
>>
>> If your goal with AIFF is just "lossless", and Rune is capable of 
>> playing FLAC files, you may also want to try encoding to FLAC to see 
>> whether Rune handles those usefully. It's entirely possible that 
>> abcde is silently failing to add metadata to AIFF files, and, if so, 
>> that is a bug that we should, as a community, fix, but you'll be in 
>> community with a larger number of people if you use FLAC instead, so 
>> you'll be less likely to get bit by similar AIFF-specific bugs in the 
>> future.
>>
>> On 2025-04-21 12:58, Dry Martini Holding Company wrote:
>> My apologies. I knew there was something that I was forgetting. Here is
>> my config file:
>>
>>
>> export LC_ALL=en_US.UTF-8
>> MAXPROCS=4                              # Run a few encoders 
>> simultaneously
>> PADTRACKS=y                             # Makes tracks 01 02 not 1 2
>> EXTRAVERBOSE=2                          # Useful for debugging
>> EJECTCD=y                               # Please eject cd when 
>> finished :-)
>> DIFFOPTS=-y
>> PAGEROPTS="-fM"
>> ALBUMARTFILE='cover.jpg'
>> ALBUMARTDIR="${HOME}/Music"
>> OVERRIDEALBUMARTDOWNLOAD=y
>> ANYASCIIBIN="$HOME/bin/anyascii"
>> LOWDISK=n
>> CDDBMETHOD=musicbrainz,cddb,cdtext
>> CDDBCOPYLOCAL="y"
>> CDDBLOCALDIR="$HOME/.cddb"
>> CDDBLOCALRECURSIVE="y"
>> CDDBUSELOCAL="y"
>> CDDBURL="http://gnudb.gnudb.org/~cddb/cddb.cgi"
>> CDDBSUBMIT=freedb-submit at freedb.org
>> NOSUBMIT=n
>> HELLOINFO="music at hostname"
>> #FLACENCODERSYNTAX=flac
>> #FLAC=flac
>> #FLACOPTS='-s -8pV -j3'
>> #FLACTAGSTARTCASE=y
>> #FLACTAGALBUMARTISTTAGNAME="ALBUMARTIST"
>> #FLACTAGALBUMARTISTVALUE="Various Artists"
>> #AACENCODERSYNTAX=ffmpeg
>> #FFMPEGENCOPTS="-c:a aac -b:a 192k"
>> AIFFENCODERSYNTAX=default
>> FFMPEG=ffmpeg
>> OUTPUTTYPE="aiff"
>> CDROMREADERSYNTAX=cdparanoia
>> CDPARANOIA=cdparanoia
>> CDPARANOIAOPTS="-L --never-skip=2"
>> CDDISCID=cd-discid
>> OUTPUTDIR="$HOME/Music"
>> ACTIONS=cddb,playlist,cue,read,encode,tag,move,clean
>> OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
>> VAOUTPUTFORMAT='Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-
>> ${TRACKFILE}'
>> ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${ARTISTFILE}-${ALBUMFILE}' 
>>
>> VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'
>> 1,0-1         Top
>>
>>
>> On 4/21/25 12:51, Gabriel Rosenkoetter wrote:
>>>> Could you please show us the contents of your abcde.conf file and 
>>>> show us the command line that you are using?
>>>>
>>>> I don't think that any of us can help you further without knowing 
>>>> how you're running abcde.
>>>>
>>>> On 2025-04-21 12:08, Dry Martini Holding Company wrote:
>>>>> Thank you for your reply. Here is the output of the LOCALE command:
>>>>>
>>>>> LANG=en_US.UTF-8
>>>>> LANGUAGE=
>>>>> LC_CTYPE="en_US.UTF-8"
>>>>> LC_NUMERIC="en_US.UTF-8"
>>>>> LC_TIME="en_US.UTF-8"
>>>>> LC_COLLATE="en_US.UTF-8"
>>>>> LC_MONETARY="en_US.UTF-8"
>>>>> LC_MESSAGES="en_US.UTF-8"
>>>>> LC_PAPER="en_US.UTF-8"
>>>>> LC_NAME="en_US.UTF-8"
>>>>> LC_ADDRESS="en_US.UTF-8"
>>>>> LC_TELEPHONE="en_US.UTF-8"
>>>>> LC_MEASUREMENT="en_US.UTF-8"
>>>>> LC_IDENTIFICATION="en_US.UTF-8"
>>>>> LC_ALL=
>>>>>
>>>>> I have added export LC_ALL=en_AU.UTF-8 to the Abcde.conf file as 
>>>>> Josh suggested, and still no improvement.
>>>>>
>
> Your locale looks good, just be sure to use en_US.UTF-8 and not 
> en_AU.UTF-8 or else your encoding will be inverted 😉️
>
>
>>>>> Robert
>>>>>
>>>>> On 4/19/25 22:47, Dry Martini Holding Company 😎 wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I have been using this great script for a while now, and encoding 
>>>>>> all of my music to aiff format.
>>>>>>
>>>>>> I listen to the files using a RPi running rune audio music server 
>>>>>> software. However, the encoding (or lack thereof) causes problems 
>>>>>> for the server software, which requires UTF-8.
>>>>>>
>>>>>> I just discovered abcde 2.11.0, and I am still encountering this 
>>>>>> problem.
>>>>>>
>>>>>> I have followed all the fixes for this problem. Is there anything 
>>>>>> else I need to do for this to work properly for aiff encoded files?
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>> Robert
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>> _______________________________________________
>>>>>> Abcde-users mailing list
>>>>>> Abcde-users at lists.einval.com
>>>>>> https://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users
>>>>>
>>>>> _______________________________________________
>>>>> Abcde-users mailing list
>>>>> Abcde-users at lists.einval.com
>>>>> https://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users
>>>>
>>>>
>>
>>
>>
>> _______________________________________________
>> Abcde-users mailing list
>> Abcde-users at lists.einval.com
>> https://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users
>
>




More information about the Abcde-users mailing list