NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 2 3 4 5 … 193 Next »
Execute command to specific device when stream is exited

 
  • 0 Vote(s) - 0 Average
Execute command to specific device when stream is exited
boukmandutty
Offline

Junior Member

USA
Posts: 19
Threads: 5
Joined: Aug 2020
#1
2023-05-30, 05:04 PM
I have been trying to find a way to send a stop command to an android box attached a capture device once streaming has stopped  (when I hit stop while watching live tv, for example)

I am experimenting with two hdpvr2s each attached to its own android device that is controlled by adb commands for tuning live streams. The problem is that when the streaming from each device ends  there is no way to tell its specific android box to stop streaming. The streaming continues indefinitely and bandwidth is wasted. 

I had the same problem a few years back when I was messing around with two hdmi encoder devices as extras.

https://forums.nextpvr.com/showthread.php?tid=61406

Is it possible to get a stop command specific to each tuner?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#2
2023-05-30, 05:30 PM (This post was last modified: 2023-05-30, 05:30 PM by mvallevand.)
I have been thinking about this is specific to the HDPVR device on Windows  and it would probably need to be configured on the HDPVR setting, it would have to be multirec aware much like the blaster exe only being run when needed.   There probably is a use case for the channel parameter too. 

With cable and satellite STB's being replaced with IP streaming boxes  simply continuing to output video is definitely a waste of bandwidth.  Extras can already do this I for one haven't figured out how to use the HDPVR with ffmpeg on Windows.

Martin


Attached Files Thumbnail(s)
   
boukmandutty
Offline

Junior Member

USA
Posts: 19
Threads: 5
Joined: Aug 2020
#3
2023-05-30, 06:23 PM
Would it be possible to search the log to see when a particular tuner disengages and send the command a minute of so afterward?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#4
2023-05-30, 06:41 PM (This post was last modified: 2023-05-30, 06:45 PM by mvallevand.)
If you wanted to do that just use the API http://localhost:8866/services/service?m...ormat=json and check if streams are active.

Code:
{
    "stat": "ok",
    "status": [
        {
            "oid": 62,
            "identifier": "Local Recorder (Hauppauge Siena Crossbar)",
            "streams": []
        }
    ]
}

If this was your only tuner NScripthelper -isinuse could be used.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#5
2023-05-30, 08:54 PM
I tried to play around with this and while I can tune an HDPVR with Windows with adb but I forgot that the channel numbers from XMLTV formats and Schedules Direct for OTA are not formatted correctly for tuning.

Martin
boukmandutty
Offline

Junior Member

USA
Posts: 19
Threads: 5
Joined: Aug 2020
#6
2023-05-30, 09:17 PM
(2023-05-30, 08:54 PM)mvallevand Wrote: I tried to play around with this and while I can tune an HDPVR with Windows with adb but  I forgot that the channel numbers from XMLTV formats and Schedules Direct for OTA are not formatted correctly for tuning.

Martin
I should be home in a few to test it all out.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#7
2023-06-09, 12:09 PM
I actually send boukmandutty a tuner specific background utility he is testing. The utility is launched in the tuner script and monitors the live tv and recording status and if they are not in used it calls a generic script. NextPVR already handles the situation of back-to-back on the same channel but there is a potential issue on channel changes leading to the potential of a script being called multiple times when the tuner becomes available.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Temporarily disable a device vitalPixel 4 274 2025-03-23, 02:06 PM
Last Post: BrettB
  Feedback when saving device channels itsnotjeff 0 592 2024-07-27, 10:30 PM
Last Post: itsnotjeff
  Import m3u on device list - file/folder navigator psycik 1 918 2022-09-28, 08:25 PM
Last Post: mvallevand
  Suggestion: disable specific recurring schedule janoonk 8 2,509 2021-06-02, 01:57 AM
Last Post: sub
  Capture Entire Transport Stream w/ Simple Click acug 1 934 2021-05-20, 06:48 PM
Last Post: mvallevand
  Edit Device's Settings joaosz 5 2,136 2020-11-18, 11:41 PM
Last Post: sub
  Device Status on Web App jcole998 8 2,326 2020-09-22, 01:21 PM
Last Post: jcole998
  Backup stream cords911 0 1,031 2020-02-11, 10:43 PM
Last Post: cords911
  Setting Device Status CDinger 8 3,266 2019-12-29, 04:37 PM
Last Post: CDinger
  Device setup needs a 'check all' box after the scan mateek 4 1,810 2019-10-13, 02:36 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode