Fedora Linux Support Community & Resources Center
  #1  
Old 23rd July 2012, 02:52 AM
jwele Offline
Registered User
 
Join Date: Jul 2012
Location: Sacramento
Age: 23
Posts: 48
linuxfirefox
Codec Pack - Good Bad Ugly

Codec Pack Rat - A/V and Flash-Plugin Codec Pack!

This installs all gstreamer plugins and other restricted Audio/Video plugins from rpmfusion to enable playback of those pesky propriety non-OTB formats.

Also now downloads/installs Latest version of Adobe Flash plugin for your architecture =)

Supported Distributions:

Fedora 15+
32/64 Bit Compatibility
Untested: Fedora Pre-Release versions but code should work to best of my knowledge


Download from attachment below.
Attached Files
File Type: gz CodecPackRat.tar.gz (2.6 KB, 86 views)

Last edited by jwele; 24th July 2012 at 05:21 AM. Reason: Added Flash-Plugin installer and minor optimization.
Reply With Quote
  #2  
Old 23rd July 2012, 02:57 AM
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,846
linuxfirefox
Re: Codec Pack - Good Bad Ugly

Moved to programming until it's in final release form. Then we park it in the guides section. <....>
Reply With Quote
  #3  
Old 23rd July 2012, 04:12 AM
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,900
linuxfirefox
Re: Codec Pack - Good Bad Ugly

It would be nicer if that script wasn't hardcoded to only work for 15,16,17 and 18 (rawhide). In no time, fedora 19 will be rawhide and so on and the script will break. Personally the way I'd do that would be test if the installation has the fedora-release package or the fedora-release-rawhide package:

Code:
rc = subprocess.call(["rpm", "-q", "fedora-release-rawhide"])

rpmfusion = ["yum", "-y", "install", "--nogpgcheck"]   # note, "localinstall" is deprecated, "install" is fine
if rc == 1:
    rpmfusion.append("http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{0}.noarch.rpm".format("stable"))
    rpmfusion.append("http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{0}.noarch.rpm".format("stable"))
else:
    rpmfusion.append("http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{0}.noarch.rpm".format("rawhide"))
    rpmfusion.append("http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{0}.noarch.rpm".format("rawhide"))
Then just do the install of the rpmfusion repository using the 'rpmfusion' list created above, it won't need that long if elif statement any more:
Code:
subprocess.call(rpmfusion, shell=True)
Another improvement would be to move the os.getuid() != 0 test to the very start of the script since you don't want to do anything but print and exit if the getuid() is not 0.

Last edited by marko; 23rd July 2012 at 04:30 AM. Reason: localinstall is obsolete, "install" is fine now
Reply With Quote
  #4  
Old 23rd July 2012, 04:34 AM
jwele Offline
Registered User
 
Join Date: Jul 2012
Location: Sacramento
Age: 23
Posts: 48
linuxfirefox
Re: Codec Pack - Good Bad Ugly

Thanks MarkoI really appreciate the help. This is my first python script so I could use any and all comments to fix it up.
Reply With Quote
  #5  
Old 23rd July 2012, 05:23 AM
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,900
linuxfirefox
Re: Codec Pack - Good Bad Ugly

file with changes
Attached Files
File Type: txt install_rpmfusion.txt (1,005 Bytes, 82 views)
Reply With Quote
  #6  
Old 23rd July 2012, 07:25 AM
jwele Offline
Registered User
 
Join Date: Jul 2012
Location: Sacramento
Age: 23
Posts: 48
linuxfirefox
Re: Codec Pack - Good Bad Ugly

Fixed major bugs, expect flash plugin installer tomorrow.

Last edited by jwele; 23rd July 2012 at 07:29 AM.
Reply With Quote
  #7  
Old 23rd July 2012, 07:47 AM
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 28
Posts: 291
linuxfirefox
Re: Codec Pack - Good Bad Ugly

Asking out of curiosity; does this install anything beyond what Autoplus provides?
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #8  
Old 23rd July 2012, 08:00 AM
jwele Offline
Registered User
 
Join Date: Jul 2012
Location: Sacramento
Age: 23
Posts: 48
macossafari
Re: Codec Pack - Good Bad Ugly

I have yet to try Autoplus but this will download all gstreamer(good,bad,ugly,ffmpeg) codecs so you can watch the proprietary audio/video formats. At least I never run into a DVD or music file I can't play. I am adding flash-plugin installer tomorrow. Try it out! I just did 3 fresh installs on 3 different computers to ensure it works. Anything special you would like it to install? I can add it to my todo list if so. =)

Last edited by jwele; 23rd July 2012 at 08:03 AM.
Reply With Quote
  #9  
Old 23rd July 2012, 04:09 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,318
linuxfirefox
Re: Codec Pack - Good Bad Ugly

There is another issue.

Fedora and rpmfusion switch over their rawhide repos at different times in the development cycle.

Fedora switches over right before the alpha release, rpmfusion switches over right before the final release.

So, if you are running a Fedora alpha or beta, it's not rawhide in Fedora, but still rawhide in rpmfusion.

So, the checks to determine a rawhide version won't work if you happen to be running a alpha or beta pre-release version of fedora.
Reply With Quote
  #10  
Old 24th July 2012, 04:18 AM
jwele Offline
Registered User
 
Join Date: Jul 2012
Location: Sacramento
Age: 23
Posts: 48
macossafari
Re: Codec Pack - Good Bad Ugly

Quote:
Originally Posted by DBelton View Post
There is another issue.

Fedora and rpmfusion switch over their rawhide repos at different times in the development cycle.

Fedora switches over right before the alpha release, rpmfusion switches over right before the final release.

So, if you are running a Fedora alpha or beta, it's not rawhide in Fedora, but still rawhide in rpmfusion.

So, the checks to determine a rawhide version won't work if you happen to be running a alpha or beta pre-release version of fedora.
Won't the stable installs be just fine on alpha and beta releases?

---------- Post added at 08:18 PM ---------- Previous post was at 11:03 AM ----------

Flash-Plugin installer added!
Reply With Quote
  #11  
Old 24th July 2012, 04:22 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,318
linuxfirefox
Re: Codec Pack - Good Bad Ugly

No.

If you have a Fedora alpha or beta, then you need to use the rpmfusion rawhide repo. It switches over to the regular rpmfusion repo just before the final release.

I keep hoping they will change rpmfusion to the same switchover schedule that Fedora has now, but so far they haven't.

For example.. When the F17 alpha was released, Fedora had switched over and not using the rawhide repo for a week or two. If you wanted any packages from rpmfusion, then you had to install the rawhide repo since that's where the F17 packages were.

Now, as of August 8 (if everything goes right) Fedora rawhide will be F19, and F18 packages will move to it's own repos. But, F18 packages in rpmfusion will still be in the rawhide repos.
Reply With Quote
  #12  
Old 24th July 2012, 04:35 AM
jwele Offline
Registered User
 
Join Date: Jul 2012
Location: Sacramento
Age: 23
Posts: 48
linuxfirefox
Re: Codec Pack - Good Bad Ugly

ok well I could temporarily edit the code so that it checks to see if your fedora 18 and not rawhide if so download rawhide repo from rpmfusion. Do you think though as of August 8 that the new rawhide (fedora 19) will also use the same rpmfusion rawhide version? If not I would have to host these files somewhere so that I can specifically delegate on a per version basis these rpm's to the correct computer.
Reply With Quote
  #13  
Old 24th July 2012, 04:45 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,318
linuxfirefox
Re: Codec Pack - Good Bad Ugly

That I am not certain of, but the rawhide repo for F18 remained the same as the one for F17. I believe the rpmfusion rawhide repo had both F17 and F18 packages in the same repo until the F17 final release when it switched over to the regular repo.

I would bet that both F18 and F19 packages will be in the same rawhide repo until the F18 final release, when F18 will move to it's own repo and F19 will remain in rawhide.

Leigh (Yellowman) could probably answer this conclusively since he builds some packages for rpmfusion.
Reply With Quote
Reply

Tags
codec, gstreamer, mp3, mpeg, video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F15 from F13, the good and the ugly dtelford719 Installation, Upgrades and Live Media 1 7th June 2011 07:54 AM
Flash Player/Good Codec pack. KieronBoz Using Fedora 7 23rd December 2008 01:47 PM
totem xine towards the "all" codec pack from mplayer roskoo Using Fedora 16 18th July 2007 09:06 AM
Amarok, Codec Pack EerFoolWVU Using Fedora 1 6th April 2007 11:12 PM
mplayer with techsmith screen codec ugly text liraz Using Fedora 2 13th May 2005 02:23 PM


Current GMT-time: 05:45 (Sunday, 20-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat