Fedora 8 - Sentiamo i nostri file MP3

Come molti di voi già sanno ed altri hanno scoperto in questa settimana usando la propria Fedora 8, il supporto per gli MP3 non è presente in modo nativo. Andiamo ad installarlo, non è poi così difficile!

Le tematiche affrontate nel corso dell'articolo sono le seguenti:

Buona lettura :)


Mi ricordo bene che nella sfida "KDE Vs. GNOME" ho detto che avrei usato gli strumenti offerti dall'interfaccia grafica, ma in questo articolo non li userò. Il perchè? Voglio rendere più generico possibile l'articolo indipendentemente da tutto.

Questo passo è il passo "numero zero" ovvero aggiungere Livna nell'elenco dei nostri repository:
[innovatel@localhost ~]$ su
Password:
[root@localhost innovatel]# rpm -i http://rpm.livna.org/livna-release-8.rpm

Ed anche questa operazione, la numero zero" è fatta senza grossi impegni!Come prima operazione, dobbiamo installare i seguenti pacchetti:
GStreamer is a streaming media framework, based on graphs of elements which
operate on media data.

This package contains well-written plug-ins that can't be shipped in gstreamer-plugins-good because:
- the license is not LGPL
- the license of the library is not LGPL
- there are possible licensing issues with the code.

libmad: MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II and Layer III a.k.a. MP3) are fully implemented.

libid3tag is a library for reading and writing ID3 tags, both ID3v1 and the various versions of ID3v2.

id3v2: ID3 tags are found in MP3 files. They can store information about what band recorded the song, the song name, and more. ID3V1 tags are seriously deficient as to the kind of and length of information that they can store. This is a tool for editing ID3V2 tags in Linux.

Per farlo, sempre da shell, servono i privilegi di root:
[innovatel@localhost ~]$ su
Password:
[root@localhost innovatel]# yum install gstreamer-plugins-ugly libmad libid3tag id3v2
Setting up Install Process
Parsing package install arguments
No package gstreamer-plugins-ugly available.
No package libmad available.
Resolving Dependencies
--> Running transaction check
---> Package id3v2.i386 0:0.1.11-5.fc8 set to be updated
--> Processing Dependency: libid3-3.8.so.3 for package: id3v2
---> Package libid3tag.i386 0:0.15.1b-4.fc8 set to be updated
--> Running transaction check
---> Package id3lib.i386 0:3.8.3-17.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
id3v2 i386 0.1.11-5.fc8 fedora 30 k
libid3tag i386 0.15.1b-4.fc8 fedora 45 k
Installing for dependencies:
id3lib i386 3.8.3-17.fc8 fedora 397 k

Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 472 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): libid3tag-0.15.1b- 100% |=========================| 45 kB 00:00
(2/3): id3v2-0.1.11-5.fc8 100% |=========================| 30 kB 00:00
(3/3): id3lib-3.8.3-17.fc 100% |=========================| 397 kB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: id3lib ######################### [1/3]
Installing: id3v2 ######################### [2/3]
Installing: libid3tag ######################### [3/3]

Installed: id3v2.i386 0:0.1.11-5.fc8 libid3tag.i386 0:0.15.1b-4.fc8
Dependency Installed: id3lib.i386 0:3.8.3-17.fc8
Complete!

L'installazione per il supporto dei file MP3 è stata molto semplice. Ora però dobbiamo installare un player audio che li riproduca. Esistono diverse possibilità. Io per voi, ho provato Amarok! Secondo me è il migliore in assoluto e quindi installo sempre quello. Se avete installato KDE come Desktop Manager, Amarok dovrebbe essere già installato di default. In caso contrario lo andremo ad installare ora. Per fare l'installazione, dobbiamo sempre avere i privilegi di root. Se la shell aperta in precedenza l'avete chiusa, dobbiamo autenticarci nuovamente come root:
[innovatel@localhost ~]$ su
Password:
[root@localhost innovatel]#

Ora, dobbiamo installara Amarok ed il supporto mp3. Andiamo per gradi però. La prima domanda che sorge spontanea è:
Come verifico se Amarok è già presente sul mio computer?

La risposta è molto semplice. Lanciamo l'installazione di Amarok. Se yum ci dirà che non ha nulla da fare, vuol dire che è già presente. In alternativa, basta cercare nelle proprie applicazioni di tipo "Multimedia" se è presente o meno.
[root@localhost innovatel]# yum search amarok
[...]
amarok.i386 : Media player for KDE
[...]
[root@localhost innovatel]# yum install amarok
Setting up Install Process
Parsing package install arguments
Package amarok - 1.4.7-7.fc8.i386 is already installed.
Nothing to do

Come vedete, è già presente e non mi tocca fare proprio un bel niente. In caso contrario, avrebbe pensato a tutto yum. Ora facciamo l'ultimo sforzo della mattinata: diamo ad Amarok la possibilità di riprodurre i file MP3.

Ora passiamo al supporto vero e proprio:
[root@localhost innovatel]# yum search amarok-extras-nonfree
[...]
amarok-extras-nonfree.i386 : Additional functionality for the amaroK media player
[...]
[root@localhost innovatel]# yum install amarok-extras-nonfree
livna 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 127 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package amarok-extras-nonfree.i386 0:1.4.4-1.lvn7 set to be updated
--> Processing Dependency: xine-lib-extras-nonfree for package: amarok-extras-nonfree
--> Running transaction check
---> Package xine-lib-extras-nonfree.i386 0:1.1.8-4.lvn8 set to be updated
--> Processing Dependency: libavutil.so.49 for package: xine-lib-extras-nonfree
--> Processing Dependency: libvcdinfo.so.0 for package: xine-lib-extras-nonfree
--> Processing Dependency: libpostproc.so.51 for package: xine-lib-extras-nonfree
--> Processing Dependency: libavcodec.so.51 for package: xine-lib-extras-nonfree
--> Processing Dependency: libdca.so.0 for package: xine-lib-extras-nonfree
--> Processing Dependency: libdvdnav.so.4 for package: xine-lib-extras-nonfree
--> Processing Dependency: vcdimager >= 0.7.23 for package: xine-lib-extras-nonfree
--> Processing Dependency: libvcdinfo.so.0(VCDINFO_0) for package: xine-lib-extras-nonfree
--> Processing Dependency: libmad.so.0 for package: xine-lib-extras-nonfree
--> Running transaction check
---> Package ffmpeg-libs.i386 0:0.4.9-0.41.20071011.lvn8 set to be updated
--> Processing Dependency: libfaac.so.0 for package: ffmpeg-libs
--> Processing Dependency: libx264.so.56 for package: ffmpeg-libs
--> Processing Dependency: libfaad.so.0 for package: ffmpeg-libs
--> Processing Dependency: faad2 = 1:2.0 for package: ffmpeg-libs
--> Processing Dependency: libxvidcore.so.4 for package: ffmpeg-libs
--> Processing Dependency: libmp3lame.so.0 for package: ffmpeg-libs
--> Processing Dependency: liba52.so.0 for package: ffmpeg-libs
---> Package vcdimager.i386 0:0.7.23-3.lvn6 set to be updated
---> Package libdca.i386 0:0.0.5-2.lvn8 set to be updated
---> Package libmad.i386 0:0.15.1b-5.lvn8 set to be updated
---> Package libdvdnav.i386 0:0.1.10-4.20070503.lvn8 set to be updated
--> Running transaction check
---> Package faad2.i386 1:2.0-21.20050131.lvn8 set to be updated
---> Package faac.i386 0:1.25-4.lvn8 set to be updated
--> Processing Dependency: libmp4v2.so.0 for package: faac
---> Package x264.i386 0:0-0.10.20070819.lvn8 set to be updated
---> Package xvidcore.i386 0:1.1.3-1.lvn8 set to be updated
---> Package lame-libs.i386 0:3.97-6.lvn8 set to be updated
---> Package a52dec.i386 0:0.7.4-11.lvn8 set to be updated
--> Running transaction check
---> Package libmp4v2.i386 0:1.5.0.1-5.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
amarok-extras-nonfree i386 1.4.4-1.lvn7 livna 3.6 k
Installing for dependencies:
a52dec i386 0.7.4-11.lvn8 livna 46 k
faac i386 1.25-4.lvn8 livna 82 k
faad2 i386 1:2.0-21.20050131.lvn8 livna 210 k
ffmpeg-libs i386 0.4.9-0.41.20071011.lvn8 livna 1.8 M
lame-libs i386 3.97-6.lvn8 livna 327 k
libdca i386 0.0.5-2.lvn8 livna 108 k
libdvdnav i386 0.1.10-4.20070503.lvn8 livna 123 k
libmad i386 0.15.1b-5.lvn8 livna 82 k
libmp4v2 i386 1.5.0.1-5.fc8 fedora 263 k
vcdimager i386 0.7.23-3.lvn6 livna 657 k
x264 i386 0-0.10.20070819.lvn8 livna 245 k
xine-lib-extras-nonfree i386 1.1.8-4.lvn8 livna 533 k
xvidcore i386 1.1.3-1.lvn8 livna 240 k

Transaction Summary
=============================================================================
Install 14 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 4.6 M
Downloading Packages:
(1/14): amarok-extras-non 100% |=========================| 3.6 kB 00:00
(2/14): libdvdnav-0.1.10- 100% |=========================| 123 kB 00:00
(3/14): libmp4v2-1.5.0.1- 100% |=========================| 263 kB 00:01
(4/14): a52dec-0.7.4-11.l 100% |=========================| 46 kB 00:00
(5/14): libmad-0.15.1b-5. 100% |=========================| 82 kB 00:00
(6/14): lame-libs-3.97-6. 100% |=========================| 327 kB 00:02
(7/14): xvidcore-1.1.3-1. 100% |=========================| 240 kB 00:01
(8/14): libdca-0.0.5-2.lv 100% |=========================| 108 kB 00:00
(9/14): x264-0-0.10.20070 100% |=========================| 245 kB 00:01
(10/14): xine-lib-extras- 100% |=========================| 533 kB 00:03
(11/14): faac-1.25-4.lvn8 100% |=========================| 82 kB 00:00
(12/14): vcdimager-0.7.23 100% |=========================| 657 kB 00:04
(13/14): faad2-2.0-21.200 100% |=========================| 210 kB 00:01
(14/14): ffmpeg-libs-0.4. 100% |=========================| 1.8 MB 00:12
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID a109b1ec
Importing GPG key 0xA109B1EC "Livna.org rpms <rpm-key@livna.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libdvdnav ####################### [ 1/14]
Installing: libmp4v2 ####################### [ 2/14]
Installing: faac ####################### [ 3/14]
Installing: a52dec ####################### [ 4/14]
Installing: libmad ####################### [ 5/14]
Installing: lame-libs ####################### [ 6/14]
Installing: xvidcore ####################### [ 7/14]
Installing: libdca ####################### [ 8/14]
Installing: x264 ####################### [ 9/14]
Installing: vcdimager ####################### [10/14]
Installing: faad2 ####################### [11/14]
Installing: ffmpeg-libs ####################### [12/14]
Installing: xine-lib-extras-nonfree ####################### [13/14]
Installing: amarok-extras-nonfree ####################### [14/14]

Installed: amarok-extras-nonfree.i386 0:1.4.4-1.lvn7
Dependency Installed: a52dec.i386 0:0.7.4-11.lvn8 faac.i386 0:1.25-4.lvn8 faad2.i386 1:2.0-21.20050131.lvn8 ffmpeg-libs.i386 0:0.4.9-0.41.20071011.lvn8 lame-libs.i386 0:3.97-6.lvn8 libdca.i386 0:0.0.5-2.lvn8 libdvdnav.i386 0:0.1.10-4.20070503.lvn8 libmad.i386 0:0.15.1b-5.lvn8 libmp4v2.i386 0:1.5.0.1-5.fc8 vcdimager.i386 0:0.7.23-3.lvn6 x264.i386 0:0-0.10.20070819.lvn8 xine-lib-extras-nonfree.i386 0:1.1.8-4.lvn8 xvidcore.i386 0:1.1.3-1.lvn8
Complete!
[root@localhost innovatel]#

Ora, non ci resta altro da fare che prendere un qualsiasi file MP3 e riprodurlo grazie ad Amarok! Ed ecco a voi, magia delle magie, i file MP3 si sentono!

Se ad Amarok preferite XMMS il comandi per installarlo assieme al supporto MP3 è il seguente:
[root@localhost innovatel]# yum install xmms xmms-mp3
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package xmms-mp3.i386 0:1.2.10-5.lvn6 set to be updated
---> Package xmms.i386 1:1.2.10-36.fc7 set to be updated
filelists.sqlite.bz2 100% |=========================| 68 kB 00:00
filelists.sqlite.bz2 100% |=========================| 8.0 MB 00:56
filelists.sqlite.bz2 100% |=========================| 905 kB 00:06
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
xmms i386 1:1.2.10-36.fc7 fedora 1.6 M
xmms-mp3 i386 1.2.10-5.lvn6 livna 88 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.7 M

Ovviamente non lo installo per non andare ad occupare inutilmente dello spazio su disco con dei tools che non utilizzo.
Un altro problema che si può avere con Fedora riguardo ai file MP3 è l'utilizzo di K3B il famoso programma di masterizzazione. Per dare a K3B il supporto ai file MP3 l'operazione è molto semplice:
[root@localhost innovatel]# yum install k3b-extras-nonfree
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package k3b-extras-nonfree.i386 0:1.0.3-1.lvn8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
k3b-extras-nonfree i386 1.0.3-1.lvn8 livna 71 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 71 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): k3b-extras-nonfree 100% |=========================| 71 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: k3b-extras-nonfree ######################### [1/1]

Installed: k3b-extras-nonfree.i386 0:1.0.3-1.lvn8
Complete!

Link Utili:
MP3 - Wikipedia
Amarok
XMMS
K3B

Etichette: , , , , , , , ,