Firestick & Channels DVR

I cut the cord with fire stick 4 and a digital TV antenna. Added a raspberry pi 4 with a HDHomeRun Connect QUATRO and a 6T hard drive as a DVR. Using Channels DVR to program. With some hiccups it works up to a point.

I can view the recordings on the PI, MacBook Pro and my iPhone. But the Channels app on the fire stick says the server isn’t available. ARG!

Anyone have a clue why the one version of the app doesn’t work? (All on the same neywork, I can even ping the fire stick from the server!)

Did you try Connect to DVR > At Home and enter the IP of your pi?

Yes, and it goes round and round then ends with server not found. After a reboot of firestick now it searches and times out with out saying not found.

1 Like

You might want to check the wifi network the stick is on. It might be on a guest network.

Compare the IP addresses to make sure they’re on the same subnet.

Does the Pi have some kind of firewall enabled by default? Maybe you need to allow outside connections to port 8089 of the Pi?

1 Like

You can access the logs for the app via the FireTV's IP address:

http://IP:57000/log

There's probably some sort of connection error when its attempting to communicate with the DVR rpi.

I have it on the eithernet cable. all the IP's are same network. Yes, I have entered the servers IP in the ChannelsDVR. No firewall. Other devices can open it.

THe log:
2.1.23 (104171750 dvr)
Amazon AFTMM (Amazon mantis)
(10791924) [channels=0, ip=192.168.0.113, auth=Ep01Vhyeh9IQ7hudNIl9II9f]
DVR http://192.168.0.112:8089 null
en_US America/Chicago
SDK 7.1.2 (25) armeabi-v7a, armeabi
NET eth0 = [/192.168.0.12, /2603:6000:ce06:5c01:626d:3cff:fe21:5b7, /fe80::626d:3cff:fe21:5b7%eth0]

--------- beginning of system
05-07 10:47:31.170 4212 4212 I FrameworkJumpTable: Successfully loaded all classes
05-07 10:47:31.188 4212 4212 I FrameworkJumpTable: Successfully loaded all methods
05-07 10:47:31.190 4212 4212 I FrameworkJumpTable: Successfully loaded all fields
05-07 10:47:31.190 4212 4212 I FrameworkJumpTable: Successfully loaded all constructors
--------- beginning of main
05-07 19:08:11.921 4212 4212 V ChannelsApp: android.intent.action.DREAMING_STARTED
05-07 19:17:57.072 4212 2259 V ApiServer: REQUEST: GET /favicon.ico
05-07 19:20:56.374 4212 4212 V ChannelsApp: android.intent.action.DREAMING_STOPPED
05-07 19:21:23.870 4212 4212 V MainActivity: intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LEANBACK_LAUNCHER] flg=0x10400000 pkg=com.getchannels.dvr.app cmp=com.getchannels.dvr.app/com.getchannels.android.MainActivity (has extras) }
05-07 19:21:23.879 4212 4212 V ChannelsApp: Lifecycle.ON_START
05-07 19:21:26.963 4212 4212 V DVR : Discovery started for _channels_dvr._tcp.
05-07 19:21:26.966 4212 4212 V DVR : serviceAdded: raspberrypi (_channels_dvr._tcp.local.)
05-07 19:21:27.206 4212 4807 V DVR : serviceResolved: raspberrypi = /192.168.0.112, /192.168.0.114, /2603:6000:ce06:5c01:86cd:7ca7:d16f:c42f (version: 2020.03.27.1730, arch: armv7l, os: linux)
05-07 19:21:27.206 4212 4807 V DVR : Discovery stopped for _channels_dvr._tcp.
05-07 19:21:27.215 4212 4807 V DVR : serviceResolved: raspberrypi = /192.168.0.112, /192.168.0.114, /2603:6000:ce06:5c01:86cd:7ca7:d16f:c42f, /2603:6000:ce06:5c01:1642:3ee7:147c:5adf (version: 2020.03.27.1730, arch: armv7l, os: linux)
05-07 19:22:04.750 4212 3497 V ApiServer: REQUEST: GET /log

Your PI is returning two IPs?

Can you click Help > Submit Diagnostics on the dvr web UI?

1 Like

Yes, two IPs because it's hardwired and WIFI Didn't bother to shut off WIFI.

1 Like

Can you grab the FireTV logs after you attempt to add by IP manually?

2.1.23 (104171750 dvr)
Amazon AFTMM (Amazon mantis)
(10791924) [channels=0, ip=192.168.0.113, auth=Ep01Vhyeh9IQ7hudNIl9II9f]
DVR http://192.168.0.112:8089 null
en_US America/Chicago
SDK 7.1.2 (25) armeabi-v7a, armeabi
NET eth0 = [/192.168.0.12, /2603:6000:ce06:5c01:626d:3cff:fe21:5b7, /fe80::626d:3cff:fe21:5b7%eth0]

--------- beginning of system
05-07 10:47:31.170 4212 4212 I FrameworkJumpTable: Successfully loaded all classes
05-07 10:47:31.188 4212 4212 I FrameworkJumpTable: Successfully loaded all methods
05-07 10:47:31.190 4212 4212 I FrameworkJumpTable: Successfully loaded all fields
05-07 10:47:31.190 4212 4212 I FrameworkJumpTable: Successfully loaded all constructors
--------- beginning of main
05-08 18:51:38.624 4212 4212 V ChannelsApp: HDMI available=true channels=8 encodings=[2, 4, 5, 6, 13]
05-08 18:51:39.601 4212 4212 V ChannelsApp: HDMI available=false channels=0 encodings=[]
05-08 18:51:39.711 4212 4212 V ChannelsApp: HDMI available=true channels=8 encodings=[2, 4, 5, 6, 13]
05-08 18:51:44.700 4212 4212 V ChannelsApp: android.intent.action.SCREEN_ON
05-08 18:51:50.766 4212 4212 V MainActivity: intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LEANBACK_LAUNCHER] flg=0x10400000 pkg=com.getchannels.dvr.app cmp=com.getchannels.dvr.app/com.getchannels.android.MainActivity (has extras) }
05-08 18:51:50.792 4212 4212 V ChannelsApp: Lifecycle.ON_START
05-08 18:51:56.788 4212 4212 V DVR : Discovery stopped for _channels_dvr._tcp.
05-08 18:51:56.797 4212 4212 V DVR : Discovery started for _channels_dvr._tcp.
05-08 18:51:56.800 4212 4212 V DVR : serviceAdded: raspberrypi (_channels_dvr._tcp.local.)
05-08 18:52:01.800 4212 27597 V ApiServer: REQUEST: GET /log

None of the log messages I would expect to see exist. You did this after clicking "Connect to DVR > At Home" and entering 192.168.0.112 ?

It should say something like:

Request http://192.168.0.112:8089/status

and if there's an error:

Status error: Connection refused

but these log messages are missing altogether..

Is this a brand new fire stick? Maybe you need to factory reset it.

Yes, i have clicked "Connect to DVR > At Home" and entered 192.168.0.112 many times and just get the rotating circle till the FireStick screen saver starts. I click to close screen saver and it's back to enter IP.

I have also restarted the FireStick a few times. I'll try factory reset.

1 Like

Restarting the FIreStick helped. Now on all devices with a player I can get to the recordings and guide. But only one recording seems to play completely. all others either will not or will start then stop. I thought I had all recordings file permissions set to 777. Will recheck them.

Can you click Settings > Player > Submit Diagnostics after a recording fails to play

05-09 15:43:23.956 4558 4558 V PlayerActivity: onResume
05-09 15:43:24.111 4558 4558 V VideoPlayer: surfaceCreated: video
05-09 15:43:24.112 4558 4611 D mpv : [cplayer] Setting option 'wid' = 3510 (flags = 64) -> 0
05-09 15:43:24.112 4558 4611 D mpv : [cplayer] Setting option 'android-surface-size' = "1920x1080" (flags = 64) -> 0
05-09 15:43:24.145 4558 4558 V VideoPlayer: surfaceCreated: subtitles
05-09 15:43:24.146 4558 4611 D mpv : [cplayer] Setting option 'mediacodec-embed-osd-surface' = 3494 (flags = 64) -> 0
05-09 15:43:24.148 4558 4611 D mpv : [cplayer] Setting option 'cache-pause-initial' = "0" (flags = 64) -> 0
05-09 15:43:24.148 4558 4611 D mpv : [cplayer] Setting option 'cache-pause-wait' = "0.25" (flags = 64) -> 0
05-09 15:43:24.148 4558 4611 D mpv : [cplayer] Setting option 'cache-pause-fill' = "0.75" (flags = 64) -> 0
05-09 15:43:24.149 4558 4611 D mpv : [cplayer] Run command: loadfile, flags=64, args=[http://192.168.0.112:8089/dvr/files/6/stream.mpg, replace, start=+474.0,pause=no,sid=no]
05-09 15:43:24.150 4558 4611 V mpv : event: start-file
05-09 15:43:24.150 4558 4611 D mpv : [cplayer] Setting option 'start' = '+474.0' (flags = 80)
05-09 15:43:24.150 4558 4611 D mpv : [cplayer] Setting option 'pause' = 'no' (flags = 80)
05-09 15:43:24.150 4558 4611 D mpv : [cplayer] Setting option 'sid' = 'no' (flags = 80)
05-09 15:43:24.150 4558 4611 I mpv : [cplayer] Playing: http://192.168.0.112:8089/dvr/files/6/stream.mpg
05-09 15:43:24.150 4558 4611 V mpv : [ffmpeg] Opening http://192.168.0.112:8089/dvr/files/6/stream.mpg
05-09 15:43:24.151 4558 4611 D mpv : [ffmpeg] tcp: Starting connection attempt to 192.168.0.112 port 8089
05-09 15:43:24.153 4558 4611 D mpv : [ffmpeg] tcp: Successfully connected to 192.168.0.112 port 8089
05-09 15:43:24.164 4558 4558 V mpvstats: AV: 0.000 A-V: 0.000 Dropped: 0 Cache: 0.000s + 0KB
05-09 15:43:24.165 4558 4611 V mpv : [ffmpeg] Could not set AVOption ca_file='/data/user/0/com.getchannels.dvr.app/files/mpv/cacert.pem'
05-09 15:43:24.165 4558 4611 V mpv : [ffmpeg] Could not set AVOption tls_verify='0'
05-09 15:43:24.165 4558 4611 V mpv : [ffmpeg] Mime-type: 'video/mpeg'
05-09 15:43:24.165 4558 4611 D mpv : [ffmpeg] Stream opened successfully.
05-09 15:43:24.166 4558 4611 V mpv : [demux] Trying demuxers for level=force.
05-09 15:43:24.166 4558 4611 D mpv : [demux] Trying demuxer: lavf (force-level: force)
05-09 15:43:24.167 4558 4611 V mpv : [lavf] Found 'mpegts' at score=50 size=2048.
05-09 15:43:24.176 4558 4611 D mpv : [ffmpeg] tcp: Starting connection attempt to 192.168.0.112 port 8089
05-09 15:43:24.179 4558 4611 D mpv : [ffmpeg] tcp: Successfully connected to 192.168.0.112 port 8089
05-09 15:43:24.189 4558 4611 V mpv : [lavf] avformat_open_input() finished after 0 bytes.
05-09 15:43:24.189 4558 4611 D mpv : [ffmpeg/demuxer] mpegts: Before avformat_find_stream_info() pos: 0 bytes read:131064 seeks:1 nb_streams:0
05-09 15:43:24.240 4558 4611 W mpv : [ffmpeg] http: Will reconnect at 507904 in 0 second(s), error=End of file.
05-09 15:43:24.240 4558 4611 D mpv : [ffmpeg] tcp: Starting connection attempt to 192.168.0.112 port 8089
05-09 15:43:24.241 4558 4611 D mpv : [ffmpeg] tcp: Successfully connected to 192.168.0.112 port 8089
05-09 15:43:24.251 4558 4611 W mpv : [ffmpeg] http: Will reconnect at 507904 in 1 second(s), error=End of file.
05-09 15:43:24.281 4558 4558 V PlayerActivity: state STOPPED -> LOADING
05-09 15:43:24.283 4558 4568 I art : Background partial concurrent mark sweep GC freed 11624(677KB) AllocSpace objects, 4(820KB) LOS objects, 8% free, 42MB/46MB, paused 2.610ms total 202.835ms
05-09 15:43:25.251 4558 4611 D mpv : [ffmpeg] tcp: Starting connection attempt to 192.168.0.112 port 8089
05-09 15:43:25.253 4558 4611 D mpv : [ffmpeg] tcp: Successfully connected to 192.168.0.112 port 8089
05-09 15:43:25.265 4558 4611 W mpv : [ffmpeg] http: Will reconnect at 507904 in 3 second(s), error=End of file.
05-09 15:43:27.165 4558 4558 V mpvstats: AV: 0.000 A-V: 0.000 Dropped: 0 Cache: 0.000s + 0KB
05-09 15:43:28.266 4558 4611 D mpv : [ffmpeg] tcp: Starting connection attempt to 192.168.0.112 port 8089
05-09 15:43:28.268 4558 4611 D mpv : [ffmpeg] tcp: Successfully connected to 192.168.0.112 port 8089
05-09 15:43:28.281 4558 4611 W mpv : [ffmpeg] http: Will reconnect at 507904 in 7 second(s), error=End of file.
05-09 15:43:30.166 4558 4558 V mpvstats: AV: 0.000 A-V: 0.000 Dropped: 0 Cache: 0.000s + 0KB
05-09 15:43:33.167 4558 4558 V mpvstats: AV: 0.000 A-V: 0.000 Dropped: 0 Cache: 0.000s + 0KB
05-09 15:43:33.478 4558 26129 V ApiServer: REQUEST: GET /log