 |
 |
 |
 |
| Programming & Packaging A place to discuss programming and packaging. |

23rd July 2012, 02:52 AM
|
 |
Registered User
|
|
Join Date: Jul 2012
Location: Sacramento
Age: 22
Posts: 33

|
|
|
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.
Last edited by jwele; 24th July 2012 at 05:21 AM.
Reason: Added Flash-Plugin installer and minor optimization.
|

23rd July 2012, 02:57 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: Codec Pack - Good Bad Ugly
Moved to programming until it's in final release form. Then we park it in the guides section. <..  ..>
|

23rd July 2012, 04:12 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,442

|
|
|
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
|

23rd July 2012, 04:34 AM
|
 |
Registered User
|
|
Join Date: Jul 2012
Location: Sacramento
Age: 22
Posts: 33

|
|
|
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.
|

23rd July 2012, 05:23 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,442

|
|
|
Re: Codec Pack - Good Bad Ugly
file with changes
|

23rd July 2012, 07:25 AM
|
 |
Registered User
|
|
Join Date: Jul 2012
Location: Sacramento
Age: 22
Posts: 33

|
|
|
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.
|

23rd July 2012, 07:47 AM
|
 |
Registered User
|
|
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291

|
|
|
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!
|

23rd July 2012, 08:00 AM
|
 |
Registered User
|
|
Join Date: Jul 2012
Location: Sacramento
Age: 22
Posts: 33

|
|
|
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.
|

23rd July 2012, 04:09 PM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,613

|
|
|
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.
|

24th July 2012, 04:18 AM
|
 |
Registered User
|
|
Join Date: Jul 2012
Location: Sacramento
Age: 22
Posts: 33

|
|
|
Re: Codec Pack - Good Bad Ugly
Quote:
Originally Posted by DBelton
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!
|

24th July 2012, 04:22 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,613

|
|
|
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.
|

24th July 2012, 04:35 AM
|
 |
Registered User
|
|
Join Date: Jul 2012
Location: Sacramento
Age: 22
Posts: 33

|
|
|
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.
|

24th July 2012, 04:45 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,613

|
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 09:59 (Saturday, 18-05-2013)
|
|
 |
 |
 |
 |
|
|