Install MPG2 and WVC1 Codec on Rasplex

I bought the license for MPG2 and WVC1 codecs, but I am unsure on how to install it. My config document seems wrong (Below is what my config document says on my micro sd card). I have been unable to install via Putty.

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=1000

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
core_freq=500
sdram_freq=500
over_voltage=2

I moved this to the Rasplex forum due to your title. Someone here will be able to help much better than in the Linux subforum. :slight_smile:

@bocktimus

See this article http://www.howtogeek.com/137654/how-to-add-mpeg-2-and-vc-1-video-codec-support-to-your-raspberry-pi/

Regards

@NedtheNerd said:
@bocktimus

See this article http://www.howtogeek.com/137654/how-to-add-mpeg-2-and-vc-1-video-codec-support-to-your-raspberry-pi/

Regards

I did the manual cut and paste of my license keys onto my micro sd card but it’d didn’t work. in that article it shows a few lines of text above the decode segment; mine doesn’t have that. Is that an issue?

Difficult to read your config.txt, this is mine for both RPi2 and RPi3:

 gpu_mem=200
 gpu_mem_256=112
 gpu_mem_512=200
 gpu_mem_1024=256
 force_turbo=0
 hdmi_force_hot-plug=1
 hdmi_ignore_cec_init=1
 decode_MPG2=0xcb120cee
 decode_WVC1=0x172dd2ba
 dtoverlay=lirc-rpi
 dtparam=spi=on

Regards

@NedtheNerd said:
Difficult to read your config.txt, this is mine for both RPi2 and RPi3:

 gpu_mem=200
 gpu_mem_256=112
 gpu_mem_512=200
 gpu_mem_1024=256
 force_turbo=0
 hdmi_force_hot-plug=1
 hdmi_ignore_cec_init=1
 decode_MPG2=0xcb120cee
 decode_WVC1=0x172dd2ba
 dtoverlay=lirc-rpi
 dtparam=spi=on

Regards

Interesting that mine is so long and confusing. I will keep trying a few methods.

Can you attach your file to a post?

Regards

@NedtheNerd - I added a code block for the user, should make it easier for all to read (it was hurting my eyes…).

@bocktimus - It looks like there is a lot of commented items in your config (anything starting with #), Ned has these stripped out of his (since they are ignored anyway). Your config options actually being used are as follows:

#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=1000

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
core_freq=500
sdram_freq=500
over_voltage=2

Looks like you should just be able to modify it to be:

#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=1000

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
core_freq=500
sdram_freq=500
over_voltage=2

decode_MPG2=<insertyourkeyhere>
decode_WVC1=<insertyourkeyhere>

I’ve never added this to my pi, so Ned, please correct anything you see that I’ve said that is incorrect. :slight_smile:

@adamskoog Thank you. I will give this a try.

This is a weird config.txt, not from the original one installed with Rasplex, but if it works, fine. Just add the lines adamskoog suggested.

Regards

@adamskoog @NedtheNerd Got everything working. Thank you for the help.

@NedtheNerd said:
Difficult to read your config.txt, this is mine for both RPi2 and RPi3:

 gpu_mem=200
 gpu_mem_256=112
 gpu_mem_512=200
 gpu_mem_1024=256
 force_turbo=0
 hdmi_force_hot-plug=1
 hdmi_ignore_cec_init=1
 decode_MPG2=0xcb120cee
 decode_WVC1=0x172dd2ba
 dtoverlay=lirc-rpi
 dtparam=spi=on

Regards

Sorry to drag up an efectivly closed thread but I’m having similar issues with my bought licenses. @NedtheNerd is that 11 lines literally all that is in your config.txt file? Mines filled with lots of fluff and for the life of me after google-fu and forum searches cant get the licenses to take.

@willardd said:
Sorry to drag up an efectivly closed thread but I’m having similar issues with my bought licenses. @NedtheNerd is that 11 lines literally all that is in your config.txt file? Mines filled with lots of fluff and for the life of me after google-fu and forum searches cant get the licenses to take.

Yep, that’s all you need for default Rasplex install, make sure you change the licence codes to those supplied to you by raspberrypi.org.

You don’t really need the last two lines but I use RemotePi Boards, no harm in leaving them in.

On a couple of my RPi’s with additional hardware attached I have additional lines, eg, HiFiBerry, DAC pHAT, etc.

No point having scores of entries that are not being used, anything with a hash in front of it.

Regards

@NedtheNerd awesome, limiting it to those 11 lines makes it easier for my brain to swallow.

Ive edited my config file and rebooted but still not getting active licenses. Do i need to return to factory settings and setup again?

Sorry if its a simple question, I have searched for it and followed what everyone else has done in the results but haven’t had any luck

@NedtheNerd scratch that I worked out my issue.

I ordered 2 sets of licenses and the keys didnt lay out which Pi they were for and I was putting them back to front