Adding File to DVR Recordings

Help and support for HDHomeRun DVR and HDHomeRun software for Windows 10, Mac, Android, XBox, etc.
Post Reply
bzz
Posts: 28
Joined: Sat Jul 11, 2015 8:43 pm

Adding File to DVR Recordings

Post by bzz »

I'm wondering if anyone has any insights into how I can add a file to the recording directory for the HDHomeRun Record Engine & have it appear with the other recordings made by the HDHomeRun DVR. I'm using a Windows 10 1909 PC with Record Engine Version: 20200225.

I have a .mpg file in the same format as the other HDHR DVR recordings named in the same manner as other recordings.

Code: Select all

{Show Name} S{Season Number ##}E{Episode Number ##} {Date Record YYYYMMDD} [{Air Date YYYYMMDD}-{Air Time HHMM}].mpg.
I drop this into the DVR storage directory for the show & restart the HDRecord service but it does not show up in the list of recordings. If I look at the DVR log I see the entry "Recorded: missing metadata" followed by the path to the missing episode.

I've looked in C:\Program Files\Silicondust, %ProgramData%, and %AppData% for each user but am unable to find a database or some other storage that could be edited to add the new file. I've also searched the registry for entries containing "SiliconDust" but an not finding anything useful.

rpcameron
Posts: 931
Joined: Fri Mar 25, 2016 9:55 am

Re: Adding File to DVR Recordings

Post by rpcameron »

The files also have the metadata embedded in the beginning of the file itself.

However, while I believe you can replace the files that have been recorded (such as a remuxed recording with the commercials removed), I don't think that the software supports adding arbitrary files.

signcarver
Expert
Posts: 8914
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 131B34B7 13231F92 1070A18E 1073ED6F 15300C36

Re: Adding File to DVR Recordings

Post by signcarver »

As long as you have proper/decent metadata you can add it... basically it is 64 ts packets that include much of what you would see if you were to look at a single program from the recorded_files.json but it isn't as simple as putting just the text there as they are ts packets so there are a few bytes inserted every 188 bytes so you may wish to look the first (approx.) 12000 bytes of a recording (its a little more but you will see that most of the packets are "empty")

bzz
Posts: 28
Joined: Sat Jul 11, 2015 8:43 pm

Re: Adding File to DVR Recordings

Post by bzz »

signcarver wrote:
Sat Feb 29, 2020 5:57 pm
As long as you have proper/decent metadata you can add it... basically it is 64 ts packets that include much of what you would see if you were to look at a single program from the recorded_files.json but it isn't as simple as putting just the text there as they are ts packets so there are a few bytes inserted every 188 bytes so you may wish to look the first (approx.) 12000 bytes of a recording (its a little more but you will see that most of the packets are "empty")
Interesting. I've been looking around for tools to edit the metadata but am not having much luck. If you're aware of any I wouldn't mind being pointed in the right direction. Thanks for the reply!

nickk
Silicondust
Posts: 15907
Joined: Tue Jan 13, 2004 9:39 am

Re: Adding File to DVR Recordings

Post by nickk »

We have an internal tool (command-line)... let me see about getting it released...

bzz
Posts: 28
Joined: Sat Jul 11, 2015 8:43 pm

Re: Adding File to DVR Recordings

Post by bzz »

nickk wrote:
Sat Feb 29, 2020 7:03 pm
We have an internal tool (command-line)... let me see about getting it released...
That would be great, thank you!

bzz
Posts: 28
Joined: Sat Jul 11, 2015 8:43 pm

Re: Adding File to DVR Recordings

Post by bzz »

Hey @nickk, don't want to be a pest, but any chance you might be able to share the tool you mentioned? Just wondering if I should be looking for other options. Thanks!

msuckow
Posts: 37
Joined: Fri Mar 10, 2017 4:20 pm

Re: Adding File to DVR Recordings

Post by msuckow »

bzz wrote:
Thu Mar 05, 2020 11:24 pm
Hey @nickk, don't want to be a pest, but any chance you might be able to share the tool you mentioned? Just wondering if I should be looking for other options. Thanks!
Any progress on releasing this tool @nickk? Thanks.

gtb
Expert
Posts: 4045
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: Adding File to DVR Recordings

Post by gtb »

msuckow wrote:
Mon Apr 06, 2020 2:40 pm
Any progress on releasing this tool @nickk? Thanks.
There is a 3rd party tool which can import and create the the required metadata documented at viewtopic.php?f=125&t=68701 (the HDHRUtil command set).

signcarver
Expert
Posts: 8914
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 131B34B7 13231F92 1070A18E 1073ED6F 15300C36

Re: Adding File to DVR Recordings

Post by signcarver »

gtb... I believe that doesn't exist as it would have been about 1000 (forum)threads before the earliest thread in that topic but I believe you were referring to your git at https://github.com/garybuhrmaster/HDHRU ... leMetadata not that it would help "most" reading this.

gtb
Expert
Posts: 4045
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA

Re: Adding File to DVR Recordings

Post by gtb »

signcarver wrote:
Mon Apr 06, 2020 5:38 pm
gtb... I believe that doesn't exist
Specifically it would have been the HDHRUtil-DVR-fileImport utility (intended to, well, import media files into the DVR), but as it was posted (I think) in the development area, it would have lasted in the forum much longer than the typical 90 days in other topic areas, but even there it expires, and if SD wishes to expire such documentation to such 3rd party utilities it is their right to do so on their forum.

Post Reply