Sat <> IP

jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#121

Beitrag von jockyw2001 »

The OE-Alliance Enigma2 implementation is significantly more complex, for example it requires a usb helper app. There is also no vtuner sourcecode available, because vtuner functionality is built in the chipset driver. For example for vu+ and gigablue stb receivers based on broadcom chipset vtuner is built inside dvb-bcm7362.ko module. I reverse enigineered that in ida-pro. I did find OpenTuner (otuner) sourcecode made by the ItalySat Team. Otuner is an alternative to vtuner and is more similar to the OE-Alliance implementation. I can try to build it, but first I want to get the more simple vtuner/satip client combo to work and get it to output audio and video.

mohousch: do you have a chance to test vtuner/satip with your box? for your gigablue you can download a mips minisatip here: https://minisatip.org/forum/viewtopic.php?f=5&t=371

I have attached the latest neutrino console log where I can find no errors. Minisatip is streaming the channel to vtuner, I see epg etc and can record the program and play it later with movieplayer, I can also play the stream in vlc from the yWeb interface, but ... on tv there is no audio and video. From the log you can see that both vtuner and built-in tuner are recognized:

Code: Alles auswählen

CFrontend::Open /dev/dvb/adapter0/frontend0 vTuner proxyFE DVB-S2
CFrontend::secSetTone: fe(0,0) tone off
CFrontend::Close fe(0,0) vTuner proxyFE DVB-S2
CFrontend::Open /dev/dvb/adapter1/frontend0 Conexant CX24116/CX24118
CFrontend::secSetTone: fe(1,0) tone off
CFrontend::Close fe(1,0) Conexant CX24116/CX24118
initFrontend found 2 frontends
Also the audio and video frontend configuration is correctly loaded

Code: Alles auswählen

zapit: loadFrontendConfig
[video_cs.cpp]:cVideo
[video_cs.cpp]:SetVideoSystem - video_system=VIDEO_STD_1080I50
[audio_cs.cpp]:cAudio
And the video and audio dvb devices are also opened:

Code: Alles auswählen

cVideo::Open /dev/dvb/adapter1/video0
[video_cs.cpp]:setSource - source=VIDEO_SOURCE_DEMUX
cAudio::Open /dev/dvb/adapter1/audio0
[audio_cs.cpp]:setSource - source=AUDIO_SOURCE_DEMUX
Or do video_cs.cpp and audio_cs.cpp take the wrong demux sources? Does it take the demux sources of adapter1 (built-in tuner), instead of the adapter0 (vtuner) demux?? Can I find that out by outputting additional debug output in video_cs.cpp and audio_cs.cpp, or can a debug build of neutrino help?

EDIT: I tried a symlink in rcS where demux0 of adapter1 (built-in tuner) uses demux0 of adapter0 (vtuner), but it doesn't work either :(

Code: Alles auswählen

ln -s /dev/dvb/adapter0/demux0 /dev/dvb/adapter1/demux0
Ciao,
JockyW
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
mohousch
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 1049
Registriert: Di 18. Sep 2012, 20:21
Hat sich bedankt: 32 Mal
Danksagung erhalten: 116 Mal

Re: Sat <> IP

#122

Beitrag von mohousch »

Ja i will test it when i at home.

again this is the Problem why you cant get Video and audio0 output, vtuner is Same as USB Tuner Devices they Provide all dvb Devices Bit no audio and no Video Output device and the way how this done in e2 is for the Moment the Right one the stream musst be pumped from vtuner e.g USB Tuner to stb.

if you have Attached hdd an your stb you can use permanent time shit to get Video and audio running is not the Right way nur like this you can at the Moment enjoy your stb with vtuner
Benutzeravatar
mohousch
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 1049
Registriert: Di 18. Sep 2012, 20:21
Hat sich bedankt: 32 Mal
Danksagung erhalten: 116 Mal

Re: Sat <> IP

#123

Beitrag von mohousch »

I think audio_cs.cpp and video_cs.cpp are alright, needed is to wrote a Thread in zapit.cpp which pump the TS from vtuner device to stb device. IT will be the pretty way routing TS from other device to stb is mir complexer with sh4.

I'm Not sure is long er that i look in sh4 driver i think if the stream is firwarded to dvr device can also Routed by stb to audio/video output for this you need some changes in audio_cs and video_cs.cpp
jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#124

Beitrag von jockyw2001 »

Okay, I think I understand what you mean and I will take a shot at both options you suggest. Thx! :)
jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#125

Beitrag von jockyw2001 »

The permanent timeshift trick kind of works, but although I can watch tv now, this is of course not the ultimate goal :D

I think rerouting dvr0 could be the easiest solution for now. Do you have some advise how the patches could be done? Is it something like changing VIDEO_SOURCE_DEMUX to VIDEO_SOURCE_DVR in video_cs.cpp and AUDIO_SOURCE_DEMUX to AUDIO_SOURCE_DVR in audio_cs.cpp

I also managed to build the OpenTuner usbotunerhelper and otuner modules. I don't really know if otuner is a real alternative to vtuner, but usbotunerhelper seems to have the pump thread which pumps from one device to the other. If anyone has more ideas I am happy to try things out.
Benutzeravatar
mohousch
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 1049
Registriert: Di 18. Sep 2012, 20:21
Hat sich bedankt: 32 Mal
Danksagung erhalten: 116 Mal

Re: Sat <> IP

#126

Beitrag von mohousch »

can you point me to vtunerc driver e.g satip client sources or there is any parameter to load your precompileted driver as cable tuner?

i build minisatip for mipsel its working ;-) on android elegato support only dvbs ;-(
jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#127

Beitrag von jockyw2001 »

mohousch hat geschrieben:can you point me to vtunerc driver e.g satip client sources or there is any parameter to load your precompileted driver as cable tuner?
I will post sources here asap
i build minisatip for mipsel its working ;-) on android elegato support only dvbs ;-(
Cool, did you build with libdvbcsa? You can then connect minisatip to your local oscam and watch encrypted channels on your client. For testing dvbs2 you can install dvbviewer lite.

Here another status update on the sat>ip client project: I have built e2-nightly for ufs910 and will try the sat>ip client. If it works I can more easily find out how to get it working on NHD2. I do understand pumping is needed, but what I see in E2 dvb.cpp is that it pumps between a usb tuner and vtuner. I still do not understand whut is the pump source and drain in case of a satip tuner and vtuner device.
jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#128

Beitrag von jockyw2001 »

Sourcecode for satip client and vtunerc attached. In the Makefile you must update the path vars TREE_ROOT and CROSS_COMPILE.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
mohousch
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 1049
Registriert: Di 18. Sep 2012, 20:21
Hat sich bedankt: 32 Mal
Danksagung erhalten: 116 Mal

Re: Sat <> IP

#129

Beitrag von mohousch »

- add satipclient target to cdk (other sources)
- add satipclient plugins

state: same state as you without audio and video output.

put vtunerc.ko driver to /var/lib/modules
put satip_client to /var/bin

build new plugins.

to be continued
jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#130

Beitrag von jockyw2001 »

Thx mohousch for testing and including the satip stuff in cdk. I have done some testing in E2, but so far no luck. I can see vtuner in Enigma2, but it doesn't zap to a channel. Pretty weird.

Indeed, to be continued ...
Benutzeravatar
mohousch
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 1049
Registriert: Di 18. Sep 2012, 20:21
Hat sich bedankt: 32 Mal
Danksagung erhalten: 116 Mal

Re: Sat <> IP

#131

Beitrag von mohousch »

- add vtuner proc thread to zapit is not working yet ;-( to test or improve just set havevtuner to true in zapit.cpp
- add usbtunerhelper target to cdk (need some work)
Benutzeravatar
DboxOldie
Co-Admin
Co-Admin
Beiträge: 5421
Registriert: Sa 6. Aug 2011, 15:21
Hat sich bedankt: 79 Mal
Danksagung erhalten: 295 Mal

Re: Sat <> IP

#132

Beitrag von DboxOldie »

:?: :?: Startet nicht mehr....

Code: Alles auswählen

ufs912 login: root
BusyBox v1.25.0 (2016-08-19 16:02:42 CEST) built-in shell (ash)
ufs912:~# neutrino
>>> neutrinoHD2 (compiled Aug 19 2016 20:33:16) <<<
CFrameBuffer::getInstance: frameBuffer Instance created
starting /usr/local/bin/neutrino
CFrameBuffer::init 12288k video mem
CFrameBuffer::setMode: FB: 1280x720x32
NeutrinoApp Instance created
CNeutrinoApp::run:
CNeutrinoApp::loadSetup
CNeutrinoApp::loadSetup: rec dir /hdd/movie timeshift dir /hdd/movie/.timeshift
FBFontRenderClass::FBFontRenderClass: Intializing font cache, using max. 4MB...
CNeutrinoApp::SetupFonts: settings font file /usr/share/fonts/micron.ttf
CNeutrinoApp::SetupTiming
CColorSetupNotifier::changeNotify:
CVFD::ShowText: []
CVFD::ShowText: [NHD2]
CRCInput::loadKeymap:
CRCInput::open: /dev/input/event0 fd 11
/dev/input/event1: No such device
CRCInput::open: /dev/input/event1 fd -1
/dev/input/event2: No such device
CRCInput::open: /dev/input/event2 fd -1
/dev/input/event3: No such device
CRCInput::open: /dev/input/event3 fd -1
[playback_cs.cpp]:cPlayback
CPlugins::loadPlugins
+ . /fbcallmonitor/fb.conf
/var/tuxbox/plugins/fbcallmonitor/fb.sh: .: line 5: can't open '/fbcallmonitor/fb.conf'
insmod: /var/lib/modules/vtunerc.ko: module not found
sh: /var/bin/satip_client: not found
test: plugin_init
[zapit] zapit_main_thread: starting... tid 807
CFrontend::Open /dev/dvb/adapter0/frontend0 STV090x Multistandard
fe(0,0) is assigned as usb tuner
CFrontend::secSetTone: fe(0,0) tone off
CFrontend::Close fe(0,0) STV090x Multistandard
initFrontend found 1 frontends
zapit: loadFrontendConfig
[video_cs.cpp]:cVideo
[video_cs.cpp]:SetVideoSystem - video_system=VIDEO_STD_1080I50
[audio_cs.cpp]:cAudio
linking adapter1/frontend0 to vtunerc0
/dev/dvb/adapter1/frontend0: No such file or directory
/dev/dvb/adapter1/demux0: No such file or directory
/dev/vtunerc0: No such file or directory
FE_GET_INFO: Bad file descriptor
init succeeded
dvb-ci.cpp:getInstance
dvb-ci.cpp:cDvbCi
[zapit] pump_proc: starting... tid 810
Segmentation fault
ufs912:~# 
Das > STV090x Multistandard ist der Standard Tuner der 912er, kein USB....
MfG DboxOldie

KEIN SUPPORT PER PN > Bitte das Forum benutzen und ins Wiki schauen

Bild
Benutzeravatar
mohousch
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 1049
Registriert: Di 18. Sep 2012, 20:21
Hat sich bedankt: 32 Mal
Danksagung erhalten: 116 Mal

Re: Sat <> IP

#133

Beitrag von mohousch »

Danke für der Bemerkung

sollte jetzt gefixt sein mit dem Segfault

to test satipmapping code

Code: Alles auswählen

bool havevtuner = false; // set to true to test
in zapit.cpp
jockyw2001
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 23
Registriert: Do 4. Aug 2016, 14:33
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Sat <> IP

#134

Beitrag von jockyw2001 »

If you want to test the new sat>ip code then set havevtuner = true

In that case you must manually update your rcS and add a couple of mknods. This is what I add on my ufs910

Code: Alles auswählen

      mknod /dev/vtunerc0 c 266 0

      mkdir -p /dev/dvb/adapter1
      mknod /dev/dvb/adapter1/frontend0 c 212 67
      mknod /dev/dvb/adapter1/demux0 c 212 68
      mknod /dev/dvb/adapter1/dvr0 c 212 69
      mknod /dev/dvb/adapter1/audio0 c 212 65
      mknod /dev/dvb/adapter1/video0 c 212 64
      mknod /dev/dvb/adapter1/ca0 c 212 70
      mknod /dev/dvb/adapter1/ci0 c 212 73

      chmod a+rw /dev/vtunerc*
      chmod a+rw /dev/dvb/adapter1/*
Make sure vtunerc.ko is in /var/lib/modules (it gets loaded by satiptuner plugin). It is not build automatically, so do it manually.

Also the satip_client isn't build. I had to manually build it from git://github.com/eriksl/satip-client.git and put it in /var/bin/
And don't forget /tuxbox/plugins/satipclient/satip-client.conf

With current code my satip server (minisatip) doesn't receive anything. Work in progress ...

EDIT: just now I do a channel scan on vtuner and it is finding channels. So satip_client/vtuner *is* talking to minisatip :)
Zuletzt geändert von jockyw2001 am Fr 19. Aug 2016, 23:23, insgesamt 1-mal geändert.
Benutzeravatar
DboxOldie
Co-Admin
Co-Admin
Beiträge: 5421
Registriert: Sa 6. Aug 2011, 15:21
Hat sich bedankt: 79 Mal
Danksagung erhalten: 295 Mal

Re: Sat <> IP

#135

Beitrag von DboxOldie »

I can´t test > I have no sat-ip server running.....
MfG DboxOldie

KEIN SUPPORT PER PN > Bitte das Forum benutzen und ins Wiki schauen

Bild
Antworten

Zurück zu „NHD2 - Allgemeines“