Fedora Multimedia Installation HOWTO
Fedora Multimedia Installation HOWTO
Table of Contents
1. Introduction.....................................................................................................................................................1 1.1. New versions of this document.........................................................................................................1 2. Packages, Tools and Repositories..................................................................................................................2 3. Security considerations and other risks........................................................................................................4 4. Macromedia Flash..........................................................................................................................................5 5. gstreamer and ffmpeg support......................................................................................................................6 6. MP3..................................................................................................................................................................7 7. Java ...................................................................................................................................................................8 8. RealAudio and RealVideo..............................................................................................................................9 9. MPEG, QuickTime, AVI, and DVDs..........................................................................................................10 10. Test pages for Web streaming...................................................................................................................11 11. Related Resources.......................................................................................................................................12 12. License and Copyright ................................................................................................................................13 13. Acknowledgements.....................................................................................................................................14
1. Introduction
There are some Damned Things like enabling Java and Flash in Mozilla, playing MP3 files, playing Quicktime/AVI/RealMedia/Windows Media streams, and playing encrypted DVDs that the Fedora distro folks won't tell you how to do, either because they're afraid of being sued under the DMCA or for various other esthetic and political reasons. This HOWTO collects the relevant information in one place. It is not a general multimediaonLinux HOWTO; if it were, there are hundreds of nifty tools and packages it would list (starting with the GIMP and all its kindred and forks and symbiotes). The packages we'll cover here are just the legal and political hot potatoes, the stuff that threatens monopolies and worries lawyers. Good background information on souping up your Fedora system can also be found at the FedoraNEWS website and the Unofficial Fedora FAQ. One assumption that distinguishes this document from these other sources is that you are as lazy as I am you want to install your Damned Things (and, later, update them) with your normal packagemanagement toolswith an absolute minimum of going to special sites, download source tarballs, or executing unique build procedures. Legal note: No source code or locations of source code of any software alleged to be covered by the DMCA is disclosed on this page, you will have to look on my personal website for that. The DMCA is a bad law rammed down our throats by fools and villains and the use of it to suppress free speech about software is a disgrace, but in order to ensure that this HOWTO gets maximum distribution I have remained in compliance with it here. One reason I am doing this is that I believe I'm a harder target for the attack lawyers than most hackers; public fame and a reputation for truthtelling are helpful here. If you are an attack lawyer, be warned that I invariably respond to attempts at intimidation by fighting back, that I am legally savvy and very good at working the press, and that I will exert all my considerable ability to make your and your client's name a public disgrace if you try to suppress my speech. You have been warned.
1. Introduction
Fedora Multimedia Installation HOWTO A site, located outside the U.S. and beyond the reach of the DMCA, that specifically dedicated to providing Damned Things that Fedora Core and Extras won't carry. There is no official connection, and in fact the Fedora people won't mention livna in their web pages or documentation for fear of being slammed with a speechsuppressing lawsuit by the evil scumweasels at the DVDCCA, but the livna people track what Fedora does very closely. The livna repositories depend on the Fedora repositories. They clash with the RPMForge repositories. http://macromedia.mplug.org/ The main source for packaged versions of Macromedia Flash. It's safe to use this RPM with any of the extensionrepository cliques. The three cliques I referred to earlier are RPMForge, livna (all by itself) and ATrpms (all by itself). With FC5 you can get all the multimedia support you theoretically need from livna, rather than using RPMforge as I advised in previous versions of this FAQ. I say 'theoretically' because, in fact, almost none of the video stuff actually works in FC5. To enable access to livna, do this:
rpm ivh http://rpm.livna.org/livnarelease5.rpm
4. Macromedia Flash
Fedora won't distribute from their site because Macromedia's license doesn't permit it, but there are no other legal barriers to using the RPMs at http://macromedia.mplug.org/. Follow those directions, dropping the Macromedia repository configuration in your /etc/yum.repos.d/ directory. It should look much like this:
[macromedia] name=Macromedia for i386 Linux baseurl=http://macromedia.mplug.org/rpm/ enabled=1 gpgcheck=1 gpgkey=http://macromedia.mplug.org/FEDORAGPGKEY
Installing this RPM should put the plugin in your Firefox plugin directories (and Mozilla's as well). You can test your flash support at the official test page. Note that you may have to kill and restart your browser after installing the plugin; I tried the Flash test immediately and it crashed Firefox. There's a gotcha: The Macromedia plugin works only for 32bit Intel boxes. It completely fails on an x86_64 running in 64bit mode (in general, 32bit plugins won't work in a 64bit browser). Currently there are three projects addressung this problem: gplflash1 is the orignal GPL Flash plugin. Only handles SWF up to level 4. gplflash2 halfworks, with painful amounts of flicker, and frequently crashes Firefox. This rewrite of gplflash has been abandoned in favor of gnash. gnash promises full support for SWF up to level 7, but is still in early development and surrounded by warnings. I think the right stopgap on 64bit systems might be to build and install gplflash1, but as of 21 Mar 2006 I can't because it needs an X header file I cannot yet find the right RPM for. This may change as the dust settles around FC5.
4. Macromedia Flash
This may also install mpeg2dec, libsidplay, libdvdread, faac, faad2, imlib, and gsm. The 'ugly' plugins enable gstreamer to handle MP3, MPEG2, and SID formats. The SID format is a historical relic from the Commodore 64. MP3 is the most popular audio format. MPEG2 is an audio/video format used in DVDs. The ffmpeg library can encode or decode MPEG1 audio and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
6. MP3
Fedora won't ship MP3capable software because the Fraunhofer Institute's patent license terms are not compatible with the GPL. The default music player in FC5 is Rhythmbox. I struggled with Rhythmbox for several hours, but despite its pretty face I found it unusable. It ignores track numbers or, at least, is not as smart at parsing them out of filenames as xmms is, and doesn't document its import rules anywhere. Trying to beat it into playing MP3s is a nightmare so scarifying that at one point I thought I was going to have to reinstall my entire Linux system just to get the ability to play Oggs back, because I couldn't figure out what piece of undocumented application state had gotten scrambled or how to clear it. The documentation is in general a bad joke glossy, superficial, and with no useful content about troubleshooting problems. The xmms player may not be as featureful or as nicelooking, but it works better. To install xmms and make it MP3capable, start by doing this:
yum install xmms xmmsmp3
To actually enable MP3 playing, you'll need to run xmms and change its configuration. Select Options Preferences Audio I/O Plugins from the menu; this will pop up a window listing plugins. Select "MPEG Layer 1/2/3 Placeholder Plugin" and uncheck [ ] Enable Plugin. With this placeholder gone, xmms will plug in xmmsmp3 automatically. Kill xmms and restart. On my x86_64 box I encountered the problem that xmms would only play sound as root, exiting immediately when run from a nonroot account. There are a number of mundane causes for this; check the permissions on your sound devices. There is one exotic problem which I tripped over; you may have to tell your sound module to grab lowmemory DMA buffers and not let go of them. To enable MP3 streaming through Firefox or Mozilla, install the gstreamerugly plugin and ffmpeg as described below. MP3 streams will play through xmms, podcasts through Totem.
6. MP3
7. Java
Java is downloadable and redistributable from Sun, but only for personal and notforprofit use. Sun's Java license is nonopensource, so Fedora and most other Linux distributions won't carry it. Fedora Core 5 includes an opensource Java implementation for programmers called gcj. You only need to take special action if you want to enable applets in your browser. The Unofficial Fedora FAQ has detailed instructions on how to do this. You can test your Java plugin at Sun's Applets page. Note that some of these applets (Escher and Starfield, when I checked) appear to be broken. BouncingHeads makes a good test. You might also want to copy the RPMS you built out of /usr/src/redhat/RPMS/ so you'll have then handy for reinstalls.
7. Java
Then download the RealPlayer10GOLD RPM and install it. On 32bit Fedora Core you may need to delete HelixPlayer with
rpm e HelixPlayer
before the 10GOLD version will work. x86_64 FC5 does not include HelixPlayer.
Doing this will also install a number of support libraries, including the libdvdcss plugin that the xine people won't talk about on their site because they are too frightened of the DVDCCA's attack lawyers. The 0.99.4 xine release displays an allwhite window and does nothing (at least on my plainvanilla Opteron machine using a nVidia GeForce2).
10
11
12
13
13. Acknowledgements
Miguel Freitas helped educate me about some of the techicalities of video formats.
13. Acknowledgements
14