Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

mass convert flac /wv / ape + cue, to fdk?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
bigbanana69
Apprentice
Apprentice
User avatar
Posts: 169
Joined: Mon Jul 10, 2017 5:41 pm
Location: Moscow

mass convert flac /wv / ape + cue, to fdk?

  • Quote

Post by bigbanana69 » Sun Jun 02, 2019 4:57 pm

Hi,

I'm using Gentoo amd64 with Xfce4. I want to mass convert music albums which are in single flac / wv / ape + cue and/or as separate lossless tracks - to fdk aac (probably for the most of the music will be in vbr 3 option and maybe for some vbr 2 or else).

How do I do that in simple and easy way?
I had tried soundkonverter & soundconverter and they don't fulfill the needs.
I have ffmpeg with fdk support installed.


Also I use Exaile as main music player which doesn't plays single lossless file + cue, just the lossless as separate tracks.
You are not using computers if you are not using Gentoo UNIX.
Top
e3k
Guru
Guru
User avatar
Posts: 518
Joined: Mon Oct 01, 2007 9:54 pm
Location: Here and Now!

  • Quote

Post by e3k » Tue Jun 04, 2019 12:15 pm

i am doing converting audio frequently but only via command line using tools like ffmpeg, lame or flac.
i guess it would be enough to use ffmpeg in your case you would use this audio codec: libfdk_aac

https://trac.ffmpeg.org/wiki/Encode/AAC
viewtopic-t-1088960-highlight-.html
[URL=https://www.youtube.com/watch?v=E6TjjBbQML8 [/URL] Cosma -> nonstop
Top
bigbanana69
Apprentice
Apprentice
User avatar
Posts: 169
Joined: Mon Jul 10, 2017 5:41 pm
Location: Moscow

  • Quote

Post by bigbanana69 » Tue Jun 04, 2019 5:37 pm

Sure, thanks.

Just that I was thinking sort of converting various lossless formats (flac, ape, wv) + cue or as separate tracks, many albums with ffmpeg fdk vbr 3 (or maybe 2 or 1) "just with one command".

As far as I know for now, I need to split the single flac + cue tacks with shntool then encode to fdk vbr 3 with ffmpeg. It'd take time doing that for many albums.

"One command" shortcut (include that I'm not a bash expert)?
You are not using computers if you are not using Gentoo UNIX.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Tue Jun 04, 2019 5:59 pm

It'd take time doing that for many albums.
Who cares?

e3k's second link shows you how to use 'find' to convert all files with a single statement. Start a conversion job in the evening - and when you get up in the morning, all files will be converted...

If you have source files with different input formats, start one conversion job for each input format:

Code: Select all

find . -name "*.wav" -exec ffmpeg <options for wav files> {} \;
find . -name "*.flac" -exec ffmpeg <options for flac files> {} \;
...
The only downside of this approach is that you'll have to learn how 'find' works. find is one of the most powerful Linux commands I know, but it's also bitchy.
Top
bigbanana69
Apprentice
Apprentice
User avatar
Posts: 169
Joined: Mon Jul 10, 2017 5:41 pm
Location: Moscow

  • Quote

Post by bigbanana69 » Tue Jun 04, 2019 7:01 pm

Ok.
You are not using computers if you are not using Gentoo UNIX.
Top
Akkara
Bodhisattva
Bodhisattva
User avatar
Posts: 6702
Joined: Tue Mar 28, 2006 12:27 pm
Location: &akkara

  • Quote

Post by Akkara » Wed Jun 05, 2019 8:11 am

A long time ago I wrote a script to do something similar, including copying over tags-metadata, or as much as the target format supports. Here it is for reference: [Script] Convert flac to (almost) anything. If you're starting from track-per-file it should do what you want. If you're starting from a single file + cuesheet and want track-per-file output, it doesn't do that, it would need to be modified.

But this was a long time ago. There are probably much better ways of doing this nowadays that I'm not aware of.

It uses several helper programs, and their options could have changed between then and now so that's a potential source of bugs. Also, back then, I was even more of a Bash/shell newb, and there may be glaring errors and omissions I had overlooked. Test it on a smaller subtree first!. Especially test, if you use accented characters, that all the tags get transferred correctly. It should work on utf8-encoded stuff OK, but I have no idea on other encodings. Ideally, mount your source files read-only so that any mistakes doesn't corrupt your source files. (I like to have them owned by a different user, and 'su' to that user only when I need to add new music or make edits.)

If you do end up using this and have a lot to do, you might want to try its parallel-conversion capability, outlined toward the bottom of the first post.
Many think that Dilbert is a comic. Unfortunately it is a documentary.
Top
bigbanana69
Apprentice
Apprentice
User avatar
Posts: 169
Joined: Mon Jul 10, 2017 5:41 pm
Location: Moscow

  • Quote

Post by bigbanana69 » Wed Jun 05, 2019 8:58 am

Ok, thanks.
You are not using computers if you are not using Gentoo UNIX.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic