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

Junior Member

Posts: 6
Threads: 1
Joined: Apr 2007
#111
2007-04-20, 03:47 PM
i'm new to gbpvr here. i have a little question. i have the latest gbpvr installed on windows server 2003 and went to the wiki and added these utilities,

TVListings
EPGExtra
addepisode
TVGuideSupercharger

now, everything seems to work fine. i got addepisode to work, but it shows the wrong {daynameshort}. i have it setup in the postprocessing.bat like so,

addepisode %1 "{show}-{episode or date} ({daynameshort}-{month}-{day}-{year})"


the video gets renamed to,
My Name Is Earl - Two Balls, Two Strikes (Fri-04-19-2007).mpg

this show airs on a Thursday, the 19th, and as you can see, it says, "Fri". which is wrong. i checked my tray clocks setting in windows and its the right date with the correct time zone. even opening up gbpvr and seeing the date on the top of the screen shows the correct date.

what could be the problem?

thanks.
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#112
2007-04-23, 09:44 PM
sorry for the wait for my response...ive been out of town.

If this is a consistent thing, that happens with all file renames, i think it may be because your calendar week starts on sunday instead of monday as mine does. (addepisode takes a numeric value of the day of the week and changes it into a day name, so friday is 5 for me, but it is 6 for you) Just a guess. I suppose the easy fix is for me to make you a one-of-a-kind, (and anyone else for that has that specific problem).

So let me know if your interested. Remember, it will only work if this problem is consistent, and happens no matter what day you record.
HeeZy01
Offline

Junior Member

Posts: 6
Threads: 1
Joined: Apr 2007
#113
2007-04-24, 02:43 AM
yes, this happens all time. my week does start on sundays, so if you have a fix i would like to try it out.


thanks.
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#114
2007-04-28, 06:50 PM
kermi3 Wrote:Hey Turkey - great plugin, I've been looking for something like it. I had one problem though, I addded
Code:
addepisode %1 "{show}{[ - ]}{season and episode}{[ - ]}{episode}"
to the end of my postprocessing file (right before the eof). The files appear to be getting renamed properly, however they are no longer appearing in my Recordings section of GBPVR. The only other plugin I'm running is comskip.

I'm sure I'm just doing some little thing wrong, but I can't seem to find it on the wiki or on this thread. Any help would be apprciated.

Thanks, K3

I'm having the same problem Kermi3 described. Did you guys ever figure out what was going on? I have some additional detail.

First the problem occurs about 90% of the time, but every once in a while a show is renamed and still appears in the recordings list (after both comskip and addepisode were run in the postprocess.bat). I have not been able to see any patterns—seems random when it works.

When things do not work, the show records and originally appears in the recordings list while postprocess.bat is running. Comskip completes and works, addepisode runs and successfully renames both the .mpeg file and the comskip files. However, at this point the show disappears from the recordings list. It also disappears from the "RECORDING_SCHEDULE" section of the SQLite database (other previously recorded shows are listed here, so I’m assuming all recorded shows should be listed in addition to shows scheduled for the future). It is still in the "PROGRAMME" section, but not near the top with my other recorded shows--it only appears in the lower part that has the entire tv listing database. There are no errors in the addepisode.log file and no mention of the show appears in it despite the fact that addepisode did change the shows file name.

If I run comskip without addepisode, everything works fine and the show appears in the recordings list. If I run addepisode without comskip, everything also works fine. If I run them together, I have problems.

I've attached my postprocess.bat and addepisode.log file in case they help. As a note, there have been several shows that were renamed by addepisode (and not removed from the recording list as long as I had comskip disabled) that did not get logged.
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#115
2007-04-29, 04:19 PM
@dshoup:

I think kermi3 ended up finding his problem during his troubleshooting, and never got back to me with a solution. Anyway, i think your problem may be different. It looks like it is a problem with running comskip and addepisode at the same time.

you have two choices: wait for me to update addepisode to deal with this problem (may be a while because i havent figured out how to do this yet) or tweak your batch files to ensure addepisode and comskip are not running at the same time.

I'll give you some direction on the second option...

I run comskip from parallelprocessing.bat. If you computer has the power to do so, I would recommend that anyway. with this option, comskip will finish soon after the recording finishes, but not necessarily before postprocessing.bat is run. to fix this, try using a sleep command to delay the execution of addespode by a few minutes. (there are a few ways to do this, but i use a windows program called 'sleep' from a windows server 2003 resource kit. I'll attach it to this message. You use it like this:

sleep (number of seconds), so in your postprocessing.bat:

sleep 180
addepisode blah blah blah

if you dont want to run comskip from parallelprocessing.bat, you can try to experiment with batch commands to get the batch file to wait for comskip to be done before it executes addepisode. Look at the 'start', 'run', and 'call' commands. I have never been able to get these to work the way i want, but it worth a try for you.

Let me know if any of this tweaking works, or if you need more help.
turkey
Offline

Member

Posts: 206
Threads: 17
Joined: Sep 2005
#116
2007-04-29, 04:30 PM
HeeZy01 Wrote:yes, this happens all time. my week does start on sundays, so if you have a fix i would like to try it out.
thanks.

well, it turns out that you found a bug.:o I fixed it and uploaded the new version to the wiki. Before i realized it was a bug, i added in the ability to adjust the day forward or backward in the optional ini file. Try it out, and see if it fixes your problem.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#117
2007-04-29, 04:40 PM
Quote:
I run comskip from parallelprocessing.bat. If you computer has the power to do so, I would recommend that anyway. with this option, comskip will finish soon after the recording finishes, but not necessarily before postprocessing.bat is run. to fix this, try using a sleep command to delay the execution of addespode by a few minutes. (there are a few ways to do this, but i use a windows program called 'sleep' from a windows server 2003 resource kit. I'll attach it to this message. You use it like this:

I think you could use the "start /wait" command for comskip. Then parallelproc.bat won't exit until comskip is finished. Afaik postprocessing won't start until parallelproc is finished.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
dshoup
Offline

Member

Posts: 247
Threads: 39
Joined: Jan 2006
#118
2007-04-29, 07:23 PM
Thanks turkey and HtV. I have added the "start /wait" to commands in postprocessing.bat and it appears to be working fine. For others that may encounter this, here is what my postprocessing.bat now looks:

start /wait comskip -n %1
start /wait comskippad %1
addepisode %1 "{show}-({yearshort}-{month}-{day})-{episode}-{unique id short}"

As for a long-term fix, I don't know if it would be possible to make addepisode.exe first look to see if comskip.exe is running and if so, delay starting? I ran across a utility that does this (http://www.ericphelps.com/scripting/samp...ndex.html), but it would be neat to incorporate it into addepisode.exe. Alternatively, you might just update the wiki and suggest everyone use the start /wait commands. Anyhow, thanks for the help and the great utility!
dvasco
Offline

Senior Member

Posts: 718
Threads: 113
Joined: Jun 2006
#119
2007-04-29, 07:45 PM
turkey Wrote:This is the support thread for AddEpisode.

AddEpisode is a file renaming utility for use with the sqlite database. Used properly, it will rename the recorded file to be more friendly for browsing in windows explorer. The default operation will rename the file to the format: “Show Name - Episode Name” (as well as renaming the comskip files if they exist). If the episode name does not exist, the file will be renamed to this format: “Show Name - Date”. See the included help file or the wiki page for more information.

It can be downloaded here.

Please post any bugs or suggestions here, and I will do my best to help.
Can it be made to rename all related files in a folder, ie smi, srt, vrj, etc ?
[SIZE="1"] [COLOR="Blue"]
NPVR | Athlon XP 5000+ 2 GB RAM | Asus EAH3450 | Hauppauge HVR-1600 & Colossus | MS MCE Beanbag
Harmony 659 | RF keyboard | Vizio 42" LCD & Panasonic 32" CRT | 3 PCH A-100 [/COLOR][/SIZE]
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#120
2007-04-29, 07:48 PM
Hi,
Just started using this as well. Can you incorporate the %new% variable as you would for %~dpn1, as in %~dpnnew? I think it's getting errors in the postprocessing.bat file when I try.

My goal is to just get the filename without the extension so it can be transcoded with the new extension (avi), then moved into a "ready" directory. I've got a workaround in place but it's not as elegant. (see below)

Any suggestions welcome, as I can't really invoke the "move" command as it stands.

[SIZE="1"]; skip commercials
comskip %1

; clean commercials
call comclean %1

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

; transcode
"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%new%" -f avi -ab 128 -ac 2 -acodec mp3 -vcodec mpeg4 -b 710k -s 320x240 -vtag DIVX "%new%"_

; change extension from "show - episdode.mpg_" to "show - episode.avi"
ren "%new%"_ *.avi[/SIZE]


Thanks,
Andrew
http://www.pointlisse.com/PMA430/
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  vidImport utility support carpeVideo 73 54,997 2012-05-27, 06:27 AM
Last Post: jksmurf
  xmltv doesn't import all the channel information in xmltv file vokuit00 2 2,942 2010-06-07, 04:35 AM
Last Post: vokuit00
  transcode from file.ts to file.mpeg in parallelproocessing alevideotestservice 4 3,025 2009-12-30, 07:27 PM
Last Post: alevideotestservice
  Showanalyzer Doesn't Run While Show is Recording a .TS File ww4397 1 2,614 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,499 2009-06-14, 05:36 AM
Last Post: Chris79
  Comskip: Interpreting the aspects file zehd 0 1,654 2008-11-29, 07:41 AM
Last Post: zehd
  EPG Utility: YApi2XML (discontinued) -Oz- 503 141,029 2008-11-28, 08:55 PM
Last Post: zehd
  Extended program information utility? SLR_65 10 5,602 2008-10-29, 02:33 AM
Last Post: UncleJohnsBand
  SkipTool creates a bogus file if the name contains & mkenyon2 40 15,671 2008-10-23, 06:59 PM
Last Post: pastro
  yapi2cml reporting corrupted listing file? teookie 1 1,768 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