SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-28-2018, 09:18 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
OBS Multi-Channel Audio Support

I was wondering how the OBS project was coming along and I found a really useful commit. Someone has added multi-channel audio support and even more generously posted a compiled version you can try before the next OBS release with support.

I set up a spare computer with WMC, set the audio to 5.1 using the digital output of my sound card (I don't have anything actually connected to it). I then configured the software to use 5.1 channel audio and Custom output so I could stream over my LAN using UDP. Sure enough I was streaming HBO WMC live playback using H.264 (1280x720), AC3 (5.1) in an MPEG-TS container over UDP.

I want to test this a little more, but if this really works that well, I plan to add direct support for MPEG-TS over UDP to OpenDCT so you don't need to using Generic Pipe and FFmpeg similarly to how people are using it for webcams.

I just wanted to share my exciting findings and if this intrigues enough people, I can post a how-to so you can try it out yourself.
__________________
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; 01-28-2018 at 09:22 PM. Reason: Misspelling
Reply With Quote
  #2  
Old 01-28-2018, 10:16 PM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
I'm intrigued.
Reply With Quote
  #3  
Old 01-29-2018, 06:14 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by trk2 View Post
I'm intrigued.
I guess that's enough people. It's not too hard and OBS even has a mode that can capture the WMC playback without it even being the foreground window; meaning you might be able to use the computer for other things. The only downside at the moment is that you would need to leave capture on 24/7 because I don't have a mechanism at the moment to turn it off when you're not streaming, but I have a feeling that's not going to be very hard given how flexible OBS is. I'll try to get something up this evening.
__________________
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
Reply With Quote
  #4  
Old 01-29-2018, 07:17 AM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
This sounds awesome. I'm already using your WMC Live TV Tuner setup with an extender to capture premium channels. This would greatly simplify the whole setup and get me 5.1 audio. Do you think it would be possible to run multiple instances of WMC in VMs for additional tuners? If so, I may upgrade to the new 6 tuner HDHR Prime...
Reply With Quote
  #5  
Old 01-29-2018, 07:59 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
What is OBS and does this just apply to CableCARD tuners?
__________________
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
Reply With Quote
  #6  
Old 01-29-2018, 08:20 AM
UgaData's Avatar
UgaData UgaData is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 447
I am also interested. Where can an overview of what OBS is be found?

I did find this might help with starting and stopping an OBS stream.


EDIT: OBS - Open Broadcaster Software.
__________________
"Unencumbered by the thought process"

The only constant in the Universe is change.

Last edited by UgaData; 01-29-2018 at 08:23 AM.
Reply With Quote
  #7  
Old 01-29-2018, 09:03 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by UgaData View Post
EDIT: OBS - Open Broadcaster Software.
Where it says:
Quote:
Free and open source software for video recording and live streaming.
Download and start streaming quickly and easily on Windows, Mac or Linux.
But I still don't know what that means. Does this give functionality that VLC does and which (I think) is still used by some to stream SageTV content remotely? Does OBS allow you to capture and stream content that has DRM, like Netflix. Could you use this to stream "PC content" like Netflix into something like SageTV? Would this replace ffmpeg for things like SageTV Placeshifter to allow Placeshifter to work properly with 1080i content, and maybe even higher rez content like 2160p?
__________________
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
Reply With Quote
  #8  
Old 01-29-2018, 09:05 AM
Telecore's Avatar
Telecore Telecore is offline
Sage Aficionado
 
Join Date: Oct 2010
Location: Allen, TX
Posts: 347
I am interested - I have both a SageTV and a WMC Server and could test this.
__________________
SageTV-V9(64bit): Win10/i3-4370/OpenDCT/HDHR-Quatro (OTA)
AndroidTV+Miniclient: Nvidia Shield(x3)/FireTV-4K(x8)
Channels-DVR:Win10/i3-4340/HDHR Quatro 4K/TVE(YTTV)
Reply With Quote
  #9  
Old 01-29-2018, 09:42 AM
UgaData's Avatar
UgaData UgaData is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 447
Link to the OBS PDF

The impression I am getting so far this is a tool for video podcasters, it can grab video from various sources on a computer, manipulate it and then stream it.
__________________
"Unencumbered by the thought process"

The only constant in the Universe is change.

Last edited by UgaData; 01-29-2018 at 09:54 AM.
Reply With Quote
  #10  
Old 01-29-2018, 06:40 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Definitely interested
Reply With Quote
  #11  
Old 01-29-2018, 08:33 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by trk2 View Post
This sounds awesome. I'm already using your WMC Live TV Tuner setup with an extender to capture premium channels. This would greatly simplify the whole setup and get me 5.1 audio. Do you think it would be possible to run multiple instances of WMC in VMs for additional tuners? If so, I may upgrade to the new 6 tuner HDHR Prime...
I've tried things like this, but haven't had much success. You can technically run multiple instance between different user profiles, but you would then need a sound card for each one or they will mix their audio. There are some virtual sound cards that could fill this need, but it starts to get really complicated. Also, I think I remember having some DRM related problems with this approach.
__________________
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
Reply With Quote
  #12  
Old 01-29-2018, 10:00 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
First, we want to set up and test streaming from OBS to a player that can deal with UDP broadcast. I will be using VLC. The WMC computer is Windows 7. I don't know if this works on other OS's.
  1. Download and install OBS multi-channel beta on the computer you have Windows Media Center installed on using OBS-Studio-MC-20.1.3c-win-x64.exe from here. The defaults are fine.
    If you have another version of OBS installed, I recommend uninstalling it first or the shortcuts get weird. Like-wise when multi-channel support is added to the mainstream distribution, you'll want to uninstall this beta before installing the normal version of OBS.
  2. If you accepted the defaults, OBS 20.1.3-104-gf08569f-modified should open after the install.
    If it doesn't you can find it on the Start Menu by searching for OBS. If it's not on the Start Menu, you'll have to navigate to C:\Program Files (x86)\obs-studio-MC\bin\64bit and run obs64.exe.
  3. Click No to the auto-configuration dialog if you see it. Then OK.
  4. Open Windows Media Center (WMC). You do not need to start live playback at this time. We just need the application open.
  5. Switch back to OBS.
  6. Click on the + (Add) under Sources in the lower left.
  7. Select Game Capture
  8. Make sure Make source visible is checked. Click OK.
  9. Next to Mode, select Capture specific window from the dropdown.
  10. Next to Window, select ehshell.exe from the dropdown.
  11. Next to Window Match Priority, select Match title, otherwise find window of same executable from the dropdown.
  12. Uncheck Multi-adapter Compatibility.
  13. Check Force Scaling. Set Scale Resolution to 1280x720.
  14. Uncheck Allow Transparency.
  15. Uncheck Limit capture framerate.
  16. Uncheck Capture Cursor.
  17. Click OK.
  18. You should now see WMC without window borders inside of OBS even though OBS is in the foreground.
  19. Click Settings in the lower left.
  20. Click on the Output tab.
  21. Next to Output Mode, select Advanced from the dropdown.
  22. Click on the Recording tab.
  23. Change Type to Custom Output (FFmpeg)
  24. Change FFmpeg Output Type to Output to URL
  25. Enter UDP://<player_ip>:<port> in the File path or URL text box. (e.g. If the computer you want to stream to has the IP address 192.168.1.2 and you want to use port 60001, you would enter: UDP://192.168.1.2:60001)
  26. Change Container Format to mpegts
  27. Check Show all codecs
  28. Change Video Encoder to libx264
  29. Change Audio Bitrate to 480
  30. Change Audio Encoder to ac3
  31. Click on the Video tab.
  32. Change the Base (Canvas) Resolution to 1280x720.
  33. Change the dropdown next to Common FPS Values to 60.
  34. Click OK
  35. Click Start Recording (not Start Streaming)
  36. Start live playback on WMC.
  37. Open VLC on the computer you are streaming to.
  38. Open a network stream and use the port you chose like this udp://@:<port> (e.g. udp://@:60001)
  39. You should now be streaming WMC with stereo audio.
  40. You can stop recording at any time by clicking Stop Recording on OBS.
    There are some color washed out issues to be dealt with, but this should give you an idea of if this will work for you or not.

To enable multi-channel audio, first you need to configure your default playback device to 5.1. In my case, I got very crappy sound using the 5.1 analog output. I had to use the digital output set to 5.1 for the sound to be good. If you change the default playback device, you will need to re-open WMC and OBS.
  1. Open WMC if it isn't open already.
  2. Open OBS if it isn't open already.
  3. Click Settings in the lower right.
  4. Click the Audio tab
  5. Change Channels to 5.1.
  6. Click Yes to the warning.
  7. Click OK.
  8. Re-open OBS.
  9. Start live playback on WMC.
  10. Switch back to OBS.
  11. Click Start Recording (not Start Streaming)
  12. Open VLC on the computer you are streaming to.
  13. Open a network stream and use the port you chose like this udp://@:<port> (e.g. udp://@:60001)
  14. You should now be streaming WMC with 5.1 audio.

This is as far as I've gone. My time is very limited and this took at least an hour to write up. I hope to post more soon. It doesn't take too much imagination to see how you can use ffmpeg.exe to feed a stream like this into OpenDCT.
__________________
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
Reply With Quote
  #13  
Old 01-30-2018, 07:43 PM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
I was able to trial this and somewhat verify it worked. For some reason I wasn't able to get any sound while streaming, but it did record in 5.1 if I recorded instead to file. My server struggled to keep up with the encode, so that may be the issue.

Also OBS will throw an unspecified error if "UDP" in the UDP address is in capitals. So use udp://192.168.1.2:60001 instead of UDP://192.168.1.2:60001.
Reply With Quote
  #14  
Old 01-30-2018, 07:56 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Ok. After playing around a bit more, I realized that it's not hard to get a copy of nginx compiled for Windows with RTMP support and I followed this tutorial. The bonus is that I can now use QuickSync, so that makes me a lot happier. I would still prefer the webserver to output RTP or HTTP, but this is closer to what OBS does best and you only need one nginx server because you can just point all of your other WMC computers to that same server with different streaming keys. I suspect I can get something working nicely out of this arrangement.
__________________
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-disk DVD support lovingHDTV SageTV Customizations 3 01-09-2009 03:11 PM
Please HELP support Multiple Audio Channel Spriter SageTV Media Extender 5 08-18-2008 06:49 AM
Added support for multi-channel Favorites korben_dallas SageTV Beta Test Software 6 02-13-2008 03:32 PM
Multiple audio channel support (HD) agover SageTV Software 2 06-07-2007 06:49 AM
Looking for multi-monitor support lovingHDTV SageTV Customizations 3 11-03-2005 03:55 PM


All times are GMT -6. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.