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 #681 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 5 April 2012 - 17:35

Hi bluzee,

as Pr2 wrote: With current master (or osd or openpli_merge or xine_1_2_1) branch you can see OSD with xshm or opengl driver.
If it is not working please look in your E2 output. There you should see the following line
XINE-LIB version: 1.2.0openpliPC-e2
or
XINE-LIB version: 1.2.1openpliPC-e2

I think that there is a problem with your xine-lib installation. Please remove all xine-lib versions under /usr/lib/libxine* and /usr/lib/xine/plugins/* (or move them to another place) and reinstall openpliPC xine-lib.

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 #682 bluzee

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2012 - 17:36

I reinstalled xine-lib compiled from openpliPC master git and tried OSD with xshm and opengl and it did work. Tried tuning CBCHD and green screen. Didn't capture a log of the error and it messed up something when it crashed and now just segfaults when it tries to start so I'm reinstalling e2.

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

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 5 April 2012 - 18:03

Hi bluzee,

I reinstalled xine-lib compiled from openpliPC master git and tried OSD with xshm and opengl and it did work. Tried tuning CBCHD and green screen. Didn't capture a log of the error and it messed up something when it crashed and now just segfaults when it tries to start so I'm reinstalling e2.


if you have a green screen you should normally have an error in log. Did you start E2 with ".../enigma2 > /tmp/e2_log.txt 2>&1"?

Do you have another STB which is running Enigma2 on which you will be able to record a .ts file from a channel that crash and post it somewhere to see if we are able to play it back on our own system.


This would be really good, because I can only watch Astra 19.2. Without it, I don't know how to fix problem(you can also send the link via pm if you don't want to publish it).

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 #684 bluzee

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2012 - 18:38

I made some error log files. This is a totally fresh install from git master branch. These channels all play fine in mplayer and vlc using either vdpau or vaapi and they also play fine using the binary libxine2 e2pc deb. Just cause a crash when I use a xine-lib that I've compiled from source. And it does the same with all the sources I've compiled.

For the TS steam do you want a raw TS ie

dvbstream -o 8192 > dump.ts

Or just a recording of one channel in the TS ie

mplayer -dumpstream -dumpfile dump.ts dvb://cbcedm

Here are the logs. One each for vdpau, opengl and xshm.

Attached File  e2_vdpau_log.txt   14.81KB   5 downloads

Attached File  e2_opengl_log.txt   15.21KB   1 downloads

Attached File  e2_xshm_log.txt   29.59KB   1 downloads

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

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 5 April 2012 - 18:49

Hi Bluzee,

recording of one channel in a TS file should be enough. I hope that I can watch it (there are problems watching recordings when .meta, .cs,... files are missing) and that the error also occurs while watching the recording.

In the logs I don't find a hint what's going wrong.

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 #686 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 5 April 2012 - 19:13

Hi Raider05,

Hi Betacentauri.

Thank you, that you look my code :)


I have problems using your code. Audio channel switching don't work on Live TV.
I think: With the cXineLib::setStreamType procedure E2 announces the audio channel pid to xine-lib. So at first xine-lib knows
only one audio pid (=channel). So I don't think that your call to selectAudioStream(i) works properly, because xine-lib don't know
the other audio channels.

This could be a solution (haven't tested it):
1. Forward all audio pids to xine-lib (after every video channel switch).
2. For switching audio channel use instead of setStreamType selectAudioStream

and even small changes - display language audio tracks in movies (mkv), how to add a type mapping not know :(

*** 801,806 ****
--- 801,812 ----
 
  RESULT eServiceMP3::getTrackInfo(struct iAudioTrackInfo &info, unsigned int i)
  {
+  cXineLib *xineLib = cXineLib::getInstance();
+  info.m_description = "???";
+
+		 if (info.m_language.empty())
+   info.m_language = xineLib->getAudioLang(i);
+
   return 0;
  }
  


For me it works. I have added it to git (currently only openpli_merge branch).

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 #687 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 5 April 2012 - 19:14

Hi,

For people, like MrCoolSpan, that use DVB card which use both frontend0 and frontend1 on the same adapter, please test this version and report if this fix the problem or not. If it doesn't fix, please show me the result of:

./create_nim_sockets -d

How to:

- unpack the file: tar -xvzf create_nim_socket_2012-04-02.tgz

There is an already builded version in it, simply run it: ./create_nim_sockets

If the pre-compiled version doesn't work for you then build your own: ./build_create_nim_sockets.sh and run it again.

Thanks,

Pr2


Hi Pr2,

I have added it to git (openpli_merge branch) in new util directory.

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 #688 temporary

  • Member
  • 8 posts

0
Neutral

Posted 5 April 2012 - 19:16

Hi all,

I already post problem with multiple tuners. When I try use other tuner than first tunning of channel fails. I used also tool "create_nim_sockets" for create sockets file, but with same results.

Bellow you can find generated nim_sockets file(1), list of my /dev/dvb(2), error in console when tunning fail(3) and some screens from gui. I tested both branches again without sucess. Is it anybody who have idea what could be cause of this behaviour?

Thank you.


1.
[root@e2 bin]# cat ../etc/tuxbox/nim_sockets
NIM Socket 0:
Type: DVB-S2
Name: TurboSight TBS 6984 DVBS/S2 frontend
Has_Outputs: no
Frontend_Device: 0

NIM Socket 1:
Type: DVB-S2
Name: TurboSight TBS 6984 DVBS/S2 frontend
Has_Outputs: no
Frontend_Device: 0

NIM Socket 2:
Type: DVB-S2
Name: TurboSight TBS 6984 DVBS/S2 frontend
Has_Outputs: no
Frontend_Device: 0

NIM Socket 3:
Type: DVB-S2
Name: TurboSight TBS 6984 DVBS/S2 frontend
Has_Outputs: no
Frontend_Device: 0

2.
[root@e2 bin]# find /dev/dvb/
/dev/dvb/
/dev/dvb/adapter3
/dev/dvb/adapter3/ca0
/dev/dvb/adapter3/frontend0
/dev/dvb/adapter3/net0
/dev/dvb/adapter3/dvr0
/dev/dvb/adapter3/demux0
/dev/dvb/adapter2
/dev/dvb/adapter2/ca0
/dev/dvb/adapter2/frontend0
/dev/dvb/adapter2/net0
/dev/dvb/adapter2/dvr0
/dev/dvb/adapter2/demux0
/dev/dvb/adapter1
/dev/dvb/adapter1/ca0
/dev/dvb/adapter1/frontend0
/dev/dvb/adapter1/net0
/dev/dvb/adapter1/dvr0
/dev/dvb/adapter1/demux0
/dev/dvb/adapter0
/dev/dvb/adapter0/ca0
/dev/dvb/adapter0/frontend0
/dev/dvb/adapter0/net0
/dev/dvb/adapter0/dvr0
/dev/dvb/adapter0/demux0
3.
scan: allocating raw channel (on frontend 1) failed!

4.

Attached Files



Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #689 bluzee

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2012 - 19:41

Thanks for taking the time to look at this. To me it seems to be related to the way my system is compiling xine-lib because the channels play using the binary debs. I made some logs of the xine compile. Would you mind having a look through them and see if you can spot any problems?

I'm thinking it's my compiler or something with my system configuration.

Attached File  autogen_log.txt   24.38KB   3 downloads

Attached File  make_log.txt   127.41KB   2 downloads

Attached File  make_install_log.txt   216.46KB   3 downloads

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

  • Senior Member
  • 75 posts

+4
Neutral

Posted 5 April 2012 - 20:04

Thank, Betacentauri :)

But for me switching audio track at watching LiveTV works,
Although you think it is wrong.

selectAudioStream I call setting current apid m_current_apid and when compare with old_apid
And not equally, Switching audio is in xine between LOGICAL_CHANNEL in function cXineLib::selectAudioStream(i)
i - number channel (1,2 -audio tracks)
Call cXineLib::setStreamType through to then could determine the current audio track
if press button A
Sorry bad my English

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 #691 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 5 April 2012 - 21:52

Hi,

@Betacentauri: Thanks for adding of my humble contribution into the source tree.

@dev,

About the multiple tuner configuration problem mentioned by temporary here is perhaps an explanation.

On a standard E2 system (DMM & compatible), the multiple tuner are handled this way:

/dev/dvb/adapter0/frontend0 (tuner A)
/dev/dvb/adapter0/frontend1 (tuner B)
/dev/dvb/adapter0/frontend2 (tuner C)
/dev/dvb/adapter0/frontend3 (tuner D)

as you see every tuner is attached behind adapter0.

On a PC system this is not the case, each physical tuner have its own /dev/dvb/adapterX/frontend0 (or 1).

So in the temporary log, we saw that it is trying to access the frontend1 (if the log is right) but on its system there is no interface with frontend1, so I guess that it should normally access the /dev/dvb/adaptor1/frontend0.
So can be interesting to check in the source code for this log message and see if frontend1 means in fact /dev/adapter1/frontend0 or if it really tries to access /dev/adapter0/frontend1 which is wrong since it doesn't exist on its system.

So perhaps that there is still somewhere in the source code a place where multiple tuners are not properly converted from standard E2 way of handling multiple tuner into the "nim_sockets" way.

Pr2

P.S.: I refer to this error message:

3.
scan: allocating raw channel (on frontend 1) failed!


Edited by Pr2, 5 April 2012 - 21:54.

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 #692 kerven

  • Senior Member
  • 52 posts

+1
Neutral

Posted 5 April 2012 - 23:21

hello

hi deer pr2..
"On a standard E2 system (DMM & compatible), the multiple tuner are handled this way:

/dev/dvb/adapter0/frontend0 (tuner A)
/dev/dvb/adapter0/frontend1 (tuner B)
/dev/dvb/adapter0/frontend2 (tuner C)
/dev/dvb/adapter0/frontend3 (tuner D) "

it's not true.. on my dm800 , if i add a key usb terrestral .. i have dev/dvb/adapter1..
but on dm8000 , i think it's by fronted.

Regards..
------

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #693 kerven

  • Senior Member
  • 52 posts

+1
Neutral

Posted 5 April 2012 - 23:31

about last openpli-merge , (virtualbox ubuntu 11.04,vtuner, xshm)
now.. audio can be switched.,
.ts are read.

Well..

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

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 5 April 2012 - 23:33

Hi,

I can be wrong but please check how many frontend you have on the /dev/dvb/adapter0 ? Are you sure that there is no symlink create there that will point to the /dev/dvb/adapter1/frontend0

I have also a DVB-C tuner (Sundtek) connected to my ET-9000 and it is attached to /dev/dvb/adapter0/frontend2.

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 #695 kerven

  • Senior Member
  • 52 posts

+1
Neutral

Posted 6 April 2012 - 10:45


root@dm800:/dev/dvb/adapter0# ls
audio0 ca2 demux1 dvr0 dvr3 net0 net3
ca0 ca3 demux2 dvr1 frontend0 net1 video0
ca1 demux0 demux3 dvr2 frontend1 net2

root@dm800:/dev/dvb/adapter1# ls
demux0 dvr0 frontend0

i don't see some symlink..

-------

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

  • Senior Member
  • 75 posts

+4
Neutral

Posted 6 April 2012 - 13:54

Hi, all

Please, testing the patch for switch audio tracks at watching LiveTV. For me is it good works.
cp LiveTV_switch_audio.diff your_source_enigma2PC
patch -p0 < LiveTV_switch_audio.diff
and recompile enigma2PC

Please, write if it works for someone.

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 #697 bluzee

  • Member
  • 22 posts

0
Neutral

Posted 6 April 2012 - 18:27

Hi,

I've been trying to think of a way to record a bit of video that you can play and this is about the best I could come up with. I uninstalled the git xine-lib and installed the deb xine-lib then used it to record a bit of that channel. The deb xine-lib does not record well, so this file will playback glitchy. I have to set the video buffer up to about 2000 to get the deb xine-lib to play TV ok. Playing back the recording with the deb xine-lib works, however the video is very glitchy. Removed the deb xine-lib and reinstalled the git xine-lib and enigma2 gets a green screen when I try to play back this recording. So hopefully you'll be able to reproduce the error on your system.

This plays in mplayer and vlc, however glitchy there too. The signal from this channel is very strong and plays fine in my STB and vlc dvb:// mplayer dvb:// One thing that is odd is I have to use mplayer -demuxer lavf dvb:// or I don't get video in mplayer. So might be a demuxer issue.

Any way, if you feel like having a look at this sometime I would very much appreciate hearing if it will play on your systems.

http://dl.dropbox.co...CBXT-DT.tar.bz2

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

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 April 2012 - 18:43

Thanks for taking the time to look at this. To me it seems to be related to the way my system is compiling xine-lib because the channels play using the binary debs. I made some logs of the xine compile. Would you mind having a look through them and see if you can spot any problems?

I'm thinking it's my compiler or something with my system configuration.

Attached File  autogen_log.txt   24.38KB   3 downloads

Attached File  make_log.txt   127.41KB   2 downloads

Attached File  make_install_log.txt   216.46KB   3 downloads


Hi,

I see no errors or any other issue in the log files.
And thanks for the recording. I need my STB in a few minutes, so I will look at it tomorrow.

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 #699 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 April 2012 - 18:48

Thank, Betacentauri :)

But for me switching audio track at watching LiveTV works,
Although you think it is wrong.

selectAudioStream I call setting current apid m_current_apid and when compare with old_apid
And not equally, Switching audio is in xine between LOGICAL_CHANNEL in function cXineLib::selectAudioStream(i)
i - number channel (1,2 -audio tracks)
Call cXineLib::setStreamType through to then could determine the current audio track
if press button A
Sorry bad my English

Regards, Raider05


Hi Raider05,

I don't understand why you can change audio channel and I not. I can give you a recording of ARTE (a german/french channel) tomorrow. There I can't switch audio channel. Or better I can, but I can only hear one audio channel.

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 #700 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 April 2012 - 19:02

Hi,

I've been trying to think of a way to record a bit of video that you can play and this is about the best I could come up with. I uninstalled the git xine-lib and installed the deb xine-lib then used it to record a bit of that channel. The deb xine-lib does not record well, so this file will playback glitchy. I have to set the video buffer up to about 2000 to get the deb xine-lib to play TV ok. Playing back the recording with the deb xine-lib works, however the video is very glitchy. Removed the deb xine-lib and reinstalled the git xine-lib and enigma2 gets a green screen when I try to play back this recording. So hopefully you'll be able to reproduce the error on your system.

This plays in mplayer and vlc, however glitchy there too. The signal from this channel is very strong and plays fine in my STB and vlc dvb:// mplayer dvb:// One thing that is odd is I have to use mplayer -demuxer lavf dvb:// or I don't get video in mplayer. So might be a demuxer issue.

Any way, if you feel like having a look at this sometime I would very much appreciate hearing if it will play on your systems.

http://dl.dropbox.co...CBXT-DT.tar.bz2


Hi again,

I can watch your recording (with openpli_merge branch). It's really glitchy, but I don't have a green screen.
Do you use ubuntu? Which version? 32 or 64 bit?

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


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users