NEW: Channels DVR backend for Nvidia SHIELD

Since my Channels DVR no longer runs on my NAS TS-251+ I decided to give this a try.

I have a USB 3.0 drive attached but Channels DVR is trying to access a /storage folder. I am not sure what the /storage folder is but I would like it to store recording in either area:

  1. on the attached USB 3 drive
  2. NAS that is already network connected to my Shield.

Anyone has ideas?

Can you post the output from http://dvr-shield.local:8089/system/disk

[{“device”:"/dev/block/platform/sdhci-tegra.3/by-name/FCT",“mountpoint”:"/mnt/factory",“fstype”:“ext4”,“opts”:“ro,context=u:object_r:factory_file:s0,relatime,data=ordered”},{“device”:"/dev/block/dm-0",“mountpoint”:"/system",“fstype”:“ext4”,“opts”:“ro,seclabel,noatime,data=ordered”},{“device”:"/dev/block/platform/sdhci-tegra.3/by-name/CAC",“mountpoint”:"/cache",“fstype”:“ext4”,“opts”:“rw,seclabel,nosuid,nodev,noatime,nodelalloc,data=ordered”},{“device”:"/dev/block/dm-1",“mountpoint”:"/vendor",“fstype”:“ext4”,“opts”:“ro,seclabel,noatime,data=ordered”},{“device”:"/dev/block/platform/sdhci-tegra.3/by-name/UDA",“mountpoint”:"/data",“fstype”:“ext4”,“opts”:“rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered”},{“device”:"/dev/block/platform/sdhci-tegra.3/by-name/RP3",“mountpoint”:"/factory/wifi_config",“fstype”:“ext4”,“opts”:“rw,seclabel,nosuid,nodev,noexec,noatime,data=ordered”},{“device”:"/dev/block/vold/public:8,17",“mountpoint”:"/mnt/media_rw/0000-003C",“fstype”:“vfat”,“opts”:“ro,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro”},{“device”:"/dev/block/dm-2",“mountpoint”:"/mnt/expand/99ffa49d-6895-4478-acb8-36665c34735b",“fstype”:“ext4”,“opts”:“rw,dirsync,seclabel,nosuid,nodev,noatime”}]

How about http://dvr-shield.local:8089/filesystem?path=/system

[“app”,“bin”,“etc”,“fake-libs”,“fake-libs64”,“fonts”,“framework”,“lib”,“lib64”,“lost+found”,“media”,“priv-app”,“simtools”,“tts”,“usr”,“vendor”,“xbin”]

Hmm that doesn’t look right. Will have to take a closer look in the morning.

D’oh, I meant http://dvr-shield.local:8089/filesystem?path=/storage

I made some changes to comskip earlier this week… did it help, or are you still seeing failures?

Still seeing failures (on the May 23rd build); had Brooklyn Nine-Nine, Prison Break and The Americans fail while Great News worked.

Did a bit more investigating on the 16gb shield on GEForce forums:

https://forums.geforce.com/default/topic/917497/shield-tv/shield-android-tv-how-to-increase-your-storage-with-android-marshmallow/1/

As my SDXC didn’t replace the 11gb internal (thought it should per forums) I was wondering if my previous setup was incorrect.

I reformatted to local, ejected, then re-inserted and formatted again to internal. Still show both 11gb + sdxc under storage???

Apps (which are supported by dev) can be moved back and forth between the two, but was not able to move Channels nor Plex.

@tmm1 : maybe you could check on this to be able to allow Channels to be moved?

Thanks for the info. I will enable movable for our app and publish new apk.

2 Likes

The android docs recommend that apps with background services only run on internal storage. It should be possible to allow moving still, but will require extra testing and integration. I am traveling until June so won’t have a chance to try this for a few weeks.

Most things still don’t comskip:

2017/05/25 21:28:42 [SYS] Starting Channels DVR v2017.05.25.2249 (android-arm64) in /data/data/com.getchannels.dvr/files/channels-dvr/data <SNIP> 2017/05/26 00:31:04 [DVR] Running commercial detection on file 948 (TV/Neon Joe, Werewolf Hunter/2017-05-26-0000 Neon Joe, Werewolf Hunter 2017-05-25 S02E04 Walk Away Friend Walk Away.mpg) 2017/05/26 00:31:56 [DVR] Commercial detection failed with exit status 7

Last two lines in comskip:

Logo found at frame 4307 logoMinX=1061 logoMaxX=1201 logoMinY=648 logoMaxY=683 No such file or directory - could not create file /storage/5764-6EF0/NVIDIA_SHIELD/DVskip/948/video.logo.txt

After having 7 disconnects on the Shield this AM (USB 3 WDPassPort portable for storage) I reset the Shield to utilize a powered USB 3.0 drive.

Seems to still be disconnecting:

2017/05/28 21:13:59 [DVR] Waiting 1h16m0.862429935s until next job 1496025000-ch395 Tora! Tora! Tora! (1970)
2017/05/28 21:13:59 [SYS] Created database snapshot: backup-20170528.211359
2017/05/28 21:14:09 [IDX] Pruned 50 expired airings from USA-FL61795-X in 284.848177ms.
2017/05/28 21:36:20 soapRequest returned error: soapRequest error - StatusCode 500 for AddPortMapping()
2017/05/28 22:30:00 [DVR] Starting job 1496025000-ch395 Tora! Tora! Tora! (1970) on ch=[395]
2017/05/28 22:30:00 [DVR] Waiting 11h29m59.941040998s until next job 1496066400-ch429 Midway (1976)
2017/05/28 22:30:00 [TNR] Opened connection to 1318CAEB for ch395
2017/05/28 22:30:14 [WRN] Buffer for 1318CAEB ch395 is more than 50% full (clients=1, len=16777684)
2017/05/28 22:30:18 [DVR] Recording for job 1496025000-ch395 from 1318CAEB ch395 into “Movies/Tora! Tora! Tora! (1970) 2017-05-28-2230.mpg” for 3h14m59.932433342s
2017/05/28 22:33:03 [SYS] Starting Channels DVR v2017.05.25.2249 (android-arm64) in /data/data/com.getchannels.dvr/files/channels-dvr/data
2017/05/28 22:33:04 [HDR] Found 1 devices
2017/05/28 22:33:05 [SYS] Started HTTP Server
2017/05/28 22:33:08 [DVR] Recording engine started in /storage/E848DA7348DA404C/NVIDIA_SHIELD/Channels
2017/05/28 22:33:08 [DVR] Starting job 1496025000-ch395 Tora! Tora! Tora! (1970) on ch=[395]
2017/05/28 22:33:08 [DVR] Waiting 11h26m51.918217528s until next job 1496066400-ch429 Midway (1976)
2017/05/28 22:33:08 [NAT] Failed to discover gateway: no gateway found
2017/05/28 22:33:08 [NAT] Failed to discover upnp: Cannot find the local IP address
2017/05/28 22:33:08 [NAT] Failed to discover router using natpmp and upnp.
2017/05/28 22:33:08 [SYS] Created database snapshot: backup-20170528.223308
2017/05/28 22:33:08 [TNR] Opened connection to 1318CAEB for ch395
2017/05/28 22:33:08 [DVR] Recording for job 1496025000-ch395 from 1318CAEB ch395 into “Movies/Tora! Tora! Tora! (1970) 2017-05-28-2230.mpg” for 3h11m51.91815883s
2017/05/28 22:33:18 [IDX] Pruned 154 expired airings from USA-FL61795-X in 641.19901ms.

Note: Did not have a powered USB 3 hub with appropriate cables to try @karlmitchell suggestion for the unpowered USB 3 WDPP drive.

Additional Note: Again, a 16 digit machine assigned name. As I didn’t stop the DVR service on Shield while changing drives, was able to add (create) directories “NVIDIA_SHIELD” and “Channels” - (not DVR)…when setting up storage loc. Also didn’t have to copy last backup to Database directory, Channels continued with the new location…and then auto created a Database directory with an entry for lastest backup.

After above changes plus setting Shield to “never sleep” Channels still restarted multiple times overnight.

I’ll be doing a factory reset, update and reinstall. Ugh!

I’ve had to do two factory resets since owning the Shield. I’m afraid that this is all too common. That being said, each of these have created a stable situation for me, at least until the next Shield Experience update. My suggestion is to reach stability and then not upgrade further until absolutely necessary. This, of course, won’t solve any beta issues with the Channels software.

1 Like

Agreed…I’ll be making small incremental steps to avoid “going unstable”, if that’s possible. We’ll have to see. Would really like to see the Shield as a daily server for Channels, due to excellent transcoding.

Comskip is the next major hurdle…based on @timstephens24 experiences. Going to let Shield “settle in” for 24-36 hours before running additional DVR jobs, only let it run 1 today, no disconnects yet.

Haven’t added Kodi, SPMC nor MrMC yet, either. Also, haven’t added file locations for Plex, yet. Want to see a clean, stable experience on Channels first.

I got a Pro and re-set everything up. From my experience with the first install and then this one, nothing is going to work right when Channels is first pulling the guide, to include any recordings you have scheduled. After the initial pull I haven’t seen any issues (on my OG and on my Pro. I set up Plex with my HDHomeRun’s the other day and it did the same thing (but for a much longer time) so I don’t think it’s a Channels thing, it could be an Android thing.

1 Like

Latest on 16gb Shield:

Haven’t had a drop since reformat/reinstall :grinning: Thanks to @karlmitchell for suggestion and @tmm1 for the nudge.

  1. 1 Recording this am, no problem. Comskip OK

  2. 3 back-to-back recordings on 6 different channels
    Recordings OK
    Comskip failed on recordings 3,4,5. (1,2 &6 are OK)

Note: nothing else running on Shield during this time.

Extract of log:

2017/05/30 14:00:02 [DVR] Running commercial detection on file 183 (TV/Secrets/2017-05-30-1300 Secrets 2017-05-29 S04E06 Shrunken Heads.mpg)
2017/05/30 14:18:23 [DVR] Commercial detection finished with 10 markers.
2017/05/30 14:18:24 [DVR] Processing file-182: TV/Days of our Lives/2017-05-30-1300 Days of our Lives 2017-05-30 S52E177.mpg
2017/05/30 14:18:26 [DVR] Running commercial detection on file 182 (TV/Days of our Lives/2017-05-30-1300 Days of our Lives 2017-05-30 S52E177.mpg)
2017/05/30 14:39:02 [DVR] Commercial detection finished with 16 markers.
2017/05/30 14:39:04 [DVR] Processing file-181: TV/Wicked Tuna/2017-05-30-1300 Wicked Tuna 2013-03-31 S02E10 Captain Carnage.mpg
2017/05/30 14:39:05 [DVR] Running commercial detection on file 181 (TV/Wicked Tuna/2017-05-30-1300 Wicked Tuna 2013-03-31 S02E10 Captain Carnage.mpg)
2017/05/30 14:39:33 [DVR] Commercial detection failed with exit status 7
2017/05/30 15:00:00 [TNR] Closed connection to 1318CAEB for ch423
2017/05/30 15:00:00 [DVR] Finished job 1496167200-ch423 CNN Newsroom With Brooke Baldwin
2017/05/30 15:00:00 [DVR] Deleting expired job 1496167200-ch431 General Hospital
2017/05/30 15:00:00 [DVR] Deleting expired job 1496167200-ch434 The People’s Court
2017/05/30 15:00:00 [TNR] Closed connection to 1318CAEB for ch434
2017/05/30 15:00:00 [TNR] Closed connection to 1318CAEB for ch431
2017/05/30 15:00:00 [DVR] Finished job 1496167200-ch434 The People’s Court
2017/05/30 15:00:00 [DVR] Finished job 1496167200-ch431 General Hospital
2017/05/30 15:00:00 [DVR] Processing file-186: TV/The People’s Court/2017-05-30-1400 The People’s Court 2016-11-10 S20E44.mpg
2017/05/30 15:00:02 [DVR] Running commercial detection on file 186 (TV/The People’s Court/2017-05-30-1400 The People’s Court 2016-11-10 S20E44.mpg)
2017/05/30 15:00:21 [DVR] Commercial detection failed with exit status 7
2017/05/30 15:00:21 [DVR] Processing file-185: TV/General Hospital/2017-05-30-1400 General Hospital 2017-05-30 S55E41.mpg
2017/05/30 15:00:22 [DVR] Running commercial detection on file 185 (TV/General Hospital/2017-05-30-1400 General Hospital 2017-05-30 S55E41.mpg)
2017/05/30 15:02:31 [DVR] Commercial detection failed with exit status 7
2017/05/30 15:02:31 [DVR] Processing file-184: TV/CNN Newsroom With Brooke Baldwin/2017-05-30-1400 CNN Newsroom With Brooke Baldwin 2014-06-16.mpg
2017/05/30 15:02:33 [DVR] Running commercial detection on file 184 (TV/CNN Newsroom With Brooke Baldwin/2017-05-30-1400 CNN Newsroom With Brooke Baldwin 2014-06-16.mpg)
2017/05/30 15:10:13 [HLS] Starting transcoder for file-179 at 0s (encoder=h264_mediacodecndk, resolution=1080, deinterlacer=blend, bitrate=10000)
[mpegts @ 0x204185f600] Dropped corrupted packet (stream = 1)
[mpegts @ 0x204185f600] Dropped corrupted packet (stream = 2)
2017/05/30 15:10:51 [HLS] Stopping transcoder session file-179 @ 1m15.408678s
2017/05/30 15:18:43 [DVR] Commercial detection finished with 2 markers.

Tried 3 more. All recorded and completed comskip OK.

However, see log…what is “Buffer” warning. Have never seen before until Shield setup. As internal storage space is limited on 16gb, could this also be a factor in comskip failures?

2017/05/30 17:30:00 [DVR] Starting job 1496179800-ch421 Friends on ch=[421]
2017/05/30 17:30:00 [TNR] Opened connection to 1318CAEB for ch421
2017/05/30 17:30:00 [DVR] Starting job 1496179800-ch425 Say Yes to the Dress on ch=[425]
2017/05/30 17:30:00 [TNR] Opened connection to 1318CAEB for ch425
2017/05/30 17:30:00 [DVR] Starting job 1496179800-ch431 Two and a Half Men on ch=[431]
2017/05/30 17:30:01 [TNR] Opened connection to 1318CAEB for ch431
2017/05/30 17:30:11 [WRN] Buffer for 1318CAEB ch421 is more than 50% full (clients=1, len=16777684)
2017/05/30 17:30:12 [WRN] Buffer for 1318CAEB ch431 is more than 50% full (clients=1, len=16777684)
2017/05/30 17:30:12 [WRN] Buffer for 1318CAEB ch425 is more than 50% full (clients=1, len=16777684)
2017/05/30 17:30:16 [WRN] Buffer for 1318CAEB ch431 is more than 75% full (clients=1, len=25165868)
2017/05/30 17:30:17 [WRN] Buffer for 1318CAEB ch421 is more than 75% full (clients=1, len=25165868)
2017/05/30 17:30:17 [WRN] Buffer for 1318CAEB ch425 is more than 75% full (clients=1, len=25165868)
2017/05/30 17:30:18 [DVR] Recording for job 1496179800-ch421 from 1318CAEB ch421 into “TV/Friends/2017-05-30-1730 Friends 1996-01-28 S02E13 The One After the Super Bowl.mpg” for 29m59.965613884s
2017/05/30 17:30:18 [DVR] Recording for job 1496179800-ch431 from 1318CAEB ch431 into “TV/Two and a Half Men/2017-05-30-1730 Two and a Half Men 2004-02-16 S01E16 That Was Saliva Alan.mpg” for 29m59.03380076s
2017/05/30 17:30:18 [DVR] Recording for job 1496179800-ch425 from 1318CAEB ch425 into “TV/Say Yes to the Dress/2017-05-30-1730 Say Yes to the Dress 2013-09-06 S10E06 Father of the Bride.mpg” for 29m59.332732426s
2017/05/30 17:30:20 [WRN] Buffer for 1318CAEB ch431 is more than 95% full (clients=1, len=31877468)

Note: 3 b-back earlier … all 6 were 1 hour shows
On latest 3 … only 1/2 hour.

Currently recording 3 one hour, then will retry 3 back to back (6 @ 1 hour each) again to try to replicate earlier results.