Synology SPK for DVR Record Engine

Downloads & Instructions
Post Reply
jayleekay
Posts: 8
Joined: Thu Sep 10, 2020 4:23 pm

Re: Synology SPK for DVR Record Engine

Post by jayleekay »

What if I have mcebuddy removing commercials? It edits out the commercials and recreates the .mpg file. The name stays the same though but the runtimes would be different at that point. I only have issues after upgrading so I'm not sure if it's causing a problem or not.

demonrik
Posts: 1318
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: Synology SPK for DVR Record Engine

Post by demonrik »

jayleekay wrote:
Fri Sep 11, 2020 10:29 am
What if I have mcebuddy removing commercials? It edits out the commercials and recreates the .mpg file. The name stays the same though but the runtimes would be different at that point. I only have issues after upgrading so I'm not sure if it's causing a problem or not.
very possible if it is changing the owner of the file

Basically if everything is running right, the hdhomerun record engine should be running as hdhomerundvr user.
So it has access to any file that is owned by hdhomerundvr
if that user changes - then it will fall to group.. which should also be hdhomerundvr
so if user is wrong and group is users - then hdhomerundvr may not be able to access the files - depends on the next grouping of permissions.
but the obvious thing is to make sure hdhomerundvr is owning the files.

jayleekay
Posts: 8
Joined: Thu Sep 10, 2020 4:23 pm

Re: Synology SPK for DVR Record Engine

Post by jayleekay »

that makes sense, as I do log in as "super" to do the commercial removal. I'll change it and maybe it'll at least help with future. Oh it's hdhomerundvr:http not "users: group like I had thought.


Here's the .txt output for ls -l

I did it on both the HDHomeRun directory as well as my biggest recorded show. I do notice the record engine does have different permissions, but owner is still the same

login as: super
super@192.168.1.87's password:
Could not chdir to home directory /var/services/homes/Super: No such file or dir ectory
Super@Kodiserver2:/$ sudo ls -l /volume1/HDHomeRun
Password:
total 2980
-rwxrwxrwx 1 hdhomerundvr http 69580 Sep 1 18:59 20200901.log
-rwxrwxrwx 1 hdhomerundvr http 88738 Sep 2 18:59 20200902.log
-rwxrwxrwx 1 hdhomerundvr http 97844 Sep 3 18:59 20200903.log
-rwxrwxrwx 1 hdhomerundvr http 151469 Sep 4 18:59 20200904.log
-rwxrwxrwx 1 hdhomerundvr http 155010 Sep 5 18:59 20200905.log
-rwxrwxrwx 1 hdhomerundvr http 209399 Sep 6 18:59 20200906.log
-rwxrwxrwx 1 hdhomerundvr http 105734 Sep 7 18:59 20200907.log
-rwxrwxrwx 1 hdhomerundvr http 155295 Sep 8 18:59 20200908.log
-rwxrwxrwx 1 hdhomerundvr http 117551 Sep 9 18:59 20200909.log
-rwxrwxrwx 1 hdhomerundvr http 177132 Sep 10 18:58 20200910.log
-rwxrwxrwx+ 1 hdhomerundvr http 158060 Sep 11 17:49 20200911.log
drwxrwxrwx 4 hdhomerundvr http 4096 Sep 10 18:48 @eaDir
-rwxr-x--- 1 hdhomerundvr http 1511165 Sep 7 18:53 hdhomerun_record
drwxrwxrwx 2 hdhomerundvr http 12288 Sep 11 17:49 It Takes a Killer
drwxrwxrwx 2 hdhomerundvr http 12288 Sep 10 21:09 Live TV
drwxrwxrwx 2 hdhomerundvr http 4096 Sep 11 12:59 Murder She Solved
drwxrwxrwx 2 hdhomerundvr http 4096 Aug 15 14:08 Unsolved Mysteries

Super@Kodiserver2:/volume1/HDHomeRun$ cd "It Takes a Killer"
Super@Kodiserver2:/volume1/HDHomeRun/It Takes a Killer$ ls -l
total 27824476
-rwxrwxrwx 1 hdhomerundvr http 312204268 Aug 17 17:56 It Takes a Killer S01E01 20160807 [20200817-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 341226392 Aug 28 17:55 It Takes a Killer S01E07 20160828 [20200828-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 346119844 Sep 9 17:55 It Takes a Killer S01E07 20160828 [20200909-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 347058340 Aug 28 17:54 It Takes a Killer S01E08 20160828 [20200828-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 335133688 Sep 9 17:58 It Takes a Killer S01E08 20160828 [20200909-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 354049496 Aug 24 18:38 It Takes a Killer S01E10 0 20180420 [20200821-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 321307228 Sep 6 08:21 It Takes a Killer S01E10 0 20180420 [20200905-1330].mpg
-rwxrwxrwx 1 hdhomerundvr http 305891416 Aug 24 18:40 It Takes a Killer S01E10 3 20180421 [20200822-1200].mpg
-rwxrwxrwx 1 hdhomerundvr http 283992612 Sep 6 08:25 It Takes a Killer S01E10 3 20180421 [20200905-2330].mpg
-rwxrwxrwx 1 hdhomerundvr http 368395400 Aug 24 18:43 It Takes a Killer S01E10 4 20180428 [20200822-1230].mpg
-rwxrwxrwx 1 hdhomerundvr http 361007376 Sep 7 11:37 It Takes a Killer S01E10 4 20180428 [20200906-1930].mpg
-rwxrwxrwx 1 hdhomerundvr http 355511196 Aug 29 07:38 It Takes a Killer S01E11 20160909 [20200829-1200].mpg
-rwxrwxrwx 1 hdhomerundvr http 322720424 Aug 29 08:08 It Takes a Killer S01E12 20160909 [20200829-1230].mpg
-rwxrwxrwx 1 hdhomerundvr http 346821836 Aug 17 17:57 It Takes a Killer S01E13 20160916 [20200817-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 322040428 Aug 29 08:37 It Takes a Killer S01E14 20160916 [20200829-1300].mpg
-rwxrwxrwx 1 hdhomerundvr http 358605488 Aug 30 14:20 It Takes a Killer S01E15 20160923 [20200829-1330].mpg
-rwxrwxrwx 1 hdhomerundvr http 326274752 Aug 19 17:56 It Takes a Killer S01E17 20160930 [20200819-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 320726496 Aug 24 18:57 It Takes a Killer S01E18 20160930 [20200824-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 318046556 Sep 8 08:16 It Takes a Killer S01E18 20160930 [20200908-0600].mpg
-rwxrwxrwx 1 hdhomerundvr http 370972880 Aug 20 17:39 It Takes a Killer S01E20 20161014 [20200820-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 339047284 Aug 20 17:39 It Takes a Killer S01E21 20161021 [20200820-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 350484264 Sep 4 09:05 It Takes a Killer S01E21 20161021 [20200902-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 379801172 Aug 24 18:44 It Takes a Killer S01E22 20161028 [20200822-1300].mpg
-rwxrwxrwx 1 hdhomerundvr http 328269056 Sep 6 08:17 It Takes a Killer S01E22 20161028 [20200905-1200].mpg
-rwxrwxrwx 1 hdhomerundvr http 284484232 Aug 30 14:27 It Takes a Killer S01E23 20161104 [20200830-1830].mpg
-rwxrwxrwx 1 hdhomerundvr http 305613176 Aug 30 14:38 It Takes a Killer S01E24 20161111 [20200830-1900].mpg
-rwxrwxrwx 1 hdhomerundvr http 325569752 Aug 17 18:06 It Takes a Killer S01E30 20161230 [20200815-2200].mpg
-rwxrwxrwx 1 hdhomerundvr http 334429440 Sep 8 08:14 It Takes a Killer S01E32 20170113 [20200907-2330].mpg
-rwxrwxrwx 1 hdhomerundvr http 330143604 Aug 30 15:07 It Takes a Killer S01E33 20170120 [20200830-1930].mpg
-rwxrwxrwx+ 1 hdhomerundvr http 362327700 Sep 10 18:09 It Takes a Killer S01E37 20170217 [20200910-1730].mpg
-rwxrwxrwx+ 1 Super users 315573228 Sep 11 17:48 It Takes a Killer S01E38 20170224 [20200911-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 358649480 Aug 25 18:01 It Takes a Killer S01E39 20160814 [20200825-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 376290648 Aug 28 17:47 It Takes a Killer S01E40 20170303 [20200826-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 308870276 Aug 30 14:22 It Takes a Killer S01E43 20170324 [20200829-2230].mpg
-rwxrwxrwx 1 hdhomerundvr http 390961792 Aug 30 14:22 It Takes a Killer S01E44 20170331 [20200829-2300].mpg
-rwxrwxrwx 1 hdhomerundvr http 292322704 Aug 24 18:46 It Takes a Killer S01E46 20170414 [20200822-1330].mpg
-rwxrwxrwx 1 hdhomerundvr http 364354152 Sep 6 08:18 It Takes a Killer S01E46 20170414 [20200905-1230].mpg
-rwxrwxrwx 1 hdhomerundvr http 284940884 Aug 24 18:47 It Takes a Killer S01E47 20170421 [20200822-2200].mpg
-rwxrwxrwx 1 hdhomerundvr http 346618796 Sep 6 08:19 It Takes a Killer S01E47 20170421 [20200905-1300].mpg
-rwxrwxrwx 1 hdhomerundvr http 386093344 Aug 24 18:48 It Takes a Killer S01E48 20170428 [20200822-2230].mpg
-rwxrwxrwx 1 hdhomerundvr http 312788384 Sep 6 08:22 It Takes a Killer S01E48 20170428 [20200905-2200].mpg
-rwxrwxrwx 1 hdhomerundvr http 334595632 Aug 24 18:49 It Takes a Killer S01E49 20170505 [20200822-2300].mpg
-rwxrwxrwx 1 hdhomerundvr http 348642240 Sep 6 08:23 It Takes a Killer S01E49 20170505 [20200905-2230].mpg
-rwxrwxrwx 1 hdhomerundvr http 297263156 Sep 6 08:15 It Takes a Killer S01E50 20170512 [20200904-2200].mpg
-rwxrwxrwx 1 hdhomerundvr http 288791876 Aug 24 18:51 It Takes a Killer S01E51 20170519 [20200822-2330].mpg
-rwxrwxrwx 1 hdhomerundvr http 305975076 Sep 6 08:24 It Takes a Killer S01E51 20170519 [20200905-2300].mpg
-rwxrwxrwx 1 hdhomerundvr http 367044996 Aug 30 14:20 It Takes a Killer S01E52 20170526 [20200829-2200].mpg
-rwxrwxrwx 1 hdhomerundvr http 342554236 Aug 28 17:50 It Takes a Killer S01E53 20170602 [20200827-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 358924900 Sep 8 12:38 It Takes a Killer S01E53 20170602 [20200908-1700].mpg
-rwxrwxrwx+ 1 Super users 342367740 Sep 11 17:48 It Takes a Killer S01E54 20170609 [20200911-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 325188864 Aug 15 18:07 It Takes a Killer S01E55 20170616 [20200815-2230].mpg
-rwxrwxrwx 1 hdhomerundvr http 333348440 Aug 15 18:37 It Takes a Killer S01E56 20170623 [20200815-2300].mpg
-rwxrwxrwx 1 hdhomerundvr http 356384080 Aug 15 19:07 It Takes a Killer S01E57 20170626 [20200815-2330].mpg
-rwxrwxrwx 1 hdhomerundvr http 369007716 Aug 17 17:51 It Takes a Killer S01E58 20170703 [20200816-1800].mpg
-rwxrwxrwx 1 hdhomerundvr http 323261300 Sep 8 08:17 It Takes a Killer S01E59 20170710 [20200908-0630].mpg
-rwxrwxrwx 1 hdhomerundvr http 323008440 Sep 4 09:02 It Takes a Killer S01E60 20170717 [20200901-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 346735920 Aug 17 17:51 It Takes a Killer S01E61 20170731 [20200816-1830].mpg
-rwxrwxrwx 1 hdhomerundvr http 365360704 Aug 17 17:53 It Takes a Killer S01E62 20170807 [20200816-1900].mpg
-rwxrwxrwx 1 hdhomerundvr http 349221280 Sep 4 09:05 It Takes a Killer S01E63 20170814 [20200902-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 333263464 Sep 4 09:08 It Takes a Killer S01E64 20170821 [20200903-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 380225676 Aug 17 17:54 It Takes a Killer S01E65 20170828 [20200816-1930].mpg
-rwxrwxrwx 1 hdhomerundvr http 353793252 Aug 18 18:34 It Takes a Killer S01E66 20170904 [20200818-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 328834936 Sep 6 08:16 It Takes a Killer S01E66 20170904 [20200904-2230].mpg
-rwxrwxrwx 1 hdhomerundvr http 398973788 Sep 4 09:10 It Takes a Killer S01E67 20170911 [20200903-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 313407656 Sep 6 08:11 It Takes a Killer S01E68 20170918 [20200904-2100].mpg
-rwxrwxrwx 1 hdhomerundvr http 381126948 Aug 18 18:34 It Takes a Killer S01E69 20170925 [20200818-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 324574104 Aug 24 18:51 It Takes a Killer S01E74 20171106 [20200823-1800].mpg
-rwxrwxrwx 1 hdhomerundvr http 318022868 Sep 6 13:38 It Takes a Killer S01E74 20171106 [20200906-1800].mpg
-rwxrwxrwx 1 hdhomerundvr http 392562048 Aug 24 18:53 It Takes a Killer S01E77 20171120 [20200823-1830].mpg
-rwxrwxrwx 1 hdhomerundvr http 364276508 Sep 6 14:08 It Takes a Killer S01E77 20171120 [20200906-1830].mpg
-rwxrwxrwx 1 hdhomerundvr http 296285180 Aug 24 18:54 It Takes a Killer S01E78 20171204 [20200823-1900].mpg
-rwxrwxrwx 1 hdhomerundvr http 319900424 Sep 6 14:37 It Takes a Killer S01E78 20171204 [20200906-1900].mpg
-rwxrwxrwx 1 hdhomerundvr http 348464204 Aug 24 18:56 It Takes a Killer S01E79 20171211 [20200823-1930].mpg
-rwxrwxrwx 1 hdhomerundvr http 340035600 Aug 24 18:58 It Takes a Killer S01E80 20171218 [20200824-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 326014184 Sep 8 08:13 It Takes a Killer S01E80 20171218 [20200907-2300].mpg
-rwxrwxrwx 1 hdhomerundvr http 334700912 Aug 25 18:01 It Takes a Killer S01E81 20180101 [20200825-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 367679872 Aug 28 17:52 It Takes a Killer S01E82 20180101 [20200827-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 378165384 Sep 8 13:06 It Takes a Killer S01E82 20180101 [20200908-1730].mpg
-rwxrwxrwx 1 hdhomerundvr http 370040024 Sep 6 08:13 It Takes a Killer S01E84 20180115 [20200904-2130].mpg
-rwxrwxrwx 1 hdhomerundvr http 313423260 Aug 30 14:25 It Takes a Killer S01E93 20180319 [20200829-2330].mpg
-rwxrwxrwx 1 hdhomerundvr http 310606268 Aug 30 14:25 It Takes a Killer S01E94 20180326 [20200830-1800].mpg
-rwxrwxrwx 1 hdhomerundvr http 345737452 Aug 28 17:47 It Takes a Killer S01E97 20180416 [20200826-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 335229380 Sep 8 08:11 It Takes a Killer S01E97 20180416 [20200907-1700].mpg
-rwxrwxrwx 1 hdhomerundvr http 343107144 Aug 24 18:38 It Takes a Killer S01E99 20180414 [20200821-1700].mpg
Super@Kodiserver2:/volume1/HDHomeRun/It Takes a Killer$

jayleekay
Posts: 8
Joined: Thu Sep 10, 2020 4:23 pm

Re: Synology SPK for DVR Record Engine

Post by jayleekay »

Just a note. The two new recordings were showing up in Kodi until I changed owner to hdhomerundvr:http
Now they're not showing. I'm going to play around with ownership and change it all to Super:users to see what happens.

*edit: that didn't work either. I still only have 2 recordings showing for that show.

S01E30
S01E104 <- the older file. there's a duplicate of this episode.

demonrik
Posts: 1318
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: Synology SPK for DVR Record Engine

Post by demonrik »

Thanks for the info..

To start off with - the engine is downloaded and is got the right permissions

Code: Select all

-rwxr-x--- 1 hdhomerundvr http 1511165 Sep 7 18:53 hdhomerun_record
And is producing valid logs

Code: Select all

-rwxrwxrwx 1 hdhomerundvr http 177132 Sep 10 18:58 20200910.log
-rwxrwxrwx+ 1 hdhomerundvr http 158060 Sep 11 17:49 20200911.log
And it looks like your recording folders all have the right permissions, e.g.

Code: Select all

drwxrwxrwx 2 hdhomerundvr http 12288 Sep 11 17:49 It Takes a Killer
If you look in the logfile for when the engine scans the directories - what is it saying about how many recordings are in the folder?
You may need to stop and start the engine.. you're looking for a line sort of like this.. but with actual subdirs or recordings

Code: Select all

20200827-00:00:31 Recorded: directory /volume1/HDHomeRunDVR/ with 0 subdirs and 0 recordings
So the next thing is to look into the recordings subdir/folder.
Everything looks ok.. even though these are marked as owned by Super the last rwx means anyone can read or access to them

Code: Select all

-rwxrwxrwx+ 1 Super users 315573228 Sep 11 17:48 It Takes a Killer S01E38 20170224 [20200911-1700].mpg
...
-rwxrwxrwx+ 1 Super users 342367740 Sep 11 17:48 It Takes a Killer S01E54 20170609 [20200911-1730].mpg
So here's my suspicion..
Your mcebuddy is not configured right.. am betting it's not re-inserting the header section with all the meta data the record engine has.
Its pure co-incidence that the record engine suddenly stopped serving you the recordings.

I could be wrong - but I don't see anything else.. You'll need to look in to one of those logs.. Tip is to stop the engine and remove them all, the start and get a fresh log which should show all that it's doing.

jayleekay
Posts: 8
Joined: Thu Sep 10, 2020 4:23 pm

Re: Synology SPK for DVR Record Engine

Post by jayleekay »

Thanks for your help! I think you're right and it's something to do with the commercial removal program. I'll tinker with it.

jayleekay
Posts: 8
Joined: Thu Sep 10, 2020 4:23 pm

Re: Synology SPK for DVR Record Engine

Post by jayleekay »

For anyone else who happens to be missing recordings and use MCEBuddy, make sure your conversion profile has the option for "Add Information" .

Apparently by default the software strips the metadata. Selecting this option re-adds it. So I'm in the process of reprocessing all of my recordings and as they process they're showing up in the recordings again.

So going forward, I shouldn't lose my recordings after an upgrade!

NTC
Posts: 26
Joined: Sat Apr 13, 2019 2:26 pm
Device ID: 10751B42

Re: Synology SPK for DVR Record Engine

Post by NTC »

Looking for anyone to help on this slight problem.

Whenever my Synology NAS loses power, whether by power outage or unplugged, and the NAS then starts back on when power is restored, my HDHomeRunDVR engines does not restart, yet when I go into the DiskStation Manager (DSM) it shows the engine as running. To get it to actually work, I have to stop then start the engine. However, if I do a proper restart or proper shutdown then startup, the HDHomeRun DVR engine runs. This started sometime earlier this year since.

Has anyone encountered anything like this? Or has a solution?

Thanks in advance.

demonrik
Posts: 1318
Joined: Mon May 04, 2015 10:03 am
Device ID: 10736454, 1073A35A, 1075C377

Re: Synology SPK for DVR Record Engine

Post by demonrik »

NTC wrote:
Fri Sep 25, 2020 2:04 pm
Looking for anyone to help on this slight problem.

Whenever my Synology NAS loses power, whether by power outage or unplugged, and the NAS then starts back on when power is restored, my HDHomeRunDVR engines does not restart, yet when I go into the DiskStation Manager (DSM) it shows the engine as running. To get it to actually work, I have to stop then start the engine. However, if I do a proper restart or proper shutdown then startup, the HDHomeRun DVR engine runs. This started sometime earlier this year since.

Has anyone encountered anything like this? Or has a solution?

Thanks in advance.
Is pretty simple..
When your NAS loses power like that it doesn't cleanly unmount the disks
Then when you power back up it doesn't mount them blindly - it does a check of the disks, and that can delay making them available to the system.

Now to the script.
On starting the NAS it tries to execute the startup script for the record engine, however it has no filesystem to download and save the engine binary and thus fails to start.
as to why the DSM shows engine running I need to check and see why the start script doesn't fail

Post Reply