NEW: Channels DVR backend for Nvidia SHIELD


#61

Neophyte user here…need total syntax…Please


#62

[{“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”:"/mnt/expand/86f8beef-ab48-4d91-8efb-ecc4bee758bb",“fstype”:“ext4”,“opts”:“rw,dirsync,seclabel,nosuid,nodev,noatime”},{“device”:"/dev/block/platform/sdhci-tegra.3/by-name/UDA",“mountpoint”:"/mnt/expand/86f8beef-ab48-4d91-8efb-ecc4bee758bb/media/0/InternalStorage",“fstype”:“ext4”,“opts”:“rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered”},{“device”:"/dev/block/vold/public:8,1",“mountpoint”:"/mnt/media_rw/14F62272F6225470",“fstype”:“fuseblk”,“opts”:“rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096”},{“device”:"/dev/block/platform/sdhci-tegra.3/by-name/APP",“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/platform/sdhci-tegra.3/by-name/vendor",“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”}]


#63

New build is out which should deal with the 16 character device names. I also pushed an update to the Play store… on first launch, it will now ask for read/write permission to the USB storage (which it wasn’t doing before and will fix some of the issues that were happening).


#64

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?


#65

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


#66

[{“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”}]


#67

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


#68

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


#69

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


#70

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


#71

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


#72

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


#73

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?


#74

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


#75

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.


#76

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


#77

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.


#78

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!


#79

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.


#80

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.