Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-16-2014, 03:54 PM   #1
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Raspian
Posts: 60

Rep: Reputation: 16
Down-sampling/re-sampling flac files

Hi forum,

I have a few dozen flac files that play fine in Amarok & mplayer, but won't play on my Sonos system because the sample rate is too high. The files I have are mostly 1784 kbps at 48000 Hz. From the Sonos website:

Sonos supports FLAC files up to 16 bit / 44.1 kHz
I thought re-sampling these would be as simple as

PHP Code:
flac --sample-rate=44100 -o[outfile.flac] [infile.flac
But apparently not. Flac does the encoding without complaining, but when I inspect the files they are still 24bit/48kHz. Flac version 1.3.0 system openSUSE 13.2

Any clues would be gratefully received,

thanks in advance.
Old 11-16-2014, 11:15 PM   #2
*Dark Dragon*
Registered: Apr 2005
Distribution: Debian Testing + KDE
Posts: 53

Rep: Reputation: 17
To convert FLAC file to 16 bit / 44.1 kHz:
avconv -i input.flac -ar 44100 -sample_fmt s16 output.flac
If you do not have avconv you need to install libav-tools package. Alternatively, you can use ffmpeg instead of avconv.
1 members found this post helpful.
Old 11-23-2014, 04:08 AM   #3
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Raspian
Posts: 60

Original Poster
Rep: Reputation: 16
Great solution. I used ffmpeg, which worked perfectly. Command line just As you indicated:

ffmpeg -i input.flac -ar 44100 -sample_fmt s16 output.flac
Thanks again.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vmstat sampling for averages in percentages. Devyn Linux - Software 1 12-03-2009 08:45 AM
Soundcard sampling clock signal? petersum Programming 5 11-03-2006 10:58 PM
Increase podcast bitrate and sampling Jeebizz LQ Suggestions & Feedback 1 10-02-2006 08:56 AM
audio sampling Skews! microtim Programming 2 06-23-2003 06:45 PM
setting gprof sampling time? togunter Programming 0 04-26-2002 03:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration