Moderator Control Panel ]

V4L2 multistream support

V4L2 multistream support

Postby crazycat » Sat Oct 29, 2011 2:35 am

I add multistream support for latest linux TBS V4L sources - http://crazycat69.narod.ru/sattelite/li ... upport.zip.

modified dvbsnoop - https://bitbucket.org/CrazyCat/dvbsnoop
modified scan-s2 - https://bitbucket.org/CrazyCat/scan-s2
modified szap-s2 - http://crazycat69.narod.ru/sattelite/linux/szap-s2.tar.bz2

* core patch - new demod property DTV_DVBS2_MIS_ID (alias for DTV_DVBT2_PLP_ID).
* stv090x demod driver patch - setup MIS filtering from DTV_DVBS2_MIS_ID
* modified scan-s2, szap-s2 utils:
- added -m switch for MIS selection
- additional field in transponder info files for MIS (used by scan-s2)
- additional flag Pnum in VDR channel info (generated by scan-s2 and used by szap-s2)

Multistream supported for all STV0903BAC, STV0900BAC, STV0900AAB/AAC devices, which use stv090x demod driver. In current V4L-sources this is TBS6925, 6992, TBS5980 and another devices like Techisat SkyStar HD USB, Omicom S2 PCI (with my patch to budget.c, included)

So - unpack my archive to dir with linux-tbs-drivers, run patch.sh. Next build as described in README from linux-tbs-drivers.

P.S. Some transponder info for scan-s2 with well-known multistreams on 31.5E:
Code: Select All Code
S2 11914000 H 27500000 AUTO AUTO 8PSK 2
S2 11914000 H 27500000 AUTO AUTO 8PSK 3
S2 11914000 H 27500000 AUTO AUTO 8PSK 5
S2 11914000 H 27500000 AUTO AUTO 8PSK 6
S2 11993000 H 27500000 AUTO AUTO 8PSK 10
S2 11993000 H 27500000 AUTO AUTO 8PSK 20
S2 12148000 H 27500000 AUTO AUTO 8PSK 30
S2 12148000 H 27500000 AUTO AUTO 8PSK 40


And 12.5W:
Code: Select All Code
S2 12718000 H 36510000 AUTO AUTO 8PSK 33
S2 12718000 H 36510000 AUTO AUTO 8PSK 34
S2 12718000 H 36510000 AUTO AUTO 8PSK 35
S2 12718000 H 36510000 AUTO AUTO 8PSK 36
Last edited by crazycat on Thu Jan 24, 2013 7:37 am, edited 4 times in total.
crazycat
 
Posts: 526
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: V4L2 multistream support

Postby arreyofspace » Fri Mar 16, 2012 3:55 am

Hi, I need you help, link don't work, I need patch, can you help me ? :cry:
arreyofspace
 
Posts: 8
Joined: Fri Mar 16, 2012 3:44 am

Re: V4L2 multistream support

Postby crazycat » Fri Mar 16, 2012 4:32 am

link fixed :)
crazycat
 
Posts: 526
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: V4L2 multistream support

Postby arreyofspace » Mon Mar 19, 2012 3:35 pm

tbs drivers with patch
szap-s2 no Lock
Code: Select All Code
# szap-s2 -n 2 -c /etc/vdr/channels.conf -S 1 -M 5  -m10
reading channels from file '/etc/vdr/channels.conf'
zapping to 2 'Україна;ZEONBUD':
delivery DVB-S2, modulation 8PSK
sat 0, frequency 11992 MHz H, symbolrate 27500000, coderate 8/9, rolloff 0.35
mis 10, vpid 0x04b1, apid 0x04b2, sid 0x0000
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 00 | signal 9999 | snr 0001 | ber 00800000 | unc 00000000 |
status 00 | signal 9999 | snr 0001 | ber 00800000 | unc 00000000 |
status 00 | signal 9999 | snr 0001 | ber 00800000 | unc 00000000 |
status 00 | signal 9999 | snr 0001 | ber 00800000 | unc 00000000 |
status 00 | signal 9999 | snr 0001 | ber 00800000 | unc 00000000 |
status 00 | signal 9999 | snr 0001 | ber 00800000 | unc 00000000 |



Code: Select All Code
# cat /etc/vdr/channels.conf
Інтер;ZEONBUD:11992:hC89M2S0X10:S31.5E:27500:1101=27:1102=ukr@3:0:0:11:10:100:0
Україна;ZEONBUD:11992:hC89M2S0X10:S31.5E:27500:1201=27:1202=ukr@3:0:694:12:10:100:0   [b]<---- this one[/b]
1+1;ZEONBUD:11992:hC89M2S0X10:S31.5E:27500:1301=27:1302=ukr@3:0:694:13:10:100:0
НТН;ZEONBUD:11992:hC89M2S0X10:S31.5E:27500:1401=27:1402=ukr@3:0:694:14:10:100:0
К-1;ZEONBUD:11992:hC89M2S0X10:S31.5E:27500:1501=27:1502=ukr@3:0:694:15:10:100:0
УТ-1;ZEONBUD:11992:hC89M2S0X10:S31.5E:27500:1601=27:1602=ukr@3:0:694:16:10:100:0


VDR work with multristream ???

UBUNTU 10.04, TBS6925
arreyofspace
 
Posts: 8
Joined: Fri Mar 16, 2012 3:44 am

Re: V4L2 multistream support

Postby SergioDanielG » Mon Mar 19, 2012 6:55 pm

arreyofspace Wrote:tbs drivers with patch
szap-s2 no Lock

With same driver (one of the last) and patch, you need recompile szap-s2 and scan-s2 (if you use it)
Did you do it?

arreyofspace Wrote:VDR work with multristream ???

UBUNTU 10.04, TBS6925


VDR added multistream support in version 1.7.23, I had no chance to test multistream, unfortunately I can't say you how it works.

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: V4L2 multistream support

Postby arreyofspace » Mon Mar 19, 2012 8:39 pm

The problem was diseqc

line of the szap channel file has the following format:
name:frequency_MHz:polarization[coderate][delivery][modulation][rolloff]:sat_no:symbolrate:vpid:apid:service_id

and

one line of the VDR channel file has the following format:
name:frequency_MHz:polarization[coderate][delivery][modulation][rolloff]:sat_no:symbolrate:vpid:apid:?:?:service_id:?:?:?

In my channels.conf I change S31.5E to number of my diseqc port (0,1,2,3)

Code: Select All Code
szap-s2 -r -n 2 -c /etc/vdr/channels.conf -V -H -S 1 -M 5  -m 10
reading channels from file '/etc/vdr/channels.conf'
zapping to 2 'Україна;ZEONBUD':
delivery DVB-S2, modulation 8PSK
sat 3, frequency 11992 MHz H, symbolrate 27500000, coderate 8/9, rolloff 0.35
mis 10, vpid 0x04b1, apid 0x04b2, sid 0x000c
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 1f | signal  57% | snr  71% | ber 0 | unc 0 | FE_HAS_LOCK
status 1f | signal  57% | snr  71% | ber 0 | unc 0 | FE_HAS_LOCK


but szap-s2 option -r don't work
I tried to open the stream file:
Code: Select All Code
 mplayer -cache 3000 -demuxer lavf /dev/dvb/adapter0/dvr0
or
 mplayer -cache 3000  /dev/dvb/adapter0/dvr0

but nothing
Last edited by arreyofspace on Tue Mar 20, 2012 12:45 am, edited 1 time in total.
arreyofspace
 
Posts: 8
Joined: Fri Mar 16, 2012 3:44 am

Re: V4L2 multistream support

Postby SergioDanielG » Mon Mar 19, 2012 10:14 pm

Try adding -p option to szap-s2, then try mplayer again.
Say me, mplayer have some errors or simply never start? What about "ffmpeg -i /dev/adapter0/dvr0"? Can you post the output of this here?

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: V4L2 multistream support

Postby arreyofspace » Tue Mar 20, 2012 12:45 am

Nothing change with option -p

mplayer
Code: Select All Code
# mplayer -cache 3000 -demuxer lavf /dev/dvb/adapter0/dvr0
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not open config files /root/.lircrc and /etc/lirc//lirc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing /dev/dvb/adapter0/dvr0.
Cache fill: 18.67% (573440 bytes)   
libavformat file format detected.
and nothing


ffmpeg
Code: Select All Code
ffmpeg -i /dev/dvb/adapter0/dvr0FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Dec 21 2011 18:41:38, gcc: 4.4.3


[h264 @ 0x17ae070]B picture before any references, skipping
[h264 @ 0x17ae070]decode_slice_header error
[h264 @ 0x17ae070]no frame!
[h264 @ 0x17ae070]non-existing PPS referenced
[h264 @ 0x17ae070]B picture before any references, skipping
[h264 @ 0x17ae070]decode_slice_header error
[h264 @ 0x17ae070]no frame!
[h264 @ 0x17ae070]non-existing PPS referenced
[h264 @ 0x17ae070]B picture before any references, skipping
[h264 @ 0x17ae070]decode_slice_header error
[h264 @ 0x17ae070]no frame!
[h264 @ 0x17ae070]number of reference frames exceeds max (probably corrupt input), discarding one
arreyofspace
 
Posts: 8
Joined: Fri Mar 16, 2012 3:44 am

Re: V4L2 multistream support

Postby SergioDanielG » Tue Mar 20, 2012 2:35 am

Any posibility that this channel was scrambled?
Unfortunately I'm not in footprint of this satellite, I can't test by myself.
Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: V4L2 multistream support

Postby crazycat » Wed Mar 21, 2012 4:23 am

Ukrainian DVB-T2 now scrambled with Irdeto CA :) Only some one channel per mux stay FTA :)
MX1:
Image
MX2:
Image
MX3:
Image
crazycat
 
Posts: 526
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests