Re: [Hampshire] avconv

Top Page

Reply to this message
Author: Artur Łądka
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] avconv
for a in ./*.flac; do avconv -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}"; done

There is very good article on Arch Linux wiki which covers this topic
(just replace ffmpeg with avconv)

https://wiki.archlinux.org/index.php/Convert_Flac_to_Mp3

Regards,
Artur

On 09/03/16 18:17, Chris Liddell wrote:
> On 09/03/16 18:04, Gordon Scott wrote:
>> On Wed, 2016-03-09 at 17:31 +0000, Peter Alefounder wrote:
>>
>>> Thanks to all for the comments. I still think something I could use
>>> from the command line would be easier - a simple shell script loop.
>>
>> Did you look further at sox for conversion?
>>
>> Chris Liddell said he used it to resample, but it does many more things
>> than that.
>>
>> You may well find that the following just works:
>>
>> sox mytrack.flac mytrack.mp3
>>
>> If not, try deliberately converting in two stages:
>>
>> sox mytrack.flac mytrack.wav
>> sox mytrack.wav mytrack.mp3
>>
>> That would allow you to verify that the .wav itself is sensible.
>
> Historically, not many distros package sox with MP3 support 'cause of
> the patent license issues - I don't know if that's changed much, these
> days.
>
> I tend to use "lame" directly because, well, I've been doing this kind
> of stuff for a while, and back then, lame was the only choice.....
>
> And I tend to use "flac" for flacs, just because....
>
>



--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------