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
_gl
Offline

Member

Posts: 118
Threads: 11
Joined: Dec 2005
#21
2005-12-27, 07:45 AM
Hi guys, first quick post (more to come).

Just needed this myself after defragging my AV drive and finding all my recordings no longer listed.

Thanks for the batch file. Only both versions had a bug which stopped it from working for me (and others by the sounds of it) - the %1\*.mpg should just be *.mpg. Fixed recursive version attached.

I've also created a little shell extension for the notepad command that lets you view a recording's metadata by right-clicking on it. Just double-click the .reg file in the zip to install it.
_gl
Offline

Member

Posts: 118
Threads: 11
Joined: Dec 2005
#22
2005-12-27, 08:49 AM (This post was last modified: 2005-12-27, 08:55 AM by _gl.)
OK, I managed to recover all my recordings (I had a lot). Unfortunately the metadata is only accurate from the time of recording. For example, I had a whole bunch of old files pointing to an old directory structure, and I had to hand-edit all those before they would import. I was also using the RenameRecordings.exe file (to give the .mpg the title of the episode, if available), but these new names aren't of course updated in the metadata either, so those had to be hand-edited too.

On the plus site, the shell extension will also allow you to create new metadata for files that don't have them, so you just have to paste a blank one in and fill in the fields you care about. Still a lot of work though, easy to make a mistake that stops the entire dump importing correctly, and the descriptions are lost unless you care to write your own.

It would be real nice if GB-PVR could scan all .mpg files, and auto-recreate all this info by matching the filenames intelligently to old channel listings (which would have to be archived). At least regular automatic recording dump backups would be handy, as this data is valuable and very hard to recreate.
gomjabar
Offline

Member

Posts: 124
Threads: 32
Joined: Jun 2005
#23
2005-12-27, 01:42 PM
Those two utilities worked great _gl, Thanks
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#24
2006-01-07, 04:26 AM (This post was last modified: 2006-01-07, 04:40 AM by pBS.)
Dude,this is a must for the Wiki!! it needs more notoriety...Smile

i have my recordings dir on network path and if just run bat file with no args, uses local paths...but with command line option it works with net-paths
[e.g. RecoverRecordings.bat "\\server\drive\"]
although the pathnames inside are the originals..Sad
but if you break down the filenames like: %~dp1 'path' and %~n1 'filename only' it could work...i'll give it a go and see if it doesn't get too funky..
[i wrote a comskip bat like this also,should be adaptable]
i may be able to let you specify the new location on command line,not just the current location hardcoded from the metadata..Big Grin

but the core work is excellent! [yea, love the new /R in for-loops..lol]
don't forget to mention it only works on NTFS but it does work over the network.. [viewing the metadata that is]

Many Thanx
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#25
2006-01-09, 06:07 AM
here's my 2 cents worth,a littl mod to make it accept either a directory with *.mpg or a single file. eg. RecoverRecordings.bat "\\server\share\path\*.mpg" or RecoverRecordings.bat "\\server\share\path\filename.mpg"
for recovering those single files or making sure everything's imported..
next up,making it insert new path for files from command line..
enjoy Smile
*****************************************
@echo off
set recdir=%~dp1
echo.
echo. Generating Recording Import data for mpg's in %~dp1 to -
echo. %recdir%recording-dump.xml
echo.
FOR /F "tokens=*" %%i IN ("<?xml version="1.0" encoding="UTF-8"?>") DO ECHO %%i > "%recdir%recording-dump.xml"
FOR /F "tokens=*" %%i IN ("<recordings>") DO ECHO %%i >> "%recdir%recording-dump.xml"
FOR /F "usebackq delims==" %%I IN (`dir %1 /b /s `) DO more < %%I:metadata.xml >> "%recdir%recording-dump.xml"
FOR /F "tokens=*" %%i IN ("</recordings>") DO ECHO %%i >> "%recdir%recording-dump.xml"
echo.
echo Done.
echo.
:end
start "Result" "%recdir%recording-dump.xml"
pause
*************************************************
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
5058
Offline

Member

Posts: 167
Threads: 26
Joined: Feb 2006
#26
2006-02-09, 08:37 PM
pBS , that worked perfectly. Everyone just remember to leave the original recordings where they were regardless of what you have as a recording directory for your new install.

Thanks
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#27
2006-02-20, 02:33 PM (This post was last modified: 2006-02-26, 05:31 AM by Jim_.)
I’m glad I found this thread when I was searching, everything in it works great, thanks!

I was searching because I miss having the metadata information after editing, and my recording drive is external! It hasn’t happened yet, but one disconnect and everything’s gone….
I decided to use postprocessing.bat to create a separate xml for each recording, with the recordings name.
This is the PostProcessing.bat I’m using, copy the executables in the zip to your GBPVR folder.

Jim

Edit> 2/25/06, Updating the zip and PostProcessing.bat with the version I'm currently using. This version should(?) work with multiple capture cards, and avoids some name format problems when using RenameRecording. <Edit



Code:
REM Exports the last recording (on channel %2) from the GBPVR recordings database.
REM Add to the end of your PostProcessing.bat

cd "C:\Program Files\devnz\gbpvr"
gbpvr.exe -export
rename recording-dump.xml dump.xml
GetXML.exe %2
call MoveXML.bat
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
sixgun
Offline

Member

Posts: 197
Threads: 35
Joined: Sep 2004
#28
2006-03-15, 11:02 PM
I stumbled on this thread while looking for more info on how to read the metadata using C#.

I finally managed to get notepad to read it, so i figured i'd change my MpegImport utility to support it.

Anyway, if you're still struggling with getting your recordings into GBPVR, check out the MpegImport utility on the Wiki. A few people use it with some success.

Regards.
GBPVR: v0.99.5
Server: Athlon64 X2 3800+, 2GB Memory, 1480GB Storage, 6 DVB-T Tuners (2 x Nova-T 500 PCI, 2 x Nova-T PCI)
HTPC: Athlon64 3000+, 1GB Memory, 80GB Storage, Blackgold GDI DVB-T Tuner, Ahanix MCE-302 Case, MSI K8NGM2-FID motherboard
Main TV: Toshiba 42WLT66 LCD
Media Playback: 2 x MVP (wired)
Homepage: http://www.sixgun.co.uk/
Author of MpegImport utility
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#29
2006-03-17, 04:30 PM
Can you elaborate on this? Dos the mpeg import now read the metadata, and use that info if available? If so, thanks! I have used both methods, your util, and the manual way inthe past, this will help alot!
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.
sixgun
Offline

Member

Posts: 197
Threads: 35
Joined: Sep 2004
#30
2006-03-17, 07:14 PM
Pioneer4x4 Wrote:Can you elaborate on this? Dos the mpeg import now read the metadata, and use that info if available? If so, thanks! I have used both methods, your util, and the manual way inthe past, this will help alot!

Not yet, it's something i might add though.

Still trying to figure out how to do it though. In terms of C# code that is, not the filename required.

I am trying to do this over my network though, so i don't know if that is causing me any problems.

If and when i get it working i'll post a message to the community announcements forum and update the wiki page.
GBPVR: v0.99.5
Server: Athlon64 X2 3800+, 2GB Memory, 1480GB Storage, 6 DVB-T Tuners (2 x Nova-T 500 PCI, 2 x Nova-T PCI)
HTPC: Athlon64 3000+, 1GB Memory, 80GB Storage, Blackgold GDI DVB-T Tuner, Ahanix MCE-302 Case, MSI K8NGM2-FID motherboard
Main TV: Toshiba 42WLT66 LCD
Media Playback: 2 x MVP (wired)
Homepage: http://www.sixgun.co.uk/
Author of MpegImport utility
« 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,544 2011-11-27, 05:44 AM
Last Post: sub
  Pentium upgrade worth it? ziton 10 3,867 2010-07-30, 12:06 AM
Last Post: re-Barr
  How to move the gbpvr recordings folder to a new location? navyblue 7 3,038 2010-07-17, 09:32 PM
Last Post: navyblue
  How To Move GBPVR To D: Drive LewE 6 2,476 2010-06-13, 07:07 PM
Last Post: LewE
  Gb-PVR 1.4.7 does not transcode videos themightygandalf 8 3,362 2010-03-09, 08:29 PM
Last Post: themightygandalf
  Can't see metadata in Videos Library cottong2001 4 2,071 2010-03-01, 01:03 AM
Last Post: cottong2001
  Green Lines in some converted videos wildatom 2 1,531 2010-02-15, 09:27 PM
Last Post: pBS
  Time to upgrade, advise kirschey 4 2,703 2010-01-30, 01:59 AM
Last Post: kirschey
  Upgrade woes from 0.99.12 to 1.4.7 curtman 12 4,371 2010-01-27, 03:41 AM
Last Post: curtman
  Sound but no video after graphics card upgrade Sonic 11 5,544 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