XBMC: Difference between revisions

800 bytes added ,  4 years ago
Line 262:
<br>
 
= Patch for MPEG2 & VC1 Codecs =
Source: [https://www.reddit.com/r/raspberry_pi/comments/8sg0a6/patch_for_mpeg2_vc1_license_again_for_osmc/#bottom-comments reddit.com]
 
*Convert Binary to Hex & grep the file contents:
xxd -u start_x.elf > start_x.elf.hex
grep '47 *E9 *33 *36 *32 *48' start_x.elf.hex
00b9db0: 47E9 4341 4C46 2118 47E9 3336 3248 1D18 G.CALF!.G.362H..
 
*Backup files:
cp /boot/start_x.elf /boot/start_x.elf_backup
cp /boot/start_x.elf ~/start_x.elf
cd ~
cp start_x.elf start_x.elf_backup
 
*Convert \x1D\x18 -> \x1D\x1F:
perl -pne 's/\x47\xE9362H\x1D\x18/\x47\xE9362H\x1D\x1F/g' < start_x.elf_backup > start_x.elf
diff start_x.elf start_x.elf_backup # This should show binaries are different
 
*Replace the binary:
mv ~/start_x.elf /boot/start_x.elf
reboot
<br>
 
{{DISQUS}}