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 … 12 13 14 15 16 … 1231 Next »
Lost recordings database

 
  • 0 Vote(s) - 0 Average
Lost recordings database
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#1
2010-01-13, 02:59 PM
Groan.

Tonight I am reformatting my recordings drive to take advantage of a larger cluster size. I carefully backed up the recordings drive, repartitioned, reformatted and restored the backed up files. Unfortunately (and I should have thought of this) the GBPVR database updated itself while there was nothing on the drive. No, I didn't back up the database before I started. I do have a full system backup from early this morning, and GBPVR is on the system drive, but that seems like a draconian measure if I can avoid it. Is there anything else I can try?
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#2
2010-01-13, 03:17 PM
pBS, Image for Windows is the greatest program ever written. Thanks again for suggesting it. I don't know how it can possibly do a sector-by-sector backup and still be able to restore a single file, but that is what it just did for me now. I have a copy of the database as of 6:00 this morning.
leaded1
Offline

Member

Posts: 135
Threads: 15
Joined: Jul 2007
#3
2010-01-13, 03:20 PM (This post was last modified: 2010-01-13, 03:21 PM by leaded1.)
with the latest release, you should have multiple saved recording-dump.xml backups. If any of these contain all of your recordings, you can re-import them (should also include all of your recurring recordings).
Server - AMD 6 Core windows 10 with Hauppage WINTV-PVR2 USB2, HDHomerun Dual, and WINTV-HVR 1600 tuners | Clients -PCH A-100 and iOS
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#4
2010-01-13, 03:22 PM (This post was last modified: 2010-01-13, 03:36 PM by Graham.)
DVR-MS recording files contain an alternate data stream that contains most (if not all) of the data stored in the database. There are utilities that can rebuild the database from this data. I tried a quick grope in the wiki and found only this ...

http://gbpvr.com/pmwiki/pmwiki.php/Utility/VidImport

You should find others if you search the wiki and forum.

I dunno if .ts or .mpg recording files have alternate data streams.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,659
Threads: 767
Joined: Nov 2003
#5
2010-01-13, 03:47 PM
Graham Wrote:DVR-MS recording files contain an alternate data stream that contains most (if not all) of the data stored in the database.
Its not specifically related to .dvr-ms files. This feature is available on all recordings made by GB-PVR, but only on NTFS drives.
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#6
2010-01-14, 03:01 AM
Interesting. As you've seen, I solved the problem via a backup, but I'd like to know more about this. I use vidimport regularly, but all it gives me is the show's main title, the times set for recording (from the filename) and, occasionally, a generic description scraped from IMDB (sometimes with the HTML tags still attached).
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2010-01-14, 05:28 AM (This post was last modified: 2010-01-14, 08:00 AM by pBS.)
true, there should be recording-dump.0-9 in gbpvr folder as well...should be only missing a day's recordings..
but if not, here's a little batch file to import back in the ntfs metadata on each file..
it should make them all look exactly like they used to in recordings screen..
save as batch file, and place in root of recordings dir you want to import and run it..
Now adjusts filename path on the fly to correct rec dir changes! Big Grin

RecoverRecordings.bat
Code:
@echo off
setlocal ENABLEDELAYEDEXPANSION
echo.
echo. Generating Recording Import data for all .mpg's in
echo.     %~dp0recording-dump.xml
echo.
echo ^<?xml version="1.0" encoding="UTF-8"?^> > %~dp0recording-dump.xml
echo ^<recordings^> >>%~dp0recording-dump.xml
FOR /R %~dp0 %%f IN (*.mpg *.ts *.dvr-ms *.avi) DO (call :extract "%%~f")
echo ^</recordings^> >> %~dp0recording-dump.xml

echo.
echo Done.
echo.
echo Hit any key to import into database or 'Control-c' to exit and edit recording-dump.xml.
pause
for /f "usebackq skip=4 tokens=1,2,3,* " %%a in (`reg query hklm\SOFTWARE\devnz /v "GBPVR InstallDir"`) do set gbpvrdir=%%d
"%gbpvrdir%pvrx2.exe" -import:"%~dp0recording-dump.xml"
echo Importing....
echo Done.
goto :eof


:extract
echo ""
for /f "usebackq tokens=* skip=1 delims=*" %%p in ("%~1:metadata.xml") do (
set line=%%p
if "!line:filename=!" NEQ "!line!" (    
    echo       ^<filename^>%~1^</filename^> >> "%~dp0recording-dump.xml"
    ) else (echo    %%p >> "%~dp0recording-dump.xml")
)
goto :eof

New Wiki entry for it:
http://gbpvr.com/pmwiki/pmwiki.php/Utili...Recordings
apparently it got deleted in house cleaning of the forums..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#8
2010-01-14, 11:46 PM
Good, thanks. I'll play with this and see if it makes a difference to my vidimports.

One thing that didn't get restored with the database was the resume times for videos. (I'm talking about videos in the external library, here, not recordings). How are these managed?
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#9
2010-01-14, 11:59 PM
There is a table in the gbpvr.db database that recordings to resume point of a given file.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#10
2010-09-22, 09:20 PM
I've seen a few posts that use VidImport to reproduce the GBPVR database from a file's metadata. I have just created a batch file that uses SQLite to do the opposite; restores a file's metadata from the GBPVR database. I needed this because I "mess" with many of my files, but it might be handy for someone who copied them through a FAT32 system, for example. Let me know if anyone needs it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Live TV and recordings do not match greg in kansas 8 7,082 2013-02-22, 06:35 PM
Last Post: sub
  Can't view recordings on pc jerry430 8 6,692 2013-01-21, 07:27 PM
Last Post: jerry430
  Live TV not showing anything although recordings are OK. Pls advise. seymoria 8 4,711 2012-08-07, 05:07 PM
Last Post: ACTCMS
  CSI Miami Recordings Always In Spanish ga_mueller 6 4,536 2012-06-12, 12:41 AM
Last Post: mikeh49
  Recordings missing after switching hard drive tegat 8 4,948 2011-12-21, 03:00 AM
Last Post: tegat
  Recordings and live TV fail with TS mux dvasco 4 2,651 2011-06-22, 05:47 PM
Last Post: dvasco
  Stream errors in recordings with GBPVR seymoria 11 4,419 2011-06-19, 06:44 PM
Last Post: seymoria
  Lost all my recordings pduncan67 2 1,963 2011-02-27, 03:12 PM
Last Post: pduncan67
  Zero byte recordings chuck_2330 0 1,407 2011-02-09, 01:25 PM
Last Post: chuck_2330
  Huge database (+27GB) - is it a problem? pme 7 2,938 2011-01-24, 12:37 AM
Last Post: gEd

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

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

Linear Mode
Threaded Mode