for your info i'm using this project on ubuntu 11.10 x64
Hi Persian Prince,
nice to hear that you're using openpliPC. Do you develop your plugin on openpliPC?
Regards,
Betacentauri
Posted 25 March 2012 - 10:51
*** lib/dvb/decoder.cpp 2012-03-25 12:44:53.000000000 +0500 --- lib/dvb/decoder.cpp.orig 2012-03-25 12:43:25.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-03-25 12:53:04.000000000 +0500 --- lib/gdi/xineLib.cpp.orig 2012-03-25 12:45:22.000000000 +0500 *************** *** 16,22 **** stream = NULL; end_of_stream = false; videoPlayed = false; - filmPlayed = false; printf("XINE-LIB version: %s\n", xine_get_version_string() ); --- 16,21 ---- *************** *** 125,133 **** } void cXineLib::playVideo(void) { ! if (filmPlayed == true) { ! xine_stop(stream); ! } end_of_stream = false; videoPlayed = false; --- 124,130 ---- } void cXineLib::playVideo(void) { ! xine_stop(stream); end_of_stream = false; videoPlayed = false; *************** *** 138,144 **** // setStreamType(1); // setStreamType(0); - if (filmPlayed = true) { xine_pids_data_t data; xine_event_t event; event.type = XINE_EVENT_PIDS_CHANGE; --- 135,140 ---- *************** *** 150,157 **** printf ("input_dvb: sending event\n"); xine_event_send (stream, &event); - } - setStreamType(1); setStreamType(0); --- 146,151 ---- *************** *** 168,177 **** void cXineLib::stopVideo(void) { xine_stop(stream); ! // xine_close (stream); end_of_stream = false; videoPlayed = false; - filmPlayed = false; } void cXineLib::setStreamType(int video) { --- 162,170 ---- void cXineLib::stopVideo(void) { xine_stop(stream); ! xine_close (stream); end_of_stream = false; videoPlayed = false; } void cXineLib::setStreamType(int video) { *************** *** 210,216 **** eWarning("xine_play failed!"); return ; } - filmPlayed = true; videoPlayed = true; } --- 203,208 ---- *************** *** 283,292 **** void cXineLib::setAudioType(int pid, int type) { audioData.pid = pid; audioData.streamtype = type; - - if (videoPlayed) { - playVideo(); - } } void cXineLib::setPrebuffer(int prebuffer) { --- 275,280 ---- *** lib/gdi/xineLib.h 2012-03-25 12:45:44.000000000 +0500 --- lib/gdi/xineLib.h.orig 2012-03-25 12:45:27.000000000 +0500 *************** *** 22,28 **** xine_streamtype_data_t videoData, audioData; ! bool videoPlayed, filmPlayed; int osdWidth, osdHeight; int windowWidth, windowHeight; --- 22,28 ---- xine_streamtype_data_t videoData, audioData; ! bool videoPlayed; int osdWidth, osdHeight; int windowWidth, windowHeight;
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 25 March 2012 - 19:25
Hi Betacentauri,
To watch movies (video), work at least in the Pli-HD skins, must be from the master branch of the Enigma that put out a new branch openpli_merge overwrite files
or to /usr/local/e2/lib/enigma2/python/
Screen/Dish.py ,
Components/ServiceEventTracker.py,
Components/Converter/pliExpertinfo.py,
Components/Converter/ServiceOrbitalPosition.py
And for me did make this changes, switch audio track litle fast
*** lib/dvb/decoder.cpp 2012-03-25 12:44:53.000000000 +0500 --- lib/dvb/decoder.cpp.orig 2012-03-25 12:43:25.000000000 +0500 *************** *** 236,242 **** break; } ...
Posted 26 March 2012 - 08:12
Yes, i am testing your last changes. Now can watch movies (mkv, avi) and have't green screen , thanks. I will continue to test.have you tested with my latest patch? With it I get no green screen while watching movies (mkv). Do you get a green screen or does E2 freeze?
Switch audio track at the view Live TV is same works and faster (2-3 sec) than before. You do not work ?I have tried almost the same (comment out playVideo in audio part)
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 26 March 2012 - 18:51
Switch audio track at the view Live TV is same works and faster (2-3 sec) than before. You do not work ?I have tried almost the same (comment out playVideo in audio part)
Posted 27 March 2012 - 18:02
*** 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()
xine_set_param(this->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, -1); videoPlayed = true; }
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 27 March 2012 - 18:52
Posted 29 March 2012 - 19:30
Posted 29 March 2012 - 20:00
I can switch audio tracks at the view in movies (mkv, avi) when use these changes.
Posted 30 March 2012 - 13:46
sudo ./create_nim_sockets -o /usr/local/e2/etc/tuxbox/nim_sockets
./create_nim_sockets -h Info: create_nim_sockets 1.0 started Command line options: Optional: -a number of adapter : provide a numerical value default:4 -f number of frontend : provide a numerical default:4 -o /path/filename : path and filename default:./nim_sockets -h : this help -d : enable debug
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 30 March 2012 - 17:41
I see what you trying to do, but it still not working as it shut doHi,
Here is the final version of create_nim_sockets utility.
By default it will scan from adapter0 to adapter3 and for each from frontend0 to frontend3.
You can change this behavior from command line option -a and -f.
It will also create the file nim_sockets in the current folder, you can also change this with the -o option.
sudo ./create_nim_sockets -o /usr/local/e2/etc/tuxbox/nim_sockets
Will create the nim_sockets file at the right place (if you keep the default OpenpliPC destination path). People that uses a script to launch OpenpliPC can simply add this line in the script to have a dynamically created nim_sockets file.
./create_nim_sockets -h Info: create_nim_sockets 1.0 started Command line options: Optional: -a number of adapter : provide a numerical value default:4 -f number of frontend : provide a numerical default:4 -o /path/filename : path and filename default:./nim_sockets -h : this help -d : enable debug
Option -d will simply be more verbose and can be usefull for troubleshooting.
@Betacentauri,
Can you please include this file in the OpenpliPC tree, source file is attached in the .tgz
Thanks,
Pr2
Posted 30 March 2012 - 18:57
Posted 30 March 2012 - 19:18
Posted 30 March 2012 - 19:48
I see what you trying to do, but it still not working as it shut do
etc i have a hauppauge hvr 4000 card whit dvb-s2 and dvb-t
when i run you script it create a nim_sockets whit only
NIM Socket 0:
Type: DVB-S2
Name: Conexant CX24116/CX24118
Has_Outputs: no
Frontend_Device: 0
when the correct one shut be
NIM Socket 0:
Type: DVB-S2
Name: Hauppauge WinTV-HVR400
Frontend_Device: 0
Has_Outputs: no
NIM Socket 1:
Type: DVB-T
Name: Hauppauge WinTV-HVR400
Frontend_Device: 1
Has_Outputs: no
./create_nim_sockets -d
ls -Fal /dev/dvb/adapter0/ ls -Fal /dev/dvb/adapter1/
sudo ./create_nim_sockets -d
Edited by Pr2, 30 March 2012 - 19:49.
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 30 March 2012 - 19:59
I see what you trying to do, but it still not working as it shut do
etc i have a hauppauge hvr 4000 card whit dvb-s2 and dvb-t
when i run you script it create a nim_sockets whit only
NIM Socket 0:
Type: DVB-S2
Name: Conexant CX24116/CX24118
Has_Outputs: no
Frontend_Device: 0
when the correct one shut be
NIM Socket 0:
Type: DVB-S2
Name: Hauppauge WinTV-HVR400
Frontend_Device: 0
Has_Outputs: no
NIM Socket 1:
Type: DVB-T
Name: Hauppauge WinTV-HVR400
Frontend_Device: 1
Has_Outputs: no
Please provide me the output of:./create_nim_sockets -d
And please also show me the result of
ls -Fal /dev/dvb/adapter0/ ls -Fal /dev/dvb/adapter1/
Please also check on your system the access right on the above files?
And can you please try to run it as sudo:
sudo ./create_nim_sockets -d
If the program cannot acces the "files" then it cannot retrieve the DVB tuner informations.
The program is looking at adapter from 0 to 3 and for each of them for frontend from 0 to 3 too (by default) so the program scans your entries but probably cannot open it to read the detail.
About the Name: Conexant CX24116/CX24118 this is the information returned by the driver that you have installed on your system, if Hauppage is not using this chipset then you have a conflict between your drivers on your system and some clean-up is needed.
Thanks,
Pr2
P.S.: I am currentely facing some internet problem at home so I am not sure to be able to answer you this week-end.
Info: create_nim_sockets 1.0 started Tuner found: /dev/dvb/adapter0/frontend0: Conexant CX24116/CX24118 // dvb_frontend_info for /dev/dvb/adapter0/frontend0 struct dvb_frontend_info FETYPE = { .name = "Conexant CX24116/CX24118", .type = 0, .frequency_min = 950000, .frequency_max = 2150000, .frequency_stepsize = 1011, .frequency_tolerance = 5000, .symbol_rate_min = 1000000, .symbol_rate_max = 45000000, .symbol_rate_tolerance = 0, .notifier_delay = 0, .caps = 0x500006ff }; NIM Socket 0: Type: DVB-S2 Name: Conexant CX24116/CX24118 Has_Outputs: no Frontend_Device: 0 /dev/dvb/adapter0/frontend2 doesn't exist /dev/dvb/adapter0/frontend3 doesn't exist /dev/dvb/adapter1/frontend0 doesn't exist /dev/dvb/adapter1/frontend1 doesn't exist /dev/dvb/adapter1/frontend2 doesn't exist /dev/dvb/adapter1/frontend3 doesn't exist /dev/dvb/adapter2/frontend0 doesn't exist /dev/dvb/adapter2/frontend1 doesn't exist /dev/dvb/adapter2/frontend2 doesn't exist /dev/dvb/adapter2/frontend3 doesn't exist /dev/dvb/adapter3/frontend0 doesn't exist /dev/dvb/adapter3/frontend1 doesn't exist /dev/dvb/adapter3/frontend2 doesn't exist /dev/dvb/adapter3/frontend3 doesn't exist Info: File [nim_sockets] created please check it. Info: create_nim_sockets done
totalt 0 drwxr-xr-x 2 root root 200 2012-03-30 20:46 ./ drwxr-xr-x 3 root root 60 2012-03-30 20:46 ../ crw-rw----+ 1 root video 212, 1 2012-03-30 20:46 demux0 crw-rw----+ 1 root video 212, 5 2012-03-30 20:46 demux1 crw-rw----+ 1 root video 212, 2 2012-03-30 20:46 dvr0 crw-rw----+ 1 root video 212, 6 2012-03-30 20:46 dvr1 crw-rw----+ 1 root video 212, 0 2012-03-30 20:46 frontend0 crw-rw----+ 1 root video 212, 4 2012-03-30 20:46 frontend1 crw-rw----+ 1 root video 212, 3 2012-03-30 20:46 net0 crw-rw----+ 1 root video 212, 7 2012-03-30 20:46 net1
ls: can not access / dev/dvb/adapter1 /: No such file or directory martin @ HTPC: ~ / downloads / create_nim_sockets $
Posted 31 March 2012 - 08:29
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 31 March 2012 - 13:52
@signal.quest
If you mean DVB-T or DVB-C yes it will work with OpenpliPC (either with a physical card in the PC or via vtuner).
Analogic signal is not supported by E2.
Pr2
Posted 31 March 2012 - 16:27
e2 currently has no ATSC support (though probably not too hard to implement this, we need somebody with hardware and an ATSC signal, to do the job)
0 members, 0 guests, 0 anonymous users