Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Encoding audio from flac - options?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
felixculpa
n00b
n00b


Joined: 11 Oct 2014
Posts: 12

PostPosted: Sat Nov 01, 2014 6:01 am    Post subject: Encoding audio from flac - options? Reply with quote

Hi all. I just decided to finally check out Gentoo and possibly transition away from Archlinux. I am liking what I have experienced so far but there are a few issues I hope can be solved before I make the full switch. The main one is in audio encoding, I like to encode lossless music to either vorbis or preferably aac/m4a using aotuv (for vorbis) and a Fraunhofer FDK AAC encoder (fdk-aac-enc AUR package on Arch) but I'm not sure how to install either of these on Gentoo. From what I can tell those are the best options for those two audio formats and if I had to guess they may be in an overlay... would like someone to point me in the right direction.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Nov 01, 2014 9:27 am    Post subject: Reply with quote

Code:
emerge -s aac
...
*  media-libs/fdk-aac
      Latest version available: 0.1.3
      Latest version installed: [ Not Installed ]
      Size of files: 1,936 kB
      Homepage:      http://sourceforge.net/projects/opencore-amr/
      Description:   Fraunhofer AAC codec library
      License:       FraunhoferFDK
...


Code:
emerge fdk-aac
Back to top
View user's profile Send private message
Ottre
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2012
Posts: 129

PostPosted: Sat Nov 01, 2014 10:15 am    Post subject: Reply with quote

Hi felixculpa,

You can grab an ebuild for fdk-aac-enc like so:

Quote:
sudo bash
mkdir -p /usr/overlays/encoding/{metadata,profiles}
echo 'encoding' > /usr/overlays/encoding/profiles/repo_name
echo 'masters = gentoo' > /usr/overlays/encoding/metadata/layout.conf
cat >>/etc/portage/make.conf <<EOF
# order of this array is important, to see overlay priorities, run
# portageq envvar -v PORTAGE_REPOSITORIES
# the higher the number, the higher the priority
PORTDIR_OVERLAY="
/usr/overlays/encoding"
EOF

cd /usr/overlays/encoding
mkdir -p media-sound/fdk-aac-enc
wget -O media-sound/fdk-aac-enc/fdk-aac-enc-9999.ebuild http://gpo.zugaina.org/AJAX/Ebuild/2891246
sed -i 's/${PN}.git/fdkaac.git/' media-sound/fdk-aac-enc/fdk-aac-enc-9999.ebuild
repoman manifest

chown -R portage:portage .
eix-sync -u
exit


Check the new ebuilds sections of the bugzilla in a couple days, I'll submit an ebuild for one of the point releases that upstream has made. Relying on a live ebuild (pulls the latest code from github) for software that you use on a regular basis is a bad idea.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Nov 01, 2014 5:55 pm    Post subject: Reply with quote

Add USE=fdk and emerge ffmpeg.
Back to top
View user's profile Send private message
Ottre
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2012
Posts: 129

PostPosted: Sat Nov 01, 2014 7:00 pm    Post subject: Reply with quote

Ant P. wrote:
Add USE=fdk and emerge ffmpeg.


That's an option, but it doesn't have as many features as fdk-aac-enc.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Nov 01, 2014 7:19 pm    Post subject: Reply with quote

Can you explain what's missing, specifically? Am actually curious because I use that combination for streaming/transcoding regularly.
Back to top
View user's profile Send private message
Ottre
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2012
Posts: 129

PostPosted: Sat Nov 01, 2014 8:11 pm    Post subject: Reply with quote

Better iTunes compatibility, better command-line options, mkvmerge doesn't recognise the aac encoder and auto-adjust the audio for you. When I'm encoding a video, I like to manually adjust the audio delay to lipsync for animated content and lipsync + 80ms for film. Using ffmpeg, you have to strip headers to avoid that "feature" of mkvmerge.
Back to top
View user's profile Send private message
felixculpa
n00b
n00b


Joined: 11 Oct 2014
Posts: 12

PostPosted: Sat Nov 01, 2014 11:12 pm    Post subject: Reply with quote

Thanks for the replies. Yes fdk-aac-enc is nice because of it's itunes compatibility and there is just more widespread support for aac than vorbis. I prefer vorbis but unless I want to play music only on my laptop or on a "rockbox"'d DAP I don't have much choice. Though if I wanted to encode ogg vorbis, Is aotuv built into one of the packages like libvorbis? If not that is fine too, I can stick with the fdk-aac-enc ebuild.
Back to top
View user's profile Send private message
Ottre
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2012
Posts: 129

PostPosted: Sun Nov 02, 2014 12:34 am    Post subject: Reply with quote

You can search for what package provides a binary using the e-file command, eg "e-file aotuv".

aotuv is not in the db. I don't mind writing an ebuild for it, too, check back here in a couple days.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum