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 … 8 9 10 11 12 … 125 Next »
File Renaming Utility: AddEpisode

 
  • 0 Vote(s) - 0 Average
File Renaming Utility: AddEpisode
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#131
2007-05-09, 12:06 PM
turkey Wrote:sorry about the long delay in a response.

What files does comskip create after it runs?

No problem on the delay--you deserve to have a life too. Comskip always produces a *.txt and *.log file (* needs to be the same name as the show's mpg file). The txt file lists the start and stop frames of commercials. The log file has all the analysis results (where black screens, volume changes, channel logos, etc. were detected). Some times it also generates a *.logo.txt file that is a text file with a representation of the channel logo it located. This file is not always present (I assume it depends on whether comskip found a logo or not). I've uploaded an example file showing these 3 comskip files. These files have not had addepisode run on them.
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#132
2007-05-11, 03:45 AM
ok. as you can see, i'm pretty much stumped, so i am grasping at straws. I am pretty sure that addepisode is trying to rename one of the files, either the video file or a comskip file, and is not able to because another program is accessing it. it is renaming the file in the gbpvr database. (this I can fix, as it shouldnt change the database if it doesnt rename the video file...i'll do that in the next few days, but it wont fix your problem completely)

You can try a few more things before i make up a debug version of addepisode specifically for this problem.

Try changing to these settings in the comskip.ini file:

verbose=0
delete_logo_file=1

The following setting group is throttling back your comskip to keep it from using up the cpu. I deleted it from mine. (just a suggestion, probably doesn't have anything to do with the problem)

[CPU Load Reduction]
play_nice_start=-1
play_nice_end=-1
play_nice_sleep=10

Basically, these settings will reduce the number of files that comskip produces. If you still have problems, try running everything manually:

rename the batch files so gbpvr cant find them. record something. then run comskip on the file. (easiest way is to drag and drop the file onto comskip) when that is finished (the command window will disappear) run addepisode on the file. (from the command line, using the same command as you have in your batch file, but replacing the %1 with the full path and filename of the video file with quotes around it)

let me know
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#133
2007-05-12, 09:44 PM
For the last several days, I have been running with addepisode commented out of my postprocessing.bat file. I have tried manually running addepisode on files that taped during that time. These files have successfully had comskip run on them and they properly appear in the ready recordings list. Once I run addepisode on them, they imediately dissapear from the ready recordings list. They are renamed properly and I can get them back into the ready recordings list if I use mpeg import. I'll play with dissableing the extra comskip stuff you suggested soon.
lstepnio
Offline

Member

Posts: 81
Threads: 7
Joined: Jan 2007
#134
2007-05-14, 02:53 AM (This post was last modified: 2007-05-15, 01:56 AM by lstepnio.)
turkey Wrote:huh. that command i gave you shouldn't have anything to do with addepsiode, so it shouldn't die there. try this:

addepisode %1 "{show}{[ - ]}{episode}">newfilename.txt
for /f "tokens=*" %%i in (newfilename.txt) do set new=%%i

for /f "tokens=1 delims=." %%i in (newfilename.txt) do set noext=%%i

then you can use %new% for the full path and filename with .mpg, and use %noext% for the full path and name without an extension.

Maybe i'm just confused, but i'm pretty sure that will work for what you want to do.

wouldn't this solution cause problems with two tuners with two recording at the same times? This might be a better solution to include the channel number in the temporary filename to avoid the possible conflict, agreed?

addepisode %1 "{show}{[ - ]}{episode}">newfilename-channel%2.txt


For what's it's worth I'm having the same issues with addepisode not renaming all the files all the time and I'm having a hard time tracking exactly what's happening (windows really sucks when it comes to stuff like this). I think the issue is related to one of the files being locked by another process and/or comskip crashing for some other reason. I'm curious, does comskip abort renaming further files if one fails? I'm trying to track down if the all the files not renamed are all locked or just one of the files is locked which causes the following files in the rename loop to fail. It would be helpful to have a debug flag so that one can track issues like this.

Here's what's I'm testing with now and seeing I still have the failures:
Code:
echo ParallelProcessing %1 channel %2 >>logs/parallelprocessing.log

"C:\Program Files\UnxUtils\usr\local\wbin\sleep.exe" 2m

comskip79_95 "--ini=C:\Program Files\devnz\gbpvr\comskip79_95_gbpvr_v0.01.ini" "--verbose=10" "--playnice" "--zpchapter" "--videoredo" "--ts" %1

"C:\Program Files\UnxUtils\usr\local\wbin\sleep.exe" 1m

addepisode %1 "{show}-{yearshort}{month}{day}{[-]}{episode}">>tmp/addepisode.log
hodnik
Offline

Junior Member

Posts: 3
Threads: 0
Joined: May 2007
#135
2007-05-19, 02:17 AM
turkey and other resident experts..

first off thanks for your utility, it was what i was looking for. I am a brand new user to gbpvr and swayed between this and mediaportal for some time before i finally got gbpvr to work to my needs.

I have a few questions pertaining to addepisode.

First off, I finally got PostProcessing.bat setup with only the following line inside... addepisode %1 "{show}{[ - ]}{episode}{[ - ]}{description}"
I have seen examples in this thread with and without quotations marks... which is correct?

Secondly, do I have to set up postprocessing.bat to run after a recording? Or does it run by itself with no extra configuration in the gbpvr config?

Third, if I have two programs to be recorded in succession, ie 730-800,800-830 will the postprocessing.bat wait to run until it has stopped recording?

Fourth, in testing this utility I was setup a recording, let it run for a while, then cancelled to see if the postprocessing.bat ran - but it didn't. is this normal?

Thanks in advance,
Dan.
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#136
2007-05-19, 02:30 AM
turkey Wrote:ok. as you can see, i'm pretty much stumped, so i am grasping at straws. I am pretty sure that addepisode is trying to rename one of the files, either the video file or a comskip file, and is not able to because another program is accessing it. it is renaming the file in the gbpvr database. (this I can fix, as it shouldnt change the database if it doesnt rename the video file...i'll do that in the next few days, but it wont fix your problem completely)

You can try a few more things before i make up a debug version of addepisode specifically for this problem.

Try changing to these settings in the comskip.ini file:

verbose=0
delete_logo_file=1

Basically, these settings will reduce the number of files that comskip produces. If you still have problems, try running everything manually:


Well...problem solved. I've no idea why, but evidently the presence of either the comskip logo or log file is what is causing all of the problems. When I use the two settings above, the problem is gone. Thanks for all of your help tracking this down. I don't know what causes the conflict with these comskip files and addepisode, but frankly I don't need those comskip files so the problem is solved as far as I'm concerned. I you have reason to want to try to "solve" this problem for future reference, let me know and I'd be happy to work with you on it, but I'm happy with this solution. Thanks again for all your help!
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#137
2007-05-19, 02:33 AM
hodnik Wrote:Secondly, do I have to set up postprocessing.bat to run after a recording? Or does it run by itself with no extra configuration in the gbpvr config?

Third, if I have two programs to be recorded in succession, ie 730-800,800-830 will the postprocessing.bat wait to run until it has stopped recording?

Fourth, in testing this utility I was setup a recording, let it run for a while, then cancelled to see if the postprocessing.bat ran - but it didn't. is this normal?

2) If postprocessing.bat exists, it will run automatically.
3) Only one postprocessing.bat will run at a time, so at 800 the first one will run to completion. The second one will run either after the first one, or after the recording.
4) Cancelling a recording will result in postprocessing.bat not running. A good work-a-round for testing is to create a shortcut to your postprocessing.bat file and drag and drop a recording on it to see if it works properly.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
hodnik
Offline

Junior Member

Posts: 3
Threads: 0
Joined: May 2007
#138
2007-05-19, 02:53 AM
Thanks for the response David.

Strange.. I had two programs to be recorded in succession. The first one hadn't run the postprocessing.bat so that is why i asked the question. I may have not refreshed windows explorer, who knows. as you suggested I made a shortcut to the .bat and dragged and dropped the program in question and sure enough it updated itself.

When this next program finishes, ill update you with results.

thanks,
dan
hodnik
Offline

Junior Member

Posts: 3
Threads: 0
Joined: May 2007
#139
2007-05-19, 03:18 AM
Ok,

addepisode has done its job and properly tagged the file, but I have a one more question...

is there anyway (besides {season and episode}) to determine the order of episodes in a season? The way I understand the commands is that they determine the date you recorded the program, not when it aired originally.
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#140
2007-05-19, 01:01 PM
zrename - searches epguide.com (or some such site) and generally renames the show with the correct episode # - IE S4E03. It is currently in beta so search the forums.
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (19): « Previous 1 … 12 13 14 15 16 … 19 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  vidImport utility support carpeVideo 73 53,970 2012-05-27, 06:27 AM
Last Post: jksmurf
  xmltv doesn't import all the channel information in xmltv file vokuit00 2 2,845 2010-06-07, 04:35 AM
Last Post: vokuit00
  transcode from file.ts to file.mpeg in parallelproocessing alevideotestservice 4 2,905 2009-12-30, 07:27 PM
Last Post: alevideotestservice
  Showanalyzer Doesn't Run While Show is Recording a .TS File ww4397 1 2,543 2009-12-02, 11:14 AM
Last Post: ww4397
  Newbie needs help with renaming external plugins and making some plugins to work Chris79 2 2,402 2009-06-14, 05:36 AM
Last Post: Chris79
  Comskip: Interpreting the aspects file zehd 0 1,587 2008-11-29, 07:41 AM
Last Post: zehd
  EPG Utility: YApi2XML (discontinued) -Oz- 503 136,061 2008-11-28, 08:55 PM
Last Post: zehd
  Extended program information utility? SLR_65 10 5,453 2008-10-29, 02:33 AM
Last Post: UncleJohnsBand
  SkipTool creates a bogus file if the name contains & mkenyon2 40 15,109 2008-10-23, 06:59 PM
Last Post: pastro
  yapi2cml reporting corrupted listing file? teookie 1 1,692 2008-09-25, 10:50 PM
Last Post: zehd

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

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

Linear Mode
Threaded Mode