mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2024-12-27 04:08:19 +01:00
Merge pull request #29 from jmsam81/wav_to_mp3
changed the wav to mp3 code to produce files with better audio quality.
This commit is contained in:
commit
a409c6dc31
@ -96,13 +96,16 @@ Change the above data-target field, the button text, and the below div class (th
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<h3>WAV to MP3</h3>
|
<h3>WAV to MP3</h3>
|
||||||
<p><code>ffmpeg -i <i>input_file</i>.wav -sample_fmt s16p -ar 44100 <i>output_file</i>.mp3</code></p>
|
<p><code>ffmpeg -i <i>input_file</i>.wav -write_id3v1 1 -id3v2_version 3 -dither_method modified_e_weighted -out_sample_rate 48k -b:a 320k <i>output_file</i>.mp3</code></p>
|
||||||
<p>This will convert your WAV files to MP3s.</p>
|
<p>This will convert your WAV files to MP3s.</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>ffmpeg</dt><dd>starts the command</dd>
|
<dt>ffmpeg</dt><dd>starts the command</dd>
|
||||||
<dt>-i <i>input_file</i></dt><dd>path and name of the input file</dd>
|
<dt>-i <i>input_file</i></dt><dd>path and name of the input file</dd>
|
||||||
<dt>-sample_fmt <i>s16p</i></dt><dd>sample format. This will give you 16 bit audio (To see a list of supported sample formats, type: <code>ffmpeg -sample_fmts</code>)</dd>
|
<dt>-write_id3v1 <i>1</i></dt><dd>Write ID3v1 tag. This will add metadata to the old MP3 format, assuming you've embedded metadata into the WAV file.</dd>
|
||||||
<dt>-ar <i>44100</i></dt><dd>Sets the audio sampling frequency to 44.1 kHz (CD quality). This can be omitted to use the same sampling frequency as the input</dd>
|
<dt>-id3v2_version <i>3</i></dt><dd>Write ID3v2 tag. This will add metadata to a newer MP3 format, assuming you've embedded metadata into the WAV file.</dd>
|
||||||
|
<dt>-dither_method <i>modified_e_weighted</i></dt><dd>Dither makes sure you don't unnecessarily truncate the dynamic range of your audio.</dd>
|
||||||
|
<dt>-out_sample_rate <i>48k</i></dt><dd>Sets the audio sampling frequency to 48 ksps. This can be omitted to use the same sampling frequency as the input</dd>
|
||||||
|
<dt>-b:a <i>320k</i></dt><dd>This sets the bit rate at the highest rate the mp3 format allows. Reduce this to 160k for mono files.</dd>
|
||||||
<dt><i>output_file</i></dt><dd>path and name of the output file</dd>
|
<dt><i>output_file</i></dt><dd>path and name of the output file</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user