|
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 |
#261
|
|||
|
|||
Quote:
I think SageTV sends a 2-1 Instead of 2.1 you have to remap the channels. or better yet use the XMLTV from Channels DVR. https://forums.sagetv.com/forums/showthread.php?t=66899
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#262
|
|||
|
|||
FYI, you can cut out ffmpeg and it will probably speed up tuning.
sagetv.device.110742372.streaming_executable=curl.exe -s http\://192.168.1.92\:8089/devices/ANY/channels/%c%/stream.mpg |
#263
|
|||
|
|||
If you are using Linux then you can use a .sh so remaping is not required. It will convert 2-1 to 2.1.
1. Copy to OpenDCT /opt dir HDHR_TUNER.sh 2. chmod 777 HDHR_TUNER.sh 3. Also required is in OpenDCT /opt dir ffmpeg Code:
#!/bin/bash ch_num=$1 ch_offset=$2 ch_num="$(echo $ch_num | tr - .)" /opt/opendct/ffmpeg -fflags +genpts -v 3 -hide_banner -y -threads 2 -i http://192.168.10.116:5004/auto/v$ch_num -map 0 -c:v copy -c:a copy -c:s copy -threads 7 -tune zerolatency -mpegts_service_type advanced_codec_digital_hdtv -f mpegts pipe:1 ch_offset= ch_num= Code:
sagetv.device.70760.streaming_executable=./HDHR_Tuner.sh %c% Nice thing about using a script you can modify the tunning command without having to restart OpenDCT. All that is require is just a retune of a different channel for testing Last edited by hvymetal; 03-03-2023 at 06:41 PM. |
#264
|
||||
|
||||
What exactly does ffmpeg do for us and is it necessary?
|
#265
|
|||
|
|||
Going to try this ... Much faster tunning thanks.... but had problems tuning some channels.... so will stick to ffmpeg.
__________________
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; 03-05-2023 at 08:03 AM. |
#266
|
|||
|
|||
You have to have some writer to get the Streams from Channels DVR ffmpeg does that, but you can also use curl.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#267
|
||||
|
||||
Just to confirm, with the suggested curl implementation, we can abandoned ffmpeg entirely? Will that create problems?
|
#268
|
|||
|
|||
Quote:
https://forums.sagetv.com/forums/sho...&postcount=265
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#269
|
||||
|
||||
Quote:
|
#270
|
|||
|
|||
Try it for yourself you might not have a problem ... I am just stating my experience.... I could not tune Gettv 6.2 and Rewind TV 6.3 using Curl. They work fine using FFMPEG.
__________________
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; 03-06-2023 at 07:51 PM. |
#271
|
|||
|
|||
I am watching TVE 4K FS1 big east tournament in SageTV thanks to this setup.
__________________
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; 03-09-2023 at 02:23 PM. |
#272
|
|||
|
|||
I have to say a huge shout out to you guys who have figured out how to get everything working with Channels DVR as well as you have. Comcast has very recently dropped ALL of the channels we watch (Hallmark, HMM, UP, OVATN, etc) from their Cablecard lineup, which means that my HDHR Prime-CC units are pretty much worthless to me. That leaves me with paying a whole lot of $$ to comcast for the 2 STB that I have attached via HDPVR / BMI-3001, and my ChannelsDVR setup with a subscription to Philo and FrndlyTV. So, I'm thinking that the occasional premium channel thing that I watch isn't worth it, and I'll probably drop the whole comcast TV thing, and use them strictly for Internet and Phone, until Ting gets rolling in town. Then I'll probably switch to Ting (unless Comcast drops their $30 / month unlimited surcharge) and have to find a solution for my landline (which I keep b/c my parents only use it....)
So, this ChannelsDVR solution has given my system new life at a time when comcast just wants more money for fewer perks for me. |
#273
|
|||
|
|||
Quote:
Long story short, for the cost of the analog phone converter and an old computer (I actually run mine on a VM on my SageTV computer), you could drop your analog phone line and simply pay for VOIP service. I pay about $3.35/mo for my service (which includes e911 service). I'm happy to answer any questions you might have or walk through my system and how I started with all analog phones using one of these converters and slowly made the conversion to digital phones over time.
__________________
i7-6700 server with about 10tb of space currently SageTV v9 (64bit) Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable) OpenDCT HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party) Amazon Firestick 4k and Nvidia Shield using the MiniClient Using CQC to control it all Last edited by sic0048; 03-13-2023 at 07:18 AM. |
#274
|
|||
|
|||
Been a bit. So as we all know NBC channels like USA and most importantly SYFY (Although not quite what it used to be.) are drm and no longer available via tve using Channelsdvr. You have to use the NBC and other such apps to get them on streaming devices.
This is a pain for me because I use USA for Premier League Football (soccer). I refuse to pay for Peacock premium, refuse to bear commercials if I dont have to; and above all, refuse to let drm crazy Cox cable back into my house. I have gone back to using a nvidia shield with YoutubeTV for my stb and an opendct controlled bmi encoder device for my recorder. I use the following script in linux to automate the process of starting the nvidia shield and tuning particular channels. The device is in developer mode and I use adb to control it. bmitune.sh Code:
#!/bin/bash HOME="input keyevent KEYCODE_HOME; sleep 1" PRIME1="input keyevent 19 19 19 19; sleep 1; input keyevent 21 21 21; sleep 1; input keyevent 22; sleep 1; input keyevent 23; sleep 1" PRIME2="input keyevent 19; sleep 1" PRIME3="input keyevent --longpress 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67" SEARCH1="input keyevent 66; sleep 2" SEARCH2="input keyevent 66" #USA if [ $1 = "111" ];then adb shell $HOME adb shell $PRIME1 adb shell $PRIME2 #adb shell $PRIME3 adb shell input text "stream\ usa\ channel\ on\ YouTube\ TV" adb shell $SEARCH1 adb shell $SEARCH2 fi #SYFY if [ $1 = "135" ];then adb shell $HOME adb shell $PRIME1 adb shell $PRIME2 #adb shell $PRIME3 adb shell input text "stream\ syfy\ on\ YouTube\ TV" adb shell $SEARCH1 adb shell $SEARCH2 fi pretunebmi.sh Code:
#!/bin/bash CONNECT="connect 192.168.1.171" WAKE="input keyevent KEYCODE_WAKEUP" HOME="input keyevent KEYCODE_HOME" adb $CONNECT adb $CONNECT adb $CONNECT adb shell $WAKE adb shell $WAKE #adb shell $WAKE adb shell $HOME; sleep 2 #adb shell am start com.google.android.youtube.tvunplugged; sleep 2 #adb shell am force-stop com.google.android.youtube.tvunplugged stopbmi.sh Code:
#!/bin/bash STOP="am force-stop com.google.android.youtube.tvunplugged; sleep 2" #Stop Video adb shell $STOP adb shell input keyevent KEYCODE_SLEEP Last edited by boukmandutty; 04-30-2023 at 11:03 PM. |
#275
|
||||
|
||||
Hi @boukmandutty, it's been a while. I've pretty much moved off SageTV for several reasons, but I kept one instance of SageTV running just in case for the occasional manual recording.
Take a look at THIS FORUM PAGE where you can see a couple of methods for parsing the Channels log file or HTTP API events and using that to send a message to your Shield. I have been able to use the first method and run a tail on the log file and search for a recording start, then parse out the channel number and send it to my own streaming device. I still need to complete the script to parse out recording stops. I'll be using this to feed the NBC-owned channels back into Channels as custom stream channels, I hope.
__________________
----- AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost |
#276
|
|||
|
|||
Here we go...
Just to be clear before we go down the rabbit hole, the network encoder discussed here is connected to my spare nvidia shield android box via hdmi cable. The kind of automation suggested above with the channel changing script (bmitune.sh) can be replaced with direct adb commands to youtube tv (YTT) on the android box. Code:
#!/bin/bash #USA if [ $1 = "111" ];then adb -s 192.168.1.171 shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/8xN3o2PSL5s?onboard=1 fi #SYFY if [ $1 = "135" ];then adb -s 192.168.1.171 shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/uSfozGAsGMk?onboard=1 fi #NICKTOONS if [ $1 = "229" ];then adb -s 192.168.1.171 shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/updG5RVnwk8?onboard=1 fi The links are actually the links that appear in your address bar when you tune a YTT channel in a browser. The only problem with this method is that the addresses might change over time. Maybe there is a way to monitor the YTT website to keep up with the changes when they happen and update that section of the command for each channel automatically? In any event, if you are simply using sagetv to record it will call the bmitune.sh file using opendct and execute the commands. I route things through ChannelsDVR because among other things I want to view things like the Premier League remotely and I wont pay for Peacock. There are just too many of these streaming companies that want to have a hand in your pocket at the end of each month man and if you feed the gremlins they become monsters and demand more money after they think they got you. If you monitor your hdmi network encoder via vlc while it is hooked up to your android device and that devices is acessible via adb you should be able to execute a command like: Code:
./bmitune 111 To get ChannelsDvr to call the three sh files I have above there is this little program that one of the Channels devs whipped up. The installation instructions are as follows: Open your linux terminal or whatever you use to git. Execute the commands: Code:
apt install git git clone https://github.com/tmm1/androidhdmi-for-channels cd androidhdmi-for-channels go build ./androidhdmi-for-channels In channels dvr, make a custom channel for MPEG-TS as so: Code:
#EXTM3U #EXTINF:-1 channel-id="usa",USA http://localhost:7654/play/tuner0/111 Last edited by boukmandutty; 05-03-2023 at 10:37 PM. |
#277
|
|||
|
|||
boukmandutty I see your work is getting noticed ...
https://community.getchannels.com/t/...?u=edwin_perez
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#278
|
|||
|
|||
Not my work man. The enduring SageTV community's work.
|
#279
|
||||
|
||||
Nice
|
#280
|
||||
|
||||
Ah what's the point.
Last edited by KryptoNyte; 05-10-2023 at 05:36 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using the OpenDCT Generic HTTP Capture Device | EnterNoEscape | Hardware Support | 46 | 04-08-2022 08:55 AM |
Using the OpenDCT Generic Pipe Capture Device | EnterNoEscape | Hardware Support | 101 | 01-20-2022 12:14 PM |
Generic HDMI capture devices | pjpjpjpj | Hardware Support | 11 | 03-11-2020 07:09 PM |
A pipe dream or possible? | digitalgm | General Discussion | 3 | 09-21-2004 01:18 PM |