Jump to content


Photo

Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit


  • Please log in to reply
2062 replies to this topic

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #421 Raider05

  • Senior Member
  • 75 posts

+4
Neutral

Posted 30 January 2012 - 12:21

Hi Betacentauri,
Yes, talking about this procedure

void cXineLib::set_zoom_settings(int x, int y)
{
xine_set_param(stream, XINE_PARAM_VO_ZOOM_X, x);
xine_set_param(stream, XINE_PARAM_VO_ZOOM_Y, y);
}


doesn't work. Right?

That's right, with xine-lib 1.2 I do not work

You can test it
Settings - System - Audio / Video
And choose - View as 4:3 --- Zoom
X - 130, Y - 120
and View as 16:9 --- Zoom
X-103, Y -103
The image is stretched in these settings

Regards,
Raider05

E2PC, Ubuntu 12.04 x86, DVB-S2 card Omicom SkyStar 4, Nvidia card 9500GT 512Mb DDR2 driver 195.36.24, Satellites 9.0E, 36.0E

Git enigma2pc


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #422 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 30 January 2012 - 14:43

@Raider05,

I just do some more test with OScam and vdpau driver, so I build today OScam version (6323) and it seems to work just fine, the previous version that I was using (6260) have indeed some problems but only with vdpau driver.

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #423 casacristo

  • Member
  • 30 posts

0
Neutral

Posted 30 January 2012 - 18:02

Thanks for your help, but yes I had placed the files in the proper places.


I´ve used dreamboxedit and bouquet editor suite to come up with a list of channels and bouquets
But it does not seem to work, gives an error on SID or PAT

any ideas what went wrong?


Hi,

Do you change the destination path in Dreamboxedit?
OpenpliPC is not using the same path as Enigma2.

lamedb and your favorite should be placed there: /usr/local/e2/etc/enigma2
you satellite.xml should be place there: /usr/local/e2/etc/tuxbox

Skin are placed there: /usr/local/e2/share/enigma2
And fonts for skin: /usr/local/e2/share/fonts

Morevover you need to be root (sudo) to place file in those folders.

Regards,

Pr2



Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #424 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 30 January 2012 - 19:26

Thanks for your help, but yes I had placed the files in the proper places.



I´ve used dreamboxedit and bouquet editor suite to come up with a list of channels and bouquets
But it does not seem to work, gives an error on SID or PAT

any ideas what went wrong?


Hi,

Do you change the destination path in Dreamboxedit?
OpenpliPC is not using the same path as Enigma2.

lamedb and your favorite should be placed there: /usr/local/e2/etc/enigma2
you satellite.xml should be place there: /usr/local/e2/etc/tuxbox

Skin are placed there: /usr/local/e2/share/enigma2
And fonts for skin: /usr/local/e2/share/fonts

Morevover you need to be root (sudo) to place file in those folders.

Regards,

Pr2


Hi together,

let's switch in mind to a normal stb for a second:
I have in mind that you need a running webinterface to get dreamboxedit working. Is that right?

Let's switch back to openpliPC:
So as long you don't have a webinterface, dreamboxedit won't work. I don't have installed a webinterface. I think nobody9 had it, because he was
very active in developing the new webinterface. Unfortunately he didn't show up the last weeks.
Is there somebody with a running webinterface on openpliPC?

Regards,
Betacentauri

Edited by betacentauri, 30 January 2012 - 19:27.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #425 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 30 January 2012 - 19:36

Is there somebody with a running webinterface on openpliPC?


Simple answer. Yes, me ;)
A few seconds ago I found this:
Execute
build_openpwebif.sh
in openpliPC directory.
Then start E2 and you use a normal webbrowser to see webinterface (URL: http://localhost/)

@casacristo: Please try then (with running E2) to use dreamboxedit.

Edited by betacentauri, 30 January 2012 - 19:37.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #426 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 30 January 2012 - 19:56

Hi,

No Dreamboxedit doesn't need the webinterface, what it needs is telnet and FTP access.
So people needs to enable this on their Linux PC, but personally I don't use it, since I am doing many test I have just locally on the PC a backup of my channel list and settings that I restore with a simple script after each build.

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #427 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 30 January 2012 - 22:57

Hi Pr2,

I found some posts (only in german) which say that the webinterface is necessary (some say without it won't run, others say it is only needed for E2 restart after upload of the new settings)....
Nevertheless we/I have learned how to install the new webinterface ;)

Regards,
Betacentauri
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #428 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 30 January 2012 - 23:22

Hi,

some new patches (only OSD branch):[list]
[*]OpenGL driver: OSD aspect ratio wasn't correct
[*]OpenGL and XSHM driver: Some skins show scaled video in a small window (e.g. openpli HD skin). This is now also possible with these 2 drivers. For xshm the result is not 100% perfect. Sometimes the background shimmers through (at right side or at bottom). I tried to fix it, but I didn't find a solution (it might be a scaling/rounding problem).
[/list]
Regards,
Betacentauri

Edited by betacentauri, 30 January 2012 - 23:23.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #429 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 31 January 2012 - 13:51

Hi,

There is a bug when you change the openpliPC destination path: nim_sockets is still searched on the default location (/usr/local/e2/etc/tuxbox/nim_sockets)

If you define another destination path for your OpenpliPC destination (by setting it into the build_openpliPC.sh script parameter: INSTALL_E2DIR) the openpliPC is still looking for nim_sockets file into /usr/local/e2/etc/tuxbox folder instead of searching for it in the mentionned path in the build_openpliPC.sh (INSTALL_E2DIR).

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #430 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 31 January 2012 - 20:16

Hi Pr2,

the path is hardcoded in the sources many times (first count approx 100 times) :( So it will take some time to change it.

Changing it in C++ shouldn't be a problem for me, but I have never worked with Python before. So if there is somebody
who can help with it, it would be great.

Regards,
Betacentauri
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #431 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 31 January 2012 - 22:47

Hi Betacentauri,
Yes, talking about this procedure


void cXineLib::set_zoom_settings(int x, int y)
{
xine_set_param(stream, XINE_PARAM_VO_ZOOM_X, x);
xine_set_param(stream, XINE_PARAM_VO_ZOOM_Y, y);
}


doesn't work. Right?

That's right, with xine-lib 1.2 I do not work

You can test it
Settings - System - Audio / Video
And choose - View as 4:3 --- Zoom
X - 130, Y - 120
and View as 16:9 --- Zoom
X-103, Y -103
The image is stretched in these settings

Regards,
Raider05


Hi Raider05,

sorry, I wasn't able to reproduce it yet. The problem is that zooming is not possible(not implemented) with XSHM and OpenGL driver. And I cannot use the vdpau driver because I don't have a nvidia card.
I have compared vdpau source between the branches -> no difference
I have compared some other files which are also involved -> no difference
I have checked whether the zoom parameters were passed to vdpau driver -> yes, 130,120 or 103,103 were passed to driver

Can you please switch to a channel where zooming doesn't work. Then please restart E2 and wait some seconds. Then stop E2 and post log(please without channel switch). Perhaps I can see something in the log.

Regards,
Betacentauri

Edited by betacentauri, 31 January 2012 - 22:48.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #432 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 1 February 2012 - 20:27

Hello,

can please somebody help me with python:
This is a line from NimManager.py:
open("/usr/local/e2/etc/stb/frontend/%d/rf_switch" % self.frontend_id, "w").write("internal")

If wanna use eEnv.resolve for the path.
This this correct?
open(eEnv.resolve("${sysconfdir}/stb/frontend/%d/rf_switch") % self.frontend_id, "w").write("internal")

Or is this correct?
open(eEnv.resolve("${sysconfdir}/stb/frontend/%d/rf_switch" % self.frontend_id ), "w").write("internal")

Regards
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #433 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 2 February 2012 - 12:19

Hi,

If I was you I would test this:

Add at the beginning of the python file the following import:

import os

The change the line

open("/usr/local/e2/etc/stb/frontend/%d/rf_switch" % self.frontend_id, "w").write("internal")

With this one:

open(os.getenv('sysconfdir',"/usr/local/e2") + "/stb/frontend/%d/rf_switch" % self.frontend_id, "w").write("internal")

Be carefull that 'sysconfdir' is case sensitive. Be also carefull if you set or not the final / in the end of the value set into 'sysconfdir' because I don't know how it will react in case of double //. To be clear I don't know if /usr/local/e2//stb/frontend... will work so it is perhaps better to avoid the ending / when you set the variable.


os.getenv will return the value of sysconfdir if the variable exist but will return "/usr/local/e2" if it doesn't exist, so this should not break the OpenpliPC working if the variable is not set.

You also have os.putenv if you want to set environment variable from within python.

Source: http://docs.python.org/library/os.html
Hope it will work. ;)

Pr2

Edited by Pr2, 2 February 2012 - 12:22.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #434 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 2 February 2012 - 20:57

Hi Pr2,

thanks for the answer!!
I don't want to read a OS system variable. eEnv.resolve is a C++ function which revolves the given variable. The only question is which python syntax is correct. Well, it seems that both are correct.

Regards,
Betacentauri
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #435 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 2 February 2012 - 21:31

Hi,

I think that you cannot mix up C language and Python, since I think that Python code is not passed in the compiler, it is build when you start OpenpliPC.

With the proposed solution, people don't really need to define the environment variable since if doesn't exist it will automatically return the default value define as second parameter.
So this will fit most of the end-user needs, and we can always document that we need to set an environment variable when we change the default path.

Moreover with python os.putenv it is also possible to define the environment variable at run time but we need to find a way to generate it, but this is not a "must have" I think.

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #436 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 2 February 2012 - 22:08

Hi Pr2,

"Enigma2 is based on the python with a backend written in C++". And you can write a plugin in python which can call C++ functions in the C++ part.

Regards,
Betacentauri
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #437 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 2 February 2012 - 22:10

Hi,

I think that the easiest and more universal solution is to change the absolute path to access the file into relative path.

Pr2

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #438 Raider05

  • Senior Member
  • 75 posts

+4
Neutral

Posted 3 February 2012 - 12:21


Hi Betacentauri,
Yes, talking about this procedure


void cXineLib::set_zoom_settings(int x, int y)
{
xine_set_param(stream, XINE_PARAM_VO_ZOOM_X, x);
xine_set_param(stream, XINE_PARAM_VO_ZOOM_Y, y);
}


doesn't work. Right?

That's right, with xine-lib 1.2 I do not work

You can test it
Settings - System - Audio / Video
And choose - View as 4:3 --- Zoom
X - 130, Y - 120
and View as 16:9 --- Zoom
X-103, Y -103
The image is stretched in these settings

Regards,
Raider05


Hi Raider05,

sorry, I wasn't able to reproduce it yet. The problem is that zooming is not possible(not implemented) with XSHM and OpenGL driver. And I cannot use the vdpau driver because I don't have a nvidia card.
I have compared vdpau source between the branches -> no difference
I have compared some other files which are also involved -> no difference
I have checked whether the zoom parameters were passed to vdpau driver -> yes, 130,120 or 103,103 were passed to driver

Can you please switch to a channel where zooming doesn't work. Then please restart E2 and wait some seconds. Then stop E2 and post log(please without channel switch). Perhaps I can see something in the log.

Regards,
Betacentauri

Hi, Betacentauri
Thank you for your support

I can't now connect the antenna, so post the log of recorded channels. The log will be identical.
Here is the log from the xine-lib-1.2.0-merge (January 26)


Part of the log
VIDEO_SLOWMOTION(0)
VIDEO_FAST_FORWARD(0)
VIDEO_CONTINUE
AUDIO_CONTINUE
AUDIO_CHANNEL_SELECT(0)
eDVBServicePlay::seekTo: jump 0
seek.
stopping thread.
FILEPUSH THREAD STOP
thread joined 0
setIoPrio best-effort level 0 ok
FILEPUSH THREAD START

This log xine-lib (26 December)
And the same part of the log
VIDEO_SLOWMOTION(0)
VIDEO_FAST_FORWARD(0)
VIDEO_CONTINUE
AUDIO_CONTINUE
AUDIO_CHANNEL_SELECT(0)
eDVBServicePlay::seekTo: jump 0
vdpau_set_property: property=1, value=0
vdpau_set_property: property=8, value=130
vdpau_set_property: property=13, value=120
vdpau_set_property: property=24, value=1
vo_vdpau: enable sharpness.
vdpau_set_property: property=25, value=1
vo_vdpau: enable noise reduction.
vo_vdpau: deinterlace: temporal
vo_vdpau: set_scaling_level=0
vo_vdpau: enabled features: inverse_telecine=0
vo_vdpau: enable noise reduction.
vo_vdpau: enable sharpness.
vo_vdpau: vdpau_update_csc: hue=0.000000, saturation=1.000000, contrast=1.000000, brightness=0.000000, color_standard=0 studio_levels=1
vo_vdpau: skip_chroma = 0
seek.
stopping thread.
FILEPUSH THREAD STOP
thread joined 0
setIoPrio best-effort level 0 ok
FILEPUSH THREAD START

Regards, Raider05

E2PC, Ubuntu 12.04 x86, DVB-S2 card Omicom SkyStar 4, Nvidia card 9500GT 512Mb DDR2 driver 195.36.24, Satellites 9.0E, 36.0E

Git enigma2pc


Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #439 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 3 February 2012 - 17:30

Hi, Betacentauri
Thank you for your support

I can't now connect the antenna, so post the log of recorded channels. The log will be identical.
Here is the log from the xine-lib-1.2.0-merge (January 26)


Part of the log

VIDEO_SLOWMOTION(0)
VIDEO_FAST_FORWARD(0)
VIDEO_CONTINUE
AUDIO_CONTINUE
AUDIO_CHANNEL_SELECT(0)
eDVBServicePlay::seekTo: jump 0
seek.
stopping thread.
FILEPUSH THREAD STOP
thread joined 0
setIoPrio best-effort level 0 ok
FILEPUSH THREAD START

This log xine-lib (26 December)
And the same part of the log
VIDEO_SLOWMOTION(0)
VIDEO_FAST_FORWARD(0)
VIDEO_CONTINUE
AUDIO_CONTINUE
AUDIO_CHANNEL_SELECT(0)
eDVBServicePlay::seekTo: jump 0
vdpau_set_property: property=1, value=0
vdpau_set_property: property=8, value=130
vdpau_set_property: property=13, value=120
vdpau_set_property: property=24, value=1
vo_vdpau: enable sharpness.
vdpau_set_property: property=25, value=1
vo_vdpau: enable noise reduction.
vo_vdpau: deinterlace: temporal
vo_vdpau: set_scaling_level=0
vo_vdpau: enabled features: inverse_telecine=0
vo_vdpau: enable noise reduction.
vo_vdpau: enable sharpness.
vo_vdpau: vdpau_update_csc: hue=0.000000, saturation=1.000000, contrast=1.000000, brightness=0.000000, color_standard=0 studio_levels=1
vo_vdpau: skip_chroma = 0
seek.
stopping thread.
FILEPUSH THREAD STOP
thread joined 0
setIoPrio best-effort level 0 ok
FILEPUSH THREAD START

Regards, Raider05


Hi Raider05,

thanks for the logs and first analysis. Now I found some differences between old xine lib and new one. Attached is a zip containing 4 files. Please unzip it and put the files in this directory:
openpliPC/xine-lib/src/video_dec/libvdpau/ (replace existing files!!).
Recompile everything. Problem should be fixed.
Please report whether it helped or not.

Regards,
Betacentauri

Attached Files


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #440 Raider05

  • Senior Member
  • 75 posts

+4
Neutral

Posted 4 February 2012 - 10:24

Hi Betacentauri and thank.

It works now zooming for MPEG-4 :) , MPEG2 not works.
Must be changed file vdpau_mpeg12.c ?

Regards, Raider05.

E2PC, Ubuntu 12.04 x86, DVB-S2 card Omicom SkyStar 4, Nvidia card 9500GT 512Mb DDR2 driver 195.36.24, Satellites 9.0E, 36.0E

Git enigma2pc



31 user(s) are reading this topic

0 members, 30 guests, 0 anonymous users


    Bing (1)