gurnarok
Posts: 10
Joined: Thu Dec 29, 2011 6:51 am

[SOLVED] RPi 3 MPG2 code not activating

Sat Jan 13, 2018 5:57 pm

Hi,
I am having problems with MPEG 2 codec. I am running DietPi v159.

Code: Select all

[email protected]:~# vcgencmd get_config str
decode_MPG2=0xeedc5d33

Code: Select all

[email protected]:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2835
Revision        : a02082
Serial          : 00000000d3a27ac2

Code: Select all

[email protected]:~# vcgencmd version
Jan 11 2018 19:21:47
Copyright (c) 2012 Broadcom
version 0deb3d4e5956807bc641565696eeace31e3903c0 (clean) (release)

Code: Select all

[email protected]:~# vcgencmd codec_enabled MPG2
MPG2=disabled

Code: Select all

[email protected]:~# rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Your firmware is already up to date
Code was purchased from Raspberry Pi store. Still can't understand why the code doesn't work. Checked for the fourth time that the serial I gave when purchasing, is correct.


So, what can I do?
Last edited by gurnarok on Sat Jan 13, 2018 8:22 pm, edited 1 time in total.

B.Goode
Posts: 6544
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: RPi 3 MPG2 code not activating

Sat Jan 13, 2018 6:23 pm

So, what can I do?
As a comparison for troubleshooting purposes, I suggest installing a standard version of the Raspberry Pi Foundation recommended and supported Raspbian Operating System, and check whether your problem can be replicated on that platform.

asavah
Posts: 347
Joined: Thu Aug 14, 2014 12:49 am

Re: RPi 3 MPG2 code not activating

Sat Jan 13, 2018 7:45 pm

Dumb question: did you reboot the pi after adding the code?

User avatar
rpdom
Posts: 12949
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: RPi 3 MPG2 code not activating

Sat Jan 13, 2018 8:09 pm

How much memory is allocated to the GPU? vcgencmd get_mem gpu
It needs to be about 64MB or higher for the codec to activate.

gurnarok
Posts: 10
Joined: Thu Dec 29, 2011 6:51 am

Re: RPi 3 MPG2 code not activating

Sat Jan 13, 2018 8:11 pm

asavah wrote:
Sat Jan 13, 2018 7:45 pm
Dumb question: did you reboot the pi after adding the code?
Yes, I did reboot.
B.Goode wrote:
Sat Jan 13, 2018 6:23 pm
So, what can I do?
As a comparison for troubleshooting purposes, I suggest installing a standard version of the Raspberry Pi Foundation recommended and supported Raspbian Operating System, and check whether your problem can be replicated on that platform.
Ok, I made a normal raspbian installation, it seems to work in that. I might need to contact the Dietpi creator and ask about it.

B.Goode
Posts: 6544
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: RPi 3 MPG2 code not activating

Sat Jan 13, 2018 8:18 pm

Ok, I made a normal raspbian installation, it seems to work in that. I might need to contact the Dietpi creator and ask about it.
Before you do, retry your DietPi-based system.

I think I am correct in saying that enabling the licence is now a once-only operation that sets a bit in the OTP registers. You seem to have proved that bit has been set. The previous apparent failure with DietPi might have been in either updating or retrieving that setting. It might be that now Raspbian has set the bit that DietPi will retrieve and honour it?

Either way, you will have additional debug information to pass on to @fourdee.

Edit: and @rpdom's suggestion that your memory split may vary across systems is worth considering.

gurnarok
Posts: 10
Joined: Thu Dec 29, 2011 6:51 am

Re: RPi 3 MPG2 code not activating

Sat Jan 13, 2018 8:21 pm

rpdom wrote:
Sat Jan 13, 2018 8:09 pm
How much memory is allocated to the GPU? vcgencmd get_mem gpu
It needs to be about 64MB or higher for the codec to activate.
Ok, that helped. I had 16MB set on it. After setting it to 128MB, it is now activated.

Thank you.

Return to “Advanced users”