NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Extras v
« Previous 1 2 3 4 Next »
Custom HDHR Extra

 
  • 0 Vote(s) - 0 Average
Custom HDHR Extra
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#1
2020-12-31, 10:17 PM
Attached is the first attempt at providing additional support for HDHR devices.  It serves  two main purposes.

- For Extend devices you can specify transcoding profiles. 

- For the new ATSC 3.0 device it can transcode using experimental ffmpeg.exe that does AC4 decoding to AC3 so recordings and Live TV should work on Kodi and other NextPVR clients.  NextPVR web access will likely be limited to powerful PC that can do h265 to h264 transcoding in real time.

This script creates multiple extras for each tuner on the device.

Steps to install Windows users

1. Install python following these steps https://github.com/sub3/NextPVR/wiki/install-python

2.  Install the require python modules as Administrator

pip install lxml requests


3.  Unzip the attached into C:\Users\Public\NPVR-data\scripts.  It should create a folder in scripts called hdhrconnect

4. Run

python C:\Users\Public\NPVR-data\scripts\hdhrconnect\hdhrconnect.py install

and follow the prompts to add Extend or HDHR5-4K devices

If you don't want to automatically add the extra files that are created omit the install parameter


5. For ATSC 3.0 users unzip ac4ffmpeg.zip into "C:\Program Files\NextPVR\Other" Get the file from https://1drv.ms/u/s!Ar-w3NVk_f-MllB7GxxW...g.zip/file

This should work on other platforms but I have only compiled ffmpeg for Ubuntu 20 at this point.  I don't have access to these ATSC devices so there is no telling how the performance will be.

Martin


Attached Files
.zip   hdhrconnect.zip (Size: 6.33 KB / Downloads: 28)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#2
2021-01-04, 07:55 PM
I have updated post #1 to include support for HDHR5-4K firmware with ATSC channels > 100. These are mapped back to the source so that Schedules Direct mapping will work. The names will have a -3.0 added but there will be duplicate channel numbers. You can renumber and delete them as you wish.

Only AC4 files will be transcoded the rest will be pass through URL's

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,838
Threads: 177
Joined: Aug 2016
#3
2021-01-10, 12:06 AM
(2020-12-31, 10:17 PM)mvallevand Wrote: Attached is the first attempt at providing additional support for HDHR devices.  It serves  two main purposes.

- For Extend devices you can specify transcoding profiles.....

......This should work on other platforms but I have only compiled ffmpeg for Ubuntu 20 at this point.  I don't have access to these ATSC devices so there is no telling how the performance will be.

Martin

Hi Martin,

I have a HDHR Extend (Model:HDTC-US) so I tried this on my MX-linux (debian non-Ubuntu) PC. I extracted the zip file in /var/opt/nextpvr/scripts/ and ran the py script and this is what I got.

Code:
root@straitmx:/var/opt/nextpvr/scripts/hdhrconnect# python hdhrconnect.py
Traceback (most recent call last):
  File "hdhrconnec.py", line 4, in <module>
    from datetime import datetime, timedelta, timezone
ImportError: cannot import name timezone
root@straitmx:/var/opt/nextpvr/scripts/hdhrconnect#

Have any suggestions as to what I should do next?

Thanks, Rex
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#4
2021-01-10, 12:26 AM
Does it work using python3 instead of python?

That being said, those modules are probably not even needed here so the line can be removed.

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,838
Threads: 177
Joined: Aug 2016
#5
2021-01-10, 01:22 AM
(2021-01-10, 12:26 AM)mvallevand Wrote: Does it work using python3 instead of python?

That being said, those modules are probably not even needed here so the line can be removed.

Martin

Yes, using python3 worked. 

Now I have three new devices in NextPVR settings with the prefex "EXTRA" listed. There are two new OTA devices and a pluto TV device listed. Scanned for channels with the OTA devices and I can watch TV with them.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#6
2021-01-10, 01:31 AM
Yes it creates an extra for each of the two tuners so that is expected. Looking at my zip file I think I forgot the script files for Windows and Linux in my second update so I assume you mean you can't watch TV.

Matin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,838
Threads: 177
Joined: Aug 2016
#7
2021-01-10, 01:32 AM
(2021-01-10, 01:22 AM)VCR58 Wrote:
(2021-01-10, 12:26 AM)mvallevand Wrote: Does it work using python3 instead of python?

That being said, those modules are probably not even needed here so the line can be removed.

Martin

Yes, using python3 worked. 

Now I have three new devices in NextPVR settings with the prefex "EXTRA" listed. There are two new OTA devices and a pluto TV device listed. Scanned for channels with the OTA devices and I can watch TV with them.
Actually, the new OTA devices are not streaming TV but they show up in the guide.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#8
2021-01-10, 02:18 AM
Right like I posted I didn't include the scripts. For linux add this to scripts/hdhrconnect/hdhrconnect.sh and set it chmod +x for all users

Code:
if [ "$2" == "--pass" ]; then
        #Extend devices can add a profile here ?transcode= and an option
        #rem heavy, mobile, internet540, internet480, internet360, internet24
        echo "$1"
else
        acffmpeg -re -v panic -i "$1" -vcodec copy -acode ac3 -f mpegts -
fi

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,838
Threads: 177
Joined: Aug 2016
#9
2021-01-10, 03:21 AM
Added the code above then ran the script and go a syntax error

Code:
rex@straitmx:/var/opt/nextpvr/scripts/hdhrconnect
$ python3 hdhrconnect.py
  File "hdhrconnect.py", line 112
    if [ "$2" == "--pass" ]; then
                           ^
SyntaxError: invalid syntax
rex@straitmx:/var/opt/nextpvr/scripts/hdhrconnect
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#10
2021-01-10, 03:41 AM
Did you overwrite the python file with the shell file? You need both

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  TabloTV Extra mvallevand 17 4,722 2025-03-13, 10:55 PM
Last Post: mvallevand
  Reminder Pluto TV Extra removed mvallevand 0 340 2025-01-04, 06:32 PM
Last Post: mvallevand
  HDHR-Flex template VCR58 3 427 2024-11-15, 07:41 PM
Last Post: mvallevand
  help requested with sending IR Blast command with extra _Dam0_ 3 449 2024-10-11, 12:53 PM
Last Post: mvallevand
  Getting Pluto extra to work ballfam 163 14,247 2024-08-08, 07:23 PM
Last Post: mvallevand
  Is 'TabloTv Extra' Compatible with Gen 4 Devices? POWerSUrgeSW3 4 1,024 2024-06-23, 01:23 PM
Last Post: mvallevand
  windows media player extra buntay20 4 910 2023-12-17, 06:48 PM
Last Post: Jaggy
  PlutoTV Extra Commerical Exit freezing bisonfan 13 2,269 2023-12-16, 07:42 PM
Last Post: mvallevand
  Extra donation access -plutotv bisonfan 3 935 2023-09-04, 07:26 PM
Last Post: mvallevand
  PlutoTV Extra Problem Metroid 3 954 2023-07-23, 06:41 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode