HDMI for Channels

Try this for E:

#EXTINF:-1 channel-id="e!" tvc-guide-stationid="61812",E!
http://10.0.250.69:7654/play/tuner/e!

One thing I noticed is the station id is the gracenote id. You can get a listing at this endpoint: http://:8089$IPOFCHANNELS/dvr/guide/stations

The only remaining hurdle I can see is getting surround sound to work. What's the limitation that is holding this back? Encoder? Android TV? Channels?

That works - thanks - I can answer the stereo sound only question - the limitation is that all of these IPTV Encoders only do stereo - I have yet to find one that would do surround sound

2 Likes

Thanks for the info. If anyone comes across an encoder that supports surround please share. This IMO is the final piece to the puzzle.

1 Like

What about this device?

"5.1-ch surround sound from HDMI port, audio format PCM 2.0/5.1/7.1, Dolby 5.1, and DTS 5.1"

I think you can just manually map the channels to the correct networks in the Channels DVR web interface. That's what I have been doing at least, though I don't have a large list of channels to manage.

Well, I have only been actually playing with this for 12 hours even though I have been closely following this topic since it started. Currently using the URayCoder HEVC H.265 H.264 Live HDMI Video Encoder and an Amazon Firestick 4k Max. I am just testing this out with the 1 channel encoder in order to decide if I want to invest in the 4 channel encoder (I got 30 days to decide). And I am definitely switching off of the Fire device (getting a Chromecast tonight and an Onn tomorrow to compare).

Anyway, I have a proof of concept working with the Weather Channel app on the Firestick. So I want to link this topic to previous threads about the Weather Channel. So you don't even need to be a cable subscriber (the TWC app can use both provider credentials or a subscription).

I do not plan on using the TWC app in the end because I'll use Youtube TV's Weather Channel when I work on this further, but as a curtesy for anyone who is interested in the code I used (Windows system so using .bat files) here is my bmitune.bat.

set HOME=input keyevent KEYCODE_HOME; sleep 1
set OPENSEARCH=input keyevent 84; sleep 1
set SEARCHSELECT=input keyevent 20 20 20 66; sleep 1

rem TWC
if [%1] equ [twc] (
adb shell %OPENSEARCH%
adb shell input text "weather\ channel"
adb shell %SEARCHSELECT%
adb shell input keyevent 66
)

Again this is only a half day of trying things out (so please forgive the crude proof of concept) but did want to share with people who want the Weather Channel but don't want to go the Frndly method or use a provider other than Youtube TV that doesn't offer the Weather Channel. The app itself will work just fine.

Can you share your windows BAT files ? I have Scripts to record DRM from HDHR Prime units and also XFINITY Stream would like to set these up in Channels.

I don't think that device supports 5.1 - download the manual - it says Input LPCM 2.0 44.1/48 kHz under "Audio Format Supported" - I can tell you that I have looked at these devices for a number of years as I was a SageTV user and SageTV has been doing IPTV capture all the way back to (I think) 2016 or so and the discussions in their forums and my own research over the years has not revealed a 5.1 solution at a good price point

1 Like

I haven't optimized the tuning .bat file yet, but everything here is working well for me - sorry for the long post, I am not sure how to paste this in a scrolling window

prebmitune.bat

@echo off
set IPADDR="192.168.2.43"
set WAKE="input keyevent KEYCODE_WAKEUP"
set HOME="input keyevent KEYCODE_HOME"

c:\platform-tools\adb connect %IPADDR%
c:\platform-tools\adb shell %WAKE%
c:\platform-tools\adb shell %HOME%; sleep 2

stopbmitune.bat
@echo off
set STOP="am force-stop com.google.android.youtube.tvunplugged; sleep 2"
c:\platform-tools\adb shell %STOP%
rem c:\platform-tools\adb shell input keyevent KEYCODE_SLEEP

bmitune.bat
@echo off
set "p1=%1"

if "%p1%"=="nbc" goto NBC

if "%p1%"=="msnbc" goto MSNBC

if "%p1%"=="e" goto E_TV

if "%p1%"=="bravo" goto BRAVO

if "%p1%"=="oxygen" goto OXYGEN

if "%p1%"=="usa" goto USA

if "%p1%"=="syfy" goto SYFY

if "%p1%"=="cnbc" goto CNBC

if "%p1%"=="golf" goto GOLF

if "%p1%"=="nfl" goto NFL

if "%p1%"=="newsnation" goto NEWSNATION

if "%p1%"=="mtvclassic" goto MTVCLASSIC

if "%p1%"=="bbcnews" goto BBCNEWS

if "%p1%"=="smithsonian" goto SMITHSONIAN

if "%p1%"=="magn" goto MAGNOLIA

goto END

:NBC
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/OGgzNqTcHBw?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:MSNBC
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/q6bWEVqhP8o?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:E_TV
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/4XA2gdEOngg?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:BRAVO
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/P12seiJcdYo?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:OXYGEN
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/_XptfCraPjM?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:USA
REM c:\platform-tools\adb shell input text "play\ usa\ channel\ on\ YouTube\ TV"
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/8xN3o2PSL5s?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:SYFY
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/uSfozGAsGMk?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:CNBC
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/GIBoX-XF5i0?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:GOLF
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/XK34g7QRvGk?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:NFL
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/_pYg9qMKKIA?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:NEWSNATION
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/ZIzM3eNrylg?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:MTVCLASSIC
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/YPB9f0dageg?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:BBCNEWS
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/g5BmB1qXulc?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:SMITHSONIAN
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/E7D0KRZIUso?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:MAGNOLIA
c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d https://tv.youtube.com/watch/9dTo5rwwTjU?onboard=1 -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity
goto END

:END

Your screenshot has me curious, what's the purpose of having two NBC Sports Philly's listed? And why go the HDMI route for ESPN when ESPN still supports TVE? Just curious...

What devices do you know of that support 5.1? Depending on the cost it might be a worthy investment.

Actually, none - but searching recently, I have encountered some encoders costing over $500 or so - not sure if they can support 5.1 - I was interested in getting a 4K 60fps 4:4:4 HDR encoder, but that also seems to be very expensive - if the price is too high, I generally don't read all the details, but I'll post something if I find it

They are different channels. One is the "plus" version that they use for overflow when there are two games happening at the same time.

No reason for ESPN, it was just something I added when I was testing.

1 Like

Answering for @turtletank, there are actually 2 NBC Sports Philly channels. One is called "Plus" and is often used when a couple teams are playing at the same time.

1 Like

I might consider that price point so if you find some info it would be most appreciated.

1 Like

Thanks my script is very Simple it does the tuning etc ... All I need is to pass the Channel number from Channels DVR and Capture the Stream ... I think this thread is tailored for YOUTUBETV. So will not clutter.

@echo off
goto downarrow
:begin
setlocal
set device=192.168.50.161:5555
SET PATH=%PATH%;C:\platform-tools\
adb connect %device%

set channel=%1

adb -s %device% shell input keyevent 4 3 3 3 23
rem adb -s %device% shell sleep 0.25
adb -s %device% shell input keyevent 22 22 22 22 66
adb -s %device% shell sleep 2
adb -s %device% shell input keyevent 21;sleep 2;input keyevent 20 20 20 20 20 20 66


if %channel% EQU 807 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,2% 66
if %channel% EQU 851 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,5% 66
if %channel% EQU 853 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,8% 66
if %channel% EQU 855 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,11% 66
if %channel% EQU 858 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,14% 66
if %channel% EQU 876 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,17% 66
if %channel% EQU 878 adb -s %device% shell sleep 5;input keyevent %downarrow:~0,20% 66

curl -s http://192.168.50.236:8000/main1

adb -s %device% shell sleep 1;input keyevent 4;input keyevent 4;input keyevent 4;input keyevent 3
exit
rem adb disconnect
:downarrow
set downarrow=20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
goto begin
exit

I've been poking around this with a FireTV stick and while the container itself is fairly easy, the deep linking to YoutubeTV is not. Trying to use adb commands to up/down/left/right is an exercise in frustration.

I should probably switch to a pure Android device and try there....

Here is my new bmitune.bat, easier for maintenance:

@echo off
set "p1=%1"
set link=""
if "%p1%"=="nbc" set link=https://tv.youtube.com/watch/OGgzNqTcHBw?onboard=1
if "%p1%"=="msnbc" set link=https://tv.youtube.com/watch/q6bWEVqhP8o?onboard=1
if "%p1%"=="e" set link=https://tv.youtube.com/watch/4XA2gdEOngg?onboard=1
if "%p1%"=="bravo" set link=https://tv.youtube.com/watch/P12seiJcdYo?onboard=1
if "%p1%"=="oxygen" set link=https://tv.youtube.com/watch/_XptfCraPjM?onboard=1
if "%p1%"=="usa" set link=https://tv.youtube.com/watch/8xN3o2PSL5s?onboard=1
if "%p1%"=="syfy" set link=https://tv.youtube.com/watch/uSfozGAsGMk?onboard=1
if "%p1%"=="cnbc" set link=https://tv.youtube.com/watch/GIBoX-XF5i0?onboard=1
if "%p1%"=="golf" set link=https://tv.youtube.com/watch/XK34g7QRvGk?onboard=1
if "%p1%"=="nfl" set link=https://tv.youtube.com/watch/_pYg9qMKKIA?onboard=1
if "%p1%"=="newsnation" set link=https://tv.youtube.com/watch/ZIzM3eNrylg?onboard=1
if "%p1%"=="mtvclassic" set link=https://tv.youtube.com/watch/YPB9f0dageg?onboard=1
if "%p1%"=="bbcnews" set link=https://tv.youtube.com/watch/g5BmB1qXulc?onboard=1
if "%p1%"=="smithsonian" set link=https://tv.youtube.com/watch/E7D0KRZIUso?onboard=1
if "%p1%"=="magn" set link=https://tv.youtube.com/watch/9dTo5rwwTjU?onboard=1
if "%link%"=="" goto END

c:\platform-tools\adb shell am start -a android.intent.action.VIEW -d %link% -n com.google.android.youtube.tvunplugged/com.google.android.apps.youtube.tvunplugged.activity.MainActivity

:END

2 Likes

So, it looks like you are navigating to a reference point/channel, then using down arrows to tune the desired channel? I guess that would eliminate the problem of expired links. I don't see any channel #'s though when I log into the yttv web site.

1 Like

I am not using YouTubetv I am an XFINITY subscriber so I use their streaming App. It has been working very well using an M3U from NEXTPVR backend and Channels DVR Guide Data.... but I would also like to see if this can be done Natively in Channels DVR. Currently NEXTPVR does the tuning and stopping the Streams.

Script in action below ...

1 Like