NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 331 332 333 334 335 … 433 Next »
NPVR Import recordings commandline option

NPVR Import recordings commandline option
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#11
2011-06-29, 09:49 PM
sub Wrote:If you post your npvr.db3, and config.xml, I can check that out.

For the most part, it's really designed to import the new format, but you can make it import the old format by naming your file "recording-dump.xml", which is the name of the old file GBPVR used to generate. This was only really intended to be used for users doing their move from GBPVR to NPVR.

Yes, the the new format is UTC time. The recording OID is optional, and ignored during import. You can make up any channel name if you want (there is no ID). The entire <Event> tag is optional. If you include it though, pretty much all the entries shown within that example <Event> are mandatory, but you can safely set the <OID> to 0 if you want. There is another half dozen or so optional settings not shown in that <Event>

Here's the config and database. Was trying to add the Kardashians episode mentioned above. Of course, you're telling me now that for a pvrx2 format import, it has to have a specific name? Then this might be the problem, as I was trying to import from tvimport.xml.

If I make my import file look like your npvr format one, can I use any filename I like?

Code:
<recording>
    <oid>0</oid>
    <name>Program name</name>
    <channel>Import</channel>
    <filename>\\server\share\filename.avi</filename>
    <status>READY</status>
    <startTime>2011-06-28T07:00:00.0000000Z</startTime>
    <endTime>2011-06-28T07:30:00.0000000Z</endTime>
    <Event>
      <OID></OID>
      <Title>Program name</Title>
      <SubTitle>S0xE0x</SubTitle>
      <Description>Description for episode</Description>
      <ChannelOID>0</ChannelOID>
      <StartTime>2011-06-28T07:00:00.0000000Z</StartTime>
      <EndTime>2011-06-28T07:30:00.0000000Z</EndTime>
    </Event>
  </recording>


So that should work? Notice the <ChannelOID>0</ChannelOID> can this be 0 as well>? This was the channel ID i was referrring to.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#12
2011-06-30, 08:43 PM
Where does the logging on the import process happen? npvr.log or nrecord.log?

I've updated my import program, but it decided that none were worthy of import - even they they were not already recordings (but had been played - so would have had a playbackposition entry).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#13
2011-07-01, 02:16 AM
psycik Wrote:Here's the config and database. Was trying to add the Kardashians episode mentioned above. Of course, you're telling me now that for a pvrx2 format import, it has to have a specific name? Then this might be the problem, as I was trying to import from tvimport.xml.
Yep, thats probably the cause. It'll only import the old format from the "recording-dump.xml" file name that GBPVR created by default.

Quote:If I make my import file look like your npvr format one, can I use any filename I like?

Code:
<recording>
    <oid>0</oid>
    <name>Program name</name>
    <channel>Import</channel>
    <filename>\\server\share\filename.avi</filename>
    <status>READY</status>
    <startTime>2011-06-28T07:00:00.0000000Z</startTime>
    <endTime>2011-06-28T07:30:00.0000000Z</endTime>
    <Event>
      <OID></OID>
      <Title>Program name</Title>
      <SubTitle>S0xE0x</SubTitle>
      <Description>Description for episode</Description>
      <ChannelOID>0</ChannelOID>
      <StartTime>2011-06-28T07:00:00.0000000Z</StartTime>
      <EndTime>2011-06-28T07:30:00.0000000Z</EndTime>
    </Event>
  </recording>


So that should work? Notice the <ChannelOID>0</ChannelOID> can this be 0 as well>? This was the channel ID i was referrring to.
Yep, that format should work. The <ChannelOID> in the <Event> is optional and can be left out. It should end up using the higher level <channel> tag for the channel name that is shown.

Sorry there is no logging around the importation at this stage. If your problems persist, I can probably add some logging next when the next release is out.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#14
2011-07-01, 02:19 AM
ok. I'll wait for your next release to be dropped, then will follow it up.

Happy to report however that you are correct, a client can import to the server. Which is useful. Means I can have my import process somewhere other than the server, since I still haven't got the multi RDP working.
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#15
2011-08-18, 06:29 PM
Just wondering if the import option is suppose to work yet? I'm having trouble getting it to work. Here is an example .xml file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<recording>
    <oid>0</oid>
    <name>Clifford the Big Red Dog</name>
    <channel>Import</channel>
    <filename>F:\Recordings\Clifford the Big Red Dog (2011-08-18) Cleo Comes to Town; False Friends.mpg</filename>
    <status>READY</status>
    <startTime>2011-08-18 12:00:00</startTime>
    <endTime>2011-08-18 12:30:00</endTime>
    <Event>
      <OID></OID>
      <Title>Clifford the Big Red Dog</Title>
      <Subtitle>Cleo Comes to Town; False Friends</Subtitle>
      <Description>Cleo's first days on Birdwell Island; Cleo ignores Clifford and T-Bone. (Original Air Date - 09/11/2000, Episode - 6)</Description>
      <ChannelOID>0</ChannelOID>
      <StartTime>2011-08-18 12:00:00</StartTime>
      <EndTime>2011-08-18 12:30:00</EndTime>
    </Event>
</recording>

I'm not sure what the syntax is but I've tried nextprv.exe -import <blabblah.xml> without any luck.

Thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#16
2011-08-18, 06:37 PM
Yes, it should be working. Format:

nextpvr.exe -import c:\path\to\some\recordings.xml

Usual reasons for a recordings to not import are the filename does not exist on disk, or there is an invalid character in the xml file. Unfortunately there isnt really any logging around importation, but I've added some for the next release, which will help make it clear why it's not working for you.
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#17
2011-08-18, 06:52 PM
Ok, I tried renaming the file to something easy like test.mpg but still no luck so I'll wait until the next update. Thanks.
johnvk
Offline

Member

Posts: 87
Threads: 16
Joined: Jul 2005
#18
2011-10-14, 07:04 PM
Hi sub,

-export is working fine, but I invoke this command from a batchfile. The batch stops since nextpvr is displaying a pop-up window how many files are exported. and after that, how many recurring recordings are exported.
Is there a way to suppress the popping up of the windows?

Secondly, which ever the parameter after -export is, npvr exports to c:\users\public\npvr\recording-backup.xml and c:\úsers\public\npvr\recurring-backup.xml
Not a big deal for me, but if you have a chance of fixing it......

Cheers,

John
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#19
2011-10-14, 08:05 PM
johnvk Wrote:Hi sub,

-export is working fine, but I invoke this command from a batchfile. The batch stops since nextpvr is displaying a pop-up window how many files are exported. and after that, how many recurring recordings are exported.
Is there a way to suppress the popping up of the windows?
Ok, for the next build of nextpvr.exe I'll suppress the message box when run from "-export" command line.

Quote:Secondly, which ever the parameter after -export is, npvr exports to c:\users\public\npvr\recording-backup.xml and c:\úsers\public\npvr\recurring-backup.xml
Not a big deal for me, but if you have a chance of fixing it......
That is the expected behaviour. There is no parameters to "-export". It always exports to those two files. You can copy them elsewhere if you need to.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#20
2011-10-15, 12:33 AM
I still use Anthony Scott's MpegImport proggy, originally for GBPVR, which is a nice GUI and still works with NPVR <almost automatically>. http://gbpvr.com/pmwiki/pmwiki.php/Utility/MpegImport

I say almost because it's a two step import:

1. Run MPGEImport and fill in the params and hit GO. if you use the path C:\Users\Public\NPVR\recording-dump.xml it's easy to import later. Do NOT select IMPORT in MPEGIMPORT as the Proggy Crashes.
2. Then go into NPVR Settings, Recordings, Click Import Recordings and select C:\Users\Public\NPVR\recording-dump.xml. These settings are sticky.

Saves me pfaffing around with scripts and you can add filetypes :-)

What I would REALLY like, is for some kind programmer to fix the import part so it is ALL automatic from MpegImport without the crash.
The source code is on the wiki ...
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Failed recordings won't delete Spid4567 3 2,607 2023-07-14, 10:13 PM
Last Post: ZeDoZ
  npvr is not responding johndutcher 3 1,583 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 4,087 2022-04-14, 04:33 AM
Last Post: Antmannz
  All my recordings start 90 sec early ncsercs 2 1,450 2022-03-19, 03:28 AM
Last Post: sub
  nPVR Continually Wakes PC bfos 23 11,680 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,836 2022-01-03, 04:45 AM
Last Post: mvallevand
  zap2it import tv logo MaxOne72 2 1,555 2021-11-14, 05:56 PM
Last Post: sub
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 15,324 2021-03-21, 11:21 PM
Last Post: careads
  Most recordings are zero bytes virtualpaul 4 2,161 2021-01-29, 12:55 PM
Last Post: virtualpaul
  Recordings with Next PVR 4.2.5 (CL0116) have background music but no voice in record DavidF 4 2,229 2021-01-07, 08:47 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode