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 … 87 88 89 90 91 … 125 Next »
How can I rename recordings to include episode?

 
  • 0 Vote(s) - 0 Average
How can I rename recordings to include episode?
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#11
2005-12-05, 11:36 PM
True, there are pitfalls.
Easier to use dirmon to move things via a batch file, at a time when you know all recordings are finished.
I was trying to think of a way to move only the current recording...in which case, move "%~dpn1.mpg" "F:\Media\Video\Videora\Downloads\*.*" would probably work better in PostUpdateEPG.bat, but of course the filename would be "clobbered" by then Big Grin
Could make it conditional:
IF EXIST path\filename wildcard.mpg MOVE path\filename wildcard.mpg d:\destination drive\path
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#12
2005-12-06, 07:39 AM
David Wrote:I think the "%~dpn1" would get clobbered by renamerecording. I've also had problems when specifying wildcards in the destination of my move. The Win2k/winXP VDM only wants the destination directory. Something like this would work better:

move "%~dp1*.mpg" "F:\Media\Video\Videora\Downloads\"

This, of course, would move every *.mpg file in the directory, including any that are currently being recorded. Use with care!

Thanks. I have been using the folder meathod and am able to rename the recordings to the episode.mpg.
Is there a way to capture the current directory and pull the folder name then add that to the rename.

Example c:\Videos\Seinfeld\
renamed recording of episode --> Superman.mpg
Can it grab the current folder location and combine it to the renamed mpg --> Seinfeld - Superman.mpg

....
If there is a way to use recinfo.exe to do this I would greatly appreciate it as well.

This app rocks!
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#13
2005-12-06, 05:19 PM
tpgbpvr Wrote:If there is a way to use recinfo.exe to do this I would greatly appreciate it as well.

Yes, I am sure you could get recinfo to rename the file as you like. You might consider having the batch file that recinfo calls copy the file to the directory you want, renamed as "show - episode.mpg", where you can further process the file. You could then run renamerecordings after recinfo so that the show is renamed to the episode title. As I recall, having the show in a subfolder named after the show is actually a GBPVR setting.

You would need to create a batch file and modify recinfo.cfg to pass the desired parameters to the batch file. I could probably help if you need me to.
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
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#14
2005-12-06, 05:55 PM
Guys it would be very simple to modify the source code for RenameRecordings.exe to add the title to the name as well as the sub title. If I get a chance, I may take a stab at it, but right now I don't have a lot of extra time.

I'm attaching though to this message the source code for the version of rename recordings that I use, and somebody can modify it if they want.

It's pretty basic, and shouldn't take much to get going. The source code is written in C#.
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#15
2005-12-06, 06:33 PM
It would be wonderful if renamerecording(s) could be giving a name format either via command line or a config file. That way everyone could get exactly what they want.

Wish I was experienced in C#.
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
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#16
2005-12-07, 01:35 AM
KingArgyle Wrote:Guys it would be very simple to modify the source code for RenameRecordings.exe to add the title to the name as well as the sub title. If I get a chance, I may take a stab at it, but right now I don't have a lot of extra time.

I'm attaching though to this message the source code for the version of rename recordings that I use, and somebody can modify it if they want.

It's pretty basic, and shouldn't take much to get going. The source code is written in C#.

You guys are great on this forum. Hope to get some help whenever you or David have the time. Thanks again!
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#17
2005-12-11, 02:11 AM
David Wrote:Yes, I am sure you could get recinfo to rename the file as you like. You might consider having the batch file that recinfo calls copy the file to the directory you want, renamed as "show - episode.mpg", where you can further process the file. You could then run renamerecordings after recinfo so that the show is renamed to the episode title. As I recall, having the show in a subfolder named after the show is actually a GBPVR setting.

You would need to create a batch file and modify recinfo.cfg to pass the desired parameters to the batch file. I could probably help if you need me to.

David. Thanks for the suggestion. I would appreciate any help you could provide on the recinfo batch file to help rename the recording.

I think this could be very useful for others looking to do the same.
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#18
2005-12-11, 04:18 PM
tpgbpvr Wrote:David. Thanks for the suggestion. I would appreciate any help you could provide on the recinfo batch file to help rename the recording.

I think this could be very useful for others looking to do the same.

I installed recinfo to my gbpvr directory, modified the recinfo.cfg lines for my e-mail information. I can't remember how much I modified the shellcommand line from stock, but here is what I currently have:

ShellCommand=recinfo.bat "$$FullFileName$$" "$$ShowChannel$$" "$$ShowTitle$$"

This is nearly identical to the parameters available when gbpvr shells out to postprocessing.bat, but it adds a third parameter based on the shows episode title. I created recinfo.bat, but it currently has one line that I have since rem'ed out; it now does nothing.

Erik just posted a nice batch script to figure out the name that renamerecordings renames the file. That would solve a few problems for me, so I will probably give it a go. I move my original recording off to an archive, and it would be nice if it used the same name as the commercial free version. I'll still use recinfo for the e-mail notice that it generates.
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
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#19
2005-12-14, 04:36 AM
KingArgyle Wrote:Guys it would be very simple to modify the source code for RenameRecordings.exe to add the title to the name as well as the sub title. If I get a chance, I may take a stab at it, but right now I don't have a lot of extra time.

I'm attaching though to this message the source code for the version of rename recordings that I use, and somebody can modify it if they want.

It's pretty basic, and shouldn't take much to get going. The source code is written in C#.

I would like to take a look at this. Can I use Microsoft's C# Express compiler (downloading the iso right now), or is there something else I can work with?
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
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#20
2005-12-17, 04:47 AM
I had a little bit of time tonight and tossed a slight modification into my version of RenameRecordings. As always back up the version that you have in case you need to restore.

This version takes an optional parameter "-t" that tells RenameRecording to include the Title of the show along with the sub title. To run this, place it in your PostProcessing.bat file as:

RenameRecording -t %1 > rename.log

The new filename should be something like:
Title - Subtitle.mpg
Title - Subtitle.avi


If you want to just have the subtitle instead of including the title, run rename recordings without the -t option.

RenameRecording %1 > rename.log

I have not tested this out at all, but if problems are found, I'll see what I can do to fix them. It should rename the Comskip file if there is one.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Blue Skin: Recordings - Include Program Description ralphy 4 3,613 2010-05-17, 01:32 AM
Last Post: ralphy
  EPG/XML parsing: reading Season and Episode data from title Sykor 7 7,903 2010-02-16, 05:52 AM
Last Post: whurlston
  TV Recordings 2.6 Confirm Delete Graham 2 2,381 2008-10-21, 12:47 PM
Last Post: Graham
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,879 2008-03-27, 11:45 PM
Last Post: _Dude_
  Any rename utility that renames before recording? linfor 37 9,045 2008-01-04, 05:08 AM
Last Post: linfor
  Option to turn ComSkip off for certain recordings? wildatom 3 1,733 2007-12-01, 02:32 AM
Last Post: kayak4ever
  comskip and digital recordings agidius 12 3,933 2007-11-21, 03:39 PM
Last Post: wtg
  Comskip trouble with high bit rate recordings ApexHack 4 2,157 2007-10-16, 02:29 AM
Last Post: erik
  Renaaming recordings & DB3 management marcomessina 0 1,347 2007-10-07, 04:51 PM
Last Post: marcomessina
  Trim recordings? djmuk 4 1,897 2007-09-29, 01:30 AM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode