[SOLVED ]abcde ripper not creating id3 tags

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED ]abcde ripper not creating id3 tags

Postby madeye » Mar 29th, '14, 12:52

I've run into a little trouble with abcde. When it is run, it rips and encodes the files correctly, but it cannot create the id3 tags.
First I had the error message
Code: Select all
--set-encoding=UTF16(something) not a known switch

That was taken care of by commenting out the line
Code: Select all
${ENCODING:+--set-encoding="$ENCODING"} \
in the bash script.

Now however I am being told the there is no write access to the files when I run the program?
Code: Select all
/usr/bin/abcde: line 834: /home/mp3/tmp/abcde.b60b200e/track03.mp3: Permission denied


Am I missing something? AFAICT all dependencies are installed correctly.
- Madeye

When I supply commands in an answer, please make sure you understand them before you run them! Use google or man to check!
User avatar
madeye
 
Posts: 110
Joined: Jul 23rd, '11, 12:36
Location: Aabenraa, Denmark

Re: abcde ripper not creating id3 tags

Postby wintpe » Apr 1st, '14, 11:15

usually a permission denied means you dont have write access.

outside of abcde try

Code: Select all
touch /home/mp3/tmp/xxx.txt


as the same user you are running abcde as

by default only access to your /home/username/* is writeable by username.

you may need to open up permission on /home/mp3/

as root run

Code: Select all
chown -R username   /home/mp3/


regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: abcde ripper not creating id3 tags

Postby madeye » Apr 1st, '14, 16:56

I figured it out. But it did not have anything to do with the permissions.

When I wanted to disable the line in the abcde script, I only commented it out with a #. It seems this is not a good idea when the code is a block where every line is terminated with a backslash. (see the code below)
Code: Select all
# FIXME # track numbers in mp3 come with 1/10, so we cannot
# happily substitute them with $TRACKNUM
run_command tagtrack-$OUTPUT-$1 nice $ENCNICE $TAGGER $TAGGEROPTS \
   --comment=::"$COMMENTOUTPUT" -A "$DALBUM" \
   #${ENCODING:+--set-encoding="$ENCODING"} \
   -a "$TRACKARTIST" -t "$TRACKNAME" -Y "$CDYEAR" \
   -G "$GENREID" -n "${TRACKNUM:-$1}" \
   ${TRACKNUM:+-N "$TRACKS"} \
   ${TPE2:+--set-text-frame=TPE2:"$TPE2"} \
   "$ABCDETEMPDIR/track$1.$OUTPUT"
   ;;

The line needs to be removed completely. Then it works as expected.
That's what happens when you're not careful. (and don't understand the meaning of the \ ) :roll:
- Madeye

When I supply commands in an answer, please make sure you understand them before you run them! Use google or man to check!
User avatar
madeye
 
Posts: 110
Joined: Jul 23rd, '11, 12:36
Location: Aabenraa, Denmark

Re: [SOLVED ]abcde ripper not creating id3 tags

Postby doktor5000 » Apr 1st, '14, 21:15

Hint: next time run the script via bash -x to catch something like this - but still needs an eagle eye ;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED ]abcde ripper not creating id3 tags

Postby madeye » Apr 16th, '14, 13:33

Just a little heads up on this script.
It seems that there is a patch available to make it work correctly again. Although I didn't have any succes implementing it.

I ended up with taking the script from my old Arch linux install instead, copied it to /usr/local/bin and am using it now. It works perfectly.

Bug report upstream: (where also the patch is)
http://code.google.com/p/abcde/issues/detail?id=101
- Madeye

When I supply commands in an answer, please make sure you understand them before you run them! Use google or man to check!
User avatar
madeye
 
Posts: 110
Joined: Jul 23rd, '11, 12:36
Location: Aabenraa, Denmark


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest