LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-16-2014, 03:54 PM   #1
ph73nt
Member
 
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:

Quote:
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*
Member
 
Registered: Apr 2005
Distribution: Debian Testing + KDE
Posts: 53

Rep: Reputation: 17
To convert FLAC file to 16 bit / 44.1 kHz:
Code:
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
ph73nt
Member
 
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:

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 AM.

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