Trying to figure out ffmpeg, currently working on getting 24bit/96khz FLAC files into 16bit/48khz.
ffmpeg FLAC 24 bit 96khz to 16 bit 48khz
27.8k views Asked by Corey At
2
There are 2 answers
0
Steve Kinney
On
As a bash script, that produces new files with -16 appended to their names; one could rename then delete the original files easily in the script but I'm a little too paranoid for that.
#!/bin/sh
# requires: ffmpeg
for f in *.flac;
do
echo "Processing $f"
ffmpeg -i "$f" -sample_fmt s16 -ar 48000 "${f%.flac}-16.flac"
done
Related Questions in AUDIO
- how to play a sounds in c# forms?
- Winsound not working isn't working at all
- Ringing noise overpowering voice / Recording audio with Max 9814 microphone on Raspberry pi pico using ADC Pin / Circuitpython
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
- gluon attach audio doesn't play any sound on android
- Implementing trim and fade filters with ffmpeg - MP3
- Unable to set device connection state as INPUT device type is none
- Is there a way to differentiate music and talking from a video?
- How to concatenate audio tracks and make them start a certain moment using Python?
- Combine two audio in different languages to one natural sounding
- STM32 - Serial Audio Interface (SAI) - dual data line transmit possible?
- playing mp3 downloaded via curllib gets cut short
- How to stream PCM audio to a speakers both on mac and linux in Node.js?
- Scikit-Maad -From the function rois.find_rois_cwt, I want to get a csv of the outputs so I can do my own analysis on it
- Using MediaPlayer slows down SoundPool sound effect
Related Questions in FFMPEG
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Converting MP3/MP4 to WAV in the Frontend Using ffmpegwasm with Next.js Results in Module Not Found Error
- Get remote MKV file metadata using nodejs
- After using ffmpeg to remove some streams in mkv file, it takes much longer to open the media file in potplayer in Windows
- Implementing trim and fade filters with ffmpeg - MP3
- Merge Azure mp4 blobs via API (Preferred Azure)
- Overlaying frame number with ffmpeg
- Merge (concat) all video file present in '43. DP (Part1)' and put it into '43. DP (Part1)' and give name merged (concat) file to folder name
- I get an error when republishing the image I shot with ros2 run ffmpeg
- libav audio latency / cannot set audio_buffer_size
- An error occurred after encoding with h264_nvenc
- ffmpeg - excerpt from a large video file, preserving its additional streams
- Babel Loader error when using ffmpeg.wasm in CRA react app
- define the input FPS of a stream using ffmpeg-python
- NodeJS stream MKV as MP4 video
Related Questions in BITRATE
- Internet wifi video streaming at low speed
- Trouble Retrieving Real-Time Input Bitrate from RTSP Streams in WinForms App Using Vlc.DotNet Player
- Why does ffmpeg completely ignore my -b:v bitrate flag?
- How to calculate real bitrate of incoming rtsp stream with GStreamer?
- How to control resolution and bitrate of an ONVIF IP camera?
- Length of video created with PyAV
- How to modify the bit_rate of AVFormatContext?
- How can I record a video of the shader screen with high bitrate from ShaderToy?
- How to know the byte offset of a specific CBR MP3 frame?
- Can't get CBR when converting MP4 to Mono MP3
- FFMpeg: 2 pass encoding, first with CRF and second with maxrate of first pass average bitrate?
- How To calculate bandwidth, bitrate and buffer size of switches
- Converting audio files from .wav to mp3 using GNU Parallel
- how do I save the videos in an specific bitrate using ffmpeg?
- Can i get bit rate with connect with RTSP?
Related Questions in FLAC
- Auto-select flac or mp3 script for VLC Player (.lua)
- FLAC file containing time series
- Is there a way to cache audio element requests without Service Workers?
- Trouble encoding WAV to FLAC in web application using libflac.js
- Error when passing audio file to curl command for Whisper Open AI model
- Merging a lot of flac files through command line
- ffmpeg command exports flac with wrong 'length' metadata, works fine for mp3
- trying to read Metadata from FLAC-files with musicmetadata.js and jsmediatags.js
- Extracting RIFF data from both .wav and .flac files
- Download Flac file from IIS
- Play audio .flac vs .fla in IIS via virtual directory
- arecord | split to wav or ogg
- PHP ZipArchive, play FLAC audio file which is inside a zip archive without extraction
- Incorrect values for song length (duration) in Mp3tag after ffmpeg FLAC to MP3 conversion
- Problem with invalid metadata of a FLAC file
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Basic example
ffmpeg -sample_fmtsffmpeg -h encoder=flacaresample filter example
Either example will result in the same output: you can verify with the hash muxer.
Changing the dithering method
See the
-dither_methodoption for a list of available dithering methods and additional resampling options. Example:SoX resampler
FFmpeg supports two resamplers: the default swresample library, and the external SoX resampler (soxr).
To use soxr your
ffmpegmust be compiled with--enable-libsoxr. Then choose it with the-resampleroption:Or use the aresample filter to do it all:
More info