NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 530 531 532 533 534 … 1231 Next »
importing videos after move & upgrade

 
  • 0 Vote(s) - 0 Average
importing videos after move & upgrade
pwborders
Offline

Member

Posts: 92
Threads: 12
Joined: Sep 2005
#11
2005-12-21, 08:08 AM
Unix_guy: You just did the part I needed so I will add the part I have to yours. If you add a /R %1 after the For that copies the metadata you will recurse all the subdirectories of %1. So try this:

FOR /R %1 %%F IN (%1\*.mpg) DO (more < %%F:metadata.xml >> %1\recording-dump.xml)

And drop the directory of all your recordings.

I just had to do this yesterday but I couldn't think of a way to get the <recordings> line in right. Good thinking using the for to do it.
Pete Borders

My GB-PVR System:
Asus A7N8X Deluxe Rev 2.0 Nforce2 Motherboard
Saphire Radeon 9600 Pro Atlantis
AMD Athlon XP 3200+
1GB Crucial PC3200 DDR400 Dual Channel
20GB PATA IDE System Drive
Raid 5 Array of 4 x 200GB 8MB Cache PATA IDE Drives
LSI MegaRaid I4 Hardware Raid ATA100 Controller
4 x Hauppauge WinTV PVR-500MCE
Windows XP SP2
GB-PVR 0.99.5
bemoore
Offline

Junior Member

Posts: 34
Threads: 8
Joined: Nov 2005
#12
2005-12-23, 02:09 PM
I tried this on a couple of different directories, but I don't think it worked. The contents of the resulting file is shown below, and it is the same regardless of the directory processed.

<?xml version="1.0" encoding="UTF-8"?>
<recordings>
</recordings>

Is there something in the .bat file I need to change? My videos are on a secondary NTFS drive.

Thanks.
pwborders
Offline

Member

Posts: 92
Threads: 12
Joined: Sep 2005
#13
2005-12-23, 07:17 PM
bemoore Wrote:I tried this on a couple of different directories, but I don't think it worked. The contents of the resulting file is shown below, and it is the same regardless of the directory processed.

<?xml version="1.0" encoding="UTF-8"?>
<recordings>
</recordings>

Is there something in the .bat file I need to change? My videos are on a secondary NTFS drive.

Thanks.

Did you add the /R %1 as I stated in my post? If not you would have to drag each individual recording directory one at a time to the batch file. Also each run would recreate the xml file from scratch since the first line recreates the file. If you add the /R %1 as I posted then just drag the topmost directory to the batch file, the same directory you have in gb-pvr config as your recordings directory.

If you still don't get anything you probably don't have the metadata stream for some reason. You can check an individual recording by running the command notepad recordingfilename.mpg:metadata.xml. Be sure and put quotes around the filename if it contains spaces.
Pete Borders

My GB-PVR System:
Asus A7N8X Deluxe Rev 2.0 Nforce2 Motherboard
Saphire Radeon 9600 Pro Atlantis
AMD Athlon XP 3200+
1GB Crucial PC3200 DDR400 Dual Channel
20GB PATA IDE System Drive
Raid 5 Array of 4 x 200GB 8MB Cache PATA IDE Drives
LSI MegaRaid I4 Hardware Raid ATA100 Controller
4 x Hauppauge WinTV PVR-500MCE
Windows XP SP2
GB-PVR 0.99.5
bemoore
Offline

Junior Member

Posts: 34
Threads: 8
Joined: Nov 2005
#14
2005-12-23, 09:43 PM
pwborders Wrote:Did you add the /R %1 as I stated in my post? If not you would have to drag each individual recording directory one at a time to the batch file. Also each run would recreate the xml file from scratch since the first line recreates the file. If you add the /R %1 as I posted then just drag the topmost directory to the batch file, the same directory you have in gb-pvr config as your recordings directory.

If you still don't get anything you probably don't have the metadata stream for some reason. You can check an individual recording by running the command notepad recordingfilename.mpg:metadata.xml. Be sure and put quotes around the filename if it contains spaces.

No I didn't put in the "/R" line. I wanted to first try it on one directory at a time to test it out. How do I determine whether I have the metadata stream? I assume that's what the notepad command is for. What should happen if I do the notepad command? I tried it and got a "File is too large for Notepad" error. If I don't have the metadata, is there any way to re-create it?

Thanks.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#15
2005-12-24, 12:01 PM
[QUOTE=If I don't have the metadata, is there any way to re-create it?

Thanks.[/QUOTE]
Open config, and goto the plugins tab, and hit export recordings.
then open that file, and remove everything but one show. Then copy that file into every directory with a show that needs imported.

Edit it for the specific recording. like this

<recordings>

<recording>
<filename>E:\Recordings\Criminal Minds\11-9.mpg</filename>
<channel>02 CBS</channel>
<status>READY</status>
<startTime>2005-11-09 18:00:00</startTime>
<endTime>2005-11-09 19:00:00</endTime>
<title>Criminal Minds</title>
<subtitle>11-9 Episode</subtitle>
<description>From Old Card</description>
<uid></uid>
</recording>
</recordings>

just make sure that the path is exactly correct, I usually copy and paste the path from the windows explorer, and hit "\" then paste the filename. That way no typos.
edit times,title,subtitle,description... to taste.

then open config-plugins,import, browse to that file and hope it says "1 recording imported"
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
gomjabar
Offline

Member

Posts: 124
Threads: 32
Joined: Jun 2005
#16
2005-12-24, 01:50 PM
Im getting this also:

<?xml version="1.0" encoding="UTF-8"?>
<recordings>
</recordings>

It does this weather I do the directory or the individual folders. This is how I have my batch file set up:

@echo off
rem pause
FOR /F "tokens=*" %%i IN ("<?xml version="1.0" encoding="UTF-8"?>") DO ECHO %%i> %1\recording-dump.xml
FOR /F "tokens=*" %%i IN ("<recordings>") DO ECHO %%i>> %1\recording-dump.xml
FOR /R %1 %%F IN (%1\*.mpg) DO (more < %%F:metadata.xml >> %1\recording-dump.xml)
FOR /F "tokens=*" %%i IN ("</recordings>") DO ECHO %%i>> %1\recording-dump.xml
rem pause

I have my videos in a second partition on one hd if that helps.
gomjabar
Offline

Member

Posts: 124
Threads: 32
Joined: Jun 2005
#17
2005-12-24, 01:59 PM
sorry...just checked and I dont have the metadata
bemoore
Offline

Junior Member

Posts: 34
Threads: 8
Joined: Nov 2005
#18
2005-12-24, 04:27 PM
Pioneer4x4,

Thanks for the tips. This will take a while, but I'll give it a shot.

Instead of copying the filename out of Windows File Explorer, you might want to try the following command from the command prompt:

dir /s/b *.mpg > dirlist.txt

This will generate a file named dirlist.txt with all the .mpg files and their full path IDs. This file will contain a listing of all the .mpg files in the directory where you do the command along with the subdirectories.
smeghead
Offline

Senior Member

Posts: 300
Threads: 23
Joined: Jan 2005
#19
2005-12-24, 05:08 PM
I'm having a similar problem as bemoore.

Some of the files were included in the output recording-dump.xml but some were not. I "unremmed" the rem pause statement at the end to see what was going on. For the mpg files that were put in the recording-dump.xml file there were no errors reported. For each of the mpg files that didn't work the following error line was shown: "The system cannot find the file specified."

I used the original batch file (without the /R %1) to get it working on a single folder first. Thing is that the 5 files in the folder were recorded one after another on the same channel. In the UK Hallmark had a special "Spooks" episodes - all 6, one after another (I deleted one so only 5 files left).
pwborders
Offline

Member

Posts: 92
Threads: 12
Joined: Sep 2005
#20
2005-12-26, 08:53 PM
smeghead Wrote:I'm having a similar problem as bemoore.

Some of the files were included in the output recording-dump.xml but some were not. I "unremmed" the rem pause statement at the end to see what was going on. For the mpg files that were put in the recording-dump.xml file there were no errors reported. For each of the mpg files that didn't work the following error line was shown: "The system cannot find the file specified."

I used the original batch file (without the /R %1) to get it working on a single folder first. Thing is that the 5 files in the folder were recorded one after another on the same channel. In the UK Hallmark had a special "Spooks" episodes - all 6, one after another (I deleted one so only 5 files left).

The error "The system cannot find the file specified" means that the metadata stream was not there for that particular mpg file. I had one that was that way as well but all the rest worked. Can't say why one file recorded along with all the others doesn't have the metadata stream anymore.
Pete Borders

My GB-PVR System:
Asus A7N8X Deluxe Rev 2.0 Nforce2 Motherboard
Saphire Radeon 9600 Pro Atlantis
AMD Athlon XP 3200+
1GB Crucial PC3200 DDR400 Dual Channel
20GB PATA IDE System Drive
Raid 5 Array of 4 x 200GB 8MB Cache PATA IDE Drives
LSI MegaRaid I4 Hardware Raid ATA100 Controller
4 x Hauppauge WinTV PVR-500MCE
Windows XP SP2
GB-PVR 0.99.5
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Staged upgrade/migration from gb to next koornneef 5 3,413 2011-11-27, 05:44 AM
Last Post: sub
  Pentium upgrade worth it? ziton 10 3,654 2010-07-30, 12:06 AM
Last Post: re-Barr
  How to move the gbpvr recordings folder to a new location? navyblue 7 2,871 2010-07-17, 09:32 PM
Last Post: navyblue
  How To Move GBPVR To D: Drive LewE 6 2,316 2010-06-13, 07:07 PM
Last Post: LewE
  Gb-PVR 1.4.7 does not transcode videos themightygandalf 8 3,246 2010-03-09, 08:29 PM
Last Post: themightygandalf
  Can't see metadata in Videos Library cottong2001 4 1,966 2010-03-01, 01:03 AM
Last Post: cottong2001
  Green Lines in some converted videos wildatom 2 1,454 2010-02-15, 09:27 PM
Last Post: pBS
  Time to upgrade, advise kirschey 4 2,591 2010-01-30, 01:59 AM
Last Post: kirschey
  Upgrade woes from 0.99.12 to 1.4.7 curtman 12 4,166 2010-01-27, 03:41 AM
Last Post: curtman
  Sound but no video after graphics card upgrade Sonic 11 5,379 2010-01-19, 11:48 PM
Last Post: stustunz

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

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

Linear Mode
Threaded Mode