NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 2 3 4 5 … 101 Next »
Uraycoder HDMI Encoder Extra

 
  • 0 Vote(s) - 0 Average
Uraycoder HDMI Encoder Extra
gobo
Offline

Junior Member

Posts: 22
Threads: 3
Joined: Apr 2014
#1
2025-04-13, 07:20 PM
Hey guys

I usually don't like to ask for help and just scour the forums etc so I can learn how things work. This has me pulling my hair out. So with my tail between my legs, I need help. Smile

I am trying to setup a Uraycoder HDMI network encoder (URay UHE265-1L) for use in NextPVR. I was using two Colossus 1 cards but they were never 100% stable.

It all seems pretty straight forward but my extras-Uraycoder1.xml for it just doesn't work. After many variations, I tested it one time and it seemed to work perfectly, it played video of the channel, blasted the blaster and displayed the correct guide info.  Was happy, took a break, came back later and it didn't work again. (maybe some remnant of the previous tries lingered somehow) because I didn't change a thing. I tried it on another machine to verify. I tested playback with http://192.168.1.168/0.ts in VLC and Potplayer and it plays video fine every time.

It  looks like the  the extras-Uraycoder1.xml is not running the uraycoder1.bat file. So here what drove me over the edge.

To test if the .bat file was being run I replaced the line in the extras-Uraycoder1.xml with "<Program>C:\windows\system32\notepad.exe</Program>" *no quotes*.  

I started and stopped the NextPVR server and deleted and re-added the extra for the 100th time. When I tuned the channel (in the client) I expected a notepad window to open but it didn't. I decided to try the NPVR web app and it actually tuned the channel!!, also not running notepad. With the web app still open I tried the client and it played the video in there too. I tried the client again without the web app and it failed.

I'm no expert with command lines and xml files but it's probably something stupid I'm doing that's right in front of me.


Here is my current extras-Uraycoder1.xml :

<extras>
<channel name="{channel-name}">
    <command>cmd</command>
    <args>/c C:\Users\Public\NPVR-data\scripts\uraycoder1.bat {channel}</args>
</channel>
</extras>


and the Uraycoder1.bat:

@echo off

c:\Users\Public\NPVR-data\scripts\USBUIRTSend.exe samsung %channel%

curl.exe -s http://192.168.1.168/0.ts





Thanks for any help. (it would be so appreciated)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#2
2025-04-13, 09:05 PM
Can you post the logs showing the attempt to use it?

You may need to explicitly specify a full path to cmd.exe
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#3
2025-04-13, 09:19 PM
The extra looks like the example I posted https://forums.nextpvr.com/showthread.ph...#pid569332 that works for me.

If it plays in the web player but not "the client" we'd need to know which client. Perhaps if you are stream h265 maybe whatever client you are testing isn't configured to play that codec.

The server won't open a Windows GUI program so not a good test.

Marti
gobo
Offline

Junior Member

Posts: 22
Threads: 3
Joined: Apr 2014
#4
2025-04-14, 04:04 AM
Thanks.

Attached are the logs files.

I did use the example from the https://forums.nextpvr.com/showthread.ph...#pid569332 thread. It seemed so simple and elegant. Everything looks fine. Its strange that its not working.

I tried it on my son's Windows 10 PC and even an old Windows 7 machine with the same results.

The Uraycoder is set to use H.264 format.

The thing is is that it doesn't seem to be running the bat file at all. When I run the bat file manually, tested it by telling it to run notepad, it worked but the extras.xml doesn't seem to execute it.

I'm going to try on a Windows 11 machine tomorrow..


Attached Files
.zip   logs.zip (Size: 203.93 KB / Downloads: 2)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#5
2025-04-14, 10:13 AM
The logs show it working from the web player and you didn't answer my question about which client.

If you meant NextPVR.exe from here https://github.com/Nevcairiel/LAVFilters/releases download the first installer.exe and ensure your install the 32 bit filters. You can install 64 bit but NextPVR.exe won't use them.

Then in NextPVR.exe right click screen go to Settings Decoders in NextPVR settings set LAV for AAC audio. You can set it to H.264 video if you want. Sub recommends the Microsoft decoder but I just use LAV for everything.

I don't think curl is intallled by default in Win 7.

Martin
gobo
Offline

Junior Member

Posts: 22
Threads: 3
Joined: Apr 2014
#6
2025-04-15, 04:25 AM
Wow it worked on the first try! Thank you so much for the help!!

I never thought to check the decoders in the client. The H.264 decoders were set to the "Microsoft DTV-DVD Decoder". After I switch the to the LAV decoders the audio and video play perfectly! Crazy so simple! 

I only got as far as I did before because of all of the help you give in the forums.Smile

Thanks again!
gobo
Offline

Junior Member

Posts: 22
Threads: 3
Joined: Apr 2014
#7
2025-04-15, 06:04 AM
I was at the finish line and I stumbled.[Image: sad.png]

I know NextPVR requires the user to provide the executable to NextPVR to IR blast a cable box. In the machine I'm working on I had two Hauppauge Colossus cards running two cable boxes. One Colossus used it's internal blaster via Haupblast.exe and the other to uses a USBUIRT blaster via its executable USBUirtSend.exe. Both blasters word perfectly. Now I'm switching out one colossus card for the Uraycoder.

As you know, when setting up the Hauppauge cards NextPVR asks you to input the blaster commands. With the Extras for the Uraycoder I thought I could run the blasters command line code from the bat file in the scripts folder.

I'm using a USBUIRT and the code is pretty straight forward::

USBUirtSend.exe Samsung %Channel%
(where Samsung is the cable box's remote codes.)

I'm doing something wrong again because the USBUIRT doesn't blast, even if I put a dummy value in for channel in the bat file nothing happens. When I run the bat file directly (with the dummy value) it blasts fine.

So basically, I know how to execute blasting just not sure how to get NextPVR to run it.


From the forums I've tried what's in my original post and also this:

Uraycoder1.bat:
@echo off
set channel="1234"
call C:\Users\Public\NPVR-data\scripts\testtuner.bat %1
curl.exe -s http://192.168.1.168/0.ts


Testtuner:
@echo off
C:\Users\Public\NPVR-data\scripts\usbuirtsend.exe samsung %channel%
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#8
2025-04-15, 12:05 PM
If you have script for the Colossus use can't you just use that? If not I would use your original post and follow my example and use %1 and not %channel%

I assume it tunes if you use something like

c:\Users\Public\NPVR-data\scripts\USBUIRTSend.exe samsung 5

Martin
gobo
Offline

Junior Member

Posts: 22
Threads: 3
Joined: Apr 2014
#9
2025-04-15, 04:20 PM
It will send the blast codes (4 flashes) to the USBUIRT if I use the line:

C:\Users\Public\NPVR-data\scripts\USBUIRTSend.exe samsung 1234

But only if I run the bat file directly. When I play a channel in NextPVR it ignores the line.
I even tried making it simple and used a simple compiled AHK script to open notepad with no parameters.

C:\Users\Public\NPVR-data\scripts\test.exe

If I run the bat file directly notepad opens but if I tune a channel in NPVR the line is ignored but it still plays video from the Network Encoder.

I know the NPVR Extras-Uraycoder1.xml is hitting the bat file because if I remove the: curl.exe -s http://192.168.1.168/0.ts
line nothing happens and if I put it back it tunes again.

I feel like something is staring me right in the face that I'm missing. [Image: lightbulb.png]
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#10
2025-04-15, 04:29 PM
I already told you you can't test with GUI apps like notepad. I asked if you could use you Colossus script and no answer, like when I first asked what client you used. This is why I don't try to help with scripts. I always end up going down a rabbit hole.

I don't know enough about USBUIRTSend though so I can't help anymore. My example will work if you have a good tuning script.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extra files in 6.1.4 Stanno 5 1,011 2023-06-28, 01:29 PM
Last Post: Stanno
  Extra using haupblast.exe tree2369 3 679 2023-05-22, 04:19 PM
Last Post: tree2369
  nvida hdmi audio MaxOne72 0 580 2022-01-08, 09:47 PM
Last Post: MaxOne72
  HDMI to USB grabber bohosh 43 9,832 2020-12-03, 11:32 PM
Last Post: mvallevand
  FFmpeg settings for HDMI Encoder device. boukmandutty 10 3,990 2020-08-13, 04:02 AM
Last Post: boukmandutty
  Cannot watch two EXTRA channels at the same time fwpvr789 13 4,166 2020-07-03, 07:16 PM
Last Post: fwpvr789
  Is video encoder setting per client or system wide? aderlopas 3 1,677 2020-04-12, 09:28 AM
Last Post: aderlopas

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

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

Linear Mode
Threaded Mode