Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package tvheadend #7571

Merged
1 commit merged into from
Sep 24, 2021
Merged

Add package tvheadend #7571

1 commit merged into from
Sep 24, 2021

Conversation

MrAdityaAlok
Copy link
Member

@MrAdityaAlok MrAdityaAlok commented Sep 20, 2021

TODO:

  • Add tvheadend itself
  • Add libdvbcsa (optional)
  • Add avahi (optional) I will add it some day later.

@MrAdityaAlok MrAdityaAlok marked this pull request as ready for review September 24, 2021 10:04
@MrAdityaAlok
Copy link
Member Author

This should now be ready to be merged. I will add avahi(optional) library some day later.

@ghost
Copy link

ghost commented Sep 24, 2021

@MrAdityaAlok Could you squash commits to leave only "add package" ones?

Add package libdvbcsa

required by tvheadend

tvheadend: disable all static libs

tvheadend: disable libav and `--enable-android` only for 32 bits

Revert "tvheadend: `--enable-android` only for 32 bits"

This reverts commit fba7db9.

tvheadend: disable libav

tvheadend: add patch for `<time64.h>` header

 this is needed for 32 bit archs only

tvheadend: supress warnings as error

tvheadend: disable `mmx` instructions for arm

It is not supported by Arm (or Android ?)

tvheadend: disable `sse2` instructions as well

tvheadend: add cflag for include dir

tvheadend: enable tvhcsa

tvheadend: remove TODO comments
@MrAdityaAlok
Copy link
Member Author

@MrAdityaAlok Could you squash commits to leave only "add package" ones?

@xeffyr done

@ghost ghost merged commit e2afa4e into termux:master Sep 24, 2021
@MrAdityaAlok MrAdityaAlok deleted the tvheadend branch September 24, 2021 13:51
@wsnake65
Copy link

wsnake65 commented Sep 27, 2021

tvheadend crashes when descrambling (Code Word Client (newcamd)) : Bus Error
Amlogic s922x ( box Zoomtak King S22 on Android TV 9 )

@MrAdityaAlok
Copy link
Member Author

@wsnake65 I will look into it tonight.(it's 8:20 AM in my zone)

BTW I have never used tvheadend, can you provide steps to reproduce this?

@MrAdityaAlok MrAdityaAlok restored the tvheadend branch September 27, 2021 02:53
@wsnake65
Copy link

wsnake65 commented Sep 27, 2021

Scheme for test: minisatip tuner (192.168.5.30) -> tvheadend (192.168.5.10) -> KODI (on my PC 192.168.5.2)
In the log file you can see the steps of the work TVH.

1. Turned on not encrypted channel:
2021-09-27 07:42:55.908 [ DEBUG]:htsp: 192.168.5.2 [ | Kodi Media Center ] - subscribe to 8 канал using profile htsp
2021-09-27 07:42:55.909 [ DEBUG]:service: 2: 8 канал si 0xb04d86c0 SAT>IP DVB-S Tuner #1 (192.168.5.30) weight 0 prio 11 error 0 (OK)
.....
2021-09-27 07:42:57.759 [ DEBUG]:service: 36i/11976.82R/8 канал: Status changed to [Hardware input] [Input on service] [Demuxed packets] ---> Channel is running

2. Turned on encrypted channel:
2021-09-27 07:43:13.265 [ DEBUG]:htsp: 192.168.5.2 [ | Kodi Media Center ] - subscribe to BRIDGE TV using profile htsp
2021-09-27 07:43:13.266 [ DEBUG]:service: 2: BRIDGE TV si 0xb04d86c0 SAT>IP DVB-S Tuner #1 (192.168.5.30) weight 0 prio 11 error 0 (OK)
...
2021-09-27 07:43:13.403 [ DEBUG]:service: 36i/11976.82R/BRIDGE TV: Status changed to [Hardware input] [Input on service] [Demuxed packets]
...
2021-09-27 07:43:15.682 [ DEBUG]:service: 36i/11976.82R/BRIDGE TV: Status changed to [Hardware input] [Input on service] [Demuxed packets] [No access]

Request for descrambling
2021-09-27 07:43:15.682 [ DEBUG]:cwc: ECM state INIT
2021-09-27 07:43:15.682 [ DEBUG]:cwc: Insert new ECM (PID 6221) for service "BRIDGE TV"
...
Received the key to descrambling the channel
2021-09-27 07:43:15.822 [ DEBUG]:cwc: Saving prefered PID 6021 for cwc-s15.1cent.in-4000-0500
2021-09-27 07:43:15.822 [ DEBUG]:cwc: Received ECM reply (PID 6021) for service "BRIDGE TV" [0] even: a3.37.f5.cf.17.62.ad.26 odd: 0c.61.d0.3d.8b.24.23.d2 (seqno: 2 Req delay: 48 ms)
2021-09-27 07:43:15.822 [ DEBUG]:cwc: Obtained DES keys for service "BRIDGE TV" in 48 ms, from cwc-s15.1cent.in-4000-0500
2021-09-27 07:43:15.822 [ DEBUG]:descrambler: Obtained keys from cwc-s15.1cent.in-4000-0500 for service "BRIDGE TV"
2021-09-27 07:43:15.822 [ DEBUG]:descrambler: info - service='BRIDGE TV' caid=0500(Viaccess) provid=000A00 ecmtime=48 hops=1 reader='' from='s15.1cent.in:4000' protocol='newcamd'

tvheadend crashes : Bus Error

tvh.log

Also compile please the Tvheadend package from the Master branch (4.3***). There are a lot of fixes and works much better.

@MrAdityaAlok
Copy link
Member Author

@wsnake65 could you chek if new build works by downloading zip file from github actions for your respective cpu architecture and installing deb file using dpkg -i {DEBFILE_NAME}

@MrAdityaAlok
Copy link
Member Author

MrAdityaAlok commented Sep 27, 2021

Also compile please the Tvheadend package from the Master branch (4.3***). There are a lot of fixes and works much better.

It is updated very frequently, therefore no luck of it being added to main repo. Once it is released we will update to it.

@wsnake65
Copy link

wsnake65 commented Sep 27, 2021

@wsnake65 could you chek if new build works by downloading zip file from github actions for your respective cpu architecture and installing deb file using dpkg -i {DEBFILE_NAME}

I installed, but crashes with the same mistake
tvh1.log

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package Request: tvheadend
2 participants