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) v
« Previous 1 … 78 79 80 81 82 … 125 Next »
Fixing VideoReDo project files after RenameRecording!

 
  • 0 Vote(s) - 0 Average
Fixing VideoReDo project files after RenameRecording!
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#1
2006-02-12, 04:05 AM (This post was last modified: 2006-08-19, 09:48 PM by Jim_.)
Hi all,
I really like RenameRecording, having the show and episode for the filename is wonderful!
But as a VideoReDo Plus user I didn’t like clicking through the errors, and manually searching for the renamed mpg when opening a renamed "Vprj" project file.

So I dusted off my 20-year old copy of QB4.5 and wrote this small utility. It simply changes the <Filename> (inside the Vprj) to point to the renamed mpg.
I’m using the current release of VideoReDo Plus (2.2.1.445-447). And the latest(?) version of RenameRecording (the one that gives show and episode name).

Installation is very simple.
copy FixVprj.exe to your GBPVR folder and add the lines from the sample PostProcessing.bat.


First, FixVprj.exe (with no argument) reads RenameRecording’s “rename.log” to get the renamed VRD project. It then creates a batch file that copies the project file to “VPRJ_IN.log” in the GBPVR folder.

Next, FixVprj.exe (with %~dpn1.mpg argument) verifies that the <Filename> in the Vprj and the “Drive:\Path\Filename.mpg” from GBPVR match.

If they do not match, nothing is overwritten.
If they do match, a new project is created "VPRJ_OUT.LOG" and batch copied over the one with the broken internal name.

The batch calls are needed because the thousand-year-old compiler I’m using doesn’t understand long filenames. I thought I’d risk the laughter and share it anyway, because others may find it useful. Big Grin

Jim

[SIZE="3"]Post #4 contains the latest utility I’m using to avoid the renamed project problem. The file below is only for archive purposes. [/SIZE]
[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) |
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#2
2006-02-13, 06:30 PM
If using videoredo, just set up postprocessing to rename the file, after videoredo has cleaned it, thus:
Code:
REM this line renames the original gbpvr formatted filename to _original
move "%~dpn1.mpg" "%~dpn1_original.mpg"
REM this line renames the cleaned videoredo output file to the original gbpvr formatted name
move "%~dpn1_cleaned.mpg" "%~dpn1.mpg"
REM this invokes renamerecordings to get the showname and episodename
RenameRecordings -t %1 > renamerecordings.log
REM this line names the _original back to the gbpvr formatted filename so videoredo finds it using the vprj file
MOVE  "%~dpn1_original.mpg" "%~dpn1.mpg
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#3
2006-02-14, 12:43 AM
Hi Reboot.
That does work fine if you want to take what you get and archive every show, but I just watch and delete most recordings without any form of editing.
I also like verifying the scene markers and cut points before manually archiving the ones I keep.

Hey, a side question for you, sub, or anyone that might know of a way to do this.
Is it possible to add a user defined menu option to the “recordings” skin that would pass the playback filename to an external command when selected?
Play
Delete
Exit
Edit , Archive, or whatever? <%1

I use comskip in parallelprocess.bat to skip commercials during recording, incase I watch the show while its recording.
Then I call VideoReDo’s adscan.vbs as a post process, and use another utility (if anyone wants it I’ll share it later) that creates a padded commercial auto-skip file from the Vprj. That way I can verify the VideoReDo generated cut points when I watch the video in GBPVR.

Now if I just had a Recordings menu option that would pass the filename to a bat!
A custom task on the main menu would work, but only with the latest recording. Wink

Anyone know of a way to do this?
TIA
Jim
[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) |
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#4
2006-02-17, 06:32 AM (This post was last modified: 2007-02-28, 04:52 AM by Jim_.)
I thought I’d share another small utility.

It eliminates “Error opening file” when opening a network share project that was created on a different system. It also updates the path and filename in a project that was renamed or moved.

This is a “stand-alone” utility, its only requirement is VideoReDo.
Simply create a desktop shortcut to “NetVprj.bat” and drop a broken project on it.

ReadMe.txt and NetVprj.bat will give the details.

Jim
[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) |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to add program desc to MPG files? sheppy99 5 2,997 2009-11-18, 07:39 AM
Last Post: sheppy99
  Aeon Project skin port for GBPVR mvallevand 18 11,626 2009-10-31, 12:21 PM
Last Post: CornStopper
  Problem playing ISO files - Sound but no video mustclimb14ers 0 1,945 2009-04-16, 04:15 PM
Last Post: mustclimb14ers
  10311 will not play ts. files rlord2 0 1,710 2009-03-30, 08:21 PM
Last Post: rlord2
  How to use VideoReDo to AUTOMATICALLY remove commercials reboot 60 48,713 2009-02-02, 04:59 PM
Last Post: InvisibleGeek
  WMA Lossless Audio files. GBPVR and musicscanner sprogger 4 2,610 2009-01-31, 05:13 PM
Last Post: mvallevand
  need help in automating conversion of recorded MEPG2 files to DivX lancedefrance 7 3,079 2008-12-25, 09:32 PM
Last Post: gEd
  Anyone get the Files plugin to work with 1.2.13? SLR_65 4 2,939 2008-10-27, 03:10 AM
Last Post: SLR_65
  Warning: Mencoder and large MPEG2 files can fail jam_zhou 1 1,706 2008-07-26, 01:39 AM
Last Post: sgilani
  music library cant see files dave.t 8 3,086 2008-07-13, 11:12 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode