![;)](http://openpli.org/forums/public/style_emoticons/default/wink.png)
btw, I've added some ATSC code to start with
http://openpli.git.s...90c883ee149b514
Posted 31 March 2012 - 18:30
Posted 1 April 2012 - 00:33
Posted 1 April 2012 - 02:16
Posted 1 April 2012 - 13:41
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
Posted 1 April 2012 - 20:39
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?
Posted 2 April 2012 - 19:02
*** 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; }
xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, -1); setStreamType(1); setStreamType(0);
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
Posted 2 April 2012 - 20:21
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
Posted 3 April 2012 - 21:01
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
Posted 4 April 2012 - 18:18
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)?
Posted 5 April 2012 - 02:46
Posted 5 April 2012 - 07:28
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
Posted 5 April 2012 - 08:24
Posted 5 April 2012 - 14:43
*** 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;
}
*** 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; }
*** 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; }
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
0 members, 3 guests, 0 anonymous users