I want to convert a ogg file to aac. But I need to transfer all the data of the ogg file (i.e. album, year, cover,...) to the aac file using a shell comand.
you can find ffmpeg in the official repository.
Transcoding from one lossy format to another is not ideal. However, if you insist on doing so, this is the best way: install avconv and ubuntu-restricted-extras with
then get neroAacEnc:
NeroAacEnc is superior to avconv's internal AAC encoder, and also much better than libfaac, it consistently scores highly on listening tests; and Nero have released it free for non-commercial use.
To create an M4A (MP4) file, use
The -q flag can use any value between 0 and 1, with 1 being highest-quality; according to this, 0.55 averages to a bit rate of 192 kb/s; a lower -q of around 0.4 would probably actually be perfectly suitable for most music listening. Experiment to find out what works best for you.
Unfortunately, this won't keep the metadata; but you can transfer the metadata from input.ogg to output.m4a with a second command: