How to convert .mp3 to .ogg in Solus
Solus OS has pre-installed ffmpeg application, which is a powerful tool not only for formatting video, but also for audio formatting too.
First, let's see, what we have:
$ ls
'Frederic Chopin - Nocturne In C Sharp Minor.mp3'
One .mp3 file. And our goal is to convert it to .ogg format.
In order to convert .mp3 file to .ogg, just run following command:
$ ffmpeg -i 'Frederic Chopin - Nocturne In C Sharp Minor.mp3' -c libvorbis Chopin-Nocture_in_C_sharp_minor.ogg
output:
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9 (Solus)
configuration: --prefix=/usr --libdir=/usr/lib64 --disable-debug --disable-stripping --enable-shared --disable-static --enable-avisynth --enable-avresample --enable-gcrypt --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libcaca --enable-libcdio --enable-libdav1d --enable-libdrm --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libpulse --enable-libsnappy --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-nonfree --enable-nvdec --enable-nvenc --enable-openal --enable-opengl --enable-openssl --enable-sdl2 --enable-version3
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mp3, from 'Frederic Chopin - Nocturne In C Sharp Minor.mp3':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
encoder : Lavf57.56.101
Duration: 00:04:03.91, start: 0.025057, bitrate: 192 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
Metadata:
encoder : Lavc57.64
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (mp3float) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogg, to 'Chopin-Nocture_in_C_sharp_minor.ogg':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
encoder : Lavf58.29.100
Stream #0:0: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp
Metadata:
encoder : Lavc58.54.100 libvorbis
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
size= 2784kB time=00:04:03.86 bitrate= 93.5kbits/s speed=50.1x
video:0kB audio:2754kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 1.086017%
Moreover, let's check size of an original file and converted one:
dima@edustorage ~/Downloads $ ls -l
total 8504
-rw-rw-r-- 1 dima dima 2850749 Apr 26 13:05 Chopin-Nocture_in_C_sharp_minor.ogg
-rw-r--r-- 1 dima dima 5854491 Apr 26 12:29 'Frederic Chopin - Nocturne In C Sharp Minor.mp3'
You see: .ogg file is almost twice as small as original one :)