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 … 219 220 221 222 223 … 1231 Next »
cannot find file - videoredo

 
  • 0 Vote(s) - 0 Average
cannot find file - videoredo
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#21
2008-11-18, 02:15 AM
mrgtstr Wrote:Thanks...but still didn't help. I have found out something interesting though. If I put under scores where the spaces are it works.Big Grin The CSI folder and mpg names are created by gbpvr and don't know if I can change the way it does the naming or not. Also it only works when I have this in the batch file. Apparently this creates a loop and goes back to trying to find more .vprj files and would be nice if I could get it to stop but don't have a clue how to do that. Also don't know how to create the code to where if there are spaces in the folders or file names the batch file still can read them or if possible setup gbpvr not to create spaces. One step closer....I think. :confused:

Code:
REM This calls a routine that will process the recordings using Videoredo
FOR /R %dir1% %%f IN (*.vprj) DO CALL :adprocessing %%f

:adprocessing

Exactly. You are having a long filename problem. Ling filenames can't have spaces unless surrounded by quotes... But if you quote everything, the VideoRedo hates you for it...

You might need a script that tests for spaces and then adds quotes when necessary...

Though that really sounds silly. I don't remember ever having that much trouble when working with my script...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
mrgtstr
Offline

Junior Member

Posts: 32
Threads: 4
Joined: Jan 2008
#22
2008-11-18, 02:30 AM
zehd Wrote:Exactly. You are having a long filename problem. Ling filenames can't have spaces unless surrounded by quotes... But if you quote everything, the VideoRedo hates you for it...

You might need a script that tests for spaces and then adds quotes when necessary...

Though that really sounds silly. I don't remember ever having that much trouble when working with my script...

LOL...Silly it defintely is. Since that is beyond me and basically don't feel like putting that much brain power into it, I will just manually remove the commercials. Thanks for your input. Out of curiosity....Any idea if its possible to change the way gbpvr does the naming?
mrgtstr
Offline

Junior Member

Posts: 32
Threads: 4
Joined: Jan 2008
#23
2008-11-24, 03:50 PM
mrgtstr Wrote:LOL...Silly it defintely is. Since that is beyond me and basically don't feel like putting that much brain power into it, I will just manually remove the commercials. Thanks for your input. Out of curiosity....Any idea if its possible to change the way gbpvr does the naming?

Not trying to beat a dead horse....but I have decided that I am at least going to make an attempt at resolving my issue because it would really be nice to get it working. Big Grin

One thing I am wondering....Is there a way for gbpvr when it records a show to put underscores in the folder and/or file name? It would be really nice for my situation if that is possible. Another thing is that I have found a VBscript and have changed it a little to suit me and it finds files only that have spaces in them and replaces them with underscores. I have put it in my batch file and for whatever reason it doesn't change the file name, but it does change it when I execute it manually. More ideas would be appreciated.
Below is the code for the script and my updated batch file.

script
Code:
Dim sName
Dim fso
Dim fol

' create the filesystem object
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
    
' get current folder
Set fol = fso.GetFolder(".")

' go thru each files in the folder
For Each fil In fol.Files
    ' check if the file name contains spaces
    If InStr(1, fil.Name, " ") <> 0 Then
        ' replace space with underscore
        sName = Replace(fil.Name, " ", "_")
        ' rename the file
        fil.Name = sName
    End If
Next

WScript.Quit

' echo the job is completed
'WScript.Echo "Completed!"

Updated Batch file
Code:
REM Set the following lines to the recordings and originals directory.
REM These two directories should be on the same partition to avoid actually moving the file.
SET recordings=G:\Recordings\
SET original=G:\Recordings\Originals\
SET renrec="C:\Program Files\Devnz\GBPVR\WizRenameRecording.exe"

REM Adds underscores to the file name.
cscript //nologo "G:\Recordings\CSI Crime Scene Investigation\FileRename.vbs"

REM Using ShowAnalyzer to create a vprj file for VideoReDo
echo Starting ShowAnalyzer.....
"C:\Program Files\Dragon Global\ShowAnalyzer\ShowAnalyzer.exe" %1

REM Starts VideoReDo to edit recording
echo Starting VideoReDo.....
cscript //nologo "C:\Program Files\VideoReDoTVSuite\vp.vbs" "%~dpn1.VPrj" "%~dpn1_Cleaned.mpg" /t1 /q

REM Moving the original .mpg file to the Originals directory and
REM renaming the cleaned one to the original name
move "%~dpn1.mpg" %original%
move "%~dpn1_Cleaned.mpg" "%~dpn1.mpg"

REM The following lines cleanup the directory.
DEL "%~dpn1.txt"
DEL "%~dpn1.log"
move "%~dpn1.Vprj" %original%

echo Renaming Recording......
%renrec% %1 > WizRenameRecording.log
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#24
2008-11-24, 09:27 PM
How much of this are you wanting to figger out fer yerself, and how much would you want someone just to come up with a solution?

I ask that, because it probably is a common task you are trying to do, and I could whip together a rogram that will roll with the filename style changes, that would take care of that for you.

Or maybe you're having fun hacking around...

To be clear, you want to use VideoRedo to read the comskip data and cut commericals in post processing?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
mrgtstr
Offline

Junior Member

Posts: 32
Threads: 4
Joined: Jan 2008
#25
2008-11-24, 10:00 PM
zehd Wrote:How much of this are you wanting to figger out fer yerself, and how much would you want someone just to come up with a solution?

I ask that, because it probably is a common task you are trying to do, and I could whip together a rogram that will roll with the filename style changes, that would take care of that for you.

Or maybe you're having fun hacking around...

To be clear, you want to use VideoRedo to read the comskip data and cut commericals in post processing?

To answer your questions.....Yeah....Big Grin

Yes, I am trying to figure it out for numerous reasons and possibly during the time of trying to figure it out have some guidance........Of course having fun hacking around as well!

Trying to get VideoRedo to read the end result of the ShowAnalyzer data through the post processing.....Am I on the write track if gbpvr can't add underscores to the file/folder name?

Thanks
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#26
2008-11-24, 10:26 PM
mrgtstr Wrote:To answer your questions.....Yeah....Big Grin

Yes, I am trying to figure it out for numerous reasons and possibly during the time of trying to figure it out have some guidance........Of course having fun hacking around as well!

Trying to get VideoRedo to read the end result of the ShowAnalyzer data through the post processing.....Am I on the write track if gbpvr can't add underscores to the file/folder name?

Thanks

I have a post tool (UltraXMLTV Renamer) that runs in post and renames the file (and updates database pointers). During rename it replaces all spaces with periods.

Unforunately that doesn't work because it receives a %1 as it's input and it's impossible to know what the output will be, so it's difficult to put it in the Batch file before other processes.

Anyway...

Here's a question, if you have files with spaces, and add quotes around the variables, does it work then? It really should, no ifs ands or buts...

If you have some files with sppaces and without, then you could have two different sections in the batch and just switch between them...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
mrgtstr
Offline

Junior Member

Posts: 32
Threads: 4
Joined: Jan 2008
#27
2008-11-24, 11:15 PM
zehd Wrote:Here's a question, if you have files with spaces, and add quotes around the variables, does it work then? It really should, no ifs ands or buts...

If you have some files with sppaces and without, then you could have two different sections in the batch and just switch between them...

No it doesn't work....only time it works is when I insert the absolute path instead of %~dpn1
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,751 2012-09-30, 05:20 PM
Last Post: sub
  tunningAssistant: Failed to find Crossbar Zack63 4 2,987 2010-10-20, 03:36 PM
Last Post: Zack63
  No Data In the Recorded File zb1 5 2,341 2010-08-24, 01:08 AM
Last Post: zb1
  Path to file being recorded. brianj 5 2,401 2010-08-08, 10:58 PM
Last Post: brianj
  Can't find channels flodog 1 2,109 2010-08-07, 02:28 PM
Last Post: mvallevand
  error: failure playing back file yonu 4 2,106 2010-07-12, 12:52 AM
Last Post: yonu
  UK Freesat Scan.cache File jeffers 3 2,119 2010-05-25, 10:34 PM
Last Post: jeffers
  3 AC3Filter instances when playing back a still recording TS file? jksmurf 3 1,972 2010-05-17, 12:30 AM
Last Post: jksmurf
  Recording stops at 4gb file size experiencebliss 5 2,463 2010-05-04, 02:54 AM
Last Post: pBS
  Hauppage HVR-950q, no file created when recording, no pause. donbrowne 5 2,091 2010-04-08, 04:03 PM
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