How to convert Audio files in FossaPup? (Solved)

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

How to convert Audio files in FossaPup? (Solved)

Post by MrAccident »

(The Solution) - the program QWinFF in Menu → Multimedia.
To create a Preset (to convert to OGG format): in the file /usr/share/qwinff/presets.xml - add (best - in the end of the text; before </presets>):

Code: Select all

<ogg_auto> <label>OGG (vorbis) Automatic settings</label> <params>-acodec vorbis -vn</params> <extension>ogg</extension> <category>Audio</category> </ogg_auto>

An exemplary (advanced)Preset:

Code: Select all

 <ogg_custom> <label>OGG (vorbis) 44.1Khz 240kb bitrate, Auto chan, normalized</label> <params>-acodec libvorbis -ar 44100 -filter:a loudnorm=print_format=summary -ab 240k</params> <extension>ogg</extension> <category>Audio</category> </ogg_custom> <ogg_auto> <label>OGG (vorbis) Automatic settings</label> <params>-acodec libvorbis -vn</params> <extension>ogg</extension> <category>Audio</category> </ogg_auto>
Last edited by MrAccident on Sun Oct 31, 2021 1:51 pm, edited 5 times in total.
williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: Looking for a simple Audio-Converter?

Post by williams2 »

oggenc *.wav

User avatar
Flash
Moderator
Posts: 976
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 51 times
Been thanked: 125 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by Flash »

Also, if mhWaveEdit is in your Multimedia selection, you can open the .wav file in mhWaveEdit and then save it as .ogg. I think. I haven't tried that, but mhWaveEdit is a very versatile and powerful tool.

Chaos coordinator :?
User avatar
bigpup
Moderator
Posts: 6983
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1522 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by bigpup »

menu->Multimedia->gWavEdit can also do it.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by MrAccident »

@bigpup gWavEdit - the only option there I see - is "Save As" ― which then says:The file has not changed since last save. Press OK if you want to save it anyway?
Anyway - I would like something more general. I installed AV-Converter; I just don't know how to change the parameters. I'll ask there how to use it; but first I would like to know if there isn't a tool without code; like there was preinstalled, in previous Puppies.

User avatar
snoring_cat
Posts: 206
Joined: Tue Sep 21, 2021 3:40 pm
Location: Earth
Has thanked: 24 times
Been thanked: 46 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by snoring_cat »

On the "Start" Menu under Multimedia, you will find QwinFF. That app can do plenty of conversions, including to OGG.

01.png
01.png (87.86 KiB) Viewed 671 times
03.png
03.png (68.91 KiB) Viewed 671 times
05.png
05.png (58.73 KiB) Viewed 671 times

Meeeooow!

-- substance over noise, since 5 minutes in the future --

User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by MrAccident »

@snoring_cat - yeah, of course I didn't check it. :-\ Thanks.
A question: should I leave the settings as they are, or choose manually? Here's an example of the result of leaving them as they are (Sample Rate was on 0Hz, Bitrate on (auto)):
Original file:

Code: Select all

Format................ MP2/3 (MPEG audio layer 2/3)
Duration.............. 1m 15s
Size.................. 1.2 MiB
Bit rate.............. 128 Kbit/s

[AUDIO]
Index................. 0
Codec................. MP3 (MPEG audio layer 3)
Sample fmt............ fltp
Sample rate........... 44.1 KHz
Channels.............. 2
Channel layout........ stereo
Bit rate.............. 128 Kbit/s
[SIDE_DATA]
Side data type........ Replay Gain
[/SIDE_DATA]

Converted file:

Code: Select all

Format................ Ogg
Duration.............. 0m 45s
Size.................. 559.3 KiB
Bit rate.............. 101.4 Kbit/s

[AUDIO]
Index................. 0
Codec................. Vorbis
Sample fmt............ fltp
Sample rate........... 44.1 KHz
Channels.............. 2
Channel layout........ stereo
Bit rate.............. 112 Kbit/s
User avatar
snoring_cat
Posts: 206
Joined: Tue Sep 21, 2021 3:40 pm
Location: Earth
Has thanked: 24 times
Been thanked: 46 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by snoring_cat »

Hi again MrAccident,

The default presets and values should be fine for most cases. However, audio sound is dependent on the listener. Feel free to test different presets and values. If you want to tweak the audio dramatically, the easier method is to use gWaveEdit...compared to learning ffmpeg arguments (yuck).

I noticed something odd in your attachments. Your audio files don't have the same duration. Do the audio files sound the same to you?

Meeeooow!

-- substance over noise, since 5 minutes in the future --

User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by MrAccident »

@snoring_cat:
I checked again ― the information is wrong; they're both 45 seconds long; and the information in pMediaInfo - is still the same.
What I meant to ask earlier ― is whether the 0Hz and "auto" settings - preserve the original file's quality? Looks like it doesn't; cause I tried now with a 320kbps mp3 file ― and it's still "112 Kbit/s". So I should manually set the same Bit-Rate as the original file?

User avatar
bigpup
Moderator
Posts: 6983
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1522 times

Re: How to convert .wav files to .ogg in Fossapup?

Post by bigpup »

MrAccident wrote:

@bigpup gWavEdit - the only option there I see - is "Save As" ― which then says The file has not changed since last save. Press OK if you want to save it anyway?

Yes, select save as...
That is just an info statement telling you info.
Then you click OK saying you still want to save it.
The next window provides options at the bottom to select the file type you want to save it as.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 6983
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1522 times

Re: How to convert .wav files to .ogg in Fossapup? (Solved)

Post by bigpup »

You can use one of these.
https://convertio.co/wav-ogg/

Warning:
That big green Start Now is an add for something.

The actual selections are in the big gray rectangle box.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

Re: How to convert .wav files to .ogg in Fossapup? (Solved)

Post by MrAccident »

@bigpup - snoring_cat already gave me the inbuilt program \ QWinFF. :-)

User avatar
snoring_cat
Posts: 206
Joined: Tue Sep 21, 2021 3:40 pm
Location: Earth
Has thanked: 24 times
Been thanked: 46 times

Re: How to convert .wav files to .ogg in Fossapup? (Solved)

Post by snoring_cat »

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
2.png (66.1 KiB) Viewed 651 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
1.png (68.41 KiB) Viewed 651 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

Meeeooow!

-- substance over noise, since 5 minutes in the future --

User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

Re: How to convert .wav files to .ogg in Fossapup? (Solved)

Post by MrAccident »

@snoring_cat:
I added the codes in the file, before </presets> (in the end of the text in the file) - like this:

Code: Select all

   <ogg_auto> <label>OGG (vorbis) Automatic settings</label> <params>-acodec vorbis -vn</params> <extension>ogg</extension> <category>Audio</category> </ogg_auto> 
   <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> 

When applying to a file ― is says Failed.

User avatar
snoring_cat
Posts: 206
Joined: Tue Sep 21, 2021 3:40 pm
Location: Earth
Has thanked: 24 times
Been thanked: 46 times

Re: How to convert .wav files to .ogg in Fossapup? (Solved)

Post by snoring_cat »

Thanks for noticing that. I didn't notice the "Failed" message in the GUI, but saw the "All tasks have Finished" pop up message. I think that the pop up could be a bit more descriptive, like saying, "All tasks have finished with some failures". Even the output log wasn't showing what failed.

The following should work for you...hopefully. I don't see any problems with it on my side.

Code: Select all

  <ogg_custom>
    <label>OGG (vorbis) 44.1Khz 240kb bitrate,  Auto chan, normalized</label>
    <params>-acodec libvorbis -ar 44100 -filter:a loudnorm=print_format=summary -ab 240k</params>
    <extension>ogg</extension>
    <category>Audio</category>
  </ogg_custom>

  <ogg_auto>
    <label>OGG (vorbis) Automatic settings</label>
    <params>-acodec libvorbis -vn</params>
    <extension>ogg</extension>
    <category>Audio</category>
  </ogg_auto>

Meeeooow!

-- substance over noise, since 5 minutes in the future --

User avatar
MrAccident
Posts: 279
Joined: Mon Aug 03, 2020 4:29 am
Has thanked: 41 times
Been thanked: 8 times

Re: How to convert .wav files to .ogg in Fossapup? (Solved)

Post by MrAccident »

@snoring_cat - works.
Thanks.

Post Reply

Return to “Users”