VCHI initialization failed...

Recently purchased codecs and recieved the keys. I Added the license values to config.txt. ( when mounted to windows box ) ( ejected SD card before removing )

 

Booted Pi and conected from windows box via SSH - ran  vcgencmd codec_enabled MPG2  and I get VCHI initialization failed. Any ideas on what went wrong or what I need to do?

 

 


RasPlex1:~ $ vcgencmd codec_enabled MPG2
VCHI initialization failed
RasPlex1:~ $
 

I have the same problem/

Bought MPG2 today

added number into section of config.txt on Windows computer to SD

Then checked via SSH (Putty)

RasPlex:~ $ vcgencmd codec_enabled MPG2
VCHI initialization failed
RasPlex:~ $

Also:

RasPlex:~ $ vcgencmd version

VCHI initialization failed

RasPlex:~ $

Also tried to look at config.txt through Putty SSH:

RasPlex:~ $ sudo nano /boot/config.txt

-sh: sudo: not found

I am getting the same problems here. version 2.1 of rasplex

Do you have very new RPi’s?
If so, please wait for a new RasPlex version to get a updated firmware version and try again.

Hi


Where can I check that on my device? I will take a look when I get home tonight.

Try to install an other RPi OS like OpenELEC / RasbBMC / RaspBian and check if it works there.

from /proc/cpuinfo

ardware : BCM2708
Revision : 000d
 
and from this link http://raspberryalphaomega.org.uk/2013/02/06/automatic-raspberry-pi-board-revision-detection-model-a-b1-and-b2/
 
it appear I have 
 
			xd
		
			B2
		
			<p>Rev2 Model B, 512MB RAM, Ethernet, two USB sockets, five LEDs, mounting holes, Pin3=GPIO1, Pin5=GPIO2, Pin13=GPIO27, 12C-1, 8 extra IO pads (P5)</p>
		
	</div>

This is 2 versions newer then what might be the latest version.

Mine seems to have resolved itself.

So current version 2.1 seems to be looking ok.

2 Things

1) I just found out you need to "su -" before using the vcgencmd command.

2) update to 3.0 which is now reporting as 3.1 on the console seems to have broken the codecs. I have what claims to be a MPG2 file that now stutters and then freezes after a minute or so. However more telling is that, prior to purchasing and installing my license I could not play a channel I have installed in the server. in 2.1 it played perfectly. Now with 3.1(3.0) rasplex does a warm reboot

Any more feedback on this?

I too have purchased the MPG2 codecs, but can't for the life of me get them to work.

I also cant use the vgencmd commands either.

Thanks

Matt

Hi, I've finally got my Mpeg2 and VC-1 licenses working. At least I'm getting a good output to the vcgencmd, I'm not sure if they're actually used by rasplex during playback. 

Please if someone know how to check if the hardware decoding is actually working, would be great to know...

Anyway, to get my licenses working I took the /opt folder containing also vc from the official RaspberyPi firmware github package. You can find it here:

https://github.com/raspberrypi/firmware

- Remove the SD card from the Raspberry

- Insert it into your PC/MAC

- Take the /opt folder from the downloaded zip and copy it into the /System partition of your SDcard.

- Get back to your Rasp, insert the SDcard an boot it

If you've done everything correct and you've modified your config.txt you should be able to run vc now. I get this output on my Rasplex:

RasPlex:/usr/lib # vcgencmd version
Jul 15 2014 17:53:13 
Copyright (c) 2012 Broadcom
version ad89e56fcfdce27003bb1c722534d117d4bebf06 (clean) (release)

RasPlex:/usr/lib # vcgencmd codec_enabled MPG2
MPG2=enabled

RasPlex:/usr/lib # vcgencmd codec_enabled WVC1
WVC1=enabled

Anyway, as I said before I don't know any method to really know if the hardware decoding is enabled and working with rasplex.

I've also tried to copy all the updated firmware from official raspberryPi repo but I just kept getting kernelpanic or no boot at all.

Any more feedback on this?
 
I too have purchased the MPG2 codecs, but can't for the life of me get them to work.
 
I also cant use the vgencmd commands either.
 
Thanks
Matt

  

Hi, I've finally got my Mpeg2 and VC-1 licenses working. At least I'm getting a good output to the vcgencmd, I'm not sure if they're actually used by rasplex during playback. 
Please if someone know how to check if the hardware decoding is actually working, would be great to know...
 
Anyway, to get my licenses working I took the /opt folder containing also vc from the official RaspberyPi firmware github package. You can find it here:
 
https://github.com/raspberrypi/firmware
 
- Remove the SD card from the Raspberry
- Insert it into your PC/MAC
- Take the /opt folder from the downloaded zip and copy it into the /System partition of your SDcard.
- Get back to your Rasp, insert the SDcard an boot it
 
If you've done everything correct and you've modified your config.txt you should be able to run vc now. I get this output on my Rasplex:

RasPlex:/usr/lib # vcgencmd version
Jul 15 2014 17:53:13 
Copyright (c) 2012 Broadcom
version ad89e56fcfdce27003bb1c722534d117d4bebf06 (clean) (release)

RasPlex:/usr/lib # vcgencmd codec_enabled MPG2
MPG2=enabled

RasPlex:/usr/lib # vcgencmd codec_enabled WVC1
WVC1=enabled


Anyway, as I said before I don’t know any method to really know if the hardware decoding is enabled and working with rasplex.

 

I’ve also tried to copy all the updated firmware from official raspberryPi repo but I just kept getting kernelpanic or no boot at all.



You only need to add the licence code to config.txt, you don’t need to copy any files, make sure you remove the hash from the beginning of the line, once done reboot your Pi.


Rasplex does use the licences and hardware decoding to direct play MPEG2 files, particularly .ts files from recorded from tv using WMC, I have tested this recently for another forum post.


Regards

Anyway, as I said before I don't know any method to really know if the hardware decoding is enabled and working with rasplex.

Without the CODEC licenses installed in "config.txt" the playback of files using those CODECs should either fail completely or invoke the PMS transcoder, which can be seen during playback by pressing the "i" key of a connected USB keyboard. That will show an info overlay which includes information about direct-play or transcoding mode.
 

I've also tried to copy all the updated firmware from official raspberryPi repo but I just kept getting kernelpanic or no boot at all.

Like Ned already told you in his post, you're using inappropriate methods for trying to make the CODECs work. This does not require any homebrew patching of any system files whatever, since it's intended to work even for non-technical end users.

The code for the CODECs is already included in the standard software and just requires activation by having the bought license codes in a configuration file. Each time the system boots it will check these configured license codes for decrypted validity against the internal serial number of the RPi, and activate the CODECs for a successful match.

So it only requires editing the "config.txt" file on the SD card to add the license codes, which I always do directly after flashing it on a PC, simply by opening the flashed card in Windows Explorer and using a normal text editor to open and edit "config.txt", after which I remove the SD card (using the safe removal gadget in the system tray) and move it to the RPi for its first run.

Since you have already messed around with system files with erroneous results I recommend that you start over from scratch. This time just flash the card with the RasPlex 0.5.0 image and then, while the card is still connected to the PC, use a normal text editor to modify the CODEC license entries in "config.txt", replacing the 'dummy' codes with the license codes you received from the online shop of the Raspberry Pi, and removing the 'commenting' characters "# " at the start of each license code line.

Best regards: dlanor

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.