You are not logged in.

#1 2011-05-19 16:35:04

Tenhi
Member
Registered: 2010-11-16
Posts: 12

rename audio files with tags

I prefer use flac files. And always convert other formats to flac.
This is my script for converting files.

cd 1988
echo Directory changed
cuebreakpoints *.cue | shnsplit -o flac *.flac &&
echo Files converted
cuetag.sh *.cue split-track*.flac &&
echo tags
cd ..

I know that this script is not good, but that is not a question.
After executing this script i need to rename files( cause they are split-track*.flac )
I use EasyTag to rename files. But now i shoul do it via ssh.

What programms may i use to do it?

Offline

#2 2011-05-20 06:51:31

RazrFalcon
Member
From: Ukraine
Registered: 2011-05-18
Posts: 44

Re: rename audio files with tags

Offline

#3 2011-05-20 09:34:26

Tenhi
Member
Registered: 2010-11-16
Posts: 12

Re: rename audio files with tags

This is gui programm, but i need CLI programm whitout X

Offline

#4 2011-05-20 11:38:51

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: rename audio files with tags

There is a necrobumped thread which slipped the attention of our overly busy mods:
https://bbs.archlinux.org/viewtopic.php?id=64685
Don't post there, if you don't want to get a modedit, just use it as reference and continue here.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#5 2011-05-20 11:48:32

Jelle
Member
From: Netherlands
Registered: 2011-01-30
Posts: 84

Re: rename audio files with tags

There is this nice script that I sometimes use (although I prefer ex falso) that is made by someone else on this forum (I forgot who, sorry!). Does the whole thing though, so perhaps you can implement it or just use the whole thing.

#!/bin/sh

# frontend for:            cuetools, shntool, mp3splt
# optional dependencies:    flac, mac, wavpack, ttaenc
# v1.3 sen


SDIR=`pwd`

if [ "$1" = "" ]
  then
    DIR=$SDIR
else
    case $1 in
        -h | --help )
            echo "Usage: cuesplit [Path]"
            echo "       The default path is the current directory."
            exit
            ;;
        * )
        DIR=$1
    esac
fi

echo -e "\

Directory: $DIR
________________________________________
"
cd "$DIR"
TYPE=`ls -t1`

case $TYPE in
    *.ape*)
        mkdir split
        shnsplit -d split -f *.cue -o "flac flac -V --best -o %f -" *.ape -t "%n %p - %t"
        rm -f split/00*pregap*
        cuetag.sh *.cue split/*.flac
        exit
        ;;

    *.flac*)
        mkdir split
        shnsplit -d split -f *.cue -o "flac flac -V --best -o %f -" *.flac -t "%n %p - %t"
        rm -f split/00*pregap*
        cuetag.sh *.cue split/*.flac
        exit
        ;;

    *.mp3*)
        mp3splt -no "@n @p - @t (split)" -c *.cue *.mp3
        cuetag.sh *.cue *split\).mp3
        exit
        ;;

    *.ogg*)
        mp3splt -no "@n @p - @t (split)" -c *.cue *.ogg
        cuetag.sh *.cue *split\).ogg
        exit
        ;;

    *.tta*)
        mkdir split
        shnsplit -d split -f *.cue -o "flac flac -V --best -o %f -" *.tta -t "%n %p - %t"
        rm -f split/00*pregap*
        cuetag.sh *.cue split/*.flac
        exit
        ;;

    *.wv*)
        mkdir split
        shnsplit -d split -f *.cue -o "flac flac -V --best -o %f -" *.wv -t "%n %p - %t"
        rm -f split/00*pregap*
        cuetag.sh *.cue split/*.flac
        exit
        ;;

    *.wav*)
        mkdir split
        shnsplit -d split -f *.cue -o "flac flac -V --best -o %f -" *.wav -t "%n %p - %t"
        rm -f split/00*pregap*
        cuetag.sh *.cue split/*.flac
        exit
        ;;

    * )
    echo "Error: Found no files to split!"
    echo "       --> APE, FLAC, MP3, OGG, TTA, WV, WAV"
esac
exit

Offline

#6 2011-05-20 12:27:58

RazrFalcon
Member
From: Ukraine
Registered: 2011-05-18
Posts: 44

Re: rename audio files with tags

You can even use something like this.

Offline

Board footer

Powered by FluxBB