Convert .flac and .ape to mp3
jd1008 at gmail.com
Sat Jan 6 20:53:03 UTC 2018
I too have .ape files which I would like to convert to mp3.
However, the .ape files have a bitrate of 504K bits; to wit:
$ ffprobe '01-O_Vis_Aeternitatis_(Responsorium).ape'
ffprobe version 3.2.2 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-7)
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
Input #0, ape, from '01-O_Vis_Aeternitatis_(Responsorium).ape':
Duration: 00:08:05.36, start: 0.000000, bitrate: 504 kb/s
Stream #0:0: Audio: ape (APE / 0x20455041), 44100 Hz, stereo, s16p
So, how can I convert them to mp3 and keep the same rate of 504K ?
If this is dependent on the mp3 encoder library, how do I specify that
library on the command line?
On 01/06/2018 01:31 PM, Ultima wrote:
> Thanks for the link Andreas, it is a good read.
> Was very tired when I made the reply yesterday so
> apologies for not double checking and explaining my
> minimal responses.
> I want to also mention if you want to build a more
> reliable script, you should also check if the file is
> actually the media format suggested by the extension.
> My solution to this problem is first checking if an error
> occurs when ffprobe runs the file with -loglevel -8 options.
> This will verify that ffmpeg can actually read the file. Next
> run it a second time to verify the media format.
> ffprobe is very fast so you don't have to worry about taking
> a performance hit.
> These are just some of the checks that I run before
> processing any media and I recommend it for preventing
> headaches later.
> Best regards,
> Richard Gallamore
> On Sat, Jan 6, 2018 at 8:12 AM, Andreas Perstinger <andipersti at gmail.com>
>> On 2018-01-06 16:17, Victor Sudakov wrote:
>>> Michael Ross wrote:
>>>>> for i in `find . -iname '*.ape'`
>>>>> do_something $i
>>>>> breaks on spaces.
>>>>> What is the sh magic to handle such filenames?
>>>> xargs, you may want to run a few conversions in parallel:
>>>> find . -iname '*.ape' -print0 | xargs -0 -I% -P<parallel_runs> convert
>>>> % %.mp3
>>> I'm sure there are many ways to solve the problem, including writing a
>>> C program, but a solution in pure sh has its own value and appeal.
>> Well, you use already the find command, so why don't you use it's full
>> (Why is looping over finds output bad practice?)
>> Bye, Andreas
>> freebsd-questions at freebsd.org mailing list
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions