Jump to content


Photo

Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit


  • Please log in to reply
2073 replies to this topic

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #661 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 March 2012 - 18:30

I was hoping for someone with programming experience, who could send us a patch for e2 ;)
btw, I've added some ATSC code to start with

http://openpli.git.s...90c883ee149b514

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #662 signal.quest

  • Member
  • 5 posts

0
Neutral

Posted 31 March 2012 - 21:24

Wow. Thanks for starting! I wish I was a programmer. I am just linux and satellite geek. Do you know if ATSC and QAM are much different than DVB-S? I know other open source apps like mythtv and tvheadend support ATSC and QAM. Maybe they can be used a reference.

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #663 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 March 2012 - 22:30

QAM is 'almost' the same as we have with DVB-C in europe.

Anyway, the tuner hardware does all the work, we just need to pass it the right parameters.

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #664 signal.quest

  • Member
  • 5 posts

0
Neutral

Posted 31 March 2012 - 22:36

What else needs to be done (from a programming point of view) for me to test? Thanks.

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #665 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 April 2012 - 00:33

What's missing is a way to configure atsc transponders.
We need to introduce a 'atsc.xml', similar to 'cables.xml', and/or a way to scan atsc transponders.
scan.cpp is currently still ignoring any atsc descriptors.

To start with, I think the easiest would be to try and hardcode a transponder, and see whether e2 can cope with the tuning.

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

  • Member
  • 22 posts

0
Neutral

Posted 1 April 2012 - 02:16

For dealing with any thing in North America hard coding is almost an essential option any way. ATSC is perhaps a little better setup to conform to standards, but for DVB-S/S2 we run into a lot of problems where TS streams are not setup with all the proper tables. Sometimes the only way to tune things is to manually configure and be able to specifically list the video and audio pids. NIce thing about ATSC is once it's setup the channels shouldn't change much. DVB-S/S2 channels are constantly coming and going and moving around from one sat to another or changing frequency or something.

There is a lot of great DVB-S software that we can't use here in North America because they rely on having the proper tables in the TS to tune channels. MythTV, TvHeadend are a couple the come to mind. Too many channels that they can't scan in on C-Band.

I'm amazed at how well openpli is working for scanning in channels. It scans in and plays channels that my Coolsat STB can't find. Scanned in CBSHD which is one that has no service tables. Unfortunately can't play the 4:2:2 video. Not sure if it's the nvidia hardware that doesn't do 4:2:2 or just the codec.

Still haven't sorted out the xine-lib issue. Thought it might be deinterlacing related as the h.264 that plays OK is 1080i and the one that crashes e2 is 720p. Ran through all the options I could find in xine.conf but no luck as yet. As mentioned they all play with those old xine e2pc debs that I found previously. All the xine-lib versions I compile from openpliPC git crash on those 720p h.264 channels.

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #667 dugommier

  • Member
  • 8 posts

0
Neutral

Posted 1 April 2012 - 13:41

Hello,
I use Ubyntu 11.10 and I installed last version of ENIGMA2 OpenpliPC last week. I have a Skystar 2 tuner. It works good, but I have no sound ! When I use VLC, I can hear music, but with Enigma2 it's impossible.
I tried to change the value of "audio.driver" in xine.conf, but without success.
Maybe somebody can help ?
Thank you very much

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

  • Member
  • 22 posts

0
Neutral

Posted 1 April 2012 - 20:32

Hello,
I use Ubyntu 11.10 and I installed last version of ENIGMA2 OpenpliPC last week. I have a Skystar 2 tuner. It works good, but I have no sound ! When I use VLC, I can hear music, but with Enigma2 it's impossible.
I tried to change the value of "audio.driver" in xine.conf, but without success.
Maybe somebody can help ?
Thank you very much


I didn't have this problem with an install in a Ubu 11.04 but with other xine players the volume is often set to zero when the player starts. So obvious question, but did you check the volume level? Hit the + key. Open up pulse audio volume control and see if there is volume in there. When you did the xine-lib configure did it show at least alsa and pulseaudio drivers?

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

  • Member
  • 22 posts

0
Neutral

Posted 1 April 2012 - 20:39

More testing and it seems to be pretty much all 720p channels that make E2 crash. Tried master, openpli_merge, old_xine_lib, and xine_1_2_1 branches. All do the same thing. With the libxine2 e2pc deb all E2 versions play 720p so has to be xine, but what???

Any one able to play 720p using the xine-lib compliled from the git sources?

Re: Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit #670 dugommier

  • Member
  • 8 posts

0
Neutral

Posted 2 April 2012 - 07:52


Hello,
I use Ubyntu 11.10 and I installed last version of ENIGMA2 OpenpliPC last week. I have a Skystar 2 tuner. It works good, but I have no sound ! When I use VLC, I can hear music, but with Enigma2 it's impossible.
I tried to change the value of "audio.driver" in xine.conf, but without success.
Maybe somebody can help ?
Thank you very much


I didn't have this problem with an install in a Ubu 11.04 but with other xine players the volume is often set to zero when the player starts. So obvious question, but did you check the volume level? Hit the + key. Open up pulse audio volume control and see if there is volume in there. When you did the xine-lib configure did it show at least alsa and pulseaudio drivers?


Sure, I checked the volume level.
Thank you for your help.

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

  • Senior Member
  • 75 posts

+4
Neutral

Posted 2 April 2012 - 19:02

Hi, all

@betacentauri, here are my litle changes, switching audio track while watching LiveTV :)
for me it works, but sometimes confused language:
choose - English, but I hear Russian and vice versa
(channel Cartoon Network)

*** lib/dvb/decoder.cpp 2012-04-02 21:26:59.000000000 +0500
--- lib/dvb/decoder.cpp.patch 2012-04-02 21:14:54.000000000 +0500
***************
*** 236,242 ****
    break;
   }
   xineLib->setAudioType(pid, xine_type);
!  xineLib->playVideo();
   
   /*eDebugNoNewLine("AUDIO_SET_BYPASS(%d) - ", bypass);
   if (::ioctl(m_fd, AUDIO_SET_BYPASS_MODE, bypass) < 0)
--- 236,242 ----
    break;
   }
   xineLib->setAudioType(pid, xine_type);
! // xineLib->playVideo();
   
   /*eDebugNoNewLine("AUDIO_SET_BYPASS(%d) - ", bypass);
   if (::ioctl(m_fd, AUDIO_SET_BYPASS_MODE, bypass) < 0)
*** lib/gdi/xineLib.cpp 2012-04-02 21:27:09.000000000 +0500
--- lib/gdi/xineLib.cpp.patch 2012-04-02 21:15:30.000000000 +0500
***************
*** 124,130 ****
  }
 
  void cXineLib::playVideo(void) {
!  xine_stop(stream);
   end_of_stream = false;
   videoPlayed = false;
 
--- 124,130 ----
  }
 
  void cXineLib::playVideo(void) {
! // xine_stop(stream);
   end_of_stream = false;
   videoPlayed = false;
 
***************
*** 277,282 ****
--- 277,286 ----
  void cXineLib::setAudioType(int pid, int type) {
   audioData.pid = pid;
   audioData.streamtype = type;
+ 
+  if (videoPlayed) {
+   setStreamType(0);
+  }
  }
 
  int cXineLib::getNumberOfTracksAudio() {
*** lib/service/servicedvb.cpp 2012-04-02 21:27:22.000000000 +0500
--- lib/service/servicedvb.cpp.patch 2012-04-02 21:19:39.000000000 +0500
***************
*** 1968,1973 ****
--- 1968,1978 ----
 
   if (m_decoder->set())
    return -5;
+  
+  xineLib = cXineLib::getInstance();
+  xineLib->selectAudioStream(i);
+
 
   return ret;
  }

and function void cXineLib::playVideo(void) need add
		  xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, -1);
setStreamType(1);
setStreamType(0);

please, check how it works and it can be added in git.
You are currently working on something (for example Timeshift)?

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

  • PLi® Contributor
  • 6,200 posts

+261
Excellent

Posted 2 April 2012 - 20:21

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

Attached Files


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 #673 behnam

  • Member
  • 6 posts

0
Neutral

Posted 3 April 2012 - 13:11

Hi
I cant see chanal HD , i think i must to edite xine.conf
video.driver:auto to video.driver:xshm
but i cant edite xine.conf

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

  • PLi® Contributor
  • 6,200 posts

+261
Excellent

Posted 3 April 2012 - 21:01

Hi,

use: sudo gedit

and you will be able to edit xine.conf

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

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 4 April 2012 - 18:18

Hi guys,

the last days I had no time to debug, test, implement,... something (I had stress at work). I hope I can do a little bit this weekend.

@Pr2: I'll add your program to the git.

@Raider05: Thanks! But switching audio channel in Live TV works here without problem.
Nevertheless I'll look at your code and if it doesn't make it worser here I'll put it into git.

@Bluzee: Do you have the source code of old xine e2pc libs?
What channel do you try to watch? I have no problems here watching ARD HD with 720p h.264 (Astra 19,2).
Does it also don't work with xshm or opengl driver (with 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 #676 bluzee

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2012 - 00:33

@Bluzee: Do you have the source code of old xine e2pc libs?
What channel do you try to watch? I have no problems here watching ARD HD with 720p h.264 (Astra 19,2).
Does it also don't work with xshm or opengl driver (with openpliPC xine lib)?


Hi, thanks for the reply. I don't think I do have that source code. The xine-lib I've been installing from source are all ones included in the nobody9 git.

I think this is the deb I installed ...

http://www.speedysha...e2pc-0_i386.deb

I imagine this must be the source for that....

http://www.speedysha...0_e2pc-0.tar.gz

When I get home tonight I'll maybe download that tarball and see what happens when I compile it.

The only 720p channel I've had success with so far are the ABC HD feeds on Galaxy 16 99W. They are 720p h.264. I forget the bitrate but probably between 12 and 15 Mbps. On that same satellite KRBK Fox 720p mpeg2 crashes. As does escapes 720p h.264, WPRU ABC 720p low bitrate mpeg2. On AMC 1 at 103W all the 720p mpeg2 ION tv feeds crash. Anik F1R at 107.3W all the 720p h.264 CBC HD and Radio Canada 720p h.264 crash. 1080i h.264 NBC HD on AMC 18 105W play fine. I don't think I've had a problem with any SD. I haven't tested on any other satellites just yet. The farthest one to the east I can see is I 805 55W.

I'll see if I can compile that source file tonight and let you know how that goes. I'm wondering if it's some problem with my compiler version. You probably can't see any of the same satellites that I can and others here that tried out openpliPC that I've talked to don't have Nvidia cards and don't get any OSD so don't get very far with it.

I've done so many tests with so many versions that I've sort of lost track, but I think switching from vdpau to xshm or opengl I still the get same crash on the same channels and also no OSD.

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

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2012 - 02:46

I compiled xine-lib from that e2pc tarball. I don't see the green screen anymore but it plays about 2 or 3 seconds of video with no sound and then shuts down. Does the same thing with vdpau, xshm or opengl set as the video driver. OSD with vdpau. None with xshm or opengl. So essentially the same thing with every version of xine-lib I've compiled from source. Very strange. make uninstall and reinstall the deb package and it plays fine. Just have the audio bug where I can't change the audio stream to get to the right audio for the channel when that is necessary.

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

  • PLi® Contributor
  • 6,200 posts

+261
Excellent

Posted 5 April 2012 - 07:28

Hi bluzee,

You no longer need to have a nVidia card to have the OSD with the changes done by Betacentauri, so non nVidia users needs to use either xshm or opengl and they will get the OSD.

Which Nvidia card do you have in your PC? Not all Nvidia cards are VDPAU compatible, I have myself a PC in which my Nvidia was not supporting vdpau so I simply upgrade my Nvidia card to a recent one and now everything is working fine.

You can already check this to see if your card is Vdpau is supported or not:
http://en.wikipedia....vidia_PureVideo

You can also build_vdpauinfotest.sh and then launch the test to check if your card is Vdpau capable.

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.

Moreover people that don't have the OSD can also play with openpliPC by using the webinterface, build it, launch openpliPC and then connect to the webif.

Regards,

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

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2012 - 08:24

I have a GT210. It works fine with vdpau. The channels play fine with vdpau using xine-lib installed from that deb package and vdpau works with mplayer as well. 1080i HD plays with almost zero cpu load showing in top. I'm just trying to figure out why it crashes on 720p HD with the xine-lib I compile from source so I can use the latest git version.

I don't have an OSD if I switch from vdpau to xshm or opengl. Is there some extra config option to compile that into enigma2? This is with xine-lib compiled from the latest master branch of the openpliPC git.

I do not have an STB running enigma2, just an old Coolsat 8000. Playing around with openpliPC using a Prof 7301 PCI card. I could dump a TS using dvbstream. I wouldn't be able to upload a very long sample as my internet is not great. A 10 second dump is already 80Mb. Would that be long enough? Where is a good place to upload it to?

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

  • Senior Member
  • 75 posts

+4
Neutral

Posted 5 April 2012 - 14:43

Hi Betacentauri.

Thank you, that you look my code :)

*** lib/service/servicedvb.cpp 2012-04-02 21:27:22.000000000 +0500
--- lib/service/servicedvb.cpp.patch 2012-04-02 21:19:39.000000000 +0500
***************
*** 1968,1973 ****
--- 1968,1978 ----

if (m_decoder->set())
return -5;
+
+ xineLib = cXineLib::getInstance();
+ xineLib->selectAudioStream(i);
+

return ret;
}


I think for audio switch at watching LiveTV better this:

*** lib/service/servicedvb.cpp.orig 2012-04-02 12:01:52.000000000 +0500
--- lib/service/servicedvb.cpp 2012-04-05 10:52:27.000000000 +0500
***************
*** 1964,1974 ****
--- 1964,1981 ----
 
  RESULT eDVBServicePlay::selectTrack(unsigned int i)
  {
+  int old_apid;
+		 old_apid=m_current_audio_pid; //remember current apid
+
   int ret = selectAudioStream(i);
 
   if (m_decoder->set())
    return -5;
 
+  if (old_apid != m_current_audio_pid) { //compare old apid and new apid
+   cXineLib *xineLib = cXineLib::getInstance();
+   xineLib->selectAudioStream(i); // switch audio track
+  }
   return ret;
  }

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

*** lib/gdi/xineLib.h.orig 2012-04-02 11:20:30.000000000 +0500
--- lib/gdi/xineLib.h 2012-04-05 18:26:37.000000000 +0500
***************
*** 72,77 ****
--- 72,78 ----
   int getNumberOfTracksAudio();
   void selectAudioStream(int value);
   int getCurrentTrackAudio();
+  std::string getAudioLang(int value);
   ///////////////////////
  
 
*** lib/gdi/xineLib.cpp.orig 2012-04-02 11:20:30.000000000 +0500
--- lib/gdi/xineLib.cpp 2012-04-05 18:25:01.000000000 +0500
***************
*** 204,210 ****
    eWarning("xine_play failed!");
    return ;
   }
!  xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, -1);
   videoPlayed = true;
  }
 
--- 204,210 ----
    eWarning("xine_play failed!");
    return ;
   }
!  xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, 0);
   videoPlayed = true;
  }
 
***************
*** 277,282 ****
--- 277,286 ----
  void cXineLib::setAudioType(int pid, int type) {
   audioData.pid = pid;
   audioData.streamtype = type;
+
+  if (videoPlayed) {
+   setStreamType(0);
+  }
  }
 
  int cXineLib::getNumberOfTracksAudio() {
***************
*** 296,301 ****
--- 300,318 ----
   return 0;
  }
 
+ std::string cXineLib::getAudioLang(int value) {
+  char   lang_buffer[XINE_LANG_MAX];
+  char  *lang = NULL;
+
+  if (!xine_get_audio_lang(this->stream, value, &lang_buffer[0])) {
+   snprintf(lang_buffer, sizeof(lang_buffer), "%3d", value);
+  }
+  lang = lang_buffer;
+
+  return lang;
+
+ }
+
  void cXineLib::setPrebuffer(int prebuffer) {
   xine_set_param(stream, XINE_PARAM_METRONOM_PREBUFFER, prebuffer);
  }
*** lib/service/servicemp3.cpp.orig 2012-04-02 17:41:20.000000000 +0500
--- lib/service/servicemp3.cpp 2012-04-05 18:21:53.000000000 +0500
***************
*** 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;
  }
  

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



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users