You are not logged in.

#1 2017-08-06 13:45:47

naund
Member
Registered: 2015-11-30
Posts: 7

[solved] tool for copying lossy and recode losseless audio files

Hallo,
I'm looking for a tool for copying recursively audio files of different formats to another folder, e.g. on a SD card, but recoding all losseless formats (e.g. flac) and just copy files which are already converted to a lossy format (ogg, mp3).  Preferably something like rsync for copying only modified files but recoding losseless formats.  Does anyone has an suggestion?

Last edited by naund (2017-08-08 11:50:31)

Offline

#2 2017-08-06 15:49:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] tool for copying lossy and recode losseless audio files

You're describing 2 steps in there it seems.  For simply copying of lossy, use rsync with the --exclude flag to not process the .flac files.  For them, use a util like flac2all (https://aur.archlinux.org/packages/flac2all/) then copy them over.  Might be easier to reverse those steps, 1) make all mp3 or whatever, then rysnc.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2017-08-08 11:49:01

naund
Member
Registered: 2015-11-30
Posts: 7

Re: [solved] tool for copying lossy and recode losseless audio files

OK, thank you for pointing me to flac2all.  Indeed, it shouldn't be too complicated to craft a script for this job.  But I'm still suprized, that ther exist no ready-made tool for such a common job.

Offline

#4 2017-08-09 03:03:32

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [solved] tool for copying lossy and recode losseless audio files

I might be out of the loop here, but does re-encoding lossy formats actually gain anything? doesn't it just leave you with a larger output file of the same (or slightly worse due to re-encoding) quality as the input file?

Offline

#5 2017-08-09 06:34:53

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [solved] tool for copying lossy and recode losseless audio files

HiImTye wrote:

I might be out of the loop here, but does re-encoding lossy formats actually gain anything? doesn't it just leave you with a larger output file of the same (or slightly worse due to re-encoding) quality as the input file?

No, it doesn't gain anything.

But your the first person in this thread to mention re-encoding lossy formats.

Last edited by Slithery (2017-08-09 06:35:48)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-08-11 09:20:46

naund
Member
Registered: 2015-11-30
Posts: 7

Re: [solved] tool for copying lossy and recode losseless audio files

naund wrote:

But I'm still suprized, that ther exist no ready-made tool for such a common job.

After playing around with flac2all I found the swithches -c for copying all non flac files and -x for excluding with an regular expression.  This is the tool I was looking for.

Offline

#7 2017-08-13 06:00:31

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [solved] tool for copying lossy and recode losseless audio files

slithery wrote:

But your the first person in this thread to mention re-encoding lossy formats.

my bad, I completely misread the OP

Offline

Board footer

Powered by FluxBB