|
Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
UWP App Tuner
I'm starting to see the writing on the wall for Windows Media Center as a viable way to record DRM'd content, so like many of you, I have been playing around with HDHomeRun View on both Windows 10 and Android TV devices. Here's a solution I came up with that allowed me to do everything without any hardware encoding device.
Required Downloads:
<encoder_ip_address> is the IP address or hostname of the computer you want to do your playback of HDHomeRun View and recording with OBS. I recommend you not use a computer that someone expects to be able to work on, set it to automatically logon and to change the sleep/hibernate settings to never. Configuration:
Enable 5.1 Surround: If you have a sound card in your chosen computer that supports 5.1 surround, you just need to enable it. If you are like me and using an oldish laptop that only has stereo output, you can install VB Cable, set it as your default playback device and enable 5.1 output like you would any other playback device. Note that without special configuration, you will cease hearing sound from your computer once you switch your default playback device to VB Cable. The configuration you extracted for OBS enabled 5.1 surround already, so the only limitation is you allowing the sound card to output 5.1 so it can be recorded. How does it work? Tuning a channel:
Stopping playback:
Notes: Clicking the X on UAT minimizes the app. OBS opens "minimized" when UAT launches it; it's in the system tray. The OBS source being used is Game Capture and all DRM'd content does not have a resolution greater than 960x540. Obviously if this resolution is a deal-breaker for you I wouldn't bother with this approach. If you're experienced with OBS, you may notice that non-DRM content can be captured at greater resolutions. The instant you change to a DRM'd channel, the resolution drops again. It's a little hard to tell that it's stretching the content (visually it does look marginally lower resolution over the Android TV app), but I'm 99% certain OBS has the dimensions correct. UAT monitors the HDHomeRun View app and if it closes during playback, it will re-open it automatically. In my testing, the app would sometimes crash unexpectedly after I apparently overloaded it with input while I was trying different approaches to make tuning reliable. The only way to stop this is to either click the Test button next to 5. Close under Application Control Settings or open http://<encoder_ip_address>:63236/uat/?stop=true The UAT web server is intentionally single threaded, so only one request will go through to completion at a time. The computer must be logged in as a user with a desktop and connected to an HDCP compliant display. You may need to change the x264 encoder preset in OBS to something faster like ultrafast to get acceptable performance. If x264 uses to much in CPU resources, the HDHomeRun View app will likely freeze. I would suggest trying to keep the whole solution at 80% or less of your CPU's capacity. This is a work in progress (I am not yet using it outside of testing), but so far it appears to be extremely stable. I have been able to record for 8 hours straight without any hiccups on a Latitude E6410. The only thing I would note is that it is imperative that your network connection be very reliable or the HDHomeRun View app will likely crash frequently or freeze playback.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG Last edited by EnterNoEscape; 11-17-2020 at 09:27 PM. Reason: Important missing setup info. |
#2
|
||||
|
||||
So am I missing something or do you still need to manually launch the HDHomeRun view app and then manually tune the channel you want to record? Is there no way to script a channel change?
How do you initiate the recording from Sage? Are you just doing a manual timed record? Is there any reason this method would be limited to HDHomeRun view, or would it work with other software as well (for example could this be used to record from a streaming service)? You mentioned playing around with Android... does this solution work with Android or does it require Windows?
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#3
|
||||
|
||||
Quote:
It depends on if the streaming service is recordable by OBS. I thought about making things more open so you could specify "recipes" for different streaming services but I think it's complicated enough. The other problem would be maintaining changes in the streaming software you want to record. I only felt comfortable sharing this solution for HDHomeRun View is because it's highly accurate. I have yet to get the wrong channel tuned in. I'm extremely picky about this and have not provided any solutions like this before because of less than 99% accuracy. Sorry, the Android thing probably was confusing. I've been looking around there too, but this is a Windows 10 only solution.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#4
|
|||
|
|||
Would it run on Windows 7? I never upgraded my SageTV server.
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7 Servers: ChannelsDVR, Plex, AnyStream, PlayOn, Tuner: HDHomeRun Connect Quatro Tuner: HDHomeRun Connect Duo Sources: OTA, Sling Blue, Prime, Disney+, Clients: ShieldTV (2), Fire TV Stick 4K (4) |
#5
|
||||
|
||||
The server can be Windows 7. The computer you run this capture setup on needs to be Windows 10.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#6
|
||||
|
||||
#7
|
|||
|
|||
Is the 960x540 limitation an OBS issue or a windows issue? Could we get different results using MacOS on a Mac mini perhaps? Guess I’ll try it out so only and see. Thanks for this. I am still looking for a decent way to get rid of the 2 STBs in the basement I keep for recording from premium channels. But, it’s amazing how, even though we don’t go out as much and do stud, there still isn’t much time. I think the wife just thinks of this as more honey-do time instead of more of my free time
|
#8
|
||||
|
||||
Quote:
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#9
|
||||
|
||||
I forgot how allergic you are.
I am working on something for Android TV (specifically the Mi Box S), but it's a lot less reliable because ADB is needed and that means I can't use Ethernet. If the wireless blips for even one second, the feed dies and the playback stops. I have yet to record an entire hour without something happening. I'm considering a dedicated access point for this purpose, but it's starting to feel like an expensive solution. One plus is that the HD-PVR 2 will record directly from the Mi Box S without and HDCP warnings.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#10
|
|||
|
|||
Quote:
--John |
#11
|
||||
|
||||
Quote:
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#12
|
||||
|
||||
Quote:
Recording what's on the screen would be delegated to a device that can record the HDMI output. I have however been considering exporting screenshots over ADB to interpret what's going on and act accordingly, but I'm not completely sure what will be needed.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#13
|
|||
|
|||
Quote:
I was wondering if you were using the screen record command in ADB, but I see now that it only saves to the Shield's local storage. And it doesn't record audio. That's an interesting idea of using the screenshot command to determine where you are. When playing with channel changing I kept running into if too many ESC keypresses are sent too close, it backs out to the "menu" screen which is hard to detect and not easy to exit from cleanly if you don't know you've "fallen" into this screen. Screenshots might be helpful in this case. --John Last edited by jpwegas; 11-14-2020 at 10:35 PM. Reason: typo |
#14
|
||||
|
||||
Quote:
The way I solved for too many escape presses is just telling the app to open back up after pressing all the escapes: adb shell am start -n com.silicondust.view/.App I also am checking for if the app is already running to determine how long to wait for it to spin up. I'm mostly happy, but need to work on the wireless thing before I want to share.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#15
|
|||
|
|||
Quote:
I was using the start command to launch the app, I didn't think about using that between each channel "tune", that's a good idea! --John |
#16
|
|||
|
|||
Quote:
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#17
|
||||
|
||||
The problem that I ran into was that you cannot enable ADB and connect a USB device (e.g. ethernet adapter) at the same time. If someone knows how to make that work, please share. As far as I have been able to research, it cannot be done.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#18
|
|||
|
|||
I think I set this up correctly ... but I get sound but no Video. It launches the HDHomeRun on my laptop plays fine... on my Client I get sound no Video.
Anything I can look at ? MediaInfo Below ... Could it be the profile used to capture ? I tried VLC and other players. Code:
General ID : 1 (0x1) Complete name : R:\SAGETEMP\SomeKindofWonderful-378854-0.ts Format : MPEG-TS File size : 1.46 MiB Duration : 19 s 500 ms Overall bit rate mode : Variable Overall bit rate : 620 kb/s Video ID : 256 (0x100) Menu ID : 1 (0x1) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.2 Format settings : 4 Ref Frames Format settings, CABAC : No Format settings, Reference frames : 4 frames Format settings, GOP : M=4, N=15 Codec ID : 27 Duration : 19 s 650 ms Bit rate : 136 kb/s Width : 960 pixels Height : 540 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Stream size : 327 KiB (22%) Writing library : x264 core 157 r2945 72db437 Encoding settings : cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=15 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=10.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 257 (0x101) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : 129 Duration : 19 s 584 ms Bit rate mode : Constant Bit rate : 448 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Delay relative to video : 27 ms Stream size : 1.05 MiB (72%) Service kind : Complete Main Menu ID : 4096 (0x1000) Menu ID : 1 (0x1) Duration : 19 s 500 ms List : 256 (0x100) (AVC) / 257 (0x101) (AC-3) Service name : Service01 Service provider : FFmpeg Service type : digital television
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 11-16-2020 at 12:06 PM. |
#19
|
|||
|
|||
Got it working my laptop has dual graphics Intel and NVIDIA ... I had to set the HDHoeRun APP to use the NVIDIA... I can now watch and record DRM One thing I like right now I have it running on my main laptop and I can still use the laptop fully ... just had to mute the sound.
Now I will move it to my server...and try it there.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 11-16-2020 at 01:09 PM. |
#20
|
||||
|
||||
Quote:
Edit: and make you you have OBS WebSocket installed. Based on the log, it looks like OBS probably launched, but the app couldn't connect to it.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG Last edited by EnterNoEscape; 11-16-2020 at 08:34 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Digital Tuner: fixed RF channel and alternate tuner control | shadeblue.com | Hardware Support | 3 | 04-15-2017 12:06 PM |
New Hauppauge CableCard Tuner for pre-order, shipping this month! $129 for dual tuner | jptheripper | Hardware Support | 6 | 08-07-2011 12:15 PM |
enabling channels on analog tuner also enables them on digital tuner | LaoChe | SageTV EPG Service | 2 | 02-02-2011 08:09 PM |
Added 2nd tuner (Hauppauge HVR-1600), no audio on analog, no digital tuner | jtimmes | SageTV Linux | 4 | 02-02-2010 10:22 PM |
HDTV Built-In tuner (Samsung 50" DLP) VS. Vbox 150 Tuner in PC? | Generalg | Hardware Support | 3 | 07-17-2006 10:59 PM |