NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
Rename Recording

 
  • 0 Vote(s) - 0 Average
Rename Recording
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#91
2005-05-08, 12:04 AM
I made the switch 9:00pm last night
my postprocessing.bat

comskip %1
RenameRecordings %1

attached is the last 4 shows that recorded. 2 are after the change from
RenameRecording
to
RenameRecordings
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#92
2005-05-09, 05:25 PM
Tipstir, for the programs that are getting the extra junk after the name, could you check GBPVR.mdb to find out what the sub_title for the recording is? You first need to find the filename in the RECORDING_SCHEDULE table and then find the programme_oid in the PROGRAMME table. My guess is that the sub_title field will contain that junk. What EPG do you use?

Also, Pioneer4x4, you don't need %1 any more as a paremeter for RenameRecordings as it will always scan all recordings. It doesn't hurt, but is unnecessary.

I shall add an optional config file for this that will allow specification of the file name. Do you think I should just use C# format specifications "{0} {4:yyyy-dd-MM}" type or should I make it more XML based?
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#93
2005-05-09, 05:59 PM
ZaDDaZ Wrote:Also, Pioneer4x4, you don't need %1 any more as a paremeter for RenameRecordings as it will always scan all recordings. It doesn't hurt, but is unnecessary.

I shall add an optional config file for this that will allow specification of the file name. Do you think I should just use C# format specifications "{0} {4:yyyy-dd-MM}" type or should I make it more XML based?


What do you mean it will scann all recordings? I am assuming you mean it will scan the database for all shows, and then find and rename them, instead of doing just the last reocrded show.
As for the formatting of the file name, I honestly don't know what you mean about C# specs or XML. I don't care how it is edited, it should be a one time config, unless someone changes their mind.
Come to think of it, where would you get the date/time? From the previous GBPVR generated name, or from the actual times in the database? If it is from the database, and you change your formatting option, it could update all of your current recordings, right?

Thanks again for the effort. (BTW, it is about 10 for 10 as of today)
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#94
2005-05-09, 07:13 PM
Yep, it scans all recordings it finds in the database with subtitles and renames them, checking to see if it was already renamed of course. It does not just look for the last one. You can tell this by looking at the output.

For the config for the renamed file, I can provide a ton of options. I think this is what I'll do. Here's a sample config file that will use all of the options:
Code:
<RenameRecordings>
  <SkipIfNoSubtitle>False</SkipIfNoSubtitle>
  <NameFormat><ProgramName/><Subtitle before=" - "/> on <StartTime format="{0:yyyy-MM-dd}"/> from <StartTime format="{0:hh-mm tt}"/> to <EndTime format="{0:hh-mm tt}"/> on channel <Channel format="{0:d3}"/></NameFormat>
</RenameRecordings>
This would result in something like:
Stargate SG-1 - Heros on 2005-05-05 from 8-00 PM to 9-00 PM on channel 073

It will get all of the data out of the database. I thought I'd add the SkipIfNoSubtitle option in case you want all files renamed with nicer times, and would like to include the channel in the file name as well. The before attribute on any parameter will be put before that value, if it is found, otherwise, the entire value will be skipped. I can only imagine that this will matter for subtitle, but who knows... I'll also allow generic nodes with field names from GBPVR.mdb in them as well.

If you change the format specification, running RenameRecordings would rename all of the files found in the database.

Glad to hear no glitches yet. I don't expect them any more as I'm deleting and adding records Smile
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#95
2005-05-09, 09:38 PM
tipstir Wrote:Pioneer, you're last file has the junk info at the end.
That one is as recorded and named by GBPVR, it is not a junk name
Kimba the White Lion_20050506_06300700.mpg
is 2005, 05, 06, 6:30, 7:00
year, month, day, starttime, endtime

it did not rename because it does not have a episode name.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#96
2005-05-09, 09:42 PM
ZaDDaZ Wrote:If you change the format specification, running RenameRecordings would rename all of the files found in the database.

Sounds better than I expected! Makes perfect sense also. I wish we could persuade Sub to include it internally in GBPVR (hint hint if you're reading this Smile )

Another benifit is when recording shows with tons of repeats, you can see if you got dupes, and/or 2 parters.

I have another idea.. You'll love this one. On shows like battlestar, it could go out to a web page like tvtome, and get the episode # and put that in the title... (Just kidding on that one, but it would be cool)

As for your comskip util, do you think you could have it exclude shows based on channel?
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#97
2005-05-10, 03:25 AM
Sure, I'll have the ComSkip tool have a config to skip certain channels. All in due time. Right now, I have to figure out why the heck recording completely stopped Sad
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#98
2005-05-10, 03:26 AM
tipstir Wrote:Oh okay.. How's your comskip working Pioneer?
Like a champ!
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#99
2005-05-10, 03:29 AM
ZaDDaZ Wrote:Sure, I'll have the ComSkip tool have a config to skip certain channels. All in due time. Right now, I have to figure out why the heck recording completely stopped Sad
Sounds great, (the comskip tool that is)

What happened to your recording? I am going to sleep now, I was up taking these pictures.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#100
2005-05-10, 10:45 AM
I don't think I changed a thing. I never added the playnice stuff. It runs in low priorty mode anyway.



detect_method=255 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 255=all
verbose=10 ;show extra info
fps=29.97 ;frames per second (NTSC=29.970, PAL=25)
border=10 ;border around edge of video to ignore
max_brightness=180 ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=60 ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=45 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255)
max_commercialbreak=330 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=44 ;minimum length in seconds to consider a segment a commercial break
max_commercial_size=180 ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=1 ;mimimum time in seconds for a single commercial
min_show_segment_length=30
live_tv=1
delete_logo_file=1
min_black_frames_for_break=1;
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 8 9 10 11 12 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 1,763 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 804 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,421 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,749 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,342 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 16,267 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 4,292 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 3,138 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,623 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 11,908 2014-12-19, 10:28 PM
Last Post: cbgifford

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

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

Linear Mode
Threaded Mode