Jump to content


Raider05

Member Since 17 Dec 2011
Offline Last Active 27 Feb 2020 15:38
-----

#266596 Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit

Posted by Raider05 on 27 March 2012 - 18:02

Hi, Betacentauri.

I can switch audio tracks at the view in movies (mkv, avi) when use these changes.
*** lib/gdi/xineLib.h 2012-03-27 20:51:17.000000000 +0500
--- lib/gdi/xineLib.h.patch 2012-03-27 20:50:32.000000000 +0500
***************
*** 70,75 ****
--- 70,78 ----
   int VideoGeriT(pts_t Sar);
	  void SeekTo(long long value);
   ///////////////////////
+  int getNumberOfTracksAudio();
+  void selectAudioStream(int value);
+  int getCurrentTrackAudio();
  
 
   Signal1<void, struct iTSMPEGDecoder::videoEvent> m_event;
*** lib/gdi/xineLib.cpp 2012-03-27 20:51:26.000000000 +0500
--- lib/gdi/xineLib.cpp.patch 2012-03-27 20:53:17.000000000 +0500
***************
*** 289,294 ****
--- 289,318 ----
		  }
  }
 
+ int cXineLib::getNumberOfTracksAudio() {
+		 int ret = xine_get_stream_info(this->stream, XINE_STREAM_INFO_MAX_AUDIO_CHANNEL);
+		 return ret;
+ }
+
+ void cXineLib::selectAudioStream(int value) {
+		 xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, value);
+ }
+
+ int cXineLib::getCurrentTrackAudio() {
+		 if (getNumberOfTracksAudio()) {
+				 int ret=xine_get_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL);
+				 return ret;
+		 }
+		 return 0;
+ }
+
  void cXineLib::setPrebuffer(int prebuffer) {
   xine_set_param(stream, XINE_PARAM_METRONOM_PREBUFFER, prebuffer);
  }
*** lib/service/servicemp3.cpp 2012-03-27 20:44:08.000000000 +0500
--- lib/service/servicemp3.cpp.patch 2012-03-27 20:49:04.000000000 +0500
***************
*** 744,755 ****
 
  int eServiceMP3::getNumberOfTracks()
  {
!  return 0;
  }
 
  int eServiceMP3::getCurrentTrack()
  {
!   return 0;
  }
 
  RESULT eServiceMP3::selectTrack(unsigned int i)
--- 744,766 ----
 
  int eServiceMP3::getNumberOfTracks()
  {
!  cXineLib *xineLib = cXineLib::getInstance();
!  int ret=xineLib->getNumberOfTracksAudio();
! //	    printf("Number of tracks - %d\n", ret);
!		 if (ret) {
!				 return ret;
!		 }
!		 return 0;
  }
 
  int eServiceMP3::getCurrentTrack()
  {
!  cXineLib *xineLib = cXineLib::getInstance();
!  int ret = xineLib->getCurrentTrackAudio();
! //	    printf("Current  track audio - %d\n", ret);
!
!		 return ret;
! //  return 0;
  }
 
  RESULT eServiceMP3::selectTrack(unsigned int i)
***************
*** 763,769 ****
   int ret = selectAudioStream(i);
   if (!ret) {
    /* flush */
!   seekTo(ppos);
   }
 
   return ret;
--- 774,780 ----
   int ret = selectAudioStream(i);
   if (!ret) {
    /* flush */
! //  seekTo(ppos);
   }
 
   return ret;
***************
*** 771,777 ****
 
  int eServiceMP3::selectAudioStream(int i)
  {
!   return 0;
  }
 
  int eServiceMP3::getCurrentChannel()
--- 782,792 ----
 
  int eServiceMP3::selectAudioStream(int i)
  {
!   cXineLib *xineLib = cXineLib::getInstance();
!   xineLib->selectAudioStream(i);
!
! //  return 0;
!	 return i;
  }
 
  int eServiceMP3::getCurrentChannel()

and probably still need to add in function
void cXineLib::FilmVideo(char *mrl)
in file lib/gdi/xineLib.cpp
xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, -1);
videoPlayed = true;
}

I hope that as you will be able to help :)

Regards, Raider05.


#264458 Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit

Posted by Raider05 on 19 March 2012 - 10:40

Hi all :)

@betacentauri
Thanks for the great job, Enigma works, but the first run is very long (~25-30 sec)
Do not run in the Fullscreen mode, from master-branch rewritre files gxlibdc.cpp and gxlibdc.h and then is good launch the Fullscreen mode
TV shows as well (FTA and encrypted channels) , but you can not view in Menu the Mediaplayer and Dvdplayer, probably until well conceived.
If changed the skin and then reboot enigma2, then starts skin PLi-HD, strangely. In master-branch have not this problem.
It would be great to do with no problems watching movies (view old recodings do not works, new - i have not tried) and choice of audio tracks, as well as timeshift

@all with vdpau driver and view encrypted channels

Copy file enigma2/data/black.mvi in /usr/local/e2/etc/tuxbox and rewrite file logo.mvi
cp enigma2/data/black.mvi /usr/local/e2/etc/tuxbox/logo.mvi
and enjoy :)
For me more have't black screen more than a week!!!


#249307 Build Script for Openpli Enigma2 on Ubuntu 10.4 32 Bit

Posted by Raider05 on 24 January 2012 - 15:08

@sek1973, it is
Compile and install plugin for PC.
In most cases it boils down to copying the plugin folder (for example PermanentClock) in the folder
/ usr/local/e2/lib/enigma2/python/Plugins/Extensions. But some plugins (BitrateViewer) to compile (launch make) bitratecalc.cpp.
Yes, the path to change, not in the PC folder / proc / stb
I am writing here with regards to that enigma2-pc, images for DreamBox and etc. never i'm not compile

PS: Sorry for me bad english