please choosego to mobile | Continue to access the PC version
Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

5

threads

355

posts

2430

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2430
Published in 2015-11-22 05:22:08 | Show all floors
Edited by fritz at 2015-11-22 13:06

@jernej
As I know nobody has tried to implement this.
Allwinner is a repellent for some Kodi developers.
in the past there have been some unpleasant episodes........

@zhao_steven
I have received nothing, you know very well my email check : Updates or patches for the H3 SDK (lichee + android)
You should know all emails used for subscription here. You are the @admin of this forum
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

4

threads

1119

posts

8558

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
8558
Published in 2015-11-22 16:24:24 from mobile | Show all floors
@zhao_steven, please check PM for my email

4

threads

1119

posts

8558

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
8558
Published in 2015-11-22 20:33:11 | Show all floors
Edited by jernej at 2015-11-22 13:34

@fritz,
I'm beginning to understand why now when I started to develop something on their platform. Lets just hope that mainline kernel catches up quickly. Unfortunately, that again depends on Allwinner releasing more complete documentation (at least for multiple cpu support).

However, chinese company Zidoo already made an open source CedarX  H3 support for Kodi at https://github.com/zidootech/zid ... s/Video/AWCodec.cpp In order to integrate it more cleanly in Kodi 16 I just hope that I can find CedarX libraries which works on Linux. One possibility is Allwinner's own source code published at https://github.com/allwinner-zh/ ... master/sunxi-cedarx or zhao_steven version.

In the mean time, OpenMAX version should be OK for H264 and MPEG4.
 Author| Published in 2015-11-23 10:32:14 | Show all floors
Just pulled git and started a fresh build, hopefully its ready when I get home from work. (lunch time now)

4

threads

1119

posts

8558

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
8558
Published in 2015-11-24 02:31:42 | Show all floors
Anyone care to help me with kswapd issue?

It's using 100% time of one CPU core. It seems that all kswapd patches are already applied and I couldn't find any kernel option which would help.

@zhao_steven,
do you have access to a better kernel source? This one is hard to work with, mildly put.
 Author| Published in 2015-11-24 09:32:03 | Show all floors
Edited by swordfish6975 at 2015-11-24 09:35

Hey @jernej,

Testing last night only one USB was working, also something is strange with the sound like high pitched sounds play fine but anything with any deep or mid-range tones is all static.

I have been trying to rectify the sound issues with no success yet.


Anyone know a command to play an MP3 file?  (the internet seems to say install  mpg123 but we cant do this easly in openelec)

4

threads

1119

posts

8558

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
8558
Published in 2015-11-24 15:00:03 | Show all floors
Edited by jernej at 2015-11-24 16:54
swordfish6975 replied at 2015-11-24 02:32
Hey @jernej,

Testing last night only one USB was working, also something is strange with the sound  ...

Do you know what to do for USB?

You can try to use ffmpeg for mp3 playback. It seems that it has avdevice output, however I can't help you more ATM. You can always add new package in build system to get mpg123 build.

EDIT: I mixed up some things.



 Author| Published in 2015-11-25 20:56:48 | Show all floors
Do you know what to do for USB?

nope, very new to this


You can always add new package in build system to get mpg123 build.

cool any pointers would be appreciated so i can test the sound more

4

threads

1119

posts

8558

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
8558
Published in 2015-11-26 01:59:22 | Show all floors
It seems that you must change usb settings in script.bin file. Fex file is in packages/tools/u-boot/extra folder. You can take a look in fex file from loboris located at https://github.com/loboris/Orang ... uild/orange_pi2.fex Actually, you can replace the whole file, just be carefull that he enabled highest CPU frequency for which some kind of cooler is required. Be careful not to change file name, it should be still orange_pi2.fex

After that, you can force rebuild u-boot by issuing following command:
  1. PROJECT=OPi2 ARCH=arm scripts/clean u-boot
Copy code


Then prepare image as ussual.

About building mpg123 - there is a lot of different things to know about adding packages, but for mpg123 is actually pretty simple. Just add following lines:
  1. ################################################################################
  2. #      This file is part of OpenELEC - http://www.openelec.tv
  3. #      Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) <- this should probably be your name
  4. #
  5. #  OpenELEC is free software: you can redistribute it and/or modify
  6. #  it under the terms of the GNU General Public License as published by
  7. #  the Free Software Foundation, either version 2 of the License, or
  8. #  (at your option) any later version.
  9. #
  10. #  OpenELEC is distributed in the hope that it will be useful,
  11. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. #  GNU General Public License for more details.
  14. #
  15. #  You should have received a copy of the GNU General Public License
  16. #  along with OpenELEC.  If not, see <http://www.gnu.org/licenses/>.
  17. ################################################################################

  18. PKG_NAME="mpg123"
  19. PKG_VERSION="1.22.4"
  20. PKG_REV="1"
  21. PKG_ARCH="any"
  22. PKG_LICENSE="GPL"
  23. PKG_SITE="http://sourceforge.net/projects/mpg123/"
  24. PKG_URL="$SOURCEFORGE_SRC/$PKG_NAME/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2"
  25. PKG_DEPENDS_TARGET="toolchain alsa-lib"
  26. PKG_PRIORITY="optional"
  27. PKG_SECTION="multimedia"
  28. PKG_SHORTDESC="mpg123: play sound files"
  29. PKG_LONGDESC="Play sound files"

  30. PKG_IS_ADDON="no"
  31. PKG_AUTORECONF="yes"
Copy code


in packages/multimedia/mpg123/package.mk I hope that it is self explanatory. For other possible examples take a look to other package.mk files. I'm not sure there is tutorial about that. I learnt with looking at other packages.

After that, you must just include this package as dependecy somewhere. Because this is development tool, you can add it to a list in packages/testing/package.mk. Just replace PKG_DEPENDS_TARGET="toolchain" with PKG_DEPENDS_TARGET="toolchain mpg123" and edit distributions/OpenELEC/options file in which you set testing to yes.

4

threads

1119

posts

8558

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
8558
Published in 2015-11-26 01:59:39 | Show all floors
It seems that you must change usb settings in script.bin file. Fex file is in packages/tools/u-boot/extra folder. You can take a look in fex file from loboris located at https://github.com/loboris/Orang ... uild/orange_pi2.fex Actually, you can replace the whole file, just be carefull that he enabled highest CPU frequency for which some kind of cooler is required. Be careful not to change file name, it should be still orange_pi2.fex

After that, you can force rebuild u-boot by issuing following command:
  1. PROJECT=OPi2 ARCH=arm scripts/clean u-boot
Copy code


Then prepare image as ussual.

About building mpg123 - there is a lot of different things to know about adding packages, but for mpg123 is actually pretty simple. Just add following lines:
  1. ################################################################################
  2. #      This file is part of OpenELEC - http://www.openelec.tv
  3. #      Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) <- this should probably be your name
  4. #
  5. #  OpenELEC is free software: you can redistribute it and/or modify
  6. #  it under the terms of the GNU General Public License as published by
  7. #  the Free Software Foundation, either version 2 of the License, or
  8. #  (at your option) any later version.
  9. #
  10. #  OpenELEC is distributed in the hope that it will be useful,
  11. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. #  GNU General Public License for more details.
  14. #
  15. #  You should have received a copy of the GNU General Public License
  16. #  along with OpenELEC.  If not, see <http://www.gnu.org/licenses/>.
  17. ################################################################################

  18. PKG_NAME="mpg123"
  19. PKG_VERSION="1.22.4"
  20. PKG_REV="1"
  21. PKG_ARCH="any"
  22. PKG_LICENSE="GPL"
  23. PKG_SITE="http://sourceforge.net/projects/mpg123/"
  24. PKG_URL="$SOURCEFORGE_SRC/$PKG_NAME/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2"
  25. PKG_DEPENDS_TARGET="toolchain alsa-lib"
  26. PKG_PRIORITY="optional"
  27. PKG_SECTION="multimedia"
  28. PKG_SHORTDESC="mpg123: play sound files"
  29. PKG_LONGDESC="Play sound files"

  30. PKG_IS_ADDON="no"
  31. PKG_AUTORECONF="yes"
Copy code


in packages/multimedia/mpg123/package.mk I hope that it is self explanatory. For other possible examples take a look to other package.mk files. I'm not sure there is tutorial about that. I learnt with looking at other packages.

After that, you must just include this package as dependecy somewhere. Because this is development tool, you can add it to a list in packages/testing/package.mk. Just replace PKG_DEPENDS_TARGET="toolchain" with PKG_DEPENDS_TARGET="toolchain mpg123" and edit distributions/OpenELEC/options file in which you set testing to yes.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list