I think your best solution would be to add some more presets to QWinff
Adding a New QWinff Preset
Add the following to the /usr/share/qwinff/presets.xml text file
Code: Select all
<ogg_auto>
<label>OGG (vorbis) Automatic settings</label>
<params>-acodec vorbis -vn</params>
<extension>ogg</extension>
<category>Audio</category>
</ogg_auto>
Now you will have this preset, which should automatically guess the correct settings for you (referenced off of your input audio file)
- 2.png (66.1 KiB) Viewed 652 times
This next preset, sets defaults that might be suitable for you. This one is more advanced in that it also normalizes the audio sound level.
Code: Select all
<ogg_custom>
<label>OGG (vorbis) 44.1Khz 320kb bitrate, Auto chan, normalized</label>
<params>-acodec vorbis -vn -ar 44100 -ab 320kb -af loudnorm=I=-16:LA=11:TP=-1.5</params>
<extension>ogg</extension>
<category>Audio</category>
</ogg_custom>
- 1.png (68.41 KiB) Viewed 652 times
I'm not sure why QWinFF doesn't have these as presets already.
Techie Manual FFMpeg command line method
You don't have to read the rest of this post. It just includes some manual options to test and convert using FFMpeg. I added this to the post to also show how bitrate and sample rate correlate.
Code: Select all
ffprobe -hide_banner /usr/share/sounds/bell.wav
Input #0, wav, from '/usr/share/sounds/bell.wav':
Duration: 00:00:08.33, bitrate: 128 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
Code: Select all
pmediainfo /usr/share/sounds/bell.wav
Format................ WAV / WAVE (Waveform Audio)
Duration.............. 0m 8s
Size.................. 130.2 KiB
Bit rate.............. 128 Kbit/s
[AUDIO]
Index................. 0
Codec................. PCM signed 16-bit little-endian
Sample fmt............ s16
Sample rate........... 8 KHz
Channels.............. 1
Bits per sample....... 16
Bit rate.............. 128 Kbit/s
Code: Select all
ffmpeg -hide_banner -i /usr/share/sounds/bell.wav /usr/share/sounds/bell.ogg
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from '/usr/share/sounds/bell.wav':
Duration: 00:00:08.33, bitrate: 128 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogg, to '/usr/share/sounds/bell.ogg':
Metadata:
encoder : Lavf58.29.100
Stream #0:0: Audio: vorbis (libvorbis), 8000 Hz, mono, fltp
Metadata:
encoder : Lavc58.54.100 libvorbis
size= 20kB time=00:00:08.32 bitrate= 19.3kbits/s speed= 271x
video:0kB audio:17kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 18.534254%
Code: Select all
ffprobe -hide_banner /usr/share/sounds/bell.ogg
Input #0, ogg, from '/usr/share/sounds/bell.ogg':
Duration: 00:00:08.33, start: 0.000000, bitrate: 19 kb/s
Stream #0:0: Audio: vorbis, 8000 Hz, mono, fltp, 22 kb/s
Metadata:
encoder : Lavc58.54.100 libvorbis
Code: Select all
pmediainfo /usr/share/sounds/bell.ogg
Format................ Ogg
Duration.............. 0m 8s
Size.................. 19.6 KiB
Bit rate.............. 19.3 Kbit/s
[AUDIO]
Index................. 0
Codec................. Vorbis
Sample fmt............ fltp
Sample rate........... 8 KHz
Channels.............. 1
Channel layout........ mono
Bit rate.............. 22.4 Kbit/s