Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

5

Threads

355

Posts

2310

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2310
Post time 2015-11-22 05:22:08 | Show all posts
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

1128

Posts

8200

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
8200
Post time 2015-11-22 16:24:24 From the mobile phone | Show all posts
@zhao_steven, please check PM for my email

4

Threads

1128

Posts

8200

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
8200
Post time 2015-11-22 20:33:11 | Show all posts
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| Post time 2015-11-23 10:32:14 | Show all posts
Just pulled git and started a fresh build, hopefully its ready when I get home from work. (lunch time now)

4

Threads

1128

Posts

8200

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
8200
Post time 2015-11-24 02:31:42 | Show all posts
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| Post time 2015-11-24 09:32:03 | Show all posts
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

1128

Posts

8200

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
8200
Post time 2015-11-24 15:00:03 | Show all posts
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| Post time 2015-11-25 20:56:48 | Show all posts
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

1128

Posts

8200

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
8200
Post time 2015-11-26 01:59:22 | Show all posts
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 the 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 the 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

1128

Posts

8200

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
8200
Post time 2015-11-26 01:59:39 | Show all posts
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 the 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 the 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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2021-10-17 20:23 GMT+8 , Processed in 0.033785 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list